Qubet  1.0
The ultimate QGL addicting videogame!
 All Classes Functions Variables Pages
Public Member Functions | Private Attributes | List of all members
Skin Class Reference

It is the Skin Class. More...

#include <skin.h>

Collaboration diagram for Skin:
Collaboration graph

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
 

Detailed Description

It is the Skin Class.

Version
1.0
Author
#34

Constructor & Destructor Documentation

Skin::Skin ( GLuint  _x_plus,
GLuint  _x_minus,
GLuint  _y_plus,
GLuint  _y_minus,
GLuint  _z_plus,
GLuint  _z_minus 
)
explicit

Create a Skin object giving the faces.

Parameters
_x_plusis the x+ texture ID.
_x_minusis the x- texture ID.
_y_plusis the y+ texture ID.
_y_minusis the y- texture ID.
_z_plusis the z+ texture ID.
_z_minusis the z- texture ID.
Skin::Skin ( GLuint  texture)
explicit

Create a Skin object giving a texture for all the faces.

Parameters
textureis the texture to apply to all the faces.

Member Function Documentation

QString Skin::getComment ( )

Returns the comment of the Skin.

Returns
the comment of the Skin.
QString Skin::getName ( )

Returns the name of the Skin.

Returns
the name of the Skin.
GLuint Skin::getTexture ( GLuint  face)

Returns the texture for the specified face.

Parameters
faceis the face to get the texture.
Returns
the texture for the specified face.

Here is the call graph for this function:

GLuint Skin::getTextureXMinus ( )

Returns the texture for x- face.

Returns
the texture for x- face.

Here is the caller graph for this function:

GLuint Skin::getTextureXPlus ( )

Returns the texture for x+ face.

Returns
the texture for x+ face.

Here is the caller graph for this function:

GLuint Skin::getTextureYMinus ( )

Returns the texture for y- face.

Returns
the texture for y- face.

Here is the caller graph for this function:

GLuint Skin::getTextureYPlus ( )

Returns the texture for y+ face.

Returns
the texture for y+ face.

Here is the caller graph for this function:

GLuint Skin::getTextureZMinus ( )

Returns the texture for z- face.

Returns
the texture for z- face.

Here is the caller graph for this function:

GLuint Skin::getTextureZPlus ( )

Returns the texture for z+ face.

Returns
the texture for z+ face.

Here is the caller graph for this function:

void Skin::setComment ( QString  _comment)

Set the comment of the Skin.

Parameters
_commentis the comment to set.

Here is the caller graph for this function:

void Skin::setName ( QString  _name)

Set the name of the Skin.

Parameters
_nameis the name to set.
void Skin::setTexture ( GLuint  face,
GLuint  textureID 
)

Set one texture of the Skin.

Parameters
faceis the face to set the texture.
textureIDis the texture ID to set.

Here is the call graph for this function:

Here is the caller graph for this function:

void Skin::setTextureForAllFaces ( GLuint  all)

Set the same texture for all the faces.

Parameters
allis the texture to set.

Here is the caller graph for this function:

void Skin::setTextureXMinus ( GLuint  _x_minus)

Set the texture for x- face.

Parameters
_x_minusis the texture to set.

Here is the caller graph for this function:

void Skin::setTextureXPlus ( GLuint  _x_plus)

Set the texture for x+ face.

Parameters
_x_plusis the texture to set.

Here is the caller graph for this function:

void Skin::setTextureYMinus ( GLuint  _y_minus)

Set the texture for y- face.

Parameters
_y_minusis the texture to set.

Here is the caller graph for this function:

void Skin::setTextureYPlus ( GLuint  _y_plus)

Set the texture for y+ face.

Parameters
_y_plusis the texture to set.

Here is the caller graph for this function:

void Skin::setTextureZMinus ( GLuint  _z_minus)

Set the texture for z- face.

Parameters
_z_minusis the texture to set.

Here is the caller graph for this function:

void Skin::setTextureZPlus ( GLuint  _z_plus)

Set the texture for z+ face.

Parameters
_z_plusis the texture to set.

Here is the caller graph for this function:

QString Skin::toString ( )

Print a string containing the GLuint textureIDs.

Returns
a string containing the GLuint textureIDs.

Member Data Documentation

QString Skin::comment
private

It is the coment of the skin

QString Skin::name
private

It is the name of the skin

GLuint Skin::x_minus
private

It is the x- face texture of the skin

GLuint Skin::x_plus
private

It is the x+ face texture of the skin

GLuint Skin::y_minus
private

It is the y- face texture of the skin

GLuint Skin::y_plus
private

It is the y+ face texture of the skin

GLuint Skin::z_minus
private

It is the z- face texture of the skin

GLuint Skin::z_plus
private

It is the z+ face texture of the skin


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