PixelLightAPI
.
|
Abstract renderer cube texture buffer resource. More...
#include <TextureBufferCube.h>
Public Member Functions | |
virtual PLRENDERER_API | ~TextureBufferCube () |
Destructor. | |
PLRENDERER_API PLCore::uint32 | 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 | TextureBufferCube (Renderer &cRenderer, PLCore::uint32 nFlags) |
Constructor. | |
Protected Attributes | |
PLCore::uint32 | m_nSize |
Abstract renderer cube texture buffer resource.
Texture buffer faces: ---------- | Top | | + Y | ----------------------------------- | Left | Front | Right | Back | | + X | - Z | - X | + Z | ----------------------------------- | Bottom | | - Y | ---------- Coordinate system: +y (top) | | -z (front) | / | / -x (right) _______|/_______ +x (left) /| / | / | +z (back) | -y (bottom)
virtual PLRENDERER_API PLRenderer::TextureBufferCube::~TextureBufferCube | ( | ) | [virtual] |
Destructor.
PLRENDERER_API PLRenderer::TextureBufferCube::TextureBufferCube | ( | Renderer & | cRenderer, |
PLCore::uint32 | nFlags | ||
) | [protected] |
Constructor.
[in] | cRenderer | Owner renderer |
[in] | nFlags | Texture buffer flags (see EFlags) |
PLRENDERER_API PLCore::uint32 PLRenderer::TextureBufferCube::GetSize | ( | PLCore::uint32 | nMipmap = 0 | ) | const |
Returns the texture buffer size.
[in] | nMipmap | Mipmap level (0 - GetNumOfMipmaps()) |
virtual PLRENDERER_API bool PLRenderer::TextureBufferCube::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::TextureBufferCube::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::TextureBufferCube::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.
PLCore::uint32 PLRenderer::TextureBufferCube::m_nSize [protected] |
Texture buffer size
|