Texture Class Reference

Contains information about texture image associated to a Mesh. More...

General Functions

 Texture ()
 Default constructor which creates an empty Texture. More...
 
 ~Texture ()
 Texture destructor. More...
 
void clear ()
 Clears data. More...
 

Attributes

Mat data
 
unsigned int indice_gl
 
String name
 

Detailed Description

Contains information about texture image associated to a Mesh.

Constructor and Destructor

◆ Texture()

Texture ( )

Default constructor which creates an empty Texture.

◆ ~Texture()

~Texture ( )

Texture destructor.

Functions

◆ clear()

void clear ( )

Clears data.

Variables

◆ data

Mat data

Mat that contains the data of the texture.

◆ indice_gl

unsigned int indice_gl

Useful for OpenGL binding reference (value not set by the SDK).

◆ name

String name

The name of the file in which the texture is saved.