본문 바로가기
728x90
반응형

sh6.h3

기본적인 Opengl 프로그램 만들기 모든 Opengl 함수는 gl 로 시작한다. #include class simpleclear_app : public sb6::application { void init() { static const char title[] = "Simple Clear"; sb6::application::init(); memcpy(info.title, title, sizeof(title)); } virtual void render(double currentTime) { static const GLfloat red[] = { 1.0f, 0.0f, 0.0f, 1.0f }; glClearBufferfv(GL_COLOR, 0, red); } }; DECLARE_MAIN(simpleclear_app) ㅇ 해당 함수의 일부 인자타입을.. 2020. 11. 18.
OpenGl sh6.h 환경설정 하는법 Opengl super bible 개정 6판을 보면 코드 내용은 있는데 환경설정법이 없다... 이 불친절한 책이란.. 그래서 구글링하여 install 했다. 일단 한빛미디어 opengl super bible에는 예제 source를 다운받자. E:\download\source\sb6code-master\extern\glfw-2.7.6\support\msvc100 을 실행하자 ! visual studio 2010 초과 버전을 설치하면 소스 업데이트를 할거냐고 물어보는데 업데이트를 해주자 그후 GLFW.sln을 실행한뒤 GLFW 오른쪽클릭후 속성에 들어가자 그후 아래와 같이 설정을 해주자 그리고 여기서 중요한것은 Configuration을 release와 debug 둘다 해주길 바란다. 설정이 끝났으면 아래와.. 2020. 11. 18.
opengl 개발 환경 만들기 준비물 visual studio 2019 glfw 라이브러리 www.glfw.org/download.html GLFW - Download These packages contain the GLFW header files, documentation and release mode static libraries, DLLs and import libraries for Visual C++ 2010-2019, MinGW-w64 and plain MinGW. Binaries for Visual C++ 2010 and plain MinGW are only available in the 32-bit pack www.glfw.org glfw 64bit windows binaris 를 인스톨하자. 설치후 압축을 풀면 위 사진.. 2020. 11. 18.
728x90
반응형