DI-Guy SDK Documentation  13.5
diguyOglGraphicsTexture.h
Go to the documentation of this file.
1 #pragma once
2 
3 
4 // needed for function prototypes
5 #include <GL/glew.h>
6 #include <GL/gl.h>
7 
8 #include <diguyGraphicsTexture.h>
9 
10 
26 {
27 
28 public:
29 
30  diguyOglGraphicsTexture(void* internal_data);
31  virtual ~diguyOglGraphicsTexture();
32 
33  virtual void build();
34  virtual void unbuild();
35  virtual void bind_now(diguyTextureMapType texture_type);
36 
37 protected:
38  void send_mipmap();
39  GLuint m_texture_object;
41 
42 };
43 
44 
45 
53 
void send_mipmap()
Definition: diguyOglGraphicsTexture.cpp:325
virtual ~diguyOglGraphicsTexture()
Definition: diguyOglGraphicsTexture.cpp:35
virtual void bind_now(diguyTextureMapType texture_type)
This function will be called by DI-Guy when the texture should be made active, or bound...
Definition: diguyOglGraphicsTexture.cpp:437
A class that represents a shared texture.
Definition: diguyGraphicsTexture.h:135
diguyOglGraphicsTexture(void *internal_data)
Definition: diguyOglGraphicsTexture.cpp:23
int m_current_loading_mipmap
Definition: diguyOglGraphicsTexture.h:38
virtual void build()
This function will be called by DI-Guy when it is time for a renderer-specific texture object to be c...
Definition: diguyOglGraphicsTexture.cpp:59
diguyTextureMapType
This enumeration lists the type of texture map a given image file is being used as.
Definition: diguyGraphicsTexture.h:56
The class diguyOglGraphicsTexture is an example of a diguyGraphicsTexture subclass for an immediate m...
Definition: diguyOglGraphicsTexture.h:23
diguyGraphicsTexture * diguyOglGraphicsTexture_create_func(void *internal_data)
Create function declaration.
Definition: diguyOglGraphicsTexture.cpp:486
GLuint m_texture_object
Definition: diguyOglGraphicsTexture.h:37
virtual void unbuild()
This function will be called by DI-Guy when it is time for a renderer-specific texture object to be d...
Definition: diguyOglGraphicsTexture.cpp:407