X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FObjects%2Fnewmat.hxx;h=a1fb2e8acfa6e19c59fb302783a00f8a026630c9;hb=ab381e5c013292935c598dbe80bdd092bcbdd3ff;hp=0aaee654f6e7feec0cc284a821524a78a2712570;hpb=a2be88ad741a1c2eb4279d39c18a4872accd3470;p=flightgear.git diff --git a/src/Objects/newmat.hxx b/src/Objects/newmat.hxx index 0aaee654f..a1fb2e8ac 100644 --- a/src/Objects/newmat.hxx +++ b/src/Objects/newmat.hxx @@ -150,25 +150,30 @@ public: /** * Get the current state. */ - virtual inline ssgStateSelector *get_state() const { return state; } + virtual inline ssgStateSelector *get_state () const { return state; } /** - * Add a reference to the texture. + * Increment the reference count for this material. + * + * A material with 0 references may be deleted by the + * material library. */ - virtual inline void ref() { refcount++; } + virtual inline void ref () { refcount++; } /** - * Remove a reference from the texture. + * Decrement the reference count for this material. */ - virtual inline void deRef() { refcount--; } + virtual inline void deRef () { refcount--; } /** - * Get the number of references to the texture. + * Get the reference count for this material. + * + * @return The number of references (0 if none). */ - virtual inline int getRef() const { return refcount; } + virtual inline int getRef () const { return refcount; } protected: @@ -198,9 +203,6 @@ private: ssgSimpleState *textured; ssgSimpleState *nontextured; - // alpha texture? - bool alpha; - // texture size double xsize, ysize;