PixelLightAPI
.
|
Abstract renderer 2D array texture buffer resource (kind of 3D texture, but without filtering between the depth layers) More...
#include <TextureBuffer2DArray.h>
Public Member Functions | |
virtual PLRENDERER_API | ~TextureBuffer2DArray () |
Destructor. | |
PLRENDERER_API PLMath::Vector3i | GetSize (PLCore::uint32 nMipmap=0) const |
Returns the texture buffer size. | |
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 | TextureBuffer2DArray (Renderer &cRenderer, PLCore::uint32 nFlags) |
Constructor. | |
Protected Attributes | |
PLMath::Vector3i | m_vSize |
Abstract renderer 2D array texture buffer resource (kind of 3D texture, but without filtering between the depth layers)
virtual PLRENDERER_API PLRenderer::TextureBuffer2DArray::~TextureBuffer2DArray | ( | ) | [virtual] |
Destructor.
PLRENDERER_API PLRenderer::TextureBuffer2DArray::TextureBuffer2DArray | ( | Renderer & | cRenderer, |
PLCore::uint32 | nFlags | ||
) | [protected] |
Constructor.
[in] | cRenderer | Owner renderer |
[in] | nFlags | Texture buffer flags (see EFlags) |
PLRENDERER_API PLMath::Vector3i PLRenderer::TextureBuffer2DArray::GetSize | ( | PLCore::uint32 | nMipmap = 0 | ) | const |
Returns the texture buffer size.
[in] | nMipmap | Mipmap level (0 - GetNumOfMipmaps()) |
virtual PLRENDERER_API PLCore::uint32 PLRenderer::TextureBuffer2DArray::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::TextureBuffer2DArray::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.
Texture buffer size
|