Changeset 8947 in orxonox.OLD for branches/mountain_lake/src/lib/graphics
- Timestamp:
- Jun 30, 2006, 11:03:53 AM (19 years ago)
- Location:
- branches/mountain_lake/src/lib/graphics/effects
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/mountain_lake/src/lib/graphics/effects/cloud_effect.cc
r8946 r8947 27 27 #include "shell_command.h" 28 28 #include "t_animation.h" 29 #include "script_class.h" 29 30 30 31 #include "parser/tinyxml/tinyxml.h" … … 48 49 SHELL_COMMAND(skyColor, CloudEffect, shellSkyColor); 49 50 SHELL_COMMAND(cloudColor, CloudEffect, shellCloudColor); 51 52 53 CREATE_SCRIPTABLE_CLASS(CloudEffect, CL_CLOUD_EFFECT, 54 addMethod("shellSkyColor", ExecutorLua4<CloudEffect,float,float,float,float>(&CloudEffect::shellSkyColor)) 55 ->addMethod("shellCloudColor", ExecutorLua4<CloudEffect,float,float,float,float>(&CloudEffect::shellCloudColor)) 56 ); 57 50 58 51 59 CREATE_FACTORY(CloudEffect, CL_CLOUD_EFFECT); -
branches/mountain_lake/src/lib/graphics/effects/cloud_effect.h
r8911 r8947 50 50 virtual void deactivate(); 51 51 52 inlinevoid activateCloud() {52 void activateCloud() { 53 53 this->activate(); 54 54 } 55 56 inline void deactivateCloud() { 55 void deactivateCloud() { 57 56 this->deactivate(); 58 57 } 59 58 60 inlinevoid setCloudOption(const std::string& option) {59 void setCloudOption(const std::string& option) { 61 60 if (option == "activate") 62 61 this->cloudActivate = true; 63 62 } 64 63 65 inlinevoid setAnimationSpeed(float speed) {64 void setAnimationSpeed(float speed) { 66 65 this->animationSpeed = speed; 67 66 } 68 67 69 inlinevoid setCloudScale(float scale) {68 void setCloudScale(float scale) { 70 69 this->scale = scale; 71 70 } 72 71 73 inlinevoid setCloudColor(float colorX, float colorY, float colorZ) {72 void setCloudColor(float colorX, float colorY, float colorZ) { 74 73 this->cloudColor = Vector(colorX, colorY, colorZ); 75 74 } 76 75 77 inlinevoid setSkyColor(float colorX, float colorY, float colorZ) {76 void setSkyColor(float colorX, float colorY, float colorZ) { 78 77 this->skyColor = Vector(colorX, colorY, colorZ); 79 78 } 80 79 81 inlinevoid setPlanetRadius(float planetRadius) {80 void setPlanetRadius(float planetRadius) { 82 81 this->planetRadius = planetRadius; 83 82 } 84 83 85 inlinevoid setAtmosphericRadius(float atmosphericRadius) {84 void setAtmosphericRadius(float atmosphericRadius) { 86 85 this->atmosphericRadius = atmosphericRadius; 87 86 } 88 87 89 inlinevoid setDivisions(int divs) {88 void setDivisions(int divs) { 90 89 this->divs = divs; 91 90 }
Note: See TracChangeset
for help on using the changeset viewer.