Web Analytics Made Easy - Statcounter
Skip to content

Class SBMVisualModelTexture#

ClassList > SBMVisualModelTexture

This class is the base class to describe a visual model texture. More...

  • #include <SBMVisualModelTexture.hpp>

Inherits the following classes: SBCReferenceTarget

Public Functions#

Type Name
SBMVisualModelTexture (unsigned int width, unsigned int height, unsigned char * textureData)
Builds a texture.
unsigned int getHeight () const
Returns the height.
unsigned char * getTextureData () const
Returns the texture data.
unsigned int getWidth () const
Returns the width.
void setHeight (unsigned int diffuseMapHeight)
Sets the height.
void setTextureData (unsigned char * diffuseMapTextureData)
Sets the texture data.
void setWidth (unsigned int diffuseMapWidth)
Sets the width.
virtual ~SBMVisualModelTexture ()
Deletes the triangle surface.

Public Functions inherited from SBCReferenceTarget#

See SBCReferenceTarget

Type Name
SBCReferenceTarget ()
Builds the reference target.
unsigned int getMemoryFootprint () const
Returns the memory footprint.
void printReferencesToOwners () const
Prints the references to the owners of this reference target.
virtual ~SBCReferenceTarget ()
Destructor.

Protected Attributes inherited from SBCReferenceTarget#

See SBCReferenceTarget

Type Name
SBCReferenceTargetData * dataPointer
A pointer to the private data.

Protected Functions inherited from SBCReferenceTarget#

See SBCReferenceTarget

Type Name
SBCReferenceTarget (SBCReferenceTargetData * dataPointer)
Protected constructor.
void removeAllReferenceOwners ()
Stops all the reference owners from referencing this reference target.

Detailed Description#

Short name: SBTexture

Public Functions Documentation#

function SBMVisualModelTexture#

Builds a texture.

SBMVisualModelTexture::SBMVisualModelTexture (
    unsigned int width,
    unsigned int height,
    unsigned char * textureData
) 

Constructs a texture with the specified dimensions and data.

Initializes the SBMVisualModelTexture object with the given width, height, and a pointer to the texture data.

Parameters:

  • width The width of the texture in pixels.
  • height The height of the texture in pixels.
  • textureData Pointer to the texture data buffer.

function getHeight#

Returns the height.

unsigned int SBMVisualModelTexture::getHeight () const

Returns the height of the texture.

Returns:

The height in pixels.


function getTextureData#

Returns the texture data.

unsigned char * SBMVisualModelTexture::getTextureData () const

Returns a pointer to the texture data.

Returns:

Pointer to the texture data buffer.


function getWidth#

Returns the width.

unsigned int SBMVisualModelTexture::getWidth () const

Returns the width of the texture.

Returns:

The width in pixels.


function setHeight#

Sets the height.

void SBMVisualModelTexture::setHeight (
    unsigned int diffuseMapHeight
) 

Sets the height of the texture.

Parameters:

  • height The new height in pixels.

function setTextureData#

Sets the texture data.

void SBMVisualModelTexture::setTextureData (
    unsigned char * diffuseMapTextureData
) 

Sets the texture data pointer.

Parameters:

  • textureData Pointer to the new texture data buffer.

function setWidth#

Sets the width.

void SBMVisualModelTexture::setWidth (
    unsigned int diffuseMapWidth
) 

Sets the width of the texture.

Parameters:

  • width The new width in pixels.

function ~SBMVisualModelTexture#

Deletes the triangle surface.

virtual SBMVisualModelTexture::~SBMVisualModelTexture () 

Destroys the texture and releases its resources.