29 #ifndef __OSXCocoaWindow_H__
30 #define __OSXCocoaWindow_H__
34 #include <Cocoa/Cocoa.h>
50 NSOpenGLContext *mGLContext;
51 NSOpenGLPixelFormat *mGLPixelFormat;
52 NSPoint mWindowOrigin;
54 OSXCocoaContext* mContext;
65 void _setWindowParameters(
void);
70 NSView* ogreView()
const {
return mView; };
71 NSWindow* ogreWindow()
const {
return mWindow; };
72 NSOpenGLContext* nsopenGLContext()
const {
return mGLContext; };
73 NSOpenGLPixelFormat* nsopenGLPixelFormat()
const {
return mGLPixelFormat; };
76 void create(
const String& name,
unsigned int width,
unsigned int height,
81 bool isActive(
void)
const;
83 bool isClosed(
void)
const;
85 bool isHidden(
void)
const {
return mHidden; }
87 void setHidden(
bool hidden);
89 void setVSyncEnabled(
bool vsync);
91 bool isVSyncEnabled()
const;
93 void reposition(
int left,
int top);
95 void resize(
unsigned int width,
unsigned int height);
97 void swapBuffers(
bool waitForVSync);
99 virtual void copyContentsToMemory(
const PixelBox &dst, FrameBuffer buffer);
101 virtual void setFullscreen(
bool fullScreen,
unsigned int width,
unsigned int height);
103 void windowMovedOrResized(
void);
104 void windowResized(
void);
105 void windowHasResized(
void);
106 void createNewWindow(
unsigned int width,
unsigned int height,
String title);
107 void createWindowFromExternal(NSView *viewRef);
109 bool requiresTextureFlipping()
const {
return false; }
110 void getCustomAttribute(
const String& name,
void* pData );
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)