Compiles on dolphin, finally
This commit is contained in:
@@ -57,10 +57,10 @@ void cameraPushMatrix(camera_t *camera) {
|
||||
case CAMERA_PROJECTION_TYPE_ORTHOGRAPHIC:
|
||||
guOrtho(
|
||||
guProjection,
|
||||
camera->orthographic.top,
|
||||
camera->orthographic.bottom,
|
||||
camera->orthographic.left,
|
||||
camera->orthographic.right,
|
||||
camera->orthographic.bottom,
|
||||
camera->orthographic.top,
|
||||
camera->nearClip,
|
||||
camera->farClip
|
||||
);
|
||||
@@ -115,16 +115,9 @@ void cameraPushMatrix(camera_t *camera) {
|
||||
break;
|
||||
|
||||
case CAMERA_VIEW_TYPE_2D:
|
||||
guOrtho(
|
||||
guProjection,
|
||||
camera->orthographic.top,
|
||||
camera->orthographic.bottom,
|
||||
camera->orthographic.left,
|
||||
camera->orthographic.right,
|
||||
camera->nearClip,
|
||||
camera->farClip
|
||||
);
|
||||
assertUnreachable("2D camera not implemented");
|
||||
guMtxIdentity(guView);
|
||||
guMtxTrans(guView, -camera->_2d.position[0], -camera->_2d.position[1], 0.0f);
|
||||
guMtxScale(guView, camera->_2d.zoom, camera->_2d.zoom, 1.0f);
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user