X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2F3d%2Fview.h;h=5e954a737da05baf07bd9ff963c0224b26345185;hb=708a7e00bf24e3abc08f96ba1cef0ce246a8c0e1;hp=f3e359c2b9524108b1f566a9e19ffc1ad0e31c92;hpb=d15ac13f2e170f155b4bbd124df48400c339b644;p=r2c2.git diff --git a/source/3d/view.h b/source/3d/view.h index f3e359c..5e954a7 100644 --- a/source/3d/view.h +++ b/source/3d/view.h @@ -12,6 +12,8 @@ class View3D { protected: Layout3D &layout; + unsigned width; + unsigned height; Msp::GL::Camera camera; Msp::GL::Pipeline pipeline; @@ -22,6 +24,9 @@ public: Msp::GL::Camera &get_camera() { return camera; } Msp::GL::Pipeline &get_pipeline() { return pipeline; } + Ray create_ray(int, int) const; + Ray create_ray(float, float) const; + void view_all(bool = false); void render();