#include <spherical_clipmap.hpp>
Definition at line 52 of file spherical_clipmap.hpp.
Public Member Functions | |
void | draw (gsgl::scenegraph::context *c) |
gsgl::real_t | get_equatorial_radius () const |
gsgl::real_t | get_polar_radius () const |
void | init (gsgl::scenegraph::context *c) |
spherical_clipmap (gsgl::real_t polar_radius, gsgl::real_t equatorial_radius) | |
void | update (const gsgl::math::transform &modelview, gsgl::real_t field_of_view, int screen_height) |
virtual | ~spherical_clipmap () |
Private Attributes | |
clipmap_ring * | clipmap_cap |
gsgl::data::array< clipmap_ring * > | clipmap_rings |
gsgl::real_t | equatorial_radius |
gsgl::index_t | first_ring |
gsgl::index_t | last_ring |
gsgl::real_t | polar_radius |
spherical_clipmap | ( | gsgl::real_t | polar_radius, | |
gsgl::real_t | equatorial_radius | |||
) |
~spherical_clipmap | ( | ) | [virtual] |
Definition at line 186 of file spherical_clipmap.cpp.
References spherical_clipmap::clipmap_cap, and spherical_clipmap::clipmap_rings.
void draw | ( | gsgl::scenegraph::context * | c | ) |
Definition at line 265 of file spherical_clipmap.cpp.
References spherical_clipmap::clipmap_cap, spherical_clipmap::clipmap_rings, clipmap_ring::draw(), spherical_clipmap::first_ring, spherical_clipmap::last_ring, context::render_flags, and color::set().
gsgl::real_t get_equatorial_radius | ( | ) | const [inline] |
Definition at line 65 of file spherical_clipmap.hpp.
gsgl::real_t get_polar_radius | ( | ) | const [inline] |
Definition at line 64 of file spherical_clipmap.hpp.
void init | ( | gsgl::scenegraph::context * | c | ) |
Definition at line 197 of file spherical_clipmap.cpp.
void update | ( | const gsgl::math::transform & | modelview, | |
gsgl::real_t | field_of_view, | |||
int | screen_height | |||
) |
Definition at line 202 of file spherical_clipmap.cpp.
References spherical_clipmap::clipmap_cap, spherical_clipmap::clipmap_rings, gsgl::math::DEG2RAD, clipmap_ring::end_phi, spherical_clipmap::equatorial_radius, spherical_clipmap::first_ring, clipmap_ring::init(), spherical_clipmap::last_ring, vector::mag(), gsgl::min_val(), clipmap_ring::next, spherical_clipmap::polar_radius, clipmap_ring::prev, and clipmap_ring::start_phi.
clipmap_ring* clipmap_cap [private] |
Definition at line 58 of file spherical_clipmap.hpp.
Referenced by spherical_clipmap::draw(), spherical_clipmap::spherical_clipmap(), spherical_clipmap::update(), and spherical_clipmap::~spherical_clipmap().
gsgl::data::array<clipmap_ring *> clipmap_rings [private] |
Definition at line 57 of file spherical_clipmap.hpp.
Referenced by spherical_clipmap::draw(), spherical_clipmap::update(), and spherical_clipmap::~spherical_clipmap().
gsgl::real_t equatorial_radius [private] |
gsgl::index_t first_ring [private] |
Definition at line 56 of file spherical_clipmap.hpp.
Referenced by spherical_clipmap::draw(), and spherical_clipmap::update().
gsgl::index_t last_ring [private] |
Definition at line 56 of file spherical_clipmap.hpp.
Referenced by spherical_clipmap::draw(), and spherical_clipmap::update().
gsgl::real_t polar_radius [private] |