simple_sphere Class Reference

#include <utils.hpp>

Collaboration diagram for simple_sphere:

Collaboration graph
[legend]

List of all members.


Detailed Description

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
nodeparent
const gsgl::real_t polar_radius
platform::texturetex
const gsgl::real_t tex_offset_x
const gsgl::real_t tex_offset_y
platform::vertex_buffer vertices

Constructor & Destructor Documentation

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 (  ) 

Definition at line 239 of file utils.cpp.


Member Function Documentation

void draw ( context c  ) 

const gsgl::real_t get_tex_offset_x (  )  const [inline]

Definition at line 94 of file utils.hpp.

const gsgl::real_t get_tex_offset_y (  )  const [inline]

Definition at line 95 of file utils.hpp.

void init ( context c  ) 

Definition at line 244 of file utils.cpp.

Referenced by star::init(), and celestial_body::init().


Member Data Documentation

Definition at line 80 of file utils.hpp.

Definition at line 83 of file utils.hpp.

Referenced by simple_sphere::draw(), and simple_sphere::simple_sphere().

const int num_steps [private]

Definition at line 79 of file utils.hpp.

Referenced by simple_sphere::draw().

node* parent [private]

Definition at line 78 of file utils.hpp.

const gsgl::real_t polar_radius [private]

Definition at line 80 of file utils.hpp.

platform::texture* tex [private]

Definition at line 85 of file utils.hpp.

Referenced by simple_sphere::draw().

const gsgl::real_t tex_offset_x [private]

Definition at line 86 of file utils.hpp.

const gsgl::real_t tex_offset_y [private]

Definition at line 86 of file utils.hpp.

Definition at line 82 of file utils.hpp.

Referenced by simple_sphere::draw(), and simple_sphere::simple_sphere().


The documentation for this class was generated from the following files:

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