Public Member Functions | Public Attributes | Protected Attributes | Private Attributes
Ogre::CocoaContext Class Reference

#include <OgreOSXCocoaContext.h>

Inheritance diagram for Ogre::CocoaContext:
Inheritance graph
[legend]

List of all members.

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.
virtual void endCurrent ()
 This is called before another context is made current.
NSOpenGLContext * getContext ()
 Grab the NSOpenGLContext if it exists.
bool getInitialized ()
NSOpenGLPixelFormat * getPixelFormat ()
 Grab the NSOpenGLPixelFormat if it exists.
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
void * operator new (size_t sz)
void * operator new (size_t sz, void *ptr)
 placement operator new
void * operator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info
void * operator new[] (size_t sz)
virtual void releaseContext ()
 Release the render context.
virtual void setCurrent ()
 See GL3PlusContext.
void setInitialized ()

Public Attributes

GLint mBackingHeight
GLint mBackingWidth

Protected Attributes

bool initialized

Private Attributes

NSOpenGLContext * mNSGLContext
NSOpenGLPixelFormat * mNSGLPixelFormat

Detailed Description

Definition at line 36 of file Plus/include/OSX/OgreOSXCocoaContext.h.


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.

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) [inherited]

Definition at line 96 of file OgreMemoryAllocatedObject.h.

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

Definition at line 102 of file OgreMemoryAllocatedObject.h.

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

Definition at line 108 of file OgreMemoryAllocatedObject.h.

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

Definition at line 113 of file OgreMemoryAllocatedObject.h.

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

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 
) [inherited]

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) [inherited]

Definition at line 73 of file OgreMemoryAllocatedObject.h.

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

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 
) [inherited]

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) [inherited]

Definition at line 91 of file OgreMemoryAllocatedObject.h.

virtual void Ogre::GL3PlusContext::releaseContext ( ) [virtual, inherited]

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]

Definition at line 59 of file OgreGL3PlusContext.h.


Member Data Documentation

bool Ogre::GL3PlusContext::initialized [protected, inherited]

Definition at line 73 of file OgreGL3PlusContext.h.

Definition at line 64 of file Plus/include/OSX/OgreOSXCocoaContext.h.

Definition at line 63 of file Plus/include/OSX/OgreOSXCocoaContext.h.

NSOpenGLContext* Ogre::CocoaContext::mNSGLContext [private]

Definition at line 67 of file Plus/include/OSX/OgreOSXCocoaContext.h.

NSOpenGLPixelFormat* Ogre::CocoaContext::mNSGLPixelFormat [private]

Definition at line 68 of file Plus/include/OSX/OgreOSXCocoaContext.h.


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

Copyright © 2012 Torus Knot Software Ltd
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Mon Jul 27 2020 13:40:53