Go to the documentation of this file.
29 #ifndef __OSXCocoaWindow_H__
30 #define __OSXCocoaWindow_H__
34 #include <AppKit/NSWindow.h>
35 #include <QuartzCore/CVDisplayLink.h>
68 void _setWindowParameters(
void);
78 void create(
const String& name,
unsigned int width,
unsigned int height,
83 bool isActive(
void)
const;
85 bool isClosed(
void)
const;
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);
116 void getCustomAttribute(
const String& name,
void* pData );
NSOpenGLContext * nsopenGLContext() const
Manages the target rendering window.
bool isHidden(void) const
RenderWindow::isHidden
NSOpenGLContext * mGLContext
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
bool requiresTextureFlipping() const
NSOpenGLPixelFormat * mGLPixelFormat
CocoaWindowDelegate * mWindowDelegate
#define _OgreGL3PlusExport
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.
float mContentScalingFactor
NSView * ogreView() const
NSWindow * ogreWindow() const
CVDisplayLinkRef mDisplayLink
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Last modified Tue Apr 13 2021 08:53:15