PixelLightAPI
.
|
A texture buffer renderer surface where we can render in (RTT -> Render To Texture) More...
#include <SurfaceTextureBuffer.h>
Public Types | |
enum | EFlags { Depth = 1<<0, Stencil = 1<<1, Mipmaps = 1<<2, NoMultisampleAntialiasing = 1<<3 } |
Texture buffer surface flags. More... | |
Public Member Functions | |
virtual PLRENDERER_API | ~SurfaceTextureBuffer () |
Destructor. | |
TextureBuffer::EPixelFormat | GetFormat () const |
Returns the texture buffer format. | |
PLCore::uint32 | GetFlags () const |
Returns the texture buffer surface flags. | |
PLCore::uint8 | GetMaxColorTargets () const |
Returns the maximum number of color render targets. | |
void | SetMaxColorTargets (PLCore::uint8 nMaxColorTargets) |
Sets the maximum number of color render targets. | |
virtual PLRenderer::TextureBuffer * | GetTextureBuffer () const =0 |
Returns the renderer texture buffer this surface will render in. | |
virtual PLCore::uint8 | GetTextureBufferFace () const =0 |
Returns the current renderer texture buffer face this surface will render in. | |
virtual void | TakeDepthBufferFromSurfaceTextureBuffer (SurfaceTextureBuffer &cSurfaceTextureBuffer)=0 |
Takes over the control of the depth buffer of the given surface texture buffer. | |
Protected Member Functions | |
PLRENDERER_API | SurfaceTextureBuffer (Renderer &cRenderer, PLCore::uint32 nFlags=Depth|Stencil, PLCore::uint8 nMaxColorTargets=1) |
Constructor. | |
Protected Attributes | |
PLCore::uint32 | m_nFlags |
PLCore::uint8 | m_nMaxColorTargets |
A texture buffer renderer surface where we can render in (RTT -> Render To Texture)
Texture buffer surface flags.
virtual PLRENDERER_API PLRenderer::SurfaceTextureBuffer::~SurfaceTextureBuffer | ( | ) | [virtual] |
Destructor.
PLRENDERER_API PLRenderer::SurfaceTextureBuffer::SurfaceTextureBuffer | ( | Renderer & | cRenderer, |
PLCore::uint32 | nFlags = Depth|Stencil , |
||
PLCore::uint8 | nMaxColorTargets = 1 |
||
) | [protected] |
Constructor.
[in] | cRenderer | Owner renderer |
[in] | nFlags | Texture buffer surface flags (see EFlags) |
[in] | nMaxColorTargets | Maximum number of color render targets. This must be at least 1 - main renderer target color. |
TextureBuffer::EPixelFormat PLRenderer::SurfaceTextureBuffer::GetFormat | ( | ) | const [inline] |
Returns the texture buffer format.
PLCore::uint32 PLRenderer::SurfaceTextureBuffer::GetFlags | ( | ) | const [inline] |
Returns the texture buffer surface flags.
PLCore::uint8 PLRenderer::SurfaceTextureBuffer::GetMaxColorTargets | ( | ) | const [inline] |
Returns the maximum number of color render targets.
void PLRenderer::SurfaceTextureBuffer::SetMaxColorTargets | ( | PLCore::uint8 | nMaxColorTargets | ) | [inline] |
Sets the maximum number of color render targets.
[in] | nMaxColorTargets | The maximum number of color render targets |
virtual PLRenderer::TextureBuffer* PLRenderer::SurfaceTextureBuffer::GetTextureBuffer | ( | ) | const [pure virtual] |
Returns the renderer texture buffer this surface will render in.
virtual PLCore::uint8 PLRenderer::SurfaceTextureBuffer::GetTextureBufferFace | ( | ) | const [pure virtual] |
Returns the current renderer texture buffer face this surface will render in.
virtual void PLRenderer::SurfaceTextureBuffer::TakeDepthBufferFromSurfaceTextureBuffer | ( | SurfaceTextureBuffer & | cSurfaceTextureBuffer | ) | [pure virtual] |
Takes over the control of the depth buffer of the given surface texture buffer.
[in] | cSurfaceTextureBuffer | Surface texture buffer we take the depth buffer away |
PLCore::uint32 PLRenderer::SurfaceTextureBuffer::m_nFlags [protected] |
Texture buffer surface flags (see EFlags)
PLCore::uint8 PLRenderer::SurfaceTextureBuffer::m_nMaxColorTargets [protected] |
Maximum number of color render targets
|