8344 ortho2(f_left, f_right, f_bottom, f_top); |
8356 ortho2(f_left, f_right, f_bottom, f_top); |
8345 #endif |
8357 #endif |
8346 %} |
8358 %} |
8347 ! |
8359 ! |
8348 |
8360 |
8349 glxOrthoLeft: left right: right bottom: bottom top: top near: near far: far in: aGLXWindowId |
8361 glxOrthoLeft: left right: right bottom: bottom top: top near: znear far: zfar in: aGLXWindowId |
8350 "define orthogonal projection" |
8362 "define orthogonal projection" |
8351 |
8363 |
8352 %{ /* NOCONTEXT */ |
8364 %{ /* NOCONTEXT */ |
8353 float f_left, f_right, f_bottom, f_top, |
8365 float f_left, f_right, f_bottom, f_top, |
8354 f_near, f_far; |
8366 f_near, f_far; |
8355 |
8367 |
8356 _FLOAT_(left, f_left) |
8368 _FLOAT_(left, f_left) |
8357 _FLOAT_(right, f_right) |
8369 _FLOAT_(right, f_right) |
8358 _FLOAT_(bottom, f_bottom) |
8370 _FLOAT_(bottom, f_bottom) |
8359 _FLOAT_(top, f_top) |
8371 _FLOAT_(top, f_top) |
8360 _FLOAT_(near, f_near) |
8372 _FLOAT_(znear, f_near) |
8361 _FLOAT_(far, f_far) |
8373 _FLOAT_(zfar, f_far) |
8362 SETWIN(aGLXWindowId) |
8374 SETWIN(aGLXWindowId) |
8363 #ifdef OPENGL |
8375 #ifdef OPENGL |
8364 #else |
8376 #else |
8365 ortho(f_left, f_right, f_bottom, f_top, f_near, f_far); |
8377 ortho(f_left, f_right, f_bottom, f_top, f_near, f_far); |
8366 #endif |
8378 #endif |
8367 %} |
8379 %} |
8368 ! |
8380 ! |
8369 |
8381 |
8370 glxPerspectiveFovy:fovy aspect:aspect near:near far:far in:aGLXWindowId |
8382 glxPerspectiveFovy:fovy aspect:aspect near:znear far:zfar in:aGLXWindowId |
8371 "define perspective projection" |
8383 "define perspective projection" |
8372 |
8384 |
8373 %{ /* NOCONTEXT */ |
8385 %{ /* NOCONTEXT */ |
8374 |
8386 |
8375 Angle a_fovy; |
8387 Angle a_fovy; |
8376 Coord c_near, c_far; |
8388 Coord c_near, c_far; |
8377 float f_aspect; |
8389 float f_aspect; |
8378 |
8390 |
8379 _ANGLE_ (fovy, a_fovy) |
8391 _ANGLE_ (fovy, a_fovy) |
8380 _FLOAT_ (aspect, f_aspect) |
8392 _FLOAT_ (aspect, f_aspect) |
8381 _COORD_ (near, c_near) |
8393 _COORD_ (znear, c_near) |
8382 _COORD_ (far, c_far) |
8394 _COORD_ (zfar, c_far) |
8383 |
8395 |
8384 SETWIN(aGLXWindowId) |
8396 SETWIN(aGLXWindowId) |
8385 #ifdef OPENGL |
8397 #ifdef OPENGL |
8386 #else |
8398 #else |
8387 perspective(a_fovy, f_aspect, c_near, c_far); |
8399 perspective(a_fovy, f_aspect, c_near, c_far); |
8456 _screencoordVal(bottom), _screencoordVal(top)); |
8468 _screencoordVal(bottom), _screencoordVal(top)); |
8457 #endif |
8469 #endif |
8458 %} |
8470 %} |
8459 ! |
8471 ! |
8460 |
8472 |
8461 glxWindowLeft: left right: right bottom: bottom top: top near: near far: far in: aGLXWindowId |
8473 glxWindowLeft: left right: right bottom: bottom top: top near: znear far: zfar in: aGLXWindowId |
8462 "this one was added independently by JEFF - kept for his programs ..." |
8474 "this one was added independently by JEFF - kept for his programs ..." |
8463 |
8475 |
8464 self glxWindowLeft:left right:right top:top bottom:bottom near:near far:far in:aGLXWindowId |
8476 self glxWindowLeft:left right:right top:top bottom:bottom near:znear far:zfar in:aGLXWindowId |
8465 ! |
8477 ! |
8466 |
8478 |
8467 glxWindowLeft:left right:right top:top bottom:bottom near:near far:far in:aGLXWindowId |
8479 glxWindowLeft:left right:right top:top bottom:bottom near:znear far:zfar in:aGLXWindowId |
8468 "define perspective viewing pyramid" |
8480 "define perspective viewing pyramid" |
8469 |
8481 |
8470 %{ /* NOCONTEXT */ |
8482 %{ /* NOCONTEXT */ |
8471 Coord c_left, c_right, c_top, c_bot, c_near, c_far; |
8483 Coord c_left, c_right, c_top, c_bot, c_near, c_far; |
8472 |
8484 |
8473 _COORD_ (left, c_left) |
8485 _COORD_ (left, c_left) |
8474 _COORD_ (right, c_right) |
8486 _COORD_ (right, c_right) |
8475 _COORD_ (top, c_top) |
8487 _COORD_ (top, c_top) |
8476 _COORD_ (bottom, c_bot) |
8488 _COORD_ (bottom, c_bot) |
8477 _COORD_ (near, c_near) |
8489 _COORD_ (znear, c_near) |
8478 _COORD_ (far, c_far) |
8490 _COORD_ (zfar, c_far) |
8479 SETWIN(aGLXWindowId) |
8491 SETWIN(aGLXWindowId) |
8480 #ifdef OPENGL |
8492 #ifdef OPENGL |
8481 #else |
8493 #else |
8482 window(c_left, c_right, c_bot, c_top, c_near, c_far); |
8494 window(c_left, c_right, c_bot, c_top, c_near, c_far); |
8483 #endif |
8495 #endif |