22 #ifdef KJB_HAVE_OPENGL
23 #ifndef KJB_GR_CPP_GR_FRUSTUM
24 #define KJB_GR_CPP_GR_FRUSTUM
32 #include <boost/shared_ptr.hpp>
76 height_(image_height),
80 set_camera(center, cam);
83 void show_frame(
bool b)
88 void set_image_opacity(
double alpha)
95 assert(center.
size() >= 3 && center.
size() <= 4);
96 std::copy(center.
begin(), center.
begin() + 3, center_.begin());
107 image_.reset(
new kjb::opengl::Texture());
111 void set_near(
double near)
122 boost::shared_ptr<kjb::opengl::Texture> image_;
Definition for the Matrix class, a thin wrapper on the KJB Matrix struct and its related functionalit...
size_type size() const
Alias to get_length(). Required to comply with stl Container concept.
Definition: m_vector.h:510
Abstract class to render this object with GL.
Definition: gr_renderable.h:78
This class implements vectors, in the linear-algebra sense, with real-valued elements.
Definition: m_vector.h:87
Matrix matrix_inverse(const Matrix &op1)
Invert this matrix.
Definition: m_matrix.cpp:730
Abstract class to render this object with GL.
iterator begin()
Definition: m_vector.h:537
void render(const Cuboid &c)
Definition: psi_weighted_box.cpp:56
Matrix & resize(int new_rows, int new_cols, Value_type pad=Value_type(0))
Resize this matrix, retaining previous values. Space is reused if possible. Otherwise requires a new ...
Definition: m_matrix.cpp:457
This class implements matrices, in the linear-algebra sense, with real-valued elements.
Definition: m_matrix.h:94
Code for a wrapper class around the C struct KJB_Image.
Wrapped version of the C struct KJB_image.
Definition: i_image.h:76