
Definition at line 55 of file spherical_clipmap.cpp.
Public Member Functions | |
| clipmap_ring (spherical_clipmap *parent, double start_phi, double end_phi) | |
| clipmap_ring (spherical_clipmap *parent, int level) | |
| void | draw () |
| void | init () |
| ~clipmap_ring () | |
Public Attributes | |
| double | end_phi |
| The angle from the center of the hemisphere to the inner edge of the ring. | |
| data::array< gsgl::real_t > | geographical_lon_and_lat |
| Stores the geographical longitude and latitudes for vertices of the unrotated hemisphere facing north. | |
| data::array< gsgl::real_t > | geographical_x_and_y |
| Stores the unrotated x & y coordinates for vertices of the unrotated hemisphere facing north. | |
| index_buffer | indices |
| int | level |
| clipmap_ring * | next |
| vertex_buffer | normals |
| Stores the normals of the rotated spheroid (not yet adjusted for terrain, but needed because the vertices are of the sphereoid, not a sphere). | |
| spherical_clipmap * | parent |
| clipmap_ring * | prev |
| double | start_phi |
| The angle from the center of the hemisphere to the outer edge of the ring. | |
| vertex_buffer | vertices |
| Stores the vertices of the rotated spheroid (not yet adjusted for height). | |
| clipmap_ring | ( | spherical_clipmap * | parent, | |
| int | level | |||
| ) |
Definition at line 81 of file spherical_clipmap.cpp.
References assert, clipmap_ring::end_phi, clipmap_ring::init(), gsgl::math::PI, and clipmap_ring::start_phi.
| clipmap_ring | ( | spherical_clipmap * | parent, | |
| double | start_phi, | |||
| double | end_phi | |||
| ) |
Definition at line 93 of file spherical_clipmap.cpp.
| ~clipmap_ring | ( | ) |
Definition at line 100 of file spherical_clipmap.cpp.
| void draw | ( | ) |
Definition at line 157 of file spherical_clipmap.cpp.
References vbuffer_base::bind(), CHECK_GL_ERRORS, clipmap_ring::indices, gsgl::platform::vbuffer::VBO_OFFSET(), and clipmap_ring::vertices.
Referenced by spherical_clipmap::draw().
| void init | ( | ) |
Definition at line 108 of file spherical_clipmap.cpp.
References vbuffer_mixin::append(), clipmap_ring::end_phi, clipmap_ring::geographical_lon_and_lat, clipmap_ring::indices, clipmap_ring::level, gsgl::math::PI_TIMES_2, vbuffer_mixin::size(), and clipmap_ring::start_phi.
Referenced by clipmap_ring::clipmap_ring(), and spherical_clipmap::update().
| double end_phi |
The angle from the center of the hemisphere to the inner edge of the ring.
Definition at line 63 of file spherical_clipmap.cpp.
Referenced by clipmap_ring::clipmap_ring(), clipmap_ring::init(), and spherical_clipmap::update().
| data::array<gsgl::real_t> geographical_lon_and_lat |
Stores the geographical longitude and latitudes for vertices of the unrotated hemisphere facing north.
Definition at line 65 of file spherical_clipmap.cpp.
Referenced by clipmap_ring::init().
| data::array<gsgl::real_t> geographical_x_and_y |
Stores the unrotated x & y coordinates for vertices of the unrotated hemisphere facing north.
Definition at line 66 of file spherical_clipmap.cpp.
Definition at line 70 of file spherical_clipmap.cpp.
Referenced by clipmap_ring::draw(), and clipmap_ring::init().
| int level |
Stores the normals of the rotated spheroid (not yet adjusted for terrain, but needed because the vertices are of the sphereoid, not a sphere).
Definition at line 69 of file spherical_clipmap.cpp.
Definition at line 58 of file spherical_clipmap.cpp.
| double start_phi |
The angle from the center of the hemisphere to the outer edge of the ring.
Definition at line 62 of file spherical_clipmap.cpp.
Referenced by clipmap_ring::clipmap_ring(), clipmap_ring::init(), and spherical_clipmap::update().
Stores the vertices of the rotated spheroid (not yet adjusted for height).
Definition at line 68 of file spherical_clipmap.cpp.
Referenced by clipmap_ring::draw().
1.5.5