Generic display driver for cocoa On grounds to not duplicate some code, it contains a few variables which are not used by all device drivers.
More...
#include <cocoa_v.h>
Generic display driver for cocoa On grounds to not duplicate some code, it contains a few variables which are not used by all device drivers.
Definition at line 76 of file cocoa_v.h.
◆ ChangeResolution()
| virtual bool CocoaSubdriver::ChangeResolution |
( |
int |
w, |
|
|
int |
h, |
|
|
int |
bpp |
|
) |
| |
|
pure virtual |
Change window resolution.
- Parameters
-
| w | New window width |
| h | New window height |
- Returns
- Whether change was successful
◆ Draw()
| virtual void CocoaSubdriver::Draw |
( |
bool |
force_update = false | ) |
|
|
pure virtual |
Draw window.
- Parameters
-
| force_update | Whether to redraw unconditionally |
◆ GetHeight()
| virtual int CocoaSubdriver::GetHeight |
( |
| ) |
|
|
pure virtual |
Return the height of the current view.
- Returns
- height of the current view
◆ GetMouseLocation()
| virtual NSPoint CocoaSubdriver::GetMouseLocation |
( |
NSEvent * |
event | ) |
|
|
pure virtual |
Return the mouse location.
- Parameters
-
- Returns
- mouse location as NSPoint
◆ GetPixelBuffer()
| virtual void* CocoaSubdriver::GetPixelBuffer |
( |
| ) |
|
|
pure virtual |
Return the current pixel buffer.
- Returns
- pixelbuffer
◆ GetWidth()
| virtual int CocoaSubdriver::GetWidth |
( |
| ) |
|
|
pure virtual |
Return the width of the current view.
- Returns
- width of the current view
◆ IsActive()
| virtual bool CocoaSubdriver::IsActive |
( |
| ) |
|
|
pure virtual |
Return whether the window is active (visible)
- Returns
- whether the window is visible or not
◆ IsFullscreen()
| virtual bool CocoaSubdriver::IsFullscreen |
( |
| ) |
|
|
pure virtual |
Are we in fullscreen mode.
- Returns
- whether fullscreen mode is currently used
◆ MakeDirty()
| virtual void CocoaSubdriver::MakeDirty |
( |
int |
left, |
|
|
int |
top, |
|
|
int |
width, |
|
|
int |
height |
|
) |
| |
|
pure virtual |
Mark dirty a screen region.
- Parameters
-
| left | x-coordinate of left border |
| top | y-coordinate of top border |
| width | width or dirty rectangle |
| height | height of dirty rectangle |
◆ MouseIsInsideView()
| virtual bool CocoaSubdriver::MouseIsInsideView |
( |
NSPoint * |
pt | ) |
|
|
pure virtual |
Return whether the mouse is within our view.
- Parameters
-
- Returns
- Whether mouse coordinates are within view
◆ PrivateLocalToCG()
| virtual CGPoint CocoaSubdriver::PrivateLocalToCG |
( |
NSPoint * |
p | ) |
|
|
pure virtual |
Convert local coordinate to window server (CoreGraphics) coordinate.
- Parameters
-
- Returns
- window driver coordinates
◆ SetPortAlphaOpaque()
| virtual void CocoaSubdriver::SetPortAlphaOpaque |
( |
| ) |
|
|
inlinevirtual |
Makes the game region of the window 100% opaque.
Definition at line 183 of file cocoa_v.h.
◆ ToggleFullscreen()
| virtual bool CocoaSubdriver::ToggleFullscreen |
( |
| ) |
|
|
inlinevirtual |
Toggle between fullscreen and windowed mode.
- Returns
- whether switch was successful
Definition at line 142 of file cocoa_v.h.
◆ WindowResized()
| virtual bool CocoaSubdriver::WindowResized |
( |
| ) |
|
|
inlinevirtual |
Whether the window was successfully resized.
- Returns
- whether the window was successfully resized
Definition at line 188 of file cocoa_v.h.
The documentation for this class was generated from the following file: