PixelLightAPI
.
|
Abstract renderer rectangle texture buffer resource. More...
#include <TextureBufferRectangle.h>
Public Member Functions | |
virtual PLRENDERER_API | ~TextureBufferRectangle () |
Destructor. | |
const PLMath::Vector2i & | GetSize () 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 | TextureBufferRectangle (Renderer &cRenderer, PLCore::uint32 nFlags) |
Constructor. | |
Protected Attributes | |
PLMath::Vector2i | m_vSize |
Abstract renderer rectangle texture buffer resource.
virtual PLRENDERER_API PLRenderer::TextureBufferRectangle::~TextureBufferRectangle | ( | ) | [virtual] |
Destructor.
PLRENDERER_API PLRenderer::TextureBufferRectangle::TextureBufferRectangle | ( | Renderer & | cRenderer, |
PLCore::uint32 | nFlags | ||
) | [protected] |
Constructor.
[in] | cRenderer | Owner renderer |
[in] | nFlags | Texture buffer flags (see EFlags) |
const PLMath::Vector2i & PLRenderer::TextureBufferRectangle::GetSize | ( | ) | const [inline] |
Returns the texture buffer size.
virtual PLRENDERER_API bool PLRenderer::TextureBufferRectangle::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::TextureBufferRectangle::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::TextureBufferRectangle::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
|