]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/camera.h
Check the flat qualifier from the correct member
[libs/gl.git] / source / render / camera.h
index ed81a9511b3fcd9640fa4170f5adf28c23091a34..59a0ac2e62f677c4c356339a97f5c794515d7562 100644 (file)
@@ -57,10 +57,13 @@ private:
        Matrix view_matrix;
        Matrix proj_matrix;
        ProgramData shdata;
+       Vector4 frustum_planes[6];
 
 public:
        Camera();
 
+       void copy_parameters(const Camera &);
+
        /** Sets the camera projection to perspective, characterised by the vertical
        field of view.  Horizontal FoV is computed with the aspect ratio. */
        void set_field_of_view(const Geometry::Angle<float> &);
@@ -122,9 +125,12 @@ public:
        /** Returns a ProgramData object containing the camera matrices. */
        const ProgramData &get_shader_data() const { return shdata; }
 
+       bool is_in_frustum(const Renderable &) const;
+
 private:
        void update_projection_matrix();
        void update_object_matrix();
+       void update_frustum_planes();
 
 public:
        void set_debug_name(const std::string &);