Project
Loading...
Searching...
No Matches
GPUDisplayFrontendWindows.cxx File Reference
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include "GPUDisplayFrontendWindows.h"
#include "backend/GPUDisplayBackend.h"
#include "GPUDisplayGUIWrapper.h"
#include "GPULogging.h"
#include <windows.h>
#include <winbase.h>
#include <windowsx.h>

Go to the source code of this file.

Functions

LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM)
 
void KillGLWindow ()
 
BOOL CreateGLWindow (char *title, int32_t width, int32_t height, int32_t bits, bool fullscreenflag)
 
int32_t GetKey (int32_t key)
 
void DisplayExit ()
 
void OpenGLPrint (const char *s, float x, float y, float r, float g, float b, float a, bool fromBotton)
 
void SwitchFullscreen (bool set)
 
void ToggleMaximized (bool set)
 
void SetVSync (bool enable)
 

Variables

HDC hDC = nullptr
 
HGLRC hRC = nullptr
 
HWND hWnd = nullptr
 
HINSTANCE hInstance
 
bool active = TRUE
 
bool fullscreen = TRUE
 
POINT mouseCursorPos
 
volatile int32_t mouseReset = false
 

Detailed Description

Author
David Rohr

Definition in file GPUDisplayFrontendWindows.cxx.

Function Documentation

◆ CreateGLWindow()

BOOL CreateGLWindow ( char title,
int32_t  width,
int32_t  height,
int32_t  bits,
bool  fullscreenflag 
)

Definition at line 81 of file GPUDisplayFrontendWindows.cxx.

◆ DisplayExit()

void DisplayExit ( )

Definition at line 373 of file GPUDisplayFrontendWindows.cxx.

◆ GetKey()

int32_t GetKey ( int32_t  key)

Definition at line 220 of file GPUDisplayFrontendWindows.cxx.

◆ KillGLWindow()

void KillGLWindow ( )

Definition at line 42 of file GPUDisplayFrontendWindows.cxx.

◆ OpenGLPrint()

void OpenGLPrint ( const char s,
float  x,
float  y,
float  r,
float  g,
float  b,
float  a,
bool  fromBotton 
)

Definition at line 374 of file GPUDisplayFrontendWindows.cxx.

◆ SetVSync()

void SetVSync ( bool  enable)

Definition at line 377 of file GPUDisplayFrontendWindows.cxx.

◆ SwitchFullscreen()

void SwitchFullscreen ( bool  set)

Definition at line 375 of file GPUDisplayFrontendWindows.cxx.

◆ ToggleMaximized()

void ToggleMaximized ( bool  set)

Definition at line 376 of file GPUDisplayFrontendWindows.cxx.

◆ WndProc()

LRESULT CALLBACK WndProc ( HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)

Definition at line 235 of file GPUDisplayFrontendWindows.cxx.

Variable Documentation

◆ active

bool active = TRUE

Definition at line 35 of file GPUDisplayFrontendWindows.cxx.

◆ fullscreen

bool fullscreen = TRUE

Definition at line 36 of file GPUDisplayFrontendWindows.cxx.

◆ hDC

HDC hDC = nullptr

Definition at line 29 of file GPUDisplayFrontendWindows.cxx.

◆ hInstance

HINSTANCE hInstance

Definition at line 32 of file GPUDisplayFrontendWindows.cxx.

◆ hRC

HGLRC hRC = nullptr

Definition at line 30 of file GPUDisplayFrontendWindows.cxx.

◆ hWnd

HWND hWnd = nullptr

Definition at line 31 of file GPUDisplayFrontendWindows.cxx.

◆ mouseCursorPos

POINT mouseCursorPos

Definition at line 38 of file GPUDisplayFrontendWindows.cxx.

◆ mouseReset

volatile int32_t mouseReset = false

Definition at line 40 of file GPUDisplayFrontendWindows.cxx.