Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 18, 2006, 9:52:32 PM (19 years ago)
Author:
bensch
Message:

Material should be fully loadable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/gui/src/lib/graphics/importer/material.h

    r8448 r8571  
    2828    virtual ~Material ();
    2929
     30    void loadParams(const TiXmlElement* root);
     31
    3032    Material& operator=(const Material& material);
    3133
     
    4446    void setTransparency (float trans);
    4547    void setBlendFunc(GLenum sFactor, GLenum tFactor) { this->sFactor = sFactor; this->tFactor = tFactor; };
     48    void setBlendFuncS(const std::string& sFactor, const std::string& tFactor);
    4649
    4750    const Color& getDiffuseColor() const { return diffuse; };
     
    6063    static void addTexturePath(const std::string& pathName);
    6164
     65    const std::string& blendFuncToString(GLenum blendFunc);
     66    GLenum stringToBlendFunc(const std::string& blendFuncString);
     67
     68
    6269  public:
    6370    static const GLenum glTextureArbs[];  //!< The Texture ARB's
     71
     72    static const GLenum glBlendFuncParams[];
     73    static const std::string blendFuncNames[];
    6474
    6575    static unsigned int getMaxTextureUnits();
Note: See TracChangeset for help on using the changeset viewer.