Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/model/classes.h')
-rw-r--r--src/model/classes.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/model/classes.h b/src/model/classes.h
index c6bf3b1..c2b6a20 100644
--- a/src/model/classes.h
+++ b/src/model/classes.h
@@ -14,6 +14,15 @@
namespace model
{
+
+/**
+ * @brief
+ * culling parameter values
+ * Culling is a paremeter used by flares and particles to indicate
+ * with side of the polygons should be culled during rendering
+ */
+enum Cull { CullNone=0, CullBack=1, CullFront=2 };
+
/* ---- class MapClass --------------------------------------------- */
class MapClass
@@ -134,13 +143,19 @@ public:
return flare_axis;
}
- inline bool engine() const
+ inline const bool engine() const
{
return flare_engine;
}
+ inline const Cull cull() const
+ {
+ return flare_cull;
+ }
+
math::Axis flare_axis;
bool flare_engine;
+ Cull flare_cull;
};
/* ---- class Particles -------------------------------------------- */
@@ -185,6 +200,12 @@ public:
{
return particles_radius;
}
+
+ inline const Cull cull() const
+ {
+ return particles_cull;
+ }
+
std::string particles_script;
math::Vector3f particles_location;
math::Axis particles_axis;
@@ -193,6 +214,7 @@ public:
bool particles_engine;
float particles_radius;
+ Cull particles_cull;
};
/* ---- class Dock ------------------------------------------------- */