99 static cTexture2dPtr
create() {
return (std::make_shared<cTexture2d>()); }
109 cTexture2dPtr
copy();
131 virtual void reset();
153 //------------------------------------------------------------------------------ This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition: CRenderOptions.h:82
std::shared_ptr< cTexture2d > cTexture2dPtr
Definition: CTexture2d.h:68
virtual void reset()
This method resets all internal variables. This function should be called only by constructors...
Definition: CTexture2d.cpp:117
virtual void renderInitialize(cRenderOptions &a_options)
This method enables texturing and sets this texture as the current texture.
Definition: CTexture2d.cpp:166
virtual void renderFinalize(cRenderOptions &a_options)
This method disable texture once triangles have been rendered.
Definition: CTexture2d.cpp:353
cTexture2dPtr copy()
This method creates a copy of itself.
Definition: CTexture2d.cpp:88
This class implements a 1D texture map.
Definition: CTexture1d.h:83
virtual void setWrapModeT(const GLint &a_wrapModeT)
This method set the texture wrap mode of t.
Definition: CTexture2d.cpp:381
cTexture2d()
Constructor of cTexture2d.
Definition: CTexture2d.cpp:60
GLint m_wrapModeT
Texture wrap parameter along t (GL_REPEAT or GL_CLAMP).
Definition: CTexture2d.h:144
static cTexture2dPtr create()
Shared cTexture2d allocator.
Definition: CTexture2d.h:99
virtual ~cTexture2d()
Destructor of cTexture2d.
Definition: CTexture2d.cpp:75
Implements color properties.
virtual void update(cRenderOptions &a_options)
This method updates this texture to GPU.
Definition: CTexture2d.cpp:270
Definition: CAudioBuffer.cpp:56
This class implements a 2D texture map.
Definition: CTexture2d.h:84
Implements a 2D image data structure.
GLint getWrapModeT() const
This method returns the texture wrap mode of t.
Definition: CTexture2d.h:121