94 #ifndef CGenericTextureH 95 #define CGenericTextureH 146 static cGenericTexturePtr
create() {
return (std::make_shared<cGenericTexture>()); }
156 virtual bool loadFromFile(
const std::string& a_fileName) {
return (
false); }
159 virtual bool saveToFile(
const std::string& a_fileName) {
return (
false); }
This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition: CRenderOptions.h:82
virtual ~cGenericTexture()
Destructor of cGenericTexture.
Definition: CGenericTexture.h:143
This class implements a base class for textures.
Definition: CGenericTexture.h:131
virtual void markForDeleteAndUpdate()
This method marks this texture for GPU deletion and reinitialization.
Definition: CGenericTexture.h:171
std::shared_ptr< cGenericTexture > cGenericTexturePtr
Definition: CGenericTexture.h:115
static cGenericTexturePtr create()
Shared cGenericTexture allocator.
Definition: CGenericTexture.h:146
bool getEnabled() const
This method returns true if the texture map is enabled, false otherwise.
Definition: CGenericTexture.h:177
virtual void renderInitialize(cRenderOptions &a_options)
This method enables texturing and set this texture as the current texture.
Definition: CGenericTexture.h:162
void setEnabled(bool a_enabled)
This method enables or disables texture mapping.
Definition: CGenericTexture.h:174
virtual void renderFinalize(cRenderOptions &a_options)
This method disables texturing and should be called after triangles have been rendered.
Definition: CGenericTexture.h:165
virtual bool loadFromFile(const std::string &a_fileName)
This method loads a texture image file.
Definition: CGenericTexture.h:156
Implements a structure to store rendering options.
bool m_enabled
If true, this texture is enabled, false otherwise.
Definition: CGenericTexture.h:187
Implements color properties.
cGenericTexture()
Constructor of cGenericTexture.
Definition: CGenericTexture.h:140
Definition: CAudioBuffer.cpp:56
virtual void markForUpdate()
This method marks this texture for GPU update.
Definition: CGenericTexture.h:168
virtual bool saveToFile(const std::string &a_fileName)
This method saves a texture image file.
Definition: CGenericTexture.h:159