RenderContext Struct ReferenceInherits Service.
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Public Methods | |
| virtual void | prepare ()=0 |
| virtual void | finish ()=0 |
| virtual void | pushState ()=0 |
| virtual void | popState ()=0 |
| virtual void | setPose (Pose *pose)=0 |
| virtual void | setCamera (Camera *camera)=0 |
| virtual RenderService * | getRenderService ()=0 |
| virtual void | queue (Visual *visual)=0 |
rc = Scene.RenderContext()
function MyApp:onTimeEvent(event)
rc:prepare()
rootEntity:render(rc)
rc:finish()
end
|
|
Complete a rendering pass. |
|
|
Retrieve the RenderService interface. |
|
|
After processing all of it's attributes, each entity will pop the context state before returning. This method will be called automatically by Entity::render() as appropriate. |
|
|
Prepare the context for a new rendering pass. |
|
|
As the entity tree is traversed, each entity will push the context state before processing it's attributes. This method will be called automatically by Entity::render() as appropriate. |
|
|
Queue a visual for rendering under the current context. |
|
|
Specify a viewpoint to use for subsequent rendering. |
|
|
Makes the specified pose "active". The world matrix of the Pose is sent to the renderer and will be applied to all subsequently queued visuals. The context will store a reference to the world matrix and make sure it gets applied to the appropriate parts of the entity tree. |
|
Flat Four Engine Copyright (C) 2001 by 379, Inc. |
This page generated by Doxygen |