]> git.tdb.fi Git - r2c2.git/blobdiff - source/3d/view.h
View3D::create_ray should be const
[r2c2.git] / source / 3d / view.h
index f18f0a1f6a8bc95201f5dd9fbbcef339b09cc4ce..5e954a737da05baf07bd9ff963c0224b26345185 100644 (file)
@@ -1,10 +1,3 @@
-/* $Id$
-
-This file is part of R²C²
-Copyright © 2011 Mikkosoft Productions, Mikko Rasa
-Distributed under the GPL
-*/
-
 #ifndef R2C2_3D_VIEW_H_
 #define R2C2_3D_VIEW_H_
 
@@ -19,6 +12,8 @@ class View3D
 {
 protected:
        Layout3D &layout;
+       unsigned width;
+       unsigned height;
        Msp::GL::Camera camera;
        Msp::GL::Pipeline pipeline;
 
@@ -29,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();