29 #ifndef __OSXCocoaWindow_H__
30 #define __OSXCocoaWindow_H__
34 #include <AppKit/NSWindow.h>
35 #include <QuartzCore/CVDisplayLink.h>
51 NSOpenGLContext *mGLContext;
52 NSOpenGLPixelFormat *mGLPixelFormat;
53 CVDisplayLinkRef mDisplayLink;
54 NSPoint mWindowOrigin;
66 float mContentScalingFactor;
68 void _setWindowParameters(
void);
73 NSView* ogreView()
const {
return mView; };
74 NSWindow* ogreWindow()
const {
return mWindow; };
75 NSOpenGLContext* nsopenGLContext()
const {
return mGLContext; };
78 void create(
const String& name,
unsigned int width,
unsigned int height,
83 bool isActive(
void)
const;
85 bool isClosed(
void)
const;
87 bool isHidden(
void)
const {
return mHidden; }
89 void setHidden(
bool hidden);
91 void setVSyncEnabled(
bool vsync);
93 bool isVSyncEnabled()
const;
95 void reposition(
int left,
int top);
97 void resize(
unsigned int width,
unsigned int height);
101 virtual void copyContentsToMemory(
const PixelBox &dst, FrameBuffer buffer);
103 virtual void setFullscreen(
bool fullScreen,
unsigned int width,
unsigned int height);
105 virtual unsigned int getWidth(
void)
const;
107 virtual unsigned int getHeight(
void)
const;
109 void windowMovedOrResized(
void);
110 void windowResized(
void);
111 void windowHasResized(
void);
112 void createNewWindow(
unsigned int width,
unsigned int height,
String title);
113 void createWindowFromExternal(NSView *viewRef);
115 bool requiresTextureFlipping()
const {
return false; }
116 void getCustomAttribute(
const String& name,
void* pData );
Manages the target rendering window.
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
#define _OgreGL3PlusExport
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.