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 [] |
typedef struct SCREENBUFFER fullscreenbuffer |
typedef struct tag_dlghdr DLGHDR |
void UpdateNTFrame | ( | long | f, | |
long | s | |||
) |
LRESULT CALLBACK RendererMainWndProc | ( | HWND | hwnd, | |
UINT | msg, | |||
WPARAM | wparam, | |||
LPARAM | lparam | |||
) |
Definition at line 664 of file WINMAIN.C.
References ABOUT_VERSION, CheckGPUhardware(), CloseGlWindow(), DLG_PREFERENCES, DLG_TAB, FALSE, FileInPath(), gszHomeDir, hThisInstance, hWndOpenGL, IDC_FRAMESET, IDM_CALLBACK_ASCRIPT, IDM_CALLBACK_CANCEL, IDM_CALLBACK_FSCRIPT, IDM_CALLBACK_HIDDENLINE, IDM_CALLBACK_RUN, IDM_CALLBACK_SETUP, IDM_CALLBACK_SETUP_ANIMATOR, IDM_CALLBACK_SETUP_MODELLER, IDM_CALLBACK_SETUP_PREVIEW, IDM_CALLBACK_SHUTDOWN, IDX_MISC_ABOUTRENDERERBIG, IDX_MISC_BUILDFINISHED, IDX_MISC_CLOSE, IDX_MISC_PRETERMINATED, IDX_MISC_SETUPERROR, IDX_MISC_STOP, L, LoadParticleImages(), MENU_FILE_ABORT, MENU_FILE_ABOUT, MENU_FILE_EXIT, MENU_FILE_RENDER, MENU_FILE_RENDER1, MENU_FILE_RENDERN, MENU_FILE_SCRIPT, MENU_FILE_START, MENU_FILE_STOP, MM_SETPARTSCOMPLETE, MM_SETPARTSINJOB, RD_CONTROL_RENDERGL, RD_UPDATE, RD_UPDATE_STOP, RD_UPDATEX, render(), renderer_NT_abort_flag, SelectFileName, SetTitleBarMessage(), SetUpGlWindow(), SYSMENU_ABOUT, SYSMENU_PPREFS_LOAD, SYSMENU_PPREFS_SAVE, SYSMENU_PREFS, SYSMENU_SCRIPT, TRUE, UnloadParticleImages(), WindowedRenderMessage(), WindowedRenderString(), WM_CALLBACK_ABANDON, WM_CALLBACK_MATERIAL, WRM_LOADING, WRM_OPENSCRIPT, WRM_WRITINGSCRIPT, X__Free, and X__Malloc.
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 | ) |
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 | ) |
Definition at line 351 of file WINMAIN.C.
References FALSE, MM_SETPARTSCOMPLETE, RenderYield(), and SetTitleBarMessage().
Referenced by FastAntiAliasRenderMultiThreaded(), and RenderMultiThreaded().
int APIENTRY WinMain | ( | HINSTANCE | hInstance, | |
HINSTANCE | hPrevInstance, | |||
LPSTR | lpCmdLine, | |||
int | nCmdShow | |||
) |
Definition at line 2859 of file WINMAIN.C.
References ActivatePreferences(), ANIMATOR_ACCEL, ANIMATOR_MENU, AnimatorShutdown(), AnimatorStartup(), AnimatorTriViewWndProc(), AnimatorViewWndProc(), CreateAppPalette(), debug, DisengageTool(), EnableGLview(), FALSE, FileInPath(), gCurCommand, gCurSelect, gCurTool, ghbm_triview, ghbm_view, ghdc_triview_Bitmap, ghdc_view_Bitmap, ghinst_main, ghpaletteScreen, ghwnd_main, ghwndCoord1, ghwndDlgTools, ghwndOpenGLview, ghwndTimeline, hLibSpin, IDM_FILE_KEYFRAMER, IDM_FILE_LOAD_DIRECT, IDQ_FAILEDACCELS, IDQ_FAILEDSPIN, IDQ_FAILEDTIDE, IDQ_FATALERROR, IniFilename, IniSection, j_buf, LoadArrowIcons(), LoadPreferences(), LogOnMessage(), MainAnimatorWndProc(), Nprocessors, opengl_visible, QuicktimeWndProc(), R_GetEnv(), RegisterNoAlphaWndClass(), ResourceX(), ruler_name, SendPrgmQuery(), SetupMainWindow(), StartedInAnimator, StartGLview(), szMainClass, szQuicktimeClass, szToolboxClass, szToolBtnClass, szTriViewClass, szViewClass, TempPath, ToolboxWndProc(), ToolBtnWndProc(), and TRUE.
FILE* debug = NULL |
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] |
HINSTANCE hThisInstance = NULL |
Definition at line 178 of file WINMAIN.C.
Referenced by _ATMbuilder(), _BezierModeler(), _Export(), _HeightField(), _TTFbuilder(), _Xmodeler(), ConfirmNTabort(), DllMain(), Render_Message(), RendererMainWndProc(), SetTitleBarMessage(), and WindowedRenderMessage().
HWND hWndOpenGL = NULL |
char TempPath[MAX_DIR] |
Definition at line 180 of file WINMAIN.C.
Referenced by _AttachViewOpenGL(), _PrgmLogon(), AnimatorStartup(), DeleteRamFile(), DisplayImageFromStore(), Empty_Undo(), EraseAll(), EraseTempImageFiles(), LoadMeshObject(), LoadXmodel(), MakeFullMemoryImage(), MakeScript(), PackAnimationFile(), Render_View(), ReplaceObjectFile(), Restore_Undo(), Save_Undo(), SaveRamImagesFromAllMaps(), SaveRamImagesToFiles(), ScrapEverything(), ShatterEffect(), WinMain(), and WriteTemporaryFileForScript().
Definition at line 24 of file RENDER.C.
Referenced by R_terminator(), RendererMainWndProc(), and RenderHide().
int Nprocessors |
int Nthreads |
CRITICAL_SECTION g_CriticalSection |
char IniFilename[] |