Monday, August 24, 2009

"ARGHHHHH!!!!"

arghhh!!! ni la ungkapan hati dan mindaku pada petang puasa ke 3 ni. huhuhu... ditambah kan lagi ngn perutku yang membunyikan irama syahdunya, adudu.... tak indah kurasa. kenapa aku menjerit pada petang yang panas ini?

kukira kamu akan paham setelah melihat dibawah ini.

// OpenGLProjectionExample.cpp : Defines the entry point for the application.
//

#define WIN32_LEAN_AND_MEAN

#pragma comment(lib, "opengl32.lib")
#pragma comment(lib, "glu32.lib")
#pragma comment(lib, "glaux.lib")
#pragma comment(linker, "/subsystem:windows")

//#include "stdafx.h"
#include // standard Windows app include
#include // Windows constants
#include // standard OpenGL include
#include // OpenGL utilties
#include // OpenGL utilties

#define WND_CLASS_NAME "OpenGL Window Class"


/*************************** Constants and Macros ***************************/
const int SCREEN_WIDTH = 500;
const int SCREEN_HEIGHT = 500;
const int SCREEN_BPP = 32;
const bool USE_FULLSCREEN = false;
const char *APP_TITLE = "Projections";


/********************************* Globals **********************************/
HDC g_hdc; // global device context
HGLRC g_hrc; // global rendering context
BOOL g_isFullscreen = TRUE; // toggles fullscreen and windowed display
BOOL g_isActive = TRUE; // false if window is minimized
HWND g_hwnd = NULL; // handle of our window
HINSTANCE g_hInstance; // application instance


/******************************** Prototypes ********************************/
LRESULT CALLBACK WndProc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam);

BOOL SetupWindow(const char *title, int width, int height, int bits, bool isFullscreen);
BOOL KillWindow();

GLvoid ResizeScene(GLsizei width, GLsizei height);
BOOL InitializeScene();
BOOL DisplayScene();
BOOL Cleanup();

void UpdateProjection(GLboolean toggle = GL_FALSE);


/*****************************************************************************
WinMain()



and bla.... bla... bla...

inilah sebahagian koding yang harus ku pelajari dan faham. huhuhu... graphic programming. huh.. sepa2 yang pakar dalam graphic programming ni tolong ajar aku? betul2 minta pertolongan ni. huhuhu....

No comments: