#include <OrthographicCamera.h>
Inheritance diagram for OrthographicCamera:
Public Member Functions | |
OrthographicCamera (int left=0, int right=1, int bottom=0, int top=1, int x=0, int y=0, int width=1, int height=1) | |
void | getLocalWorldCoordinates (int &x, int &y) |
void | startCamera () |
void | startCamera (int x, int y, int width, int height) |
void | stopCamera () |
left | plane | |
right | plane | |
bottom | plane | |
top | plane | |
x | postion of the lower left corner of the projection rectangle | |
y | postion of the lower left corner of the projection rectangle | |
width | of the projection rectangle | |
height | of the projection rectangle |
|
|
|
Compute the position of x and y on the orthographic space. This method is useful to compute the mouse postion in the world coordinates.
|
|
Enter the orthographic projection with the current bounds of the space defined by left, right, bottom and top plane at the given screen coordinate x,y,width, height. |
|
Enter the orthographic projection with the current bounds of the space defined by left, right, bottom and top plane. at the current defined screen coordinate x,y,width, height. starting the camera also push the GL_VIEWPORT bit to the stack. |
|
Reset the projection pops the last matrix from the stack. |