#include <skin.h>
Public Member Functions | |
Skin () | |
Create a Skin object. | |
Skin (QString _name) | |
Create a Skin object with a name. | |
Skin (GLuint _x_plus, GLuint _x_minus, GLuint _y_plus, GLuint _y_minus, GLuint _z_plus, GLuint _z_minus) | |
Create a Skin object giving the faces. More... | |
Skin (GLuint texture) | |
Create a Skin object giving a texture for all the faces. More... | |
~Skin () | |
Safely destroy the Skin. | |
void | setName (QString _name) |
Set the name of the Skin. More... | |
QString | getName () |
Returns the name of the Skin. More... | |
void | setComment (QString _comment) |
Set the comment of the Skin. More... | |
QString | getComment () |
Returns the comment of the Skin. More... | |
void | setTexture (GLuint face, GLuint textureID) |
Set one texture of the Skin. More... | |
GLuint | getTexture (GLuint face) |
Returns the texture for the specified face. More... | |
void | setTextureXPlus (GLuint _x_plus) |
Set the texture for x+ face. More... | |
GLuint | getTextureXPlus () |
Returns the texture for x+ face. More... | |
void | setTextureXMinus (GLuint _x_minus) |
Set the texture for x- face. More... | |
GLuint | getTextureXMinus () |
Returns the texture for x- face. More... | |
void | setTextureYPlus (GLuint _y_plus) |
Set the texture for y+ face. More... | |
GLuint | getTextureYPlus () |
Returns the texture for y+ face. More... | |
void | setTextureYMinus (GLuint _y_minus) |
Set the texture for y- face. More... | |
GLuint | getTextureYMinus () |
Returns the texture for y- face. More... | |
void | setTextureZPlus (GLuint _z_plus) |
Set the texture for z+ face. More... | |
GLuint | getTextureZPlus () |
Returns the texture for z+ face. More... | |
void | setTextureZMinus (GLuint _z_minus) |
Set the texture for z- face. More... | |
GLuint | getTextureZMinus () |
Returns the texture for z- face. More... | |
void | setTextureForAllFaces (GLuint all) |
Set the same texture for all the faces. More... | |
QString | toString () |
Print a string containing the GLuint textureIDs. More... | |
Private Attributes | |
QString | name |
QString | comment |
GLuint | x_plus |
GLuint | x_minus |
GLuint | y_plus |
GLuint | y_minus |
GLuint | z_plus |
GLuint | z_minus |
It is the Skin Class.
|
explicit |
Create a Skin object giving the faces.
_x_plus | is the x+ texture ID. |
_x_minus | is the x- texture ID. |
_y_plus | is the y+ texture ID. |
_y_minus | is the y- texture ID. |
_z_plus | is the z+ texture ID. |
_z_minus | is the z- texture ID. |
|
explicit |
Create a Skin object giving a texture for all the faces.
texture | is the texture to apply to all the faces. |
GLuint Skin::getTexture | ( | GLuint | face | ) |
Returns the texture for the specified face.
face | is the face to get the texture. |
GLuint Skin::getTextureXMinus | ( | ) |
Returns the texture for x- face.
GLuint Skin::getTextureXPlus | ( | ) |
Returns the texture for x+ face.
GLuint Skin::getTextureYMinus | ( | ) |
Returns the texture for y- face.
GLuint Skin::getTextureYPlus | ( | ) |
Returns the texture for y+ face.
GLuint Skin::getTextureZMinus | ( | ) |
Returns the texture for z- face.
GLuint Skin::getTextureZPlus | ( | ) |
Returns the texture for z+ face.
void Skin::setComment | ( | QString | _comment | ) |
Set the comment of the Skin.
_comment | is the comment to set. |
void Skin::setName | ( | QString | _name | ) |
Set the name of the Skin.
_name | is the name to set. |
void Skin::setTexture | ( | GLuint | face, |
GLuint | textureID | ||
) |
Set one texture of the Skin.
face | is the face to set the texture. |
textureID | is the texture ID to set. |
void Skin::setTextureForAllFaces | ( | GLuint | all | ) |
Set the same texture for all the faces.
all | is the texture to set. |
void Skin::setTextureXMinus | ( | GLuint | _x_minus | ) |
Set the texture for x- face.
_x_minus | is the texture to set. |
void Skin::setTextureXPlus | ( | GLuint | _x_plus | ) |
Set the texture for x+ face.
_x_plus | is the texture to set. |
void Skin::setTextureYMinus | ( | GLuint | _y_minus | ) |
Set the texture for y- face.
_y_minus | is the texture to set. |
void Skin::setTextureYPlus | ( | GLuint | _y_plus | ) |
Set the texture for y+ face.
_y_plus | is the texture to set. |
void Skin::setTextureZMinus | ( | GLuint | _z_minus | ) |
Set the texture for z- face.
_z_minus | is the texture to set. |
void Skin::setTextureZPlus | ( | GLuint | _z_plus | ) |
Set the texture for z+ face.
_z_plus | is the texture to set. |
QString Skin::toString | ( | ) |
Print a string containing the GLuint textureIDs.
|
private |
It is the coment of the skin
|
private |
It is the name of the skin
|
private |
It is the x- face texture of the skin
|
private |
It is the x+ face texture of the skin
|
private |
It is the y- face texture of the skin
|
private |
It is the y+ face texture of the skin
|
private |
It is the z- face texture of the skin
|
private |
It is the z+ face texture of the skin