Main Page   Namespace List   Class Hierarchy   Compound List   File List   Compound Members   File Members  

RAS_ICanvas Class Reference

2D rendering device context. More...

#include <RAS_ICanvas.h>

Inheritance diagram for RAS_ICanvas:

GlutCanvas KX_BlenderCanvas KX_GlutCanvas SDLCanvas List of all members.

Public Types

enum  BufferType { COLOR_BUFFER = 1, DEPTH_BUFFER = 2 }

Public Methods

 RAS_ICanvas ()
virtual ~RAS_ICanvas ()
virtual void Init () = 0
virtual void Resize (int width,int height) = 0
virtual void BeginFrame () = 0
virtual void EndFrame () = 0
virtual void SwapBuffers () = 0
virtual void ClearBuffer (int type) = 0
virtual void ClearColor (float r,float g,float b,float a) = 0
virtual int GetWidth () = 0
virtual int GetHeight () = 0

Detailed Description

2D rendering device context.

The connection from 3d rendercontext to 2d surface.

Definition at line 8 of file RAS_ICanvas.h.


Member Enumeration Documentation

enum RAS_ICanvas::BufferType
 

Enumeration values:
COLOR_BUFFER  
DEPTH_BUFFER  

Definition at line 11 of file RAS_ICanvas.h.


Constructor & Destructor Documentation

RAS_ICanvas::RAS_ICanvas ( ) [inline]
 

Definition at line 15 of file RAS_ICanvas.h.

RAS_ICanvas::~RAS_ICanvas ( ) [inline, virtual]
 

Definition at line 16 of file RAS_ICanvas.h.


Member Function Documentation

virtual void RAS_ICanvas::BeginFrame ( ) [pure virtual]
 

Reimplemented in KX_BlenderCanvas, GlutCanvas, SDLCanvas, and KX_GlutCanvas.

virtual void RAS_ICanvas::ClearBuffer ( int type ) [pure virtual]
 

Reimplemented in KX_BlenderCanvas, GlutCanvas, SDLCanvas, and KX_GlutCanvas.

virtual void RAS_ICanvas::ClearColor ( float r,
float g,
float b,
float a ) [pure virtual]
 

Reimplemented in KX_BlenderCanvas, GlutCanvas, SDLCanvas, and KX_GlutCanvas.

virtual void RAS_ICanvas::EndFrame ( ) [pure virtual]
 

Reimplemented in KX_BlenderCanvas, GlutCanvas, SDLCanvas, and KX_GlutCanvas.

virtual int RAS_ICanvas::GetHeight ( ) [pure virtual]
 

Reimplemented in KX_BlenderCanvas, GlutCanvas, and SDLCanvas.

virtual int RAS_ICanvas::GetWidth ( ) [pure virtual]
 

Reimplemented in KX_BlenderCanvas, GlutCanvas, and SDLCanvas.

virtual void RAS_ICanvas::Init ( ) [pure virtual]
 

Reimplemented in KX_BlenderCanvas, GlutCanvas, SDLCanvas, and KX_GlutCanvas.

virtual void RAS_ICanvas::Resize ( int width,
int height ) [pure virtual]
 

Reimplemented in KX_BlenderCanvas, GlutCanvas, SDLCanvas, and KX_GlutCanvas.

virtual void RAS_ICanvas::SwapBuffers ( ) [pure virtual]
 

Reimplemented in KX_BlenderCanvas, GlutCanvas, SDLCanvas, and KX_GlutCanvas.


The documentation for this class was generated from the following file:
Generated at Thu Feb 1 13:03:49 2001 for Ketsji Game Engine by doxygen1.2.3 written by Dimitri van Heesch, © 1997-2000