#include <utils.hpp>
Definition at line 59 of file utils.hpp.
Public Member Functions | |
coord_system (node *parent, const gsgl::real_t radius, const gsgl::real_t degree_step, const platform::color &draw_color) | |
void | draw (context *) |
void | init (context *) |
~coord_system () | |
Private Attributes | |
const gsgl::real_t | degree_step |
int | display_list_id |
const platform::color | draw_color |
node * | parent |
const gsgl::real_t | radius |
coord_system | ( | node * | parent, | |
const gsgl::real_t | radius, | |||
const gsgl::real_t | degree_step, | |||
const platform::color & | draw_color | |||
) |
~coord_system | ( | ) |
Definition at line 67 of file utils.cpp.
References CHECK_GL_ERRORS, and coord_system::display_list_id.
void draw | ( | context * | c | ) |
Definition at line 81 of file utils.cpp.
References context::cam, CHECK_GL_ERRORS, gsgl::math::DEG2RAD, coord_system::degree_step, coord_system::display_list_id, coord_system::draw_color, display::get_aspect_ratio(), camera::get_field_of_view(), vector::get_z(), coord_system::parent, gsgl::scenegraph::utils::pos_in_eye_space(), coord_system::radius, context::screen, and color::set().
Referenced by solar_system::draw(), planet_system::draw(), and galaxy::draw().
void init | ( | context * | c | ) |
const gsgl::real_t degree_step [private] |
int display_list_id [private] |
Definition at line 64 of file utils.hpp.
Referenced by coord_system::draw(), and coord_system::~coord_system().
const platform::color draw_color [private] |
const gsgl::real_t radius [private] |