torque Torque Game Engine Documentation
TGE Version 1.5.2

engine/platformWin32/platformWin32.h File Reference

#include <windows.h>
#include "platform/platform.h"
#include <stdio.h>
#include <string.h>
#include "platformWin32/GLWinFunc.h"
#include "platformWin32/GLWinExtFunc.h"

Data Structures

struct  Win32PlatState

Defines

#define _WIN32_WINNT   0x0400
#define NOMINMAX
#define WGLD3D_FUNCTION(fn_type, fn_name, fn_args, fn_value)   extern fn_type (__stdcall *dwgl##fn_name)fn_args;
#define WGL_FUNCTION(fn_type, fn_name, fn_args, fn_value)   extern fn_type (__stdcall *d##fn_name)fn_args;
#define WGLEXT_FUNCTION(fn_type, fn_name, fn_args, fn_value)   extern fn_type (__stdcall *d##fn_name)fn_args;

Functions

bool GL_Init (const char *dllname_gl, const char *dllname_glu)
bool GL_EXT_Init ()
void GL_Shutdown ()
HWND CreateOpenGLWindow (U32 width, U32 height, bool fullScreen)
HWND CreateCurtain (U32 width, U32 height)
void CreatePixelFormat (PIXELFORMATDESCRIPTOR *pPFD, S32 colorBits, S32 depthBits, S32 stencilBits, bool stereo)
S32 ChooseBestPixelFormat (HDC hDC, PIXELFORMATDESCRIPTOR *pPFD)
void setModifierKeys (S32 modKeys)

Variables

Win32PlatState winState


Define Documentation

#define _WIN32_WINNT   0x0400

#define NOMINMAX

#define WGLD3D_FUNCTION ( fn_type,
fn_name,
fn_args,
fn_value   )     extern fn_type (__stdcall *dwgl##fn_name)fn_args;

#define WGL_FUNCTION ( fn_type,
fn_name,
fn_args,
fn_value   )     extern fn_type (__stdcall *d##fn_name)fn_args;

#define WGLEXT_FUNCTION ( fn_type,
fn_name,
fn_args,
fn_value   )     extern fn_type (__stdcall *d##fn_name)fn_args;


Function Documentation

bool GL_Init ( const char *  dllname_gl,
const char *  dllname_glu 
)

bool GL_EXT_Init (  ) 

void GL_Shutdown (  ) 

HWND CreateOpenGLWindow ( U32  width,
U32  height,
bool  fullScreen 
)

HWND CreateCurtain ( U32  width,
U32  height 
)

void CreatePixelFormat ( PIXELFORMATDESCRIPTOR *  pPFD,
S32  colorBits,
S32  depthBits,
S32  stencilBits,
bool  stereo 
)

S32 ChooseBestPixelFormat ( HDC  hDC,
PIXELFORMATDESCRIPTOR *  pPFD 
)

void setModifierKeys ( S32  modKeys  ) 


Variable Documentation




All Rights Reserved GarageGames.com, Inc. 1999-2005
Auto-magically Generated with Doxygen