5 #include <osg/Texture2D>
7 #include <osg/StateSet>
35 virtual void build()
override;
36 virtual void unbuild()
override;
43 static osg::ref_ptr<osg::State>
sm_state;
50 osg::ref_ptr<osg::Image>
m_image;
osg::ref_ptr< osg::Texture2D > m_texture
Definition: diguyOsgGraphicsTexture.h:48
osg::ref_ptr< osg::Image > m_image
Definition: diguyOsgGraphicsTexture.h:49
static osg::ref_ptr< osg::State > sm_state
Definition: diguyOsgGraphicsTexture.h:42
Definition: diguyOsgGraphicsTexture.h:23
diguyOsgGraphicsTexture(void *internal_data)
Definition: diguyOsgGraphicsTexture.cpp:25
A class that represents a shared texture.
Definition: diguyGraphicsTexture.h:124
virtual ~diguyOsgGraphicsTexture()
Definition: diguyOsgGraphicsTexture.cpp:33
virtual void bind_now(diguyTextureMapType texture_type) override
This function will be called by DI-Guy when the texture should be made active, or bound...
Definition: diguyOsgGraphicsTexture.cpp:219
void releaseGLObjects()
Definition: diguyOsgGraphicsTexture.cpp:265
diguyTextureMapType
This enumeration lists the type of texture map a given image file is being used as.
Definition: diguyGraphicsTexture.h:55
virtual void unbuild() override
This function will be called by DI-Guy when it is time for a renderer-specific texture object to be d...
Definition: diguyOsgGraphicsTexture.cpp:254
virtual void asynchronous_post_load() override
This function will be called by DI-Guy after the texture is loaded but before build.
Definition: diguyOsgGraphicsTexture.cpp:56
virtual void build() override
This function will be called by DI-Guy when it is time for a renderer-specific texture object to be c...
Definition: diguyOsgGraphicsTexture.cpp:172
osg::Texture2D * get_texture()
Definition: diguyOsgGraphicsTexture.h:40
diguyGraphicsTexture * diguyOsgGraphicsTexture_create_func(void *internal_data)
Create function declaration.
Definition: diguyOsgGraphicsTexture.cpp:283