일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- 데이터전처리
- 방향변경
- 빅데이터분석기사후기
- 애니메이션
- 너무오래됐다
- 청청구역
- 갈자신이없다
- 색상변경
- 마우스클릭
- 호주
- 파이썬
- 언제또가보지
- 오류
- 예쁜곳
- selenium
- 유니코드 제거
- 필기후기
- 크롤링
- OpenGL
- 정말
- 빅데이터분석기사필기
- 보라카이
- 가고싶은데
- 멜버른
- 사각형변형
- BeautifulSoup
- 빅데이터분석기사
- Today
- Total
목록👩💻/OpenGL (15)
wisdiom 아니고 wisdom
#include #include #include void DrawSecne(); void Reshape(int w, int h); void TimerFunction(int value); void Keyboard(unsigned char key, int x, int y); bool isSquare = false; bool isMove = false; float angleZ = 0; float sizeX = 1.0; float sizeY = 1.0; static int fps = 500; int w, h; int main() { glutInitDisplayMode(GLUT_DOUBLE | GLUT_RGBA); glutInitWindowPosition(100, 100); glutInitWindowS..
#include #include #include #include #define PI 3.14 float angleX = 0; float angleY = 0; float angleZ = 0; float scaleX = 0; float scaleY = 0; float transX = 0; float aniX = 0; float aniY = 0; float direction = 1; // 오른쪽이라 가정 int startX = 0; int startY = 0; int startZ = 0; int startAni = 0; GLvoid Reshape(int w, int h) { glViewport(0, 0, w, h); glMatrixMode(GL_PROJECTION); glLoadIdentity(); //g..
#include #include #include #include #include #define PI 3.14 //#define _cos( angle ) cos ( PI * angle / 180. ) //#define _sin( angle ) sin ( PI * angle / 180. ) GLvoid selectdraw(GLvoid); GLvoid drawScene(GLvoid); GLvoid Reshape(int w, int h); GLvoid Mouse(int button, int state, int x, int y); GLvoid Keyboard(int key, int x, int y); void Timerfunction(int value); void MenuFunc(int); const int ..
#include #include GLvoid drawScene(GLvoid); GLvoid Reshape(int w, int h); void Mouse(int button, int state, int x, int y); void Timerfunction(int value); const int fps = 100; const int Maxsqcount = 11; int count = 0; typedef struct sq { int x = -100; // 초기값 설정 int y = -100; bool lie = false; // 누웠니 }; struct sq sq[11] = { }; void main(int argc, char *argv[]) { //초기화 함수들 glutInitDisplayMode..
#include #include #include GLvoid drawScene(GLvoid); GLvoid Reshape(int w, int h); void main() { srand((unsigned)time(NULL)); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGBA); glutInitWindowPosition(100, 100); glutInitWindowSize(800, 600); glutCreateWindow("Example2"); glutDisplayFunc(drawScene); glutReshapeFunc(Reshape); glutMainLoop(); } GLvoid drawScene(GLvoid) { int width, height; int count = 0;..
#include #include #include GLvoid drawScene(GLvoid); GLvoid Reshape(int w, int h); void main() { srand((unsigned)time(NULL)); glutInitDisplayMode(GLUT_SINGLE | GLUT_RGBA); glutInitWindowPosition(100, 100); glutInitWindowSize(800, 800); glutCreateWindow("Example2"); glutDisplayFunc(drawScene); glutReshapeFunc(Reshape); glutMainLoop(); } GLvoid drawScene(GLvoid) { int num = rand() % 6 + 3; i..
#include GLvoid drawScene(GLvoid); GLvoid reshape(int, int); void main() { glutInitDisplayMode(GLUT_SINGLE | GLUT_RGBA); // 디스플레이 모드 설정 glutInitWindowPosition(100, 100); // 윈도우의 위치 지정 glutInitWindowSize(800, 600); // 윈도우의 크기 지정 glutCreateWindow("Example1"); //윈도우 생성(이름) glutDisplayFunc(drawScene); // 출력 함수의 지정 glutReshapeFunc(reshape); // 다시 그리기 함수 지정 glutMainLoop(); // 이벤트 처리 시작 } GLvoid draw..