Linderdaum Engine: clDX11RenderContext Class Reference
Updated: Sun Feb 5 2012 22:59:50
clDX11RenderContext Class Reference

DirectX 11 rendering context. More...

#include <DX11RenderContext.h>

List of all members.

Public Member Functions

 clDX11RenderContext ()
virtual ~clDX11RenderContext ()
virtual bool InitContext (clViewport *Viewport, int BitsPerPixel, int zBufferBits, int StencilBits, int Multisample, bool TakeoverContext)
virtual void CheckError (const std::string &File, const std::string &Line, const std::string &Info) const
 Terminates application if error occured.
virtual Luint GetPixel (const LVector2 &Pnt) const
 Read single pixel from the framebuffer. Internal function for objects picking, do not use heavily.
virtual void SetViewport (int X, int Y, int Width, int Height)
 Resize viewport using specified parameters.
virtual void SetViewportV (const LVector4 &ViewportSize)
 Resize viewport using parameters in Vec4.
virtual void RestoreViewport ()
 Set default values taken from Env.Viewport.
virtual void SetClearColor4v (const LVector4 &Color) const
 Set "background" color.
virtual int GetScreenshotSize () const
 Determine screenshot size in bytes.
virtual void GetScreenshot (void *Ptr) const
 Internal screenshot to raw image.
virtual sVideoSystemInfo GetVideoSystemInfo () const
 Returns information about current renderer vendor, type and version, shading language version.
virtual Lint64 GetTotalVideoMemory () const
 Return total GPU memory.
virtual Lint64 GetFreeVideoMemory () const
 Return currently free GPU memory.
virtual void ClearRenderTarget (bool Color, bool Depth, bool Stencil)
 Clears specified render buffers of currently binded render target.
virtual void SetPolygonFillMode (bool Fill)
 Toggles solid (fill) and wireframe rendering.
virtual void Finish ()
 Wait until all previous rendering operations are finished.
virtual void SetState (clRenderState *State)
 Make the state current.
virtual void UpdateState (clRenderState *State)

Detailed Description

DirectX 11 rendering context.


Constructor & Destructor Documentation

clDX11RenderContext::clDX11RenderContext ( )
clDX11RenderContext::~clDX11RenderContext ( ) [virtual]

Member Function Documentation

void clDX11RenderContext::CheckError ( const std::string &  File,
const std::string &  Line,
const std::string &  Info 
) const [virtual]

Terminates application if error occured.

Implements iRenderContext.

void clDX11RenderContext::ClearRenderTarget ( bool  Color,
bool  Depth,
bool  Stencil 
) [virtual]

Clears specified render buffers of currently binded render target.

Implements iRenderContext.

virtual void clDX11RenderContext::Finish ( ) [inline, virtual]

Wait until all previous rendering operations are finished.

Implements iRenderContext.

Lint64 clDX11RenderContext::GetFreeVideoMemory ( ) const [virtual]

Return currently free GPU memory.

Implements iRenderContext.

Luint clDX11RenderContext::GetPixel ( const LVector2 Pnt) const [virtual]

Read single pixel from the framebuffer. Internal function for objects picking, do not use heavily.

Implements iRenderContext.

void clDX11RenderContext::GetScreenshot ( void *  Ptr) const [virtual]

Internal screenshot to raw image.

Implements iRenderContext.

int clDX11RenderContext::GetScreenshotSize ( ) const [virtual]

Determine screenshot size in bytes.

Implements iRenderContext.

Lint64 clDX11RenderContext::GetTotalVideoMemory ( ) const [virtual]

Return total GPU memory.

Implements iRenderContext.

sVideoSystemInfo clDX11RenderContext::GetVideoSystemInfo ( ) const [virtual]

Returns information about current renderer vendor, type and version, shading language version.

Implements iRenderContext.

bool clDX11RenderContext::InitContext ( clViewport Viewport,
int  BitsPerPixel,
int  zBufferBits,
int  StencilBits,
int  Multisample,
bool  TakeoverContext 
) [virtual]

Creates a rendering context with specified params and ataches it to the viewport. Assumed that fullscreennes had been set prior to this call.

Reimplemented from iRenderContext.

void clDX11RenderContext::RestoreViewport ( ) [virtual]

Set default values taken from Env.Viewport.

Implements iRenderContext.

void clDX11RenderContext::SetClearColor4v ( const LVector4 Color) const [virtual]

Set "background" color.

Implements iRenderContext.

void clDX11RenderContext::SetPolygonFillMode ( bool  Fill) [virtual]

Toggles solid (fill) and wireframe rendering.

Implements iRenderContext.

virtual void clDX11RenderContext::SetState ( clRenderState State) [inline, virtual]

Make the state current.

Implements iRenderContext.

void clDX11RenderContext::SetViewport ( int  X,
int  Y,
int  Width,
int  Height 
) [virtual]

Resize viewport using specified parameters.

Implements iRenderContext.

void clDX11RenderContext::SetViewportV ( const LVector4 ViewportSize) [virtual]

Resize viewport using parameters in Vec4.

Implements iRenderContext.

virtual void clDX11RenderContext::UpdateState ( clRenderState State) [inline, virtual]

Make the state current at the specified RenderContext. Only state differences with CurrentState are passed to graphical API

Implements iRenderContext.


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