Programming/openGL2011. 3. 28. 22:42
freeGLUT가 아닌 이상에는
역시나 GLUT에는 마우스 콜백중 휠관련은 없는건가..

[링크 : http://www.opengl.org/resources/libraries/glut/spec3/node45.html]
    [링크 : http://www.opengl.org/resources/libraries/glut/spec3/node49.html] << 키 입력
    [링크 : http://www.opengl.org/resources/libraries/glut/spec3/node50.html] << 마우스 입력
   [링크 : http://www.opengl.org/resources/libraries/glut/spec3/node54.html] << F1 와 같은 펑션키

glutKeyboardFunc(void (*func)(unsigned char key, int x, int y))
    sets key processing routine
    x and y are mouse coordinates when the key 'key' was pressed
    see glutGetModifiers for state of modifier keys (eg. ctrl,...)

glutSpecialFunc(void (*func)(int key, int x, int y));
 
glutMouseFunc(void (*func)(int button, int state, int x, int y))
    mouse function callback
    button: GLUT_LEFT_BUTTON, GLUT_MIDDLE_BUTTON, GLUT_RIGHT_BUTTON
    state: GLUT_UP, GLUT_DOWN
    x, y: mouse coordinates 
 
[링크 : http://www.cosc.brocku.ca/Offerings/3P98/course/lectures/OpenGL/glut_ref.html]

----
2011.09.29 추가
휠 관련 freeglut 콜백
glutMouseWheelFunc(void( *callback )( int wheel, int direction, int x, int y ));

[링크 : http://linux.die.net/man/3/glutmousewheelfunc

'Programming > openGL' 카테고리의 다른 글

glFrustum - 절두체  (6) 2011.03.30
openGL tutorial - 태양과 지구 돌리기  (0) 2011.03.29
freeglut  (0) 2011.03.26
openGL - glbegin()  (2) 2011.03.25
openGL - glortho()  (4) 2011.03.25
Posted by 구차니
Programming/openGL2011. 3. 15. 23:21
"opengl.dll을 찾을 수 없으므로 응용 프로그램을 시작하지 못했습니다."
라는 에러가 발생하면 윈도우에서는 아래와 같이 glut.lib를 링크했을 경우이다.
glut.lib / glut.dll 은 sgi 용이라서 윈도우에서 하려면
glut32.lib / glut32.dll 을 링크해야 한다고 한다.



---
2011.03.16 추가
아마도 위에서는 opengl32.lib를 링킹해주지 않아서 발생한 에러로 추측된다.
자세한 링크 정보와 복사경로는 아래의 문서 참조
2011/03/16 - [Programming/openGL] - visual Studio에서 openGL 돌리기
---

[링크 : http://pcsupport.about.com/od/findbyerrormessage/a/opengl-dll-not-found-missing-error.htm]

'Programming > openGL' 카테고리의 다른 글

openGL - glortho()  (4) 2011.03.25
visual Studio에서 openGL 돌리기  (0) 2011.03.16
GLUT(openGL Utility Toolkit) 다운로드 (윈도우)  (0) 2011.03.15
openGL tutorial  (0) 2011.03.12
openGL, GLU, GLUT 관계  (4) 2011.03.07
Posted by 구차니
Programming/openGL2011. 3. 15. 23:01
필요한 녀석은 glutdll3x.zip 하나이다.
GL/gl.h 나 GL/glu.h 는 OS에 포함되어 있거나 그래픽 카드 벤더에서 제공을 하고 있으므로
그리 신경을 안써도 된다는데, Visual Studio 2008의 경우
C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\gl 경로에 기본적으로 포함을 하고 있다.

그리고
glut.h는 C:\Program Files\Microsoft Visual Studio 9.0\VC\include\GL이나
            C:\Program Files\Microsoft SDKs\Windows\v6.0A\Include\gl
glut.lib는 C:\Program Files\Microsoft Visual Studio 9.0\VC\lib 에 복사한다.

[링크: http://www.opengl.org/resources/libraries/glut/glut_downloads.php#windows]
    [링크 : http://www.opengl.org/resources/libraries/glut/glut36.zip]  
    [링크 : http://www.opengl.org/resources/libraries/glut/glutdlls36.zip] << 다운로드
    [링크 : http://www.opengl.org/resources/libraries/glut/glut36data.zip]

    [링크 : http://www.opengl.org/resources/libraries/glut/glut37.zip]
    [링크 : http://www.opengl.org/resources/libraries/glut/glut37data.zip] << 다운로드
    [링크 : http://www.opengl.org/resources/libraries/glut/glutdlls37beta.zip]

'Programming > openGL' 카테고리의 다른 글

visual Studio에서 openGL 돌리기  (0) 2011.03.16
윈도우에서 opengl.dll을 찾을 수 없다고 할 경우  (0) 2011.03.15
openGL tutorial  (0) 2011.03.12
openGL, GLU, GLUT 관계  (4) 2011.03.07
openGL - GLUT  (0) 2010.08.26
Posted by 구차니
Programming/openGL2011. 3. 7. 09:57
문서를 찾아봐도 딱히 연관관계에 관한 내용이 없어서 대충 끄적끄적 정리 -_-


openGL은 렌더링에 관련된 라이브러리로 내부에 정해진 쉐이더가 존재한다.(라고 하는데 알리가 없잖아 -_-)
이러한 쉐이더를 제어할 수 있는 녀석이 GLSL(Graphic Library Shader Language)이고
이를 편하게 하기 위해 만들어 진것이 GLEW(GL extension Wrangler Library) 이다.

그리고 openGL에 그리거나 조작을 할 수 있는 함수가
GLU(GL Utility library) 이고, GLU/GL에는 키보드나 마우스 등의 입력에 관한 처리가 없으므로
이를 처리해서 통합적으로 관리해주는 것이 GLUT(GL Utility Toolkit) 이다.

아무튼 GLUT의 경우에는 OS에 따른 플랫폼을 포함하므로 openGL과 GLUT사이에는
GLX(GL extension for unix/Linux Xwindow) 혹은 WGL(GL extension for Microsoft Windows)가 존재할 듯?
XGL은 GLX를 지원하는 Xserver라고 한다.



'Programming > openGL' 카테고리의 다른 글

GLUT(openGL Utility Toolkit) 다운로드 (윈도우)  (0) 2011.03.15
openGL tutorial  (0) 2011.03.12
openGL - GLUT  (0) 2010.08.26
glBegin() / glEnd()  (3) 2010.08.23
openGL 문서들  (0) 2010.08.22
Posted by 구차니
Programming/openGL2010. 8. 26. 15:34
GLUT는 openGL Utility Toolkit 의 약자이다.

원래는 openGL에서 글씨를 쓰는 예제를 찾으려 했는데,
찾다보니 openGL 에서 순수하게 그리는 건,

glBitmap()으로 폰트 이미지를 넘기는 식으로 밖에 없었고
glBitmapCharater() 라는 것은 GLUT에서 지원한다고 되어 있었다.
[링크 : http://www.videotutorialsrock.com/opengl_tutorial/draw_text/home.php]
[링크 : http://www.opengl.org/documentation/specs/glut/]
    [링크 : http://www.opengl.org/documentation/specs/glut/spec3/spec3.html]
    [링크 : http://www.opengl.org/resources/libraries/glut/spec3/spec3.html]
[링크 : http://www.xmission.com/~nate/glut.html]

glFontTextOut() 이라는 녀석도 발견했는데, GLUT 처럼 별도의 helper API로 생각된다.
[링크 : http://www.daniweb.com/forums/thread29134.html]
    [링크 : http://students.cs.byu.edu/~bfish/glfontdl.php]



하아.. openGL 개발환경은 왜이리 잡아놓기가 귀찮지 -ㅁ-

'Programming > openGL' 카테고리의 다른 글

openGL tutorial  (0) 2011.03.12
openGL, GLU, GLUT 관계  (4) 2011.03.07
glBegin() / glEnd()  (3) 2010.08.23
openGL 문서들  (0) 2010.08.22
openGL  (4) 2010.08.18
Posted by 구차니