#include "scenegraph/utils.hpp"
#include "scenegraph/node.hpp"
#include "scenegraph/camera.hpp"
#include "scenegraph/freeview.hpp"
#include "platform/vbuffer.hpp"
#include "platform/lowlevel.hpp"
#include <cmath>
Go to the source code of this file.
Namespaces | |
namespace | gsgl |
namespace | gsgl::scenegraph |
namespace | gsgl::scenegraph::utils |
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. |