HRESULT InitApp() { /// 카메라 행렬설정 SetupCamera(); CreateFont(); InitFPS(); SetDefaultStates(); return S_OK; }
void Editor_Load() { InitFPS(); InitDisplay(); trap->RegisterCvarInt("cg_drawfps", "Draw FPS ingame?", 0, 1); eCurMode = EMODE_TILES; hotkeyDisplay = trap->RegisterStaticMenu("ui/editorhotkeys.html"); }
long GPUopen(unsigned long * disp, char * CapText, char * CfgFile) { ReadConfig(); // read registry InitFPS(); bIsFirstFrame = TRUE; // we have to init later bDoVSyncUpdate = TRUE; ulInitDisplay(); // setup x return 0; }
long GPUopen(unsigned long * disp,char * CapText,char * CfgFile) { unsigned long d; SetFixes(); InitFPS(); bDoVSyncUpdate = TRUE; d=ulInitDisplay(); // setup x if(disp) *disp=d; // wanna x pointer? ok if(d) return 0; return -1; }