#include <gfx_window_manager_api.h>
|
| virtual | ~GfxWindowBackend ()=default |
| |
| virtual void | Init (const char *gameName, const char *apiName, bool startFullScreen, uint32_t width, uint32_t height, int32_t posX, int32_t posY)=0 |
| |
| virtual void | Close ()=0 |
| |
| virtual void | SetKeyboardCallbacks (bool(*mOnKeyDown)(int scancode), bool(*mOnKeyUp)(int scancode), void(*mOnAllKeysUp)())=0 |
| |
| virtual void | SetMouseCallbacks (bool(*mOnMouseButtonDown)(int btn), bool(*mOnMouseButtonUp)(int btn))=0 |
| |
| virtual void | SetFullscreenChangedCallback (void(*mOnFullscreenChanged)(bool is_now_fullscreen))=0 |
| |
| virtual void | SetFullscreen (bool fullscreen)=0 |
| |
| virtual void | GetActiveWindowRefreshRate (uint32_t *refreshRate)=0 |
| |
| virtual void | SetCursorVisibility (bool visability)=0 |
| |
| virtual void | SetMousePos (int32_t posX, int32_t posY)=0 |
| |
| virtual void | GetMousePos (int32_t *x, int32_t *y)=0 |
| |
| virtual void | GetMouseDelta (int32_t *x, int32_t *y)=0 |
| |
| virtual void | GetMouseWheel (float *x, float *y)=0 |
| |
| virtual bool | GetMouseState (uint32_t btn)=0 |
| |
| virtual void | SetMouseCapture (bool capture)=0 |
| |
| virtual bool | IsMouseCaptured ()=0 |
| |
| virtual void | GetDimensions (uint32_t *width, uint32_t *height, int32_t *posX, int32_t *posY)=0 |
| |
| virtual void | SetDimensions (uint32_t width, uint32_t height, int32_t posX, int32_t posY)=0 |
| |
| virtual Ship::WindowRect | GetPrimaryMonitorRect ()=0 |
| |
| virtual void | HandleEvents ()=0 |
| |
| virtual bool | IsFrameReady ()=0 |
| |
| virtual void | SwapBuffersBegin ()=0 |
| |
| virtual void | SwapBuffersEnd ()=0 |
| |
| virtual double | GetTime ()=0 |
| |
| virtual int | GetTargetFps ()=0 |
| |
| virtual void | SetTargetFps (int fps)=0 |
| |
| virtual void | SetMaxFrameLatency (int latency)=0 |
| |
| virtual const char * | GetKeyName (int scancode)=0 |
| |
| virtual bool | CanDisableVsync ()=0 |
| |
| virtual bool | IsRunning ()=0 |
| |
| virtual void | Destroy ()=0 |
| |
| virtual bool | IsFullscreen ()=0 |
| |
◆ ~GfxWindowBackend()
| virtual Fast::GfxWindowBackend::~GfxWindowBackend |
( |
| ) |
|
|
virtualdefault |
◆ CanDisableVsync()
| virtual bool Fast::GfxWindowBackend::CanDisableVsync |
( |
| ) |
|
|
pure virtual |
◆ Close()
| virtual void Fast::GfxWindowBackend::Close |
( |
| ) |
|
|
pure virtual |
◆ Destroy()
| virtual void Fast::GfxWindowBackend::Destroy |
( |
| ) |
|
|
pure virtual |
◆ GetActiveWindowRefreshRate()
| virtual void Fast::GfxWindowBackend::GetActiveWindowRefreshRate |
( |
uint32_t * |
refreshRate | ) |
|
|
pure virtual |
◆ GetDimensions()
| virtual void Fast::GfxWindowBackend::GetDimensions |
( |
uint32_t * |
width, |
|
|
uint32_t * |
height, |
|
|
int32_t * |
posX, |
|
|
int32_t * |
posY |
|
) |
| |
|
pure virtual |
◆ GetKeyName()
| virtual const char * Fast::GfxWindowBackend::GetKeyName |
( |
int |
scancode | ) |
|
|
pure virtual |
◆ GetMouseDelta()
| virtual void Fast::GfxWindowBackend::GetMouseDelta |
( |
int32_t * |
x, |
|
|
int32_t * |
y |
|
) |
| |
|
pure virtual |
◆ GetMousePos()
| virtual void Fast::GfxWindowBackend::GetMousePos |
( |
int32_t * |
x, |
|
|
int32_t * |
y |
|
) |
| |
|
pure virtual |
◆ GetMouseState()
| virtual bool Fast::GfxWindowBackend::GetMouseState |
( |
uint32_t |
btn | ) |
|
|
pure virtual |
◆ GetMouseWheel()
| virtual void Fast::GfxWindowBackend::GetMouseWheel |
( |
float * |
x, |
|
|
float * |
y |
|
) |
| |
|
pure virtual |
◆ GetPrimaryMonitorRect()
◆ GetTargetFps()
| virtual int Fast::GfxWindowBackend::GetTargetFps |
( |
| ) |
|
|
pure virtual |
◆ GetTime()
| virtual double Fast::GfxWindowBackend::GetTime |
( |
| ) |
|
|
pure virtual |
◆ HandleEvents()
| virtual void Fast::GfxWindowBackend::HandleEvents |
( |
| ) |
|
|
pure virtual |
◆ Init()
| virtual void Fast::GfxWindowBackend::Init |
( |
const char * |
gameName, |
|
|
const char * |
apiName, |
|
|
bool |
startFullScreen, |
|
|
uint32_t |
width, |
|
|
uint32_t |
height, |
|
|
int32_t |
posX, |
|
|
int32_t |
posY |
|
) |
| |
|
pure virtual |
◆ IsFrameReady()
| virtual bool Fast::GfxWindowBackend::IsFrameReady |
( |
| ) |
|
|
pure virtual |
◆ IsFullscreen()
| virtual bool Fast::GfxWindowBackend::IsFullscreen |
( |
| ) |
|
|
pure virtual |
◆ IsMouseCaptured()
| virtual bool Fast::GfxWindowBackend::IsMouseCaptured |
( |
| ) |
|
|
pure virtual |
◆ IsRunning()
| virtual bool Fast::GfxWindowBackend::IsRunning |
( |
| ) |
|
|
pure virtual |
◆ SetCursorVisibility()
| virtual void Fast::GfxWindowBackend::SetCursorVisibility |
( |
bool |
visability | ) |
|
|
pure virtual |
◆ SetDimensions()
| virtual void Fast::GfxWindowBackend::SetDimensions |
( |
uint32_t |
width, |
|
|
uint32_t |
height, |
|
|
int32_t |
posX, |
|
|
int32_t |
posY |
|
) |
| |
|
pure virtual |
◆ SetFullscreen()
| virtual void Fast::GfxWindowBackend::SetFullscreen |
( |
bool |
fullscreen | ) |
|
|
pure virtual |
◆ SetFullscreenChangedCallback()
| virtual void Fast::GfxWindowBackend::SetFullscreenChangedCallback |
( |
void(*)(bool is_now_fullscreen) |
mOnFullscreenChanged | ) |
|
|
pure virtual |
◆ SetKeyboardCallbacks()
| virtual void Fast::GfxWindowBackend::SetKeyboardCallbacks |
( |
bool(*)(int scancode) |
mOnKeyDown, |
|
|
bool(*)(int scancode) |
mOnKeyUp, |
|
|
void(*)() |
mOnAllKeysUp |
|
) |
| |
|
pure virtual |
◆ SetMaxFrameLatency()
| virtual void Fast::GfxWindowBackend::SetMaxFrameLatency |
( |
int |
latency | ) |
|
|
pure virtual |
◆ SetMouseCallbacks()
| virtual void Fast::GfxWindowBackend::SetMouseCallbacks |
( |
bool(*)(int btn) |
mOnMouseButtonDown, |
|
|
bool(*)(int btn) |
mOnMouseButtonUp |
|
) |
| |
|
pure virtual |
◆ SetMouseCapture()
| virtual void Fast::GfxWindowBackend::SetMouseCapture |
( |
bool |
capture | ) |
|
|
pure virtual |
◆ SetMousePos()
| virtual void Fast::GfxWindowBackend::SetMousePos |
( |
int32_t |
posX, |
|
|
int32_t |
posY |
|
) |
| |
|
pure virtual |
◆ SetTargetFps()
| virtual void Fast::GfxWindowBackend::SetTargetFps |
( |
int |
fps | ) |
|
|
pure virtual |
◆ SwapBuffersBegin()
| virtual void Fast::GfxWindowBackend::SwapBuffersBegin |
( |
| ) |
|
|
pure virtual |
◆ SwapBuffersEnd()
| virtual void Fast::GfxWindowBackend::SwapBuffersEnd |
( |
| ) |
|
|
pure virtual |
◆ mFullScreen
| bool Fast::GfxWindowBackend::mFullScreen |
|
protected |
◆ mIsRunning
| bool Fast::GfxWindowBackend::mIsRunning = true |
|
protected |
◆ mOnFullscreenChanged
| void(* Fast::GfxWindowBackend::mOnFullscreenChanged) (bool isNowFullscreen) |
|
protected |
◆ mOnKeyDown
| bool(* Fast::GfxWindowBackend::mOnKeyDown) (int scancode) |
|
protected |
◆ mOnKeyUp
| bool(* Fast::GfxWindowBackend::mOnKeyUp) (int scancode) |
|
protected |
◆ mOnMouseButtonDown
| bool(* Fast::GfxWindowBackend::mOnMouseButtonDown) (int btn) |
|
protected |
◆ mOnMouseButtonUp
| bool(* Fast::GfxWindowBackend::mOnMouseButtonUp) (int btn) |
|
protected |
◆ mTargetFps
| uint32_t Fast::GfxWindowBackend::mTargetFps = 60 |
|
protected |
◆ mVsyncEnabled
| bool Fast::GfxWindowBackend::mVsyncEnabled = true |
|
protected |
The documentation for this class was generated from the following file: