TinyGL 0.4.1 for MinGW
Macros | Functions | Variables
mingw32.c File Reference
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <windows.h>
#include <GL/gl.h>
#include <GL/gdi.h>
#include "ui.h"

Go to the source code of this file.

Macros

#define GLvoid   void
 

Functions

LRESULT CALLBACK WndProc (HWND, UINT, WPARAM, LPARAM)
 
GLvoid ReSizeGLScene (GLsizei width, GLsizei height)
 
int InitGL (GLvoid)
 
int DrawGLScene (GLvoid)
 
GLvoid KillGLWindow (GLvoid)
 
BOOL CreateGLWindow (char *title, int width, int height, int bits, BOOL fullscreenflag)
 
void tkSwapBuffers (void)
 
int ui_loop (int argc, char **argv, const char *name)
 

Variables

HDC hDC =NULL
 
HWND hWnd =NULL
 
HINSTANCE hInstance
 
GDIContext cx
 
BOOL keys [256]
 
BOOL active =TRUE
 
BOOL fullscreen =TRUE
 

Macro Definition Documentation

◆ GLvoid

#define GLvoid   void

Definition at line 47 of file mingw32.c.

Function Documentation

◆ CreateGLWindow()

BOOL CreateGLWindow ( char *  title,
int  width,
int  height,
int  bits,
BOOL  fullscreenflag 
)

Definition at line 109 of file mingw32.c.

◆ DrawGLScene()

int DrawGLScene ( GLvoid  )

Definition at line 67 of file mingw32.c.

◆ InitGL()

int InitGL ( GLvoid  )

Definition at line 60 of file mingw32.c.

◆ KillGLWindow()

GLvoid KillGLWindow ( GLvoid  )

Definition at line 74 of file mingw32.c.

◆ ReSizeGLScene()

GLvoid ReSizeGLScene ( GLsizei  width,
GLsizei  height 
)

Definition at line 50 of file mingw32.c.

◆ tkSwapBuffers()

void tkSwapBuffers ( void  )

Definition at line 305 of file mingw32.c.

◆ ui_loop()

int ui_loop ( int  argc,
char **  argv,
const char *  name 
)

Definition at line 310 of file mingw32.c.

◆ WndProc()

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

Definition at line 240 of file mingw32.c.

Variable Documentation

◆ active

BOOL active =TRUE

Definition at line 42 of file mingw32.c.

◆ cx

Definition at line 38 of file mingw32.c.

◆ fullscreen

BOOL fullscreen =TRUE

Definition at line 43 of file mingw32.c.

◆ hDC

HDC hDC =NULL

Definition at line 35 of file mingw32.c.

◆ hInstance

HINSTANCE hInstance

Definition at line 37 of file mingw32.c.

◆ hWnd

HWND hWnd =NULL

Definition at line 36 of file mingw32.c.

◆ keys

BOOL keys[256]

Definition at line 41 of file mingw32.c.