DI-Guy SDK Documentation  13.8
diguyOglGraphicsTexture.h
Go to the documentation of this file.
1 /****************************************************************************
2  * Copyright (c) 2024 MAK Technologies, Inc.
3  * All rights reserved.
4  ****************************************************************************/
5 
6 #pragma once
7 
8 // needed for function prototypes
9 #include <GL/glew.h>
10 #include <GL/gl.h>
11 
12 #include <diguyGraphicsTexture.h>
13 
14 
30 {
31 
32 public:
33 
34  diguyOglGraphicsTexture(void* internal_data);
35  virtual ~diguyOglGraphicsTexture();
36 
37  virtual void build() override;
38  virtual void unbuild() override;
39  virtual void bind_now(diguyTextureMapType texture_type) override;
40 
41  virtual unsigned int get_gl_texture_id() const override { return m_texture_object; }
42 
43 protected:
44  void send_mipmap();
47 
48 };
49 
50 
51 
59 
A class that represents a shared texture.
Definition: diguyGraphicsTexture.h:124
diguyOglGraphicsTexture(void *internal_data)
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...
int m_current_loading_mipmap
Definition: diguyOglGraphicsTexture.h:45
diguyTextureMapType
This enumeration lists the type of texture map a given image file is being used as.
Definition: diguyGraphicsTexture.h:55
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...
virtual ~diguyOglGraphicsTexture()
The class diguyOglGraphicsTexture is an example of a diguyGraphicsTexture subclass for an immediate m...
Definition: diguyOglGraphicsTexture.h:28
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...
diguyGraphicsTexture * diguyOglGraphicsTexture_create_func(void *internal_data)
Create function declaration.
GLuint m_texture_object
Definition: diguyOglGraphicsTexture.h:44
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:40