![]() |
OGRE
2.2.6
Object-Oriented Graphics Rendering Engine
|
#include <OgreOSXCocoaWindow.h>
Public Member Functions | |
CocoaWindow (const String &title, uint32 widthPt, uint32 heightPt, bool fullscreenMode, const NameValuePairList *miscParams) | |
virtual | ~CocoaWindow () |
void | _initialize (TextureGpuManager *textureManager) override |
Window::_initialize More... | |
void | _setPrimary (void) |
Indicates that this is the primary window. More... | |
void | _setVisible (bool visible) override |
Window::_setVisible More... | |
void | destroy (void) override |
Window::destroy More... | |
bool | getBorderless (void) const |
void | getCustomAttribute (IdString name, void *pData) |
Window::getCustomAttribute More... | |
TextureGpu * | getDepthBuffer (void) const |
uint32 | getFrequencyDenominator (void) const |
uint32 | getFrequencyNumerator (void) const |
uint32 | getHeight (void) const |
virtual void | getMetrics (uint32 &width, uint32 &height, int32 &left, int32 &top) const |
Overloaded version of getMetrics from RenderTarget, including extra details specific to windowing systems. More... | |
PixelFormatGpu | getPixelFormat (void) const |
uint32 | getRequestedHeightPt (void) const |
uint32 | getRequestedWidthPt (void) const |
SampleDescription | getSampleDescription (void) const |
TextureGpu * | getStencilBuffer (void) const |
TextureGpu * | getTexture (void) const |
WARNING: Attempting to change the TextureGpu (e.g. More... | |
const String & | getTitle (void) const |
float | getViewPointToPixelScale () const override |
Window::setVSync More... | |
bool | getVSync (void) const |
uint32 | getVSyncInterval (void) const |
uint32 | getWidth (void) const |
bool | isActive () const |
bool | isClosed (void) const override |
Window::isClosed More... | |
bool | isDeactivatedOnFocusChange () const |
bool | isFocused (void) const |
bool | isFullscreen (void) const |
Returns true if we are currently in fullscreen mode. More... | |
bool | isHidden (void) const override |
Window::isHidden More... | |
bool | isMultisample (void) const |
bool | isPrimary (void) const |
bool | isVisible (void) const override |
Window::isVisible More... | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete (void *ptr, void *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info More... | |
void * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
void * | operator new[] (size_t sz) |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info More... | |
void | reposition (int leftPt, int topPt) override |
Window::reposition More... | |
virtual void | requestFullscreenSwitch (bool goFullscreen, bool borderless, uint32 monitorIdx, uint32 widthPt, uint32 heightPt, uint32 frequencyNumerator, uint32 frequencyDenominator) |
Requests to toggle between fullscreen and windowed mode. More... | |
virtual void | requestResolution (uint32 widthPt, uint32 heightPt) |
Requests a change in resolution. More... | |
void | setActive (bool value) |
virtual void | setBorderless (bool borderless) |
void | setDeactivateOnFocusChange (bool deactivate) |
virtual void | setFocused (bool focused) |
virtual void | setFsaa (const String &fsaa) |
Set the FSAA mode to be used if hardware support it. More... | |
void | setHidden (bool hidden) override |
RenderWindow::setHidden More... | |
virtual void | setTitle (const String &title) |
void | setVisible (bool visible) |
virtual void | setVSync (bool vSync, uint32 vSyncInterval) |
void | swapBuffers () override |
Window::swapBuffers More... | |
bool | wantsToGoFullscreen (void) const |
Returns true if we are in windowed mode right now, but want to go fullscreen. More... | |
bool | wantsToGoWindowed (void) const |
Returns true if we are in fullscreen mode right now, but want to go windowed mode. More... | |
void | windowMovedOrResized (void) override |
Window::windowMovedOrResized More... | |
Ogre::CocoaWindow::CocoaWindow | ( | const String & | title, |
uint32 | widthPt, | ||
uint32 | heightPt, | ||
bool | fullscreenMode, | ||
const NameValuePairList * | miscParams | ||
) |
|
virtual |
|
overridevirtual |
|
inherited |
Indicates that this is the primary window.
Only to be called by Ogre::Root
|
overridevirtual |
|
overridevirtual |
|
inherited |
|
virtual |
Reimplemented from Ogre::Window.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
virtualinherited |
Overloaded version of getMetrics from RenderTarget, including extra details specific to windowing systems.
Result is in pixels.
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
WARNING: Attempting to change the TextureGpu (e.g.
setResolution, setPixelFormat) is undefined behavior
|
inherited |
|
overridevirtual |
|
inherited |
|
inherited |
|
inherited |
bool Ogre::CocoaWindow::isActive | ( | ) | const |
|
overridevirtual |
bool Ogre::CocoaWindow::isDeactivatedOnFocusChange | ( | ) | const |
|
inherited |
|
inherited |
Returns true if we are currently in fullscreen mode.
|
inlineoverridevirtual |
|
inherited |
|
inherited |
|
overridevirtual |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
operator new, with debug line info
|
inlineinherited |
placement operator new
|
inlineinherited |
|
inlineinherited |
array operator new, with debug line info
|
overridevirtual |
|
virtualinherited |
Requests to toggle between fullscreen and windowed mode.
goFullscreen | True to go fullscreen, false to go windowed mode. |
borderless | Whether to be borderless. Only useful if goFullscreen == false; |
monitorIdx | |
width | New width. Leave 0 if you don't care. |
height | New height. Leave 0 if you don't care. |
frequencyNumerator | New frequency (fullscreen only). Leave 0 if you don't care. |
frequencyDenominator | New frequency (fullscreen only). Leave 0 if you don't care. |
Reimplemented in Ogre::EglPBufferWindow, Ogre::Win32Window, Ogre::EGLWindow, Ogre::GLXWindow, and Ogre::NULLWindow.
Requests a change in resolution.
Change is not immediate. Use getRequestedWidthPt & getRequestedHeightPt if you need to know what you've requested, but beware you may not get that resolution, and once we get word from the OS, getRequested{Width/Height}Pt will change again so that getWidth == getRequestedWidthPt * getViewPointToPixelScale.
Reimplemented in Ogre::EglPBufferWindow, Ogre::EGLWindow, Ogre::GLXWindow, Ogre::Win32Window, Ogre::MetalWindow, and Ogre::NULLWindow.
void Ogre::CocoaWindow::setActive | ( | bool | value | ) |
|
virtualinherited |
void Ogre::CocoaWindow::setDeactivateOnFocusChange | ( | bool | deactivate | ) |
|
virtualinherited |
Reimplemented in Ogre::Win32Window.
|
inlinevirtualinherited |
Set the FSAA mode to be used if hardware support it.
This option will be ignored if the hardware does not support it or setting can not be changed on the fly on per-target level.
fsaa | Requesed FSAA mode ( |
Reimplemented in Ogre::D3D11WindowSwapChainBased.
|
overridevirtual |
|
virtualinherited |
void Ogre::CocoaWindow::setVisible | ( | bool | visible | ) |
|
virtualinherited |
Reimplemented in Ogre::Win32Window, Ogre::EglPBufferWindow, Ogre::EGLWindow, and Ogre::GLXWindow.
|
overridevirtual |
|
inherited |
Returns true if we are in windowed mode right now, but want to go fullscreen.
|
inherited |
Returns true if we are in fullscreen mode right now, but want to go windowed mode.
|
overridevirtual |