Order of Execution

From Moviesandbox

Revision as of 20:09, 7 September 2010 by Fiezi (Talk | contribs)
(diff) ←Older revision | Current revision (diff) | Newer revision→ (diff)
Jump to: navigation, search

This are the functions that are getting called in the beginning of Moviesandbox.

Program Start

  • construct an intermediate window and check for OpenGL versions and Extensions.
  • destroy intermediate Window
  • create either an X1600Renderer Object (for OpenGL 2.0) or a regular Renderer Object(for OpenGL 2.1)
  • construct an Input Object
  • call Renderer -> loadPreferences()
    • opens config.xml file
    • loads rendering preferences from xml file (such as window size, multisampling, etc...
    • fills library vector with all libraries found in xml file
    • sets up my.library if not already existing
  • call Renderer -> initWindow()
    • creates Moviesandbox OpenGL context and window
  • call Renderer -> setup()
    • setup ODE Physics
    • build Object Tables for RTTI and Serialization
    • create Base Layer FBO
    • add Brush
    • add Grid
    • calls Input->setup
      • creates new InspectorManager
      • creates new Controller
      • calls Controller->setup()
      • clears FPS Buffer
    • creates new Content Class (which is used for interface setup)
    • calls Content->setup
    • calls Input->getAllPrefabs
    • cycles through and libraries
    • calls Input->loadMeshes with current library
    • calls Input->loadTextures with current library
    • calls Input->loadShaders with current library
    • calls Input->loadActionList with current library
    • calls Input->loadAll with startSceneFileName from config.xml (loads scene contents)
    • checks for multisdample capabilities
    • generates picking Texture
    • creates Main Rendering FBO (multisampleBuffer)
    • creates Lighting FBO (lighting)
    • creates Shadow FBO (shadow)
  • start Loop
Personal tools
Moviesandbox for UT2004