Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5652 in orxonox.OLD for trunk/src/lib/graphics


Ignore:
Timestamp:
Nov 20, 2005, 6:32:39 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: new LoadParam procedure with all NON-cycling load-options, and it works perfectly (on first sight :))

now going to make the same for cycling LoadOptions

Location:
trunk/src/lib/graphics
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/light.cc

    r5357 r5652  
    8888  static_cast<PNode*>(this)->loadParams(root);
    8989
    90   LoadParam<Light>(root, "diffuse-color", this, &Light::setDiffuseColor)
     90  LoadParamNEW(root, "diffuse-color", this, Light, setDiffuseColor)
    9191      .describe("sets the diffuse color of the Light (red [0-1], green [0-1], blue [0-1])");
    9292
    93   LoadParam<Light>(root, "specular-color", this, &Light::setSpecularColor)
     93  LoadParamNEW(root, "specular-color", this, Light, setSpecularColor)
    9494      .describe("sets the specular color of the Light (red [0-1], green [0-1], blue [0-1])");
    9595
    96   LoadParam<Light>(root, "attenuation", this, &Light::setAttenuation)
     96  LoadParamNEW(root, "attenuation", this, Light, setAttenuation)
    9797      .describe("sets the Attenuation of the LightSource (constant Factor, linear Factor, quadratic Factor).");
    9898
    99   LoadParam<Light>(root, "spot-direction", this, &Light::setSpotDirection)
     99  LoadParamNEW(root, "spot-direction", this, Light, setSpotDirection)
    100100      .describe("sets the Direction of the Spot");
    101101
    102   LoadParam<Light>(root, "spot-cutoff", this, &Light::setSpotCutoff)
     102  LoadParamNEW(root, "spot-cutoff", this, Light, setSpotCutoff)
    103103      .describe("the cuttoff of the Spotlight");
    104104}
  • trunk/src/lib/graphics/render2D/element_2d.cc

    r5418 r5652  
    130130{
    131131  // ELEMENT2D-native settings.
    132   LoadParam<Element2D>(root, "alignment", this, &Element2D::setAlignment)
     132  LoadParamNEW(root, "alignment", this, Element2D, setAlignment)
    133133      .describe("loads the alignment: (either: center, left, right or screen-center)");
    134134
    135   LoadParam<Element2D>(root, "layer", this, &Element2D::setLayer)
     135  LoadParamNEW(root, "layer", this, Element2D, setLayer)
    136136      .describe("loads the layer onto which to project: (either: top, medium, bottom, below-all)");
    137137
    138   LoadParam<Element2D>(root, "bind-node", this, &Element2D::setBindNode)
     138  LoadParamNEW(root, "bind-node", this, Element2D, setBindNode)
    139139      .describe("sets a node, this 2D-Element should be shown upon (name of the node)");
    140140
    141   LoadParam<Element2D>(root, "visibility", this, &Element2D::setVisibility)
     141  LoadParamNEW(root, "visibility", this, Element2D, setVisibility)
    142142      .describe("if the Element is visible or not");
    143143
    144144
    145145// PNode-style:
    146   LoadParam<Element2D>(root, "rel-coor", this, &Element2D::setRelCoor2D)
     146  LoadParamNEW(root, "rel-coor", this, Element2D, setRelCoor2D)
    147147      .describe("Sets The relative position of the Node to its parent.");
    148148
    149   LoadParam<Element2D>(root, "abs-coor", this, &Element2D::setAbsCoor2D)
     149  LoadParamNEW(root, "abs-coor", this, Element2D, setAbsCoor2D)
    150150      .describe("Sets The absolute Position of the Node.");
    151151
    152   LoadParam<Element2D>(root, "rel-dir", this, &Element2D::setRelDir2D)
     152  LoadParamNEW(root, "rel-dir", this, Element2D, setRelDir2D)
    153153      .describe("Sets The relative rotation of the Node to its parent.");
    154154
    155   LoadParam<Element2D>(root, "abs-dir", this, &Element2D::setAbsDir2D)
     155  LoadParamNEW(root, "abs-dir", this, Element2D, setAbsDir2D)
    156156      .describe("Sets The absolute rotation of the Node.");
    157157
    158   LoadParam<Element2D>(root, "parent", this, &Element2D::setParent2D)
     158  LoadParamNEW(root, "parent", this, Element2D, setParent2D)
    159159      .describe("the Name of the Parent of this Element2D");
    160160
    161   LoadParam<Element2D>(root, "parent-mode", this, &Element2D::setParentMode2D)
     161  LoadParamNEW(root, "parent-mode", this, Element2D, setParentMode2D)
    162162      .describe("the mode to connect this node to its parent ()");
    163163
Note: See TracChangeset for help on using the changeset viewer.