015
11.12.2004, 14:20 Uhr
FloSoft
Medialer Over-Flow (Administrator)
|
ist auch schwachsinn was du da machst
C++: |
int WINAPI WinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { MSG msg; BOOL done=FALSE; MessageBox(NULL, "Tastatureingaben:\n ESC - Verlassen\n F1 - Vollbild\n", "Information", MB_OK|MB_ICONINFORMATION); if (MessageBox(NULL,"Would You Like To Run In Fullscreen Mode?", "Start FullScreen?",MB_YESNO|MB_ICONQUESTION)==IDNO) { fullscreen=FALSE; } if (!CreateGLWindow("CaesarCortezz' OpenGL Prog",640,480,16,fullscreen)) { return 0; } SetTimer(hWnd, 1, 1000, NULL); // ...
|
C++: |
LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) { switch(uMsg) { // ... case WM_TIMER: { fps = fpscounter; fpscounter = 0; } break; // ... } }
|
C++: |
int DrawGLScene(GLvoid) { fpscounter++;
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT); glLoadIdentity(); glTranslatef(0.0f,0.0f,-6.0f); glColor3f(1.3f,1.3f,0.0f); glRasterPos2f(-0.5f,0.0f); glPrint("fps: %1.0f", fps); return TRUE; }
|
-- class God : public ChuckNorris { }; |