Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

File:
1 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}
Note: See TracChangeset for help on using the changeset viewer.