#include <utils.hpp>
Definition at line 76 of file utils.hpp.
Public Member Functions | |
void | draw (context *) |
const gsgl::real_t | get_tex_offset_x () const |
const gsgl::real_t | get_tex_offset_y () const |
void | init (context *) |
simple_sphere (node *parent, const int num_latitude_steps, const gsgl::real_t equatorial_radius, const gsgl::real_t polar_radius, platform::texture *tex, const gsgl::real_t tex_offset_x=0, const gsgl::real_t tex_offset_y=0) | |
~simple_sphere () | |
Private Attributes | |
const gsgl::real_t | equatorial_radius |
platform::index_buffer | indices |
const int | num_steps |
node * | parent |
const gsgl::real_t | polar_radius |
platform::texture * | tex |
const gsgl::real_t | tex_offset_x |
const gsgl::real_t | tex_offset_y |
platform::vertex_buffer | vertices |
simple_sphere | ( | node * | parent, | |
const int | num_latitude_steps, | |||
const gsgl::real_t | equatorial_radius, | |||
const gsgl::real_t | polar_radius, | |||
platform::texture * | tex, | |||
const gsgl::real_t | tex_offset_x = 0 , |
|||
const gsgl::real_t | tex_offset_y = 0 | |||
) |
Definition at line 174 of file utils.cpp.
References vbuffer_mixin::append(), simple_sphere::indices, gsgl::math::PI, gsgl::math::PI_OVER_2, gsgl::math::PI_TIMES_2, and simple_sphere::vertices.
~simple_sphere | ( | ) |
void draw | ( | context * | c | ) |
Definition at line 249 of file utils.cpp.
References vbuffer_base::bind(), texture::bind(), CHECK_GL_ERRORS, simple_sphere::indices, simple_sphere::num_steps, context::RENDER_ANISOTROPIC, context::render_flags, context::RENDER_UNTEXTURED, simple_sphere::tex, gsgl::platform::TEXTURE_NO_FLAGS, gsgl::platform::TEXTURE_RENDER_ANISOTROPIC, texture::unbind(), and simple_sphere::vertices.
Referenced by celestial_body::draw().
const gsgl::real_t get_tex_offset_x | ( | ) | const [inline] |
const gsgl::real_t get_tex_offset_y | ( | ) | const [inline] |
void init | ( | context * | c | ) |
const gsgl::real_t equatorial_radius [private] |
platform::index_buffer indices [private] |
Definition at line 83 of file utils.hpp.
Referenced by simple_sphere::draw(), and simple_sphere::simple_sphere().
const int num_steps [private] |
const gsgl::real_t polar_radius [private] |
platform::texture* tex [private] |
const gsgl::real_t tex_offset_x [private] |
const gsgl::real_t tex_offset_y [private] |
platform::vertex_buffer vertices [private] |
Definition at line 82 of file utils.hpp.
Referenced by simple_sphere::draw(), and simple_sphere::simple_sphere().