![]() |
AireEngine
A 3D Open-World Game Engine
|
#include <texture.h>


Public Member Functions | |
| Texture () | |
| Create the texture. | |
| uint32_t | getSize () |
| GLuint | getHandle () const |
| virtual | ~Texture ()=0 |
| Destroy the texture. | |
| void | bindTexUnit (GLint textureUnit) |
| void | setFiltering (GLint minFilter, GLint maxFilter) |
| void | setWrapping (GLint wrapS, GLint wrapT, GLint wrapR) |
| unsigned char * | getImageData () |
| void | setImageData (unsigned char *) |
Public Member Functions inherited from Aire::Resource | |
| Resource () | |
| Default constructor. | |
| virtual | ~Resource () |
| Default destructor. | |
| bool | isLoadToGpu () |
| ResourceState | getState () |
| void | setState (ResourceState state) |
Public Attributes | |
| int | texWidth |
| int | texHeight |
| int | texChannels |
| std::string | dir |
Protected Attributes | |
| GLuint | handle |
| unsigned char * | imageData |
Protected Attributes inherited from Aire::Resource | |
| ResourceState | resourceState |
Texture base class.
Binds the texture to a given texture unit (appears as binding layout qualifier).
| textureUnit | The index of the texture unit. |

|
inline |

|
virtual |
Get the size of the texture in memory
Implements Aire::Resource.
Set filtering parameters for the texture. See: https://registry.khronos.org/OpenGL-Refpages/gl4/html/glTexParameter.xhtml
| minFilter | The type of minification filter. |
| maxFilter | The type of magnification filter. |

Set wrapping mode on each axis in texture space. See: https://registry.khronos.org/OpenGL-Refpages/gl4/html/glTexParameter.xhtml
| wrapS | Wrapping mode along the S axis. |
| wrapT | Wrapping mode along the T axis. |
| wrapR | Wrapping mode along the R axis. |
