Changeset 10597 for OpenSceneGraph/trunk/include/osg/Texture
- Timestamp:
- 09/27/09 17:14:57 (4 years ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/Texture (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/Texture
r10594 r10597 976 976 inline void setAllocated(bool allocated=true) { _allocated = allocated; } 977 977 978 inlinevoid setAllocated(GLint numMipmapLevels,978 void setAllocated(GLint numMipmapLevels, 979 979 GLenum internalFormat, 980 980 GLsizei width, 981 981 GLsizei height, 982 982 GLsizei depth, 983 GLint border) 984 { 985 _allocated=true; 986 _profile.set(numMipmapLevels,internalFormat,width,height,depth,border); 987 } 983 GLint border); 988 984 989 985 inline bool isAllocated() const { return _allocated; } … … 1020 1016 void addToBack(TextureObject* to); 1021 1017 void orphan(TextureObject* to); 1018 void remove(TextureObject* to); 1019 1022 1020 unsigned int size() const { return _profile._size * _numOfTextureObjects; } 1023 1021 … … 1025 1023 1026 1024 bool checkConsistency() const; 1025 1026 TextureObjectManager* getParent() { return _parent; } 1027 1027 1028 1028 protected: … … 1086 1086 void releaseTextureObject(TextureObject* to); 1087 1087 1088 TextureObjectSet* getTextureObjectSet(const TextureProfile& profile); 1088 1089 1089 1090 void newFrame(osg::FrameStamp* fs);
