summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
def47f5)
* added Javadoc style information on all functions
* rearranged content to be in better places
* added dummy switch statements for menu event handlers
* commented out currently unimplemented menus
* implemented window reshaping function
* created dummy mouse event function
* added more gl initialisation stuff
* added dummy teapot drawing for testing purposes
GLdouble far = 10.0;\r
\r
glViewport(0, 0, (GLsizei) w, (GLsizei) h);\r
GLdouble far = 10.0;\r
\r
glViewport(0, 0, (GLsizei) w, (GLsizei) h);\r
- glMatrixMode(GL_PROJECTION);\r
- glLoadIdentity();\r
- if (w <= h) \r
- glOrtho(near, far, near*(GLfloat)h/(GLfloat)w,\r
- far*(GLfloat)h/(GLfloat)w, near, far);\r
-\r
- else\r
- glOrtho(near*(GLfloat)w/(GLfloat)h,\r
- far*(GLfloat)w/(GLfloat)h, near, far, near, far);\r
+ glMatrixMode(GL_PROJECTION);\r
+ glLoadIdentity();\r
+ if (w <= h) \r
+ glOrtho(near, far, near*(GLfloat)h/(GLfloat)w,\r
+ far*(GLfloat)h/(GLfloat)w, near, far);\r
+ else\r
+ glOrtho(near*(GLfloat)w/(GLfloat)h,\r
+ far*(GLfloat)w/(GLfloat)h, near, far, near, far);\r
glMatrixMode(GL_MODELVIEW); \r
glLoadIdentity();\r
}\r
glMatrixMode(GL_MODELVIEW); \r
glLoadIdentity();\r
}\r