WINMAIN.C File Reference

Go to the source code of this file.

Defines

#define MAX_DIR   255
#define MAX_FILE   255
#define NOCOLOUR   32768L
#define FAIL   0
#define OK   1
#define BITMAPSIZE   320
#define PALVERSION   0x300
#define D_BORDER   4
#define WM_RSF_GETSTATUS   (WM_USER + 100)

Typedefs

typedef struct SCREENBUFFER fullscreenbuffer
typedef struct tagPARAMLIST PARAMLIST
 Parameter list structure for Windows control dialog.
typedef struct tag_dlghdr DLGHDR

Functions

void UpdateNTFrame (long, long)
LRESULT CALLBACK RendererMainWndProc (HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
void RenderYield (void)
void WindowedRenderMessage (int message)
void WindowedRenderString (char *str)
void WindowedRenderInfo (char *str)
int ConfirmNTabort (void)
int GetRenderNTnewfile (char *name, char *rep_name)
HINSTANCE __cdecl ResourceX (void)
int render (int argc, char **argv)
 Renders the animation.
HWND SetUpGlWindow (HANDLE, HWND, long, long, BOOL, BOOL, BOOL, long)
void LoadParticleImages (void)
void UnloadParticleImages (void)
void CloseGlWindow (void)
void SetTitleBarMessage (long percent, BOOL update)
void UpdateNTTrace (long line)
void AddToRenderImagePreview (long index, long xmax, long ymax, fullscreenbuffer *F, unsigned char *R, unsigned char *G, unsigned char *B)
char * R_GetEnv (char const *aa)
int APIENTRY WinMain (HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow)

Variables

FILE * debug = NULL
 A file to record debug messages can be opened using this variable.
unsigned long * colorstats0
unsigned short * colorstats1
char gszHomeDir [MAX_DIR]
HINSTANCE hThisInstance = NULL
HWND hWndOpenGL = NULL
char TempPath [MAX_DIR]
long renderer_NT_abort_flag
int Nprocessors
int Nthreads
CRITICAL_SECTION g_CriticalSection
char IniFilename []


Define Documentation

#define MAX_DIR   255

Definition at line 62 of file WINMAIN.C.

#define MAX_FILE   255

Definition at line 63 of file WINMAIN.C.

#define NOCOLOUR   32768L

Definition at line 64 of file WINMAIN.C.

#define FAIL   0

Definition at line 1126 of file WINMAIN.C.

#define OK   1

Definition at line 1127 of file WINMAIN.C.

#define BITMAPSIZE   320

Definition at line 1131 of file WINMAIN.C.

#define PALVERSION   0x300

Definition at line 1133 of file WINMAIN.C.

#define D_BORDER   4

Definition at line 1725 of file WINMAIN.C.

#define WM_RSF_GETSTATUS   (WM_USER + 100)

Definition at line 1726 of file WINMAIN.C.


Typedef Documentation

typedef struct SCREENBUFFER fullscreenbuffer

typedef struct tag_dlghdr DLGHDR


Function Documentation

void UpdateNTFrame ( long  f,
long  s 
)

LRESULT CALLBACK RendererMainWndProc ( HWND  hwnd,
UINT  msg,
WPARAM  wparam,
LPARAM  lparam 
)

void RenderYield ( void   ) 

void WindowedRenderMessage ( int  message  ) 

void WindowedRenderString ( char *  str  ) 

void WindowedRenderInfo ( char *  str  ) 

int ConfirmNTabort ( void   ) 

int GetRenderNTnewfile ( char *  name,
char *  rep_name 
)

HINSTANCE __cdecl ResourceX ( void   ) 

Definition at line 33 of file ANI_RES.C.

References hInstance.

Referenced by WinMain().

void SetTitleBarMessage ( long  percent,
BOOL  update 
)

Definition at line 290 of file WINMAIN.C.

References FALSE, hThisInstance, IDX_MISC_WINDOWTITLE, and TRUE.

Referenced by RendererMainWndProc(), and UpdateNTTrace().

void UpdateNTTrace ( long  line  ) 

int APIENTRY WinMain ( HINSTANCE  hInstance,
HINSTANCE  hPrevInstance,
LPSTR  lpCmdLine,
int  nCmdShow 
)


Variable Documentation

FILE* debug = NULL

A file to record debug messages can be opened using this variable.

Definition at line 174 of file WINMAIN.C.

unsigned long* colorstats0

Definition at line 175 of file WINMAIN.C.

Referenced by _BuildAvi(), _BuildGif(), render(), and SortColours().

unsigned short* colorstats1

Definition at line 176 of file WINMAIN.C.

Referenced by _BuildAvi(), _BuildGif(), getcolor(), and SortColours().

char gszHomeDir[MAX_DIR]

Definition at line 177 of file WINMAIN.C.

HINSTANCE hThisInstance = NULL

HWND hWndOpenGL = NULL

Definition at line 179 of file WINMAIN.C.

Referenced by render(), and RendererMainWndProc().

char TempPath[MAX_DIR]

Definition at line 24 of file RENDER.C.

Referenced by R_terminator(), RendererMainWndProc(), and RenderHide().

int Nthreads

CRITICAL_SECTION g_CriticalSection

Definition at line 1121 of file WINMAIN.C.

char IniFilename[]

Definition at line 61 of file VIEWER.C.


Generated on Sun Apr 27 14:20:17 2014 for OpenFX by  doxygen 1.5.6