94#ifndef CGenericTextureH
95#define CGenericTextureH
116class cGenericTexture;
160 virtual bool loadFromFile(
const std::string& a_fileName) {
return (
false); }
163 virtual bool saveToFile(
const std::string& a_fileName) {
return (
false); }
Implements color properties.
Implements a general abstract type.
Implements a structure to store rendering options.
This class implements a base class for textures.
Definition CGenericTexture.h:133
bool getEnabled() const
This method returns true if the texture map is enabled, false otherwise.
Definition CGenericTexture.h:181
virtual void markForDeleteAndUpdate()
This method marks this texture for GPU deletion and reinitialization.
Definition CGenericTexture.h:175
std::string m_name
Texture name.
Definition CGenericTexture.h:194
virtual void markForUpdate()
This method marks this texture for GPU update.
Definition CGenericTexture.h:172
cGenericTexture()
Constructor of cGenericTexture.
Definition CGenericTexture.h:141
virtual void renderInitialize(cRenderOptions &a_options)
This method enables texturing and set this texture as the current texture.
Definition CGenericTexture.h:166
virtual bool saveToFile(const std::string &a_fileName)
This method saves a texture image file.
Definition CGenericTexture.h:163
std::string m_filename
Texture filename.
Definition CGenericTexture.h:197
void setEnabled(bool a_enabled)
This method enables or disables texture mapping.
Definition CGenericTexture.h:178
virtual ~cGenericTexture()
Destructor of cGenericTexture.
Definition CGenericTexture.h:144
virtual void renderFinalize(cRenderOptions &a_options)
This method disables texturing and should be called after triangles have been rendered.
Definition CGenericTexture.h:169
bool m_enabled
If true, this texture is enabled, false otherwise.
Definition CGenericTexture.h:191
virtual bool loadFromFile(const std::string &a_fileName)
This method loads a texture image file.
Definition CGenericTexture.h:160
static cGenericTexturePtr create()
Shared cGenericTexture allocator.
Definition CGenericTexture.h:147
virtual std::string getClassName()
This method returns the name of the object class.
Definition CGenericTexture.h:157
This class implements an abstract type.
Definition CGenericType.h:76
Definition CAudioBuffer.cpp:57
std::shared_ptr< cGenericTexture > cGenericTexturePtr
Definition CGenericTexture.h:117
This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition CRenderOptions.h:83