Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStijn Buys <ingar@osirion.org>2008-03-24 12:35:48 +0000
committerStijn Buys <ingar@osirion.org>2008-03-24 12:35:48 +0000
commitb32c086a9b9deed4c34ade6e2447861a9c4bfc46 (patch)
treef3213a8f4b1ffd15df28aa6bd82b9fe6c1bb979d /src/core/model.h
parent80ad7e99b738f367eb045768d054cf74347ee1b4 (diff)
moved the sphere into the vertex array
Diffstat (limited to 'src/core/model.h')
-rw-r--r--src/core/model.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/model.h b/src/core/model.h
index 51e9ca7..4fc4d97 100644
--- a/src/core/model.h
+++ b/src/core/model.h
@@ -25,6 +25,7 @@ namespace core
/// size of the global vertex array - 32M
const size_t VERTEXARRAYSIZE=65536*512;
+const int SPHERESEGMENTS=33;
/// global vertex array
class VertexArray
@@ -40,6 +41,9 @@ public:
static void clear();
static void add_vertex(math::Vector3f const &v, math::Vector3f const &n, math::Color const &color);
+
+private:
+ static void add_sphere();
};
/// a model triangle