|
Inherits EventListener.
Inherited by RenderImpl.
List of all members.
Public Methods |
| virtual void | start ()=0 |
| virtual void | finish ()=0 |
| virtual void | setProjectionMatrix (const Matrix44 &m)=0 |
| virtual void | setProjection2D (Float left, Float top, Float right, Float bottom)=0 |
| virtual void | setProjection3D (Float fov, Float aspect, Float nearClip, Float farClip)=0 |
| virtual void | setViewMatrix (const Matrix44 &m)=0 |
| virtual void | setWorldMatrix (const Matrix44 &m)=0 |
| virtual const Matrix44 & | getViewMatrix () const=0 |
| virtual const Matrix44 & | getWorldMatrix () const=0 |
| virtual void | queue (Visual *v)=0 |
| virtual void | setBackgroundColor (Float r, Float g, Float b)=0 |
| virtual Texture * | grabScreen (int left, int top, int right, int bottom) const=0 |
Detailed Description
The "render" services provides 2D/3D drawing capabilities.
Member Function Documentation
| virtual void RenderService::finish |
( |
|
) |
[pure virtual] |
|
|
|
Complete rendering of a frame of animation. Flushes all queued queued visuals. |
| virtual const Matrix44& RenderService::getViewMatrix |
( |
|
) |
const [pure virtual] |
|
|
|
Gets the active view matrix. |
| virtual const Matrix44& RenderService::getWorldMatrix |
( |
|
) |
const [pure virtual] |
|
|
|
Gets the active world matrix. |
| virtual Texture* RenderService::grabScreen |
( |
int |
left, |
|
|
int |
top, |
|
|
int |
right, |
|
|
int |
bottom |
|
) |
const [pure virtual] |
|
|
|
Create a new texture from the current screen contents. |
| virtual void RenderService::queue |
( |
Visual * |
v |
) |
[pure virtual] |
|
|
|
Adds a Visual to the rendering queue. The visual will be rendered using the current matrix (see pushMatrix). |
| virtual void RenderService::setBackgroundColor |
( |
Float |
r, |
|
|
Float |
g, |
|
|
Float |
b |
|
) |
[pure virtual] |
|
|
|
Specify the background clear color. |
| virtual void RenderService::setProjection2D |
( |
Float |
left, |
|
|
Float |
top, |
|
|
Float |
right, |
|
|
Float |
bottom |
|
) |
[pure virtual] |
|
|
|
Sets up a 2D orthographic projection matrix. Changing the projection matrix flushes the visuals queue. |
| virtual void RenderService::setProjection3D |
( |
Float |
fov, |
|
|
Float |
aspect, |
|
|
Float |
nearClip, |
|
|
Float |
farClip |
|
) |
[pure virtual] |
|
|
|
Sets up a 3D perspective projection matrix. Changing the projection matrix flushes the visuals queue. |
| virtual void RenderService::setProjectionMatrix |
( |
const Matrix44 & |
m |
) |
[pure virtual] |
|
|
|
Specify a new projection matrix. Changing the projection matrix flushes the visuals queue. |
| virtual void RenderService::setViewMatrix |
( |
const Matrix44 & |
m |
) |
[pure virtual] |
|
|
|
Sets the "camera" matrix, which describes the scene's viewpoint. Generally, you would set the view matrix immediately after calling start(), and before queueing any visuals. You may change the view matrix if you wish to display two different views of a scene, this will cause all queued visuals to be flushed. |
| virtual void RenderService::setWorldMatrix |
( |
const Matrix44 & |
m |
) |
[pure virtual] |
|
|
|
Sets the world space transform for subsequently queued visuals.
This matrix is not copied, rather a pointer is kept and attached to all visuals that are queued. It is the caller's responsibility to make sure that the matrix remains valid until all queued visuals have been flushed. |
| virtual void RenderService::start |
( |
|
) |
[pure virtual] |
|
|
|
Prepare the renderer for a new frame of animation. |
The documentation for this struct was generated from the following file:
Flat Four Engine
Copyright (C) 2001 by 379, Inc.
|
This page generated by Doxygen
|
|