본문내용
#include // Header File For Windows
#include // Header File For The OpenGL32 Library
#include // Header File For The GLu32 Library
#include // Header File For The Glaux Library
#include
HDC hDC=NULL; // Private GDI Device Context
HGLRC hRC=NULL; // Permanent Rendering Context
HWND hWnd=NULL; // Holds Our Window Handle
HINSTANCE hInstance; // Holds The Instance Of The Application
BOOL keys[256]; // Array Used For The Keyboard Routine
BOOL active=TRUE; // Window Active Flag Set To TRUE By Default
BOOL fullscreen=TRUE; // Fullscreen Flag Set To Fullscreen Mode By Default
BOOL RButtonPressed=FALSE;
BOOL LButtonPressed=FALSE;
GLuint box; // Storage For The Box Display List
// 문자 출력 기능 뺌 (소스엔 구현)
GLfloat xrot = 15.0f, yrot = 60.0f;
GLfloat xr1 = 0.0f, xr2 = 0.0f, xr3 = 0.0f;
GLfloat yr1 = 0.0f, yr2 = 0.0f, yr3 = 0.0f;
GLfloat zr1 = 0.0f, zr2 = 0.0f, zr3 = 0.0f;
int prevX, prevY;
int block[27];
//회전 방향에 따른 상태변화표
//0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23
int xpositive[24] = { 7, 4, 5, 6, 9, 8,11,10,15,12,13,14, 1, 0, 3, 2,17,18,19,16,23,20,21,22}; // 아래로 회전
#include
#include
#include
#include
HDC hDC=NULL; // Private GDI Device Context
HGLRC hRC=NULL; // Permanent Rendering Context
HWND hWnd=NULL; // Holds Our Window Handle
HINSTANCE hInstance; // Holds The Instance Of The Application
BOOL keys[256]; // Array Used For The Keyboard Routine
BOOL active=TRUE; // Window Active Flag Set To TRUE By Default
BOOL fullscreen=TRUE; // Fullscreen Flag Set To Fullscreen Mode By Default
BOOL RButtonPressed=FALSE;
BOOL LButtonPressed=FALSE;
GLuint box; // Storage For The Box Display List
// 문자 출력 기능 뺌 (소스엔 구현)
GLfloat xrot = 15.0f, yrot = 60.0f;
GLfloat xr1 = 0.0f, xr2 = 0.0f, xr3 = 0.0f;
GLfloat yr1 = 0.0f, yr2 = 0.0f, yr3 = 0.0f;
GLfloat zr1 = 0.0f, zr2 = 0.0f, zr3 = 0.0f;
int prevX, prevY;
int block[27];
//회전 방향에 따른 상태변화표
//0, 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16,17,18,19,20,21,22,23
int xpositive[24] = { 7, 4, 5, 6, 9, 8,11,10,15,12,13,14, 1, 0, 3, 2,17,18,19,16,23,20,21,22}; // 아래로 회전