Sleeping Wombat GUI  0.100
swGUI
Public Member Functions | Private Member Functions | Private Attributes | List of all members
sw::MockRenderer Class Reference

Mock renderer for debugging and testing. More...

#include <MockRenderer.h>

Inheritance diagram for sw::MockRenderer:
IRenderer

Public Member Functions

 MockRenderer (RendererUsage usage=USE_AS_IMMEDIATE)
 
 ~MockRenderer ()
 
bool SupportsDefferedContextRendering () override
 Informuje czy Renderer nadaje się do renderowania w wielu wątkach do opóźnionego contextu. More...
 
bool IsValid () override
 
virtual void Draw (const DrawCommand &command) override
 
virtual void DrawInstanced (const DrawInstancedCommand &command) override
 
virtual void SetRenderTarget (const SetRenderTargetCommand &command) override
 
virtual void SetRenderTarget (const SetRenderTargetExCommand &command) override
 
virtual void ClearRenderTarget (const ClearRenderTargetCommand &command) override
 
virtual void UpdateBuffer (const UpdateBufferCommand &command) override
 
virtual void BindBuffer (const BindBufferCommand &command) override
 
virtual void UpdateAndBindBuffer (const UpdateBindBuffer &command) override
 
virtual void SetDefaultBuffers (const SetDefaultBuffersCommand &command) override
 
virtual void SetShaderState (const SetShaderStateCommand &command) override
 
virtual void SetShaderState (const SetShaderStateExCommand &command) override
 
virtual void SetShaderState (const SetRenderStateCommand &command) override
 
virtual void SetShaderState (const SetRenderStateExCommand &command) override
 
virtual void CopyTexture (const CopyTextureCommand &command) override
 
- Public Member Functions inherited from IRenderer
 IRenderer ()=default
 
virtual ~IRenderer ()=default
 

Private Member Functions

bool SetVertexBuffer (BufferObject *buffer, unsigned int offset)
 
void SetIndexBuffer (BufferObject *buffer, unsigned int offset, bool extendedIndex)
 
void SetRenderTarget (RenderTargetObject *const targets[MAX_BOUND_RENDER_TARGETS], RenderTargetObject *depthStencil)
 
void SetTextures (TextureObject *const texturesArray[MAX_BOUND_RENDER_TARGETS], const uint8 shaderTypes[MAX_BOUND_RENDER_TARGETS])
 

Private Attributes

bool m_valid
 Jeżeli klasa nie została zainicjowana poprawnie, to będzie tu wartość false. More...
 
RendererUsage m_usageType
 Informacja jak będzie używany rederer. More...
 

Detailed Description

Mock renderer for debugging and testing.

Constructor & Destructor Documentation

sw::MockRenderer::MockRenderer ( RendererUsage  usage = USE_AS_IMMEDIATE)
sw::MockRenderer::~MockRenderer ( )

Member Function Documentation

void sw::MockRenderer::BindBuffer ( const BindBufferCommand command)
overridevirtual

Implements IRenderer.

void sw::MockRenderer::ClearRenderTarget ( const ClearRenderTargetCommand command)
overridevirtual

Implements IRenderer.

void sw::MockRenderer::CopyTexture ( const CopyTextureCommand command)
overridevirtual

Implements IRenderer.

void sw::MockRenderer::Draw ( const DrawCommand command)
overridevirtual

Implements IRenderer.

void sw::MockRenderer::DrawInstanced ( const DrawInstancedCommand command)
overridevirtual

Implements IRenderer.

bool sw::MockRenderer::IsValid ( )
inlineoverridevirtual

Implements IRenderer.

void sw::MockRenderer::SetDefaultBuffers ( const SetDefaultBuffersCommand command)
overridevirtual

Implements IRenderer.

void sw::MockRenderer::SetIndexBuffer ( BufferObject buffer,
unsigned int  offset,
bool  extendedIndex 
)
private
void sw::MockRenderer::SetRenderTarget ( const SetRenderTargetCommand command)
overridevirtual

Implements IRenderer.

void sw::MockRenderer::SetRenderTarget ( const SetRenderTargetExCommand command)
overridevirtual

Implements IRenderer.

void sw::MockRenderer::SetRenderTarget ( RenderTargetObject *const  targets[MAX_BOUND_RENDER_TARGETS],
RenderTargetObject depthStencil 
)
private
void sw::MockRenderer::SetShaderState ( const SetShaderStateCommand command)
overridevirtual

Implements IRenderer.

void sw::MockRenderer::SetShaderState ( const SetShaderStateExCommand command)
overridevirtual

Implements IRenderer.

void sw::MockRenderer::SetShaderState ( const SetRenderStateCommand command)
overridevirtual

Implements IRenderer.

void sw::MockRenderer::SetShaderState ( const SetRenderStateExCommand command)
overridevirtual

Implements IRenderer.

void sw::MockRenderer::SetTextures ( TextureObject *const  texturesArray[MAX_BOUND_RENDER_TARGETS],
const uint8  shaderTypes[MAX_BOUND_RENDER_TARGETS] 
)
private
bool sw::MockRenderer::SetVertexBuffer ( BufferObject buffer,
unsigned int  offset 
)
private
bool sw::MockRenderer::SupportsDefferedContextRendering ( )
inlineoverridevirtual

Informuje czy Renderer nadaje się do renderowania w wielu wątkach do opóźnionego contextu.

Implements IRenderer.

void sw::MockRenderer::UpdateAndBindBuffer ( const UpdateBindBuffer command)
overridevirtual

Implements IRenderer.

void sw::MockRenderer::UpdateBuffer ( const UpdateBufferCommand command)
overridevirtual

Implements IRenderer.

Member Data Documentation

RendererUsage sw::MockRenderer::m_usageType
private

Informacja jak będzie używany rederer.

bool sw::MockRenderer::m_valid
private

Jeżeli klasa nie została zainicjowana poprawnie, to będzie tu wartość false.


The documentation for this class was generated from the following files: