utils.hpp File Reference

#include "scenegraph/scenegraph.hpp"
#include "data/broker.hpp"
#include "math/vector.hpp"
#include "scenegraph/node.hpp"
#include "platform/color.hpp"
#include "platform/vbuffer.hpp"
#include "platform/texture.hpp"

Include dependency graph for utils.hpp:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  gsgl
namespace  gsgl::scenegraph
namespace  gsgl::scenegraph::utils

Classes

class  checkered_box
class  coord_system
 A utility class for drawing coordinate systems of nodes. More...
class  simple_sphere

Functions

gsgl::real_t dot_in_eye_space (node *frame, const math::vector &pos=math::vector::ZERO)
void draw_billboard (node *frame, const math::vector &pos, const gsgl::real_t radius)
 Draws a billboard at the specified point in the specified frame.
gsgl::real_t greatest_extent (const node *n)
bool is_on_screen (node *frame, const gsgl::real_t field_of_view, const gsgl::real_t aspect_ratio, const math::vector &pos=math::vector::ZERO, const gsgl::real_t radius=0)
gsgl::real_t pixel_size (const gsgl::real_t distance, const gsgl::real_t radius, const gsgl::real_t field_of_view, const int pixels_in_field_of_view)
vector pos_in_eye_space (node *frame, const math::vector &pos=math::vector::ZERO)
vector pos_in_screen_space (const gsgl::math::vector &point, const int viewport[4], const gsgl::math::transform &modelview_projection)
void save_screen_info (int viewport[4], gsgl::math::transform &modelview_projection)
 Save projection information for later doing calculations in screen space.


Generated on Sat Mar 1 13:50:05 2008 for Periapsis Project by  doxygen 1.5.5