Added support s/getImage(uint i) and getNumImages().

This commit is contained in:
Robert Osfield
2004-07-27 10:11:45 +00:00
parent a4f93740d1
commit bb5576bef8
14 changed files with 91 additions and 35 deletions

View File

@@ -54,15 +54,18 @@ class SG_EXPORT TextureCubeMap : public Texture
};
/** Set the texture image for specified face. */
void setImage(Face, Image* image);
virtual void setImage(unsigned int face, Image* image);
/** Get the texture image for specified face. */
Image* getImage(Face);
virtual Image* getImage(unsigned int face);
/** Get the const texture image for specified face. */
const Image* getImage(Face) const;
virtual const Image* getImage(unsigned int face) const;
inline unsigned int& getModifiedTag(Face face,unsigned int contextID) const
/** Get the number of images that can be assigned to the Texture. */
virtual unsigned int getNumImages() const { return 6; }
inline unsigned int& getModifiedTag(unsigned int face,unsigned int contextID) const
{
// get the modified tag for the current contextID.
return _modifiedTag[face][contextID];