OpenGL und WXWidgets
-
Hi, habe ein sehr komisches Problem mit OpenGL und WXWidgets.
Habe ein Canvas erstellt und OpenGL wie volgt konfiguriert:
// set perspective
gluPerspective(45.0f,GLfloat(size.x/size.y),0.1f,100.0f);// select vieport
glViewport(0,0,(GLint)size.x,(GLint)size.y);// select the pojection matrix
glMatrixMode(GL_MODELVIEW);// reset the projection matrix
glLoadIdentity();// enable smooth shading
glShadeModel(GL_SMOOTH);// depth buffer setup
glClearDepth(1.0f);// enables depth testing
glEnable(GL_DEPTH_TEST);// type of depth testing setup
glDepthFunc(GL_LEQUAL);// perspective calculation setup
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);// set default clearcolor
glClearColor(0.0f, 0.0f, 0.0f, 0.0f);Das Problem ist, dass die Sichtweite des Canvas schlappe 3.0f ist. Wie erhöht man die sichtweite?
danke im voraus

mfg