Project::OSiRiON - Git repositories
Project::OSiRiON
News . About . Screenshots . Downloads . Forum . Wiki . Tracker . Git
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/particles.h')
-rw-r--r--src/render/particles.h122
1 files changed, 2 insertions, 120 deletions
diff --git a/src/render/particles.h b/src/render/particles.h
index 4c3de0e..b329b7f 100644
--- a/src/render/particles.h
+++ b/src/render/particles.h
@@ -4,6 +4,8 @@
the terms of the GNU General Public License version 2
*/
+#error do not include this header
+
#ifndef __INCLUDED_RENDER_PARTICLES_H__
#define __INCLUDED_RENDER_PARTICLES_H__
@@ -47,126 +49,6 @@ protected:
float particle_time;
};
-/* ---- class ParticleScript --------------------------------------- */
-
-/// class to hold particle scripts
-class ParticleScript
-{
-public:
-
- enum Type {Jet = 0, Trail = 1, Flame = 2, Spray = 3 };
-
- inline const Type type() const {
- return particlescript_type;
- }
-
- inline const std::string &label() const {
- return particlescript_label;
- }
-
- inline const std::string &texture() const {
- return particlescript_texture;
- }
-
- inline const math::Color &color() const {
- return particlescript_color;
- }
-
- /// axis transformation relative to the ejector
- inline const math::Axis &axis() const {
- return particlescript_axis;
- }
-
- /// true if entity color is to be applied
- inline bool engine() const {
- return particlescript_engine;
- }
-
- /**
- * @brief true if entity primary color is to be applied
- * */
- inline bool entity() const
- {
- return particlescript_entity;
- }
-
- /**
- * @brief true if entity secondary color is to be applied
- * */
- inline bool entity_second() const
- {
- return particlescript_entity_second;
- }
-
- inline float radius() const {
- return particlescript_radius;
- }
-
- inline float timeout() const {
- return particlescript_timeout;
- }
-
- inline float eject() const {
- return particlescript_eject;
- }
-
- inline float speed() const {
- return particlescript_speed;
- }
-
- inline float alpha() const {
- return particlescript_alpha;
- }
-
- inline float offset() const {
- return particlescript_offset;
- }
-
- inline const model::Cull cull() const {
- return particlescript_cull;
- }
-
- inline const ParticleScript *next() const {
- return particlescript_next;
- }
-
- static ParticleScript *load(const std::string &label);
-
- static void clear();
-
- static void list();
-
-private:
- static ParticleScript *find(const std::string &label);
-
- ParticleScript(const std::string & label);
- ~ParticleScript();
-
- std::string particlescript_label;
- std::string particlescript_texture;
- Type particlescript_type;
- math::Color particlescript_color;
- math::Axis particlescript_axis;
-
- bool particlescript_entity;
- bool particlescript_entity_second;
- bool particlescript_engine;
-
- float particlescript_radius;
- float particlescript_timeout;
- float particlescript_eject;
- float particlescript_speed;
- float particlescript_alpha;
- float particlescript_offset;
-
- model::Cull particlescript_cull;
-
- ParticleScript *particlescript_next;
-
- typedef std::map<std::string, ParticleScript *> Registry;
-
- static Registry particlescript_registry;
-};
/* ---- class ParticleSystem --------------------------------------- */