Testing SDL support
This commit is contained in:
@ -24,15 +24,15 @@ void cameraLook(camera_t *camera,
|
||||
}
|
||||
|
||||
void cameraPerspective(camera_t *camera,
|
||||
float fov, float aspect, float near, float far
|
||||
float fov, float aspect, float camNear, float camFar
|
||||
) {
|
||||
matrixIdentity(&camera->projection);
|
||||
matrixPerspective(&camera->projection, mathDeg2Rad(fov), aspect, near, far);
|
||||
matrixPerspective(&camera->projection,mathDeg2Rad(fov),aspect,camNear,camFar);
|
||||
}
|
||||
|
||||
void cameraOrtho(camera_t *camera,
|
||||
float left, float right, float bottom, float top, float near, float far
|
||||
float left, float right, float bottom, float top, float camNear, float camFar
|
||||
) {
|
||||
matrixIdentity(&camera->projection);
|
||||
matrixOrtho(&camera->projection, left, right, bottom, top, near, far);
|
||||
matrixOrtho(&camera->projection, left, right, bottom, top, camNear, camFar);
|
||||
}
|
Reference in New Issue
Block a user