97 static cTexture3dPtr
create() {
return (std::make_shared<cTexture3d>()); }
107 cTexture3dPtr
copy();
132 virtual void reset();
This class implements a 3D vector.
Definition: CVector3d.h:88
void markForPartialUpdate(const cVector3d a_voxelUpdateMin, const cVector3d a_voxelUpdateMax)
This method marks this texture for partial GPU update from RAM.
Definition: CTexture3d.cpp:320
This structures provide a containers for storing rendering options that are passed through the sceneg...
Definition: CRenderOptions.h:82
bool m_markPartialUpdate
If true the partial update is performed.
Definition: CTexture3d.h:145
cVector3d m_voxelUpdateMin
Minimum voxel coordinate to be updated.
Definition: CTexture3d.h:148
GLint m_wrapModeR
Texture wrap parameter along r (GL_REPEAT or GL_CLAMP).
Definition: CTexture3d.h:154
GLint getWrapModeR() const
This method returns the texture wrap mode of r.
Definition: CTexture3d.h:119
virtual void setWrapModeR(const GLint &a_wrapModeR)
This method set the texture wrap mode of r.
Definition: CTexture3d.cpp:132
This class implements a 3D texture map.
Definition: CTexture3d.h:82
static cTexture3dPtr create()
Shared cTexture3d allocator.
Definition: CTexture3d.h:97
cTexture3dPtr copy()
This method creates a copy of itself.
Definition: CTexture3d.cpp:92
virtual void renderInitialize(cRenderOptions &a_options)
This method enables texturing and sets this texture as the current texture.
Definition: CTexture3d.cpp:192
virtual void update(cRenderOptions &a_options)
This method updates this texture to GPU.
Definition: CTexture3d.cpp:345
virtual void renderFinalize(cRenderOptions &a_options)
This method disables texture once triangles have been rendered.
Definition: CTexture3d.cpp:298
virtual void reset()
This method resets internal variables. This function should be called only by constructors.
Definition: CTexture3d.cpp:144
virtual ~cTexture3d()
Destructor of cTexture3d.
Definition: CTexture3d.cpp:79
Definition: CAudioBuffer.cpp:56
cVector3d m_voxelUpdateMax
Maximum voxel coordinate to be updated.
Definition: CTexture3d.h:151
This class implements a 2D texture map.
Definition: CTexture2d.h:84
Implements an array of 2D image structures.
cTexture3d()
Constructor of cTexture3d.
Definition: CTexture3d.cpp:59
std::shared_ptr< cTexture3d > cTexture3dPtr
Definition: CTexture3d.h:66