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