29 #ifndef __OSXCocoaWindow_H__
30 #define __OSXCocoaWindow_H__
35 #include <Cocoa/Cocoa.h>
48 NSOpenGLContext *mGLContext;
49 NSOpenGLPixelFormat *mGLPixelFormat;
64 NSView* ogreView()
const {
return mView; };
65 NSWindow* ogreWindow()
const {
return mWindow; };
66 NSOpenGLContext* nsopenGLContext()
const {
return mGLContext; };
69 void create(
const String& name,
unsigned int width,
unsigned int height,
74 bool isActive(
void)
const;
76 bool isClosed(
void)
const;
78 void reposition(
int left,
int top);
80 void resize(
unsigned int width,
unsigned int height);
82 void swapBuffers(
bool waitForVSync);
84 virtual void setFullscreen(
bool fullScreen,
unsigned int width,
unsigned int height);
86 void windowMovedOrResized(
void);
87 void windowResized(
void);
88 void windowHasResized(
void);
89 void createNewWindow(
unsigned int width,
unsigned int height,
String title);
90 void createWindowFromExternal(NSView *viewRef);
92 bool requiresTextureFlipping()
const {
return false; }
93 void getCustomAttribute(
const String& name,
void* pData );
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)