DI-Guy SDK Documentation  13.7
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() override;
34  virtual void unbuild() override;
35  virtual void bind_now(diguyTextureMapType texture_type) override;
36 
37  virtual unsigned int get_gl_texture_id() const override { return m_texture_object; }
38 
39 protected:
40  void send_mipmap();
41  GLuint m_texture_object;
43 
44 };
45 
46 
47 
55 
void send_mipmap()
Definition: diguyOglGraphicsTexture.cpp:325
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: diguyOglGraphicsTexture.cpp:407
virtual ~diguyOglGraphicsTexture()
Definition: diguyOglGraphicsTexture.cpp:35
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: diguyOglGraphicsTexture.cpp:59
A class that represents a shared texture.
Definition: diguyGraphicsTexture.h:124
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: diguyOglGraphicsTexture.cpp:437
diguyOglGraphicsTexture(void *internal_data)
Definition: diguyOglGraphicsTexture.cpp:23
int m_current_loading_mipmap
Definition: diguyOglGraphicsTexture.h:40
diguyTextureMapType
This enumeration lists the type of texture map a given image file is being used as.
Definition: diguyGraphicsTexture.h:55
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:39
virtual unsigned int get_gl_texture_id() const override
helper function to let diguy internals know what the object's texture ID is.
Definition: diguyOglGraphicsTexture.h:35