Public Member Functions | Public Attributes | Protected Attributes | Private Attributes | List of all members
Ogre::CocoaContext Class Reference

#include <OgreOSXCocoaContext.h>

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

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

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

Constructor & Destructor Documentation

◆ CocoaContext()

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

◆ ~CocoaContext()

virtual Ogre::CocoaContext::~CocoaContext ( )
virtual

Member Function Documentation

◆ clone()

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.

◆ endCurrent()

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

This is called before another context is made current.

By default, nothing is done here.

Implements Ogre::GL3PlusContext.

◆ getContext()

NSOpenGLContext* Ogre::CocoaContext::getContext ( )

Grab the NSOpenGLContext if it exists.

◆ getInitialized()

bool Ogre::GL3PlusContext::getInitialized ( )
inherited

Definition at line 58 of file OgreGL3PlusContext.h.

◆ getPixelFormat()

NSOpenGLPixelFormat* Ogre::CocoaContext::getPixelFormat ( )

Grab the NSOpenGLPixelFormat if it exists.

◆ operator delete() [1/3]

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

Definition at line 96 of file OgreMemoryAllocatedObject.h.

◆ operator delete() [2/3]

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

Definition at line 102 of file OgreMemoryAllocatedObject.h.

◆ operator delete() [3/3]

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.

◆ operator delete[]() [1/2]

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

Definition at line 113 of file OgreMemoryAllocatedObject.h.

◆ operator delete[]() [2/2]

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.

◆ operator new() [1/3]

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.

◆ operator new() [2/3]

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

Definition at line 73 of file OgreMemoryAllocatedObject.h.

◆ operator new() [3/3]

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.

◆ operator new[]() [1/2]

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.

◆ operator new[]() [2/2]

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

Definition at line 91 of file OgreMemoryAllocatedObject.h.

◆ releaseContext()

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

Release the render context.

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

Definition at line 70 of file OgreGL3PlusContext.h.

◆ setCurrent()

virtual void Ogre::CocoaContext::setCurrent ( )
virtual

◆ setInitialized()

void Ogre::GL3PlusContext::setInitialized ( )
inherited

Definition at line 59 of file OgreGL3PlusContext.h.

Member Data Documentation

◆ initialized

bool Ogre::GL3PlusContext::initialized
protectedinherited

Definition at line 73 of file OgreGL3PlusContext.h.

◆ mBackingHeight

GLint Ogre::CocoaContext::mBackingHeight

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

◆ mBackingWidth

GLint Ogre::CocoaContext::mBackingWidth

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

◆ mNSGLContext

NSOpenGLContext* Ogre::CocoaContext::mNSGLContext
private

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

◆ mNSGLPixelFormat

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 Sun Oct 22 2017 04:04:15