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

#include <OgreOSXCocoaContext.h>

+ Inheritance diagram for Ogre::CocoaContext:
+ Collaboration diagram for Ogre::CocoaContext:

Public Member Functions

 CocoaContext (NSOpenGLContext *context, NSOpenGLPixelFormat *pixelFormat)
 
virtual ~CocoaContext ()
 
virtual GL3PlusContextclone () const
 Create a new context based on the same window/pbuffer as this context - mostly useful for additional threads. More...
 
virtual void endCurrent ()
 This is called before another context is made current. More...
 
NSOpenGLContext * getContext ()
 Grab the NSOpenGLContext if it exists. More...
 
bool getInitialized ()
 
NSOpenGLPixelFormat * getPixelFormat ()
 Grab the NSOpenGLPixelFormat if it exists. More...
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, void *)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
void * operator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info More...
 
void * operator new (size_t sz)
 
void * operator new (size_t sz, void *ptr)
 placement operator new More...
 
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info More...
 
void * operator new[] (size_t sz)
 
virtual void releaseContext ()
 Release the render context. More...
 
virtual void setCurrent ()
 See GL3PlusContext. More...
 
void setInitialized ()
 

Public Attributes

GLint mBackingHeight
 
GLint mBackingWidth
 

Protected Attributes

bool initialized
 

Private Attributes

NSOpenGLContext * mNSGLContext
 
NSOpenGLPixelFormat * mNSGLPixelFormat
 

Detailed Description

Constructor & Destructor Documentation

Ogre::CocoaContext::CocoaContext ( NSOpenGLContext *  context,
NSOpenGLPixelFormat *  pixelFormat 
)
virtual Ogre::CocoaContext::~CocoaContext ( )
virtual

Member Function Documentation

virtual GL3PlusContext* Ogre::CocoaContext::clone ( ) const
virtual

Create a new context based on the same window/pbuffer as this context - mostly useful for additional threads.

Note
The caller is responsible for deleting the returned context.

Implements Ogre::GL3PlusContext.

virtual void Ogre::CocoaContext::endCurrent ( )
virtual

This is called before another context is made current.

By default, nothing is done here.

Implements Ogre::GL3PlusContext.

NSOpenGLContext* Ogre::CocoaContext::getContext ( )

Grab the NSOpenGLContext if it exists.

bool Ogre::GL3PlusContext::getInitialized ( )
inlineinherited

Definition at line 58 of file OgreGL3PlusContext.h.

NSOpenGLPixelFormat* Ogre::CocoaContext::getPixelFormat ( )

Grab the NSOpenGLPixelFormat if it exists.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr)
inlineinherited

Definition at line 96 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
void *   
)
inlineinherited

Definition at line 102 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 108 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr)
inlineinherited

Definition at line 113 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void *  ptr,
const char *  ,
int  ,
const char *   
)
inlineinherited

Definition at line 119 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

operator new, with debug line info

Definition at line 68 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

Definition at line 73 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void *  ptr 
)
inlineinherited

placement operator new

Definition at line 79 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char *  file,
int  line,
const char *  func 
)
inlineinherited

array operator new, with debug line info

Definition at line 86 of file OgreMemoryAllocatedObject.h.

template<class Alloc >
void* Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

Definition at line 91 of file OgreMemoryAllocatedObject.h.

virtual void Ogre::GL3PlusContext::releaseContext ( )
inlinevirtualinherited

Release the render context.

Reimplemented in Ogre::Win32Context, and Ogre::Win32Context.

Definition at line 70 of file OgreGL3PlusContext.h.

virtual void Ogre::CocoaContext::setCurrent ( )
virtual
void Ogre::GL3PlusContext::setInitialized ( )
inlineinherited

Definition at line 59 of file OgreGL3PlusContext.h.

Member Data Documentation

bool Ogre::GL3PlusContext::initialized
protectedinherited

Definition at line 73 of file OgreGL3PlusContext.h.

GLint Ogre::CocoaContext::mBackingHeight
GLint Ogre::CocoaContext::mBackingWidth
NSOpenGLContext* Ogre::CocoaContext::mNSGLContext
private
NSOpenGLPixelFormat* Ogre::CocoaContext::mNSGLPixelFormat
private

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