Public Methods | |
GLXConfigurator () | |
~GLXConfigurator () | |
bool | CreateWindow () |
void | Main () |
void | Exit () |
Exit from main loop. | |
void | SetRenderSystem (RenderSystem *sys) |
Public Attributes | |
bool | accept |
std::list< RendererCallbackData > | mRendererCallbackData |
RenderSystem * | mRenderer |
Widget | box |
std::list< Widget > | mRenderOptionWidgets |
std::list< ConfigCallbackData > | mConfigCallbackData |
Protected Methods | |
virtual Pixmap | CreateBackdrop (Window rootWindow, int depth) |
Create backdrop image, and return it as a Pixmap. | |
virtual bool | Init () |
Called after window initialisation. | |
virtual void | Draw () |
Called initially, and on expose. | |
Protected Attributes | |
Display * | mDisplay |
Window | mWindow |
Pixmap | mBackDrop |
int | mWidth |
int | mHeight |
XtAppContext | appContext |
Widget | toplevel |
Private Methods | |
void | SetRenderer (RenderSystem *) |
void | SetConfigOption (const std::string &optionName, const std::string &valueName) |
Static Private Methods | |
void | acceptHandler (Widget w, GLXConfigurator *obj, XtPointer callData) |
void | cancelHandler (Widget w, GLXConfigurator *obj, XtPointer callData) |
void | renderSystemHandler (Widget w, RendererCallbackData *cdata, XtPointer callData) |
void | configOptionHandler (Widget w, ConfigCallbackData *cdata, XtPointer callData) |
Static Private Attributes | |
const int | wWidth = 400 |
const int | wHeight = 300 |
const int | col1x = 20 |
const int | col2x = 180 |
const int | col1w = 150 |
const int | col2w = 200 |
const int | ystart = 105 |
const int | rowh = 20 |
XaW uses a not-very-smart widget positioning system, so I override it to use fixed positions. This works great, but it means you need to define the various positions manually. Furthermore, it has no OptionMenu by default, so I simulate this with dropdown buttons.
Definition at line 64 of file OgreGLXConfig.cpp.
|
Definition at line 183 of file OgreGLXConfig.cpp. |
|
Definition at line 191 of file OgreGLXConfig.cpp. |
|
Definition at line 149 of file OgreGLXConfig.cpp. |
|
Definition at line 156 of file OgreGLXConfig.cpp. References Exit(). |
|
|
Create backdrop image, and return it as a Pixmap.
Definition at line 313 of file OgreGLXConfig.cpp. References Ogre::Image::getData(), Ogre::Image::getFormat(), Ogre::Image::getHeight(), Ogre::Image::getWidth(), Ogre::Image::load(), malloc, mDisplay, mHeight, mWidth, and Ogre::PF_R8G8B8. Referenced by CreateWindow(). |
|
Definition at line 203 of file OgreGLXConfig.cpp. References appContext, box, col1w, col1x, col2w, col2x, CreateBackdrop(), Ogre::RenderSystem::getName(), mBackDrop, mDisplay, mHeight, mRenderer, mRendererCallbackData, mWidth, Ogre::RenderSystemList, rowh, SetRenderer(), toplevel, and ystart. Referenced by Ogre::GLXConfig::display(). |
|
Called initially, and on expose.
Definition at line 408 of file OgreGLXConfig.cpp. |
|
Exit from main loop.
Definition at line 413 of file OgreGLXConfig.cpp. References appContext. Referenced by acceptHandler(), and cancelHandler(). |
|
Called after window initialisation.
Definition at line 404 of file OgreGLXConfig.cpp. |
|
Definition at line 410 of file OgreGLXConfig.cpp. References appContext. Referenced by Ogre::GLXConfig::display(). |
|
Definition at line 160 of file OgreGLXConfig.cpp. References Ogre::RenderSystem::getName(), Ogre::GLXConfigurator::RendererCallbackData::optionmenu, Ogre::GLXConfigurator::RendererCallbackData::parent, Ogre::GLXConfigurator::RendererCallbackData::renderer, and SetRenderer(). |
|
Definition at line 478 of file OgreGLXConfig.cpp. References mRenderer, and Ogre::RenderSystem::setConfigOption(). Referenced by configOptionHandler(). |
|
Definition at line 417 of file OgreGLXConfig.cpp. References box, col1w, col1x, col2w, col2x, Ogre::ConfigOptionMap, Ogre::RenderSystem::getConfigOptions(), mConfigCallbackData, mRenderer, mRenderOptionWidgets, rowh, and ystart. Referenced by CreateWindow(), and renderSystemHandler(). |
|
Definition at line 144 of file OgreGLXConfig.cpp. Referenced by Ogre::GLXConfig::display(). |
|
Definition at line 110 of file OgreGLXConfig.cpp. Referenced by acceptHandler(), and Ogre::GLXConfig::display(). |
|
Definition at line 93 of file OgreGLXConfig.cpp. Referenced by CreateWindow(), Exit(), and Main(). |
|
Definition at line 126 of file OgreGLXConfig.cpp. Referenced by CreateWindow(), and SetRenderer(). |
|
Definition at line 70 of file OgreGLXConfig.cpp. Referenced by CreateWindow(), and SetRenderer(). |
|
Definition at line 68 of file OgreGLXConfig.cpp. Referenced by CreateWindow(), and SetRenderer(). |
|
Definition at line 71 of file OgreGLXConfig.cpp. Referenced by CreateWindow(), and SetRenderer(). |
|
Definition at line 69 of file OgreGLXConfig.cpp. Referenced by CreateWindow(), and SetRenderer(). |
|
Definition at line 89 of file OgreGLXConfig.cpp. Referenced by CreateWindow(), and ~GLXConfigurator(). |
|
Definition at line 142 of file OgreGLXConfig.cpp. Referenced by SetRenderer(). |
|
Definition at line 87 of file OgreGLXConfig.cpp. Referenced by CreateBackdrop(), CreateWindow(), and ~GLXConfigurator(). |
|
Definition at line 91 of file OgreGLXConfig.cpp. Referenced by CreateBackdrop(), and CreateWindow(). |
|
Definition at line 125 of file OgreGLXConfig.cpp. Referenced by acceptHandler(), CreateWindow(), Ogre::GLXConfig::display(), SetConfigOption(), and SetRenderer(). |
|
Definition at line 123 of file OgreGLXConfig.cpp. Referenced by CreateWindow(). |
|
Definition at line 127 of file OgreGLXConfig.cpp. Referenced by SetRenderer(). |
|
Definition at line 91 of file OgreGLXConfig.cpp. Referenced by CreateBackdrop(), and CreateWindow(). |
|
Definition at line 88 of file OgreGLXConfig.cpp. |
|
Definition at line 73 of file OgreGLXConfig.cpp. Referenced by CreateWindow(), and SetRenderer(). |
|
Definition at line 94 of file OgreGLXConfig.cpp. Referenced by CreateWindow(), and ~GLXConfigurator(). |
|
Definition at line 67 of file OgreGLXConfig.cpp. |
|
Definition at line 66 of file OgreGLXConfig.cpp. |
|
Definition at line 72 of file OgreGLXConfig.cpp. Referenced by CreateWindow(), and SetRenderer(). |
Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:50:14 2004