RenderEngine
Loading...
Searching...
No Matches
Texture Class Reference

Texture. More...

#include <Texture.hpp>

Public Member Functions

 Texture ()
 Default constructor.
 
 Texture (std::string filename)
 Constructor.
 
 Texture (int w, int h)
 Constructor.
 
 ~Texture ()
 Destructor.
 
void bindTexture ()
 bindTexture
 
GLuint getTextureID ()
 bindTegetTextureIDxture
 

Detailed Description

Texture.

Basic texture represenation. Supports dds and bmp at the moment

Constructor & Destructor Documentation

◆ Texture() [1/3]

Texture::Texture ( )

Default constructor.

Setting up default texture.

◆ Texture() [2/3]

Texture::Texture ( std::string  filename)

Constructor.

Setting up texture from filename.

◆ Texture() [3/3]

Texture::Texture ( int  w,
int  h 
)

Constructor.

Setting up texture with widht and height.

◆ ~Texture()

Texture::~Texture ( )

Destructor.

Clean up ressources.

Member Function Documentation

◆ bindTexture()

void Texture::bindTexture ( )

bindTexture

Bind our texture in Texture Unit 0.

◆ getTextureID()

GLuint Texture::getTextureID ( )

bindTegetTextureIDxture

Returns the id of the texture object.


The documentation for this class was generated from the following files: