PixelLightAPI
.
|
Abstract renderer 3D texture buffer (also called 'volume texture') resource. More...
#include <TextureBuffer3D.h>
Public Member Functions | |
virtual PLRENDERER_API | ~TextureBuffer3D () |
Destructor. | |
PLRENDERER_API PLMath::Vector3i | GetSize (PLCore::uint32 nMipmap=0) const |
Returns the texture buffer size. | |
virtual PLRENDERER_API bool | IsPowerOfTwo () const override |
Returns whether or not the texture has a power of two dimension (POT) | |
virtual PLRENDERER_API PLCore::uint32 | GetNumOfPixels (PLCore::uint32 nMipmap=0) const override |
Returns the number of pixels of a certain mipmap level. | |
virtual PLRENDERER_API PLCore::uint32 | GetNumOfBytes (PLCore::uint32 nMipmap=0, EPixelFormat nFormat=Unknown) const override |
Returns the number of bytes required to hold certain mipmap level texture buffer data. | |
Protected Member Functions | |
PLRENDERER_API | TextureBuffer3D (Renderer &cRenderer, PLCore::uint32 nFlags) |
Constructor. | |
Protected Attributes | |
PLMath::Vector3i | m_vSize |
Abstract renderer 3D texture buffer (also called 'volume texture') resource.
virtual PLRENDERER_API PLRenderer::TextureBuffer3D::~TextureBuffer3D | ( | ) | [virtual] |
Destructor.
PLRENDERER_API PLRenderer::TextureBuffer3D::TextureBuffer3D | ( | Renderer & | cRenderer, |
PLCore::uint32 | nFlags | ||
) | [protected] |
Constructor.
[in] | cRenderer | Owner renderer |
[in] | nFlags | Texture buffer flags (see EFlags) |
PLRENDERER_API PLMath::Vector3i PLRenderer::TextureBuffer3D::GetSize | ( | PLCore::uint32 | nMipmap = 0 | ) | const |
Returns the texture buffer size.
[in] | nMipmap | Mipmap level (0 - GetNumOfMipmaps()) |
virtual PLRENDERER_API bool PLRenderer::TextureBuffer3D::IsPowerOfTwo | ( | ) | const [override, virtual] |
Returns whether or not the texture has a power of two dimension (POT)
Implements PLRenderer::TextureBuffer.
virtual PLRENDERER_API PLCore::uint32 PLRenderer::TextureBuffer3D::GetNumOfPixels | ( | PLCore::uint32 | nMipmap = 0 | ) | const [override, virtual] |
Returns the number of pixels of a certain mipmap level.
[in] | nMipmap | Mipmap level (0 - GetNumOfMipmaps()) |
Implements PLRenderer::TextureBuffer.
virtual PLRENDERER_API PLCore::uint32 PLRenderer::TextureBuffer3D::GetNumOfBytes | ( | PLCore::uint32 | nMipmap = 0 , |
EPixelFormat | nFormat = Unknown |
||
) | const [override, virtual] |
Returns the number of bytes required to hold certain mipmap level texture buffer data.
[in] | nMipmap | Mipmap level (0 - GetNumOfMipmaps()) |
[in] | nFormat | Target texture buffer pixel format, if Unknown, the format of THIS texture buffer is chosen automatically |
Implements PLRenderer::TextureBuffer.
PLMath::Vector3i PLRenderer::TextureBuffer3D::m_vSize [protected] |
Texture buffer size
|