Code Intro
From Moviesandbox
(Difference between revisions)
(Replacing page with 'If zou're looking for the old CodeCentral, that page has moved to UT2k4_CodeCentral.') |
(started a conversation with myself...) |
||
Line 1: | Line 1: | ||
- | If | + | If you're looking for the old CodeIntro, that page has moved to [[UT2k4_CodeCentral]]. |
+ | |||
+ | <h2>(important) classes </h2> | ||
+ | * '''Renderer''' - takes care of shadows, FrameBufferObjects, Overlays, textures, etc. Does not do a very good job in sorting, no real scenegraph yet. Holds a vector of all actors and buttons. Calls setup and update functions. Initialises all known objects for later lookup and type inspection | ||
+ | |||
+ | * '''Input''' - takes care of all Input and callback functions, also holds mouse functionality, save-directories, scene save/load. | ||
+ | |||
+ | * '''content''' - a convenient way of creating and initialising everything that's supposed to be created on startup. | ||
+ | |||
+ | * '''actor''' - base class of all objects (including buttons) saves/loads itself (called from Input, or other places'''. Draws itself (called from renderer). | ||
+ | |||
+ | <h2>Random blurbs that need structure</h2> | ||
+ | |||
+ | <h3>Actor to Actor References</h3> | ||
+ | Integer numbers that reference the location of an actor or button in the ''Renderer::actorList'' or ''Renderer::buttonList''.<br> | ||
+ | So far this is used for key-frames and attachments. This way they can be easily serialized to XML when saved. But we need to be careful when we change the actorList! | ||
+ | |||
+ | * when deleting, always call ''checkReferences'' on Actors! | ||
+ | * always be mindful of the function ''checkReferences'' when buttons/actors reference something! |
Revision as of 21:14, 5 June 2008
If you're looking for the old CodeIntro, that page has moved to UT2k4_CodeCentral.
(important) classes
- Renderer - takes care of shadows, FrameBufferObjects, Overlays, textures, etc. Does not do a very good job in sorting, no real scenegraph yet. Holds a vector of all actors and buttons. Calls setup and update functions. Initialises all known objects for later lookup and type inspection
- Input - takes care of all Input and callback functions, also holds mouse functionality, save-directories, scene save/load.
- content - a convenient way of creating and initialising everything that's supposed to be created on startup.
- actor - base class of all objects (including buttons) saves/loads itself (called from Input, or other places. Draws itself (called from renderer).
Random blurbs that need structure
Actor to Actor References
Integer numbers that reference the location of an actor or button in the Renderer::actorList or Renderer::buttonList.
So far this is used for key-frames and attachments. This way they can be easily serialized to XML when saved. But we need to be careful when we change the actorList!
- when deleting, always call checkReferences on Actors!
- always be mindful of the function checkReferences when buttons/actors reference something!