OGRE  1.7
Object-Oriented Graphics Rendering Engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Ogre::OSXGLSupport Class Reference

#include <OgreOSXGLSupport.h>

+ Inheritance diagram for Ogre::OSXGLSupport:
+ Collaboration diagram for Ogre::OSXGLSupport:

Public Member Functions

 OSXGLSupport ()
 
 ~OSXGLSupport ()
 
void addConfig (void)
 Add any special config values to the system. More...
 
virtual bool checkExtension (const String &ext) const
 Check if an extension is available. More...
 
bool checkMinGLVersion (const String &v) const
 Compare GL version numbers. More...
 
virtual GLPBuffercreatePBuffer (PixelComponentType format, size_t width, size_t height)
 
RenderWindowcreateWindow (bool autoCreateWindow, GLRenderSystem *renderSystem, const String &windowTitle)
 
virtual ConfigOptionMapgetConfigOptions (void)
 
virtual unsigned int getDisplayMonitorCount () const
 Gets the number of display monitors. More...
 
const StringgetGLVendor (void) const
 Get vendor information. More...
 
const StringgetGLVersion (void) const
 Get version information. More...
 
void * getProcAddress (const char *name)
 Get the address of a function. More...
 
void * getProcAddress (const String &procname)
 Get the address of a function. More...
 
virtual void initialiseExtensions ()
 Initialises GL extensions, must be done AFTER the GL context has been established. More...
 
virtual RenderWindownewWindow (const String &name, unsigned int width, unsigned int height, bool fullScreen, const NameValuePairList *miscParams=0)
 
virtual void setConfigOption (const String &name, const String &value)
 
void start ()
 Start anything special. More...
 
void stop ()
 Stop anything special. More...
 
virtual bool supportsPBuffers ()
 
String validateConfig (void)
 Make sure all the extra options are valid. More...
 

Static Public Member Functions

static CFComparisonResult _compareModes (const void *val1, const void *val2, void *context)
 
static Boolean _getDictionaryBoolean (CFDictionaryRef dict, const void *key)
 
static long _getDictionaryLong (CFDictionaryRef dict, const void *key)
 

Protected Attributes

set< String >::type extensionList
 
String mAPI
 
String mContextType
 
ConfigOptionMap mOptions
 

Detailed Description

Definition at line 37 of file OgreOSXGLSupport.h.

Constructor & Destructor Documentation

Ogre::OSXGLSupport::OSXGLSupport ( )
Ogre::OSXGLSupport::~OSXGLSupport ( )

Member Function Documentation

static CFComparisonResult Ogre::OSXGLSupport::_compareModes ( const void *  val1,
const void *  val2,
void *  context 
)
static
static Boolean Ogre::OSXGLSupport::_getDictionaryBoolean ( CFDictionaryRef  dict,
const void *  key 
)
static
static long Ogre::OSXGLSupport::_getDictionaryLong ( CFDictionaryRef  dict,
const void *  key 
)
static
void Ogre::OSXGLSupport::addConfig ( void  )
virtual

Add any special config values to the system.

Must have a "Full Screen" value that is a bool and a "Video Mode" value that is a string in the form of wxh

Implements Ogre::GLSupport.

virtual bool Ogre::GLSupport::checkExtension ( const String ext) const
virtualinherited

Check if an extension is available.

Reimplemented in Ogre::GTKGLSupport.

bool Ogre::GLSupport::checkMinGLVersion ( const String v) const
inherited

Compare GL version numbers.

virtual GLPBuffer* Ogre::OSXGLSupport::createPBuffer ( PixelComponentType  format,
size_t  width,
size_t  height 
)
virtual

Reimplemented from Ogre::GLSupport.

RenderWindow* Ogre::OSXGLSupport::createWindow ( bool  autoCreateWindow,
GLRenderSystem renderSystem,
const String windowTitle 
)
virtual

Implements Ogre::GLSupport.

virtual ConfigOptionMap& Ogre::GLSupport::getConfigOptions ( void  )
virtualinherited
virtual unsigned int Ogre::GLSupport::getDisplayMonitorCount ( ) const
inlinevirtualinherited

Gets the number of display monitors.

See also
Root::getDisplayMonitorCount

Reimplemented in Ogre::Win32GLSupport.

Definition at line 118 of file OgreGLSupport.h.

const String& Ogre::GLSupport::getGLVendor ( void  ) const
inlineinherited

Get vendor information.

Definition at line 85 of file OgreGLSupport.h.

const String& Ogre::GLSupport::getGLVersion ( void  ) const
inlineinherited

Get version information.

Definition at line 93 of file OgreGLSupport.h.

void* Ogre::OSXGLSupport::getProcAddress ( const char *  name)

Get the address of a function.

void* Ogre::OSXGLSupport::getProcAddress ( const String procname)
virtual

Get the address of a function.

Implements Ogre::GLSupport.

virtual void Ogre::GLSupport::initialiseExtensions ( )
virtualinherited

Initialises GL extensions, must be done AFTER the GL context has been established.

Reimplemented in Ogre::GTKGLSupport, Ogre::Win32GLSupport, and Ogre::GLXGLSupport.

virtual RenderWindow* Ogre::OSXGLSupport::newWindow ( const String name,
unsigned int  width,
unsigned int  height,
bool  fullScreen,
const NameValuePairList miscParams = 0 
)
virtual

Implements Ogre::GLSupport.

virtual void Ogre::GLSupport::setConfigOption ( const String name,
const String value 
)
virtualinherited

Reimplemented in Ogre::GLXGLSupport, and Ogre::Win32GLSupport.

void Ogre::OSXGLSupport::start ( )
virtual

Start anything special.

Implements Ogre::GLSupport.

void Ogre::OSXGLSupport::stop ( )
virtual

Stop anything special.

Implements Ogre::GLSupport.

virtual bool Ogre::OSXGLSupport::supportsPBuffers ( )
virtual

Reimplemented from Ogre::GLSupport.

String Ogre::OSXGLSupport::validateConfig ( void  )
virtual

Make sure all the extra options are valid.

Implements Ogre::GLSupport.

Member Data Documentation

set<String>::type Ogre::GLSupport::extensionList
protectedinherited

Definition at line 128 of file OgreGLSupport.h.

String Ogre::OSXGLSupport::mAPI
protected

Definition at line 88 of file OgreOSXGLSupport.h.

String Ogre::OSXGLSupport::mContextType
protected

Definition at line 89 of file OgreOSXGLSupport.h.

ConfigOptionMap Ogre::GLSupport::mOptions
protectedinherited

Definition at line 125 of file OgreGLSupport.h.


The documentation for this class was generated from the following file: