X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcamera.cpp;fp=source%2Fcamera.cpp;h=3bba0eaf38e00385e68a077474095a980a10f340;hp=b3cedbc62ad628813b5eee552302a2151ea586c1;hb=a40fc85277dba5c34402a0e703d038efd30cc57b;hpb=2fa1bb084e54af7134b44d3ee7512056e28de67e diff --git a/source/camera.cpp b/source/camera.cpp index b3cedbc6..3bba0eaf 100644 --- a/source/camera.cpp +++ b/source/camera.cpp @@ -116,12 +116,6 @@ Vector3 Camera::unproject(const Vector3 &p) const return unproject(Vector4(p.x, p.y, p.z, 1.0f)).slice<3>(0); } -void Camera::apply() const -{ - MatrixStack::projection() = proj_matrix; - MatrixStack::modelview() = view_matrix; -} - void Camera::update_projection_matrix() { float frustum_h = (fov!=Geometry::Angle::zero() ? tan(fov/2.0f)*clip_near : height/2);