Changeset 5671 in orxonox.OLD for trunk/src/lib/graphics
- Timestamp:
- Nov 21, 2005, 3:50:41 PM (19 years ago)
- Location:
- trunk/src/lib/graphics
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/graphics/light.cc
r5653 r5671 88 88 static_cast<PNode*>(this)->loadParams(root); 89 89 90 LoadParam NEW(root, "diffuse-color", this, Light, setDiffuseColor)90 LoadParam(root, "diffuse-color", this, Light, setDiffuseColor) 91 91 .describe("sets the diffuse color of the Light (red [0-1], green [0-1], blue [0-1])"); 92 92 93 LoadParam NEW(root, "specular-color", this, Light, setSpecularColor)93 LoadParam(root, "specular-color", this, Light, setSpecularColor) 94 94 .describe("sets the specular color of the Light (red [0-1], green [0-1], blue [0-1])"); 95 95 96 LoadParam NEW(root, "attenuation", this, Light, setAttenuation)96 LoadParam(root, "attenuation", this, Light, setAttenuation) 97 97 .describe("sets the Attenuation of the LightSource (constant Factor, linear Factor, quadratic Factor)."); 98 98 99 LoadParam NEW(root, "spot-direction", this, Light, setSpotDirection)99 LoadParam(root, "spot-direction", this, Light, setSpotDirection) 100 100 .describe("sets the Direction of the Spot"); 101 101 102 LoadParam NEW(root, "spot-cutoff", this, Light, setSpotCutoff)102 LoadParam(root, "spot-cutoff", this, Light, setSpotCutoff) 103 103 .describe("the cuttoff of the Spotlight"); 104 104 } … … 261 261 .describe("an XML-Element to load lights from."); 262 262 263 LoadParam NEW(root, "ambient-color", this, LightManager, setAmbientColor)263 LoadParam(root, "ambient-color", this, LightManager, setAmbientColor) 264 264 .describe("sets the ambient Color of the Environmental Light"); 265 265 } -
trunk/src/lib/graphics/render2D/element_2d.cc
r5654 r5671 130 130 { 131 131 // ELEMENT2D-native settings. 132 LoadParam NEW(root, "alignment", this, Element2D, setAlignment)132 LoadParam(root, "alignment", this, Element2D, setAlignment) 133 133 .describe("loads the alignment: (either: center, left, right or screen-center)"); 134 134 135 LoadParam NEW(root, "layer", this, Element2D, setLayer)135 LoadParam(root, "layer", this, Element2D, setLayer) 136 136 .describe("loads the layer onto which to project: (either: top, medium, bottom, below-all)"); 137 137 138 LoadParam NEW(root, "bind-node", this, Element2D, setBindNode)138 LoadParam(root, "bind-node", this, Element2D, setBindNode) 139 139 .describe("sets a node, this 2D-Element should be shown upon (name of the node)"); 140 140 141 LoadParam NEW(root, "visibility", this, Element2D, setVisibility)141 LoadParam(root, "visibility", this, Element2D, setVisibility) 142 142 .describe("if the Element is visible or not"); 143 143 144 144 145 145 // PNode-style: 146 LoadParam NEW(root, "rel-coor", this, Element2D, setRelCoor2D)146 LoadParam(root, "rel-coor", this, Element2D, setRelCoor2D) 147 147 .describe("Sets The relative position of the Node to its parent."); 148 148 149 LoadParam NEW(root, "abs-coor", this, Element2D, setAbsCoor2D)149 LoadParam(root, "abs-coor", this, Element2D, setAbsCoor2D) 150 150 .describe("Sets The absolute Position of the Node."); 151 151 152 LoadParam NEW(root, "rel-dir", this, Element2D, setRelDir2D)152 LoadParam(root, "rel-dir", this, Element2D, setRelDir2D) 153 153 .describe("Sets The relative rotation of the Node to its parent."); 154 154 155 LoadParam NEW(root, "abs-dir", this, Element2D, setAbsDir2D)155 LoadParam(root, "abs-dir", this, Element2D, setAbsDir2D) 156 156 .describe("Sets The absolute rotation of the Node."); 157 157 158 LoadParam NEW(root, "parent", this, Element2D, setParent2D)158 LoadParam(root, "parent", this, Element2D, setParent2D) 159 159 .describe("the Name of the Parent of this Element2D"); 160 160 161 LoadParam NEW(root, "parent-mode", this, Element2D, setParentMode2D)161 LoadParam(root, "parent-mode", this, Element2D, setParentMode2D) 162 162 .describe("the mode to connect this node to its parent ()"); 163 163
Note: See TracChangeset
for help on using the changeset viewer.