Niotso  git revision 558726a9f13d7c3423a683dd2f4323589b66c310
The New Implementation of The Sims Online
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
Functions | Variables
wgl.c File Reference
#include "libgldemo.h"

Functions

static void KillGLWindow ()
 
static int CreateGLWindow (const char *__restrict title, uint16_t width, uint16_t height)
 
static LRESULT CALLBACK WndProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
 
int APIENTRY WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)
 

Variables

static HWND hWnd = NULL
 
static HDC hDC = NULL
 
static HGLRC hRC = NULL
 
static HINSTANCE hInst
 
static uint8_t keys [256] = {0}
 
static uint16_t ResWidth
 
static uint16_t ResHeight
 
static uint16_t ResDepth
 
static int fullscreen = 0
 
static float FramePeriod
 

Function Documentation

static int CreateGLWindow ( const char *__restrict  title,
uint16_t  width,
uint16_t  height 
)
static
static void KillGLWindow ( )
static
int APIENTRY WinMain ( HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
LPSTR  lpCmdLine,
int  nCmdShow 
)
static LRESULT CALLBACK WndProc ( HWND  hWnd,
UINT  uMsg,
WPARAM  wParam,
LPARAM  lParam 
)
static

Variable Documentation

float FramePeriod
static
int fullscreen = 0
static
HDC hDC = NULL
static
HINSTANCE hInst
static
HGLRC hRC = NULL
static
HWND hWnd = NULL
static
uint8_t keys[256] = {0}
static
uint16_t ResDepth
static
uint16_t ResHeight
static
uint16_t ResWidth
static