Gel2D - The free/open source game creation suite

Public Member Functions | Protected Attributes
gel::GelTextureObject Class Reference

Gel2D texture object base class. More...

#include <gelObject.h>

Inheritance diagram for gel::GelTextureObject:
gel::GelGUIWidget gel::GelParticleSys gel::GelSprite gel::GelText gel::GelGUIButton gel::GelGUICheckBox gel::GelGUIText gel::GelAnimSprite

List of all members.

Public Member Functions

 GelTextureObject ()
 Default constructor.
GelTexture * getTexture () const
 Gets a pointer to the object's texture.
bool hasTexture () const
 Checks if the object has a texture.
int getBlendMode () const
 Gets the object's blending mode.
void setBlendMode (int mode)
 Sets the object's blending mode.

Protected Attributes

GelTexture * texture
 The object's texture.
int blendMode
 The object's blend mode.

Detailed Description

Gel2D texture object base class.


Constructor & Destructor Documentation

gel::GelTextureObject::GelTextureObject ( )

Default constructor.


Member Function Documentation

GelTexture* gel::GelTextureObject::getTexture ( ) const

Gets a pointer to the object's texture.

Returns:
The object's texture.
bool gel::GelTextureObject::hasTexture ( ) const

Checks if the object has a texture.

Returns:
True if there is a texture, else false.
int gel::GelTextureObject::getBlendMode ( ) const [inline]

Gets the object's blending mode.

Returns:
The object's blending mode.
void gel::GelTextureObject::setBlendMode ( int  mode) [inline]

Sets the object's blending mode.

Parameters:
mode: The object's new blending mode.

Member Data Documentation

The object's texture.

The object's blend mode.


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