Main Page Namespace List Class Hierarchy Alphabetical List Compound List File List Namespace Members Compound Members File Members Related Pages
RoamSphere.h File Reference
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Detailed Description
-
Warning:
-
Not in use \class RoamSphere
-
Author:
-
Sean O'Neil
This class implements the spherical ROAM algorithm. It keeps lists of the vertices, triangles, and diamonds. Because it is currently used to implement a fractal-based planet, it also has a member variable of the CFractal class and a number of others for defining the planet's basic properties. Its main methods are Init(), Update(), and Draw(). Init() initializes the planet with a random seed and certain parameters, like radius and roughness. Update() updates the priority lists and performs any necessary splits or merges in the mesh. Draw() draws the mesh using either smooth or flat shading.
Definition in file RoamSphere.h.