VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
DtDiGuyOsgGraphicsTextureArray.h
Go to the documentation of this file.
1 /****************************************************************************
2 * Copyright (c) 2021 VT MAK
3 * All rights reserved.
4 * ***************************************************************************/
5 
9 
10 #pragma once
11 
12 #include <diguyGraphicsTextureArray.h>
13 #include <osg/Texture2DArray>
14 #include <osg/Image>
15 #include <osg/StateSet>
16 
17 namespace makVrv
18 {
34  {
35 
36  public:
37 
39  DtDiGuyOsgGraphicsTextureArray(void* internal_data);
42 
43  private:
48 
49 
50  public:
52  virtual void build() override;
54  virtual void unbuild() override;
55 
57  virtual osg::Texture2DArray* get_texture_array();
58 
60  void releaseGLObjects();
61 
62  protected:
63  // help function that loads texture memory into array
64  virtual void load_data();
65 
66  protected:
67 
69 
70  };
71 }
79 
virtual osg::Texture2DArray * get_texture_array()
returns a texture array
diguyGraphicsTextureArray * diguyOsgGraphicsTextureArray_create_func(void *internal_data)
Create function declaration. Declare a subclass creation function that will be registered with the DI...
DtDiGuyOsgGraphicsTextureArray & operator=(const DtDiGuyOsgGraphicsTextureArray &)=delete
not allowed
osg::ref_ptr< osg::Texture2DArray > myTextureArray
Definition: DtDiGuyOsgGraphicsTextureArray.h:68
DtDiGuyOsgGraphicsTextureArray(void *internal_data)
ctor internal data is a internal diguy class
virtual void build() override
overrides the base class build function
virtual void unbuild() override
called when data is freed
Definition: DtDiGuyOsgGraphicsTextureArray.h:33

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)