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>
69 void _setWindowParameters(
void);
80 void create(
const String& name,
unsigned int width,
unsigned int height,
85 bool isActive(
void)
const;
87 bool isClosed(
void)
const;
91 void setHidden(
bool hidden);
93 void setVSyncEnabled(
bool vsync);
95 bool isVSyncEnabled()
const;
97 void reposition(
int left,
int top);
99 void resize(
unsigned int width,
unsigned int height);
103 virtual void copyContentsToMemory(
const PixelBox &dst, FrameBuffer buffer);
105 virtual void setFullscreen(
bool fullScreen,
unsigned int width,
unsigned int height);
107 virtual unsigned int getWidth(
void)
const;
109 virtual unsigned int getHeight(
void)
const;
111 void windowMovedOrResized(
void);
112 void windowResized(
void);
113 void windowHasResized(
void);
114 void createNewWindow(
unsigned int width,
unsigned int height,
String title);
115 void createWindowFromExternal(NSView *viewRef);
118 void getCustomAttribute(
const String& name,
void* pData );
bool requiresTextureFlipping() const
Manages the target rendering window.
NSWindow * ogreWindow() const
map< String, String >::type NameValuePairList
Name / value parameter pair (first = name, second = value)
NSOpenGLContext * nsopenGLContext() const
float mContentScalingFactor
NSOpenGLContext * mGLContext
A primitive describing a volume (3D), image (2D) or line (1D) of pixels in memory.
OSXCocoaContext * mContext
OSXCocoaWindowDelegate * mWindowDelegate
bool isHidden(void) const
RenderWindow::isHidden
NSOpenGLPixelFormat * nsopenGLPixelFormat() const
NSOpenGLPixelFormat * mGLPixelFormat
NSView * ogreView() const
bool mContentScalingSupported
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