#include <openglserver.h>
Inheritance diagram for kerosin::OpenGLServer:


Public Member Functions | |
| OpenGLServer () | |
| ~OpenGLServer () | |
| boost::shared_ptr< GLExtensionReg > | GetExtensionReg () const |
| void | Quit () |
| if this is called, the application will 'want to quit' | |
| bool | WantsToQuit () const |
| true if somebody called 'Quit' | |
| void | Update () |
| pump SDL event loop | |
| void | SwapBuffers () const |
| swap opengl buffer | |
| unsigned int | LoadARBProgram (GLenum target, const char *fileName) |
| vertex and fragment program loading | |
| unsigned int | LoadARBVertexProgram (const char *fileName) |
| vertex and fragment program loading | |
| unsigned int | LoadARBFragmentProgram (const char *fileName) |
| vertex and fragment program loading | |
| bool | SupportsFancyLighting () const |
| void | ToggleFancyLighting () |
| int | AllocLight () |
| returns the next availble GL light constant or -1 if no more lights are available | |
| void | PutLight (int l) |
| marks the GL light constant as available | |
Protected Types | |
| typedef std::set< int > | TLightSet |
| set of OpenGL light constants | |
Protected Member Functions | |
| virtual bool | ConstructInternal () |
| set up opengl viewport | |
Protected Attributes | |
| boost::shared_ptr< GLExtensionReg > | mExtensionReg |
| this contains information on all available extensions | |
| bool | mWantsToQuit |
| a flag, which can be used to control the shutdown of the display window and the application | |
| boost::shared_ptr< MapHolder > | mHolder |
| cache of loaded vertex and fragment programs (assumes that path names to the programs are unique) | |
| bool | mSupportsFancyLighting |
| flag whether the OpenGL-driver can do fancy lighting or not | |
| TLightSet | mAvailableLights |
| the set of available OpenGL light constants | |
Definition at line 42 of file openglserver.h.
|
|
set of OpenGL light constants
Definition at line 56 of file openglserver.h. |
|
|
Definition at line 50 of file openglserver.cpp. |
|
|
Definition at line 55 of file openglserver.cpp. |
|
|
returns the next availble GL light constant or -1 if no more lights are available
Definition at line 316 of file openglserver.cpp. References mAvailableLights. |
|
|
set up opengl viewport Set up the OpenGL viewport, initialize extension registry Reimplemented from zeitgeist::Object. Definition at line 178 of file openglserver.cpp. References zeitgeist::Object::GetLog(), zeitgeist::Object::GetScript(), mAvailableLights, mExtensionReg, and mSupportsFancyLighting. Here is the call graph for this function: ![]() |
|
|
Definition at line 60 of file openglserver.cpp. References mExtensionReg. |
|
|
vertex and fragment program loading
Definition at line 163 of file openglserver.cpp. |
|
||||||||||||
|
vertex and fragment program loading
Definition at line 91 of file openglserver.cpp. References zeitgeist::Object::GetCore(), mExtensionReg, mHolder, salt::RFile::Read(), and salt::RFile::Size(). Referenced by LoadARBVertexProgram(). Here is the call graph for this function: ![]() |
|
|
vertex and fragment program loading
Definition at line 152 of file openglserver.cpp. References LoadARBProgram(), and mExtensionReg. Here is the call graph for this function: ![]() |
|
|
marks the GL light constant as available
Definition at line 331 of file openglserver.cpp. References mAvailableLights. |
|
|
if this is called, the application will 'want to quit'
Definition at line 65 of file openglserver.cpp. References mWantsToQuit. |
|
|
Definition at line 87 of file openglserver.h. |
|
|
swap opengl buffer
Definition at line 86 of file openglserver.cpp. |
|
|
Definition at line 307 of file openglserver.cpp. References mSupportsFancyLighting. |
|
|
pump SDL event loop
Definition at line 75 of file openglserver.cpp. |
|
|
true if somebody called 'Quit'
Definition at line 70 of file openglserver.cpp. References mWantsToQuit. |
|
|
the set of available OpenGL light constants
Definition at line 119 of file openglserver.h. Referenced by AllocLight(), ConstructInternal(), and PutLight(). |
|
|
this contains information on all available extensions
Definition at line 107 of file openglserver.h. Referenced by ConstructInternal(), GetExtensionReg(), LoadARBProgram(), and LoadARBVertexProgram(). |
|
|
cache of loaded vertex and fragment programs (assumes that path names to the programs are unique)
Definition at line 113 of file openglserver.h. Referenced by LoadARBProgram(). |
|
|
flag whether the OpenGL-driver can do fancy lighting or not
Definition at line 116 of file openglserver.h. Referenced by ConstructInternal(), and ToggleFancyLighting(). |
|
|
a flag, which can be used to control the shutdown of the display window and the application
Definition at line 110 of file openglserver.h. Referenced by Quit(), and WantsToQuit(). |
1.4.4