Changeset 13041 for OpenSceneGraph/trunk/include/osg/Texture2D
- Timestamp:
- 03/21/12 18:36:20 (15 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/Texture2D (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/Texture2D
r11981 r13041 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 1 /* -*-c++-*- OpenSceneGraph - Copyright (C) 1998-2006 Robert Osfield 2 2 * 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 3 * This library is open source and may be redistributed and/or modified under 4 * the terms of the OpenSceneGraph Public License (OSGPL) version 0.0 or 5 5 * (at your option) any later version. The full license is in LICENSE file 6 6 * included with this distribution, and on the openscenegraph.org website. 7 * 7 * 8 8 * This library is distributed in the hope that it will be useful, 9 9 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 11 11 * OpenSceneGraph Public License for more details. 12 12 */ … … 26 26 27 27 public : 28 28 29 29 Texture2D(); 30 30 … … 33 33 /** Copy constructor using CopyOp to manage deep vs shallow copy. */ 34 34 Texture2D(const Texture2D& text,const CopyOp& copyop=CopyOp::SHALLOW_COPY); 35 35 36 36 META_StateAttribute(osg, Texture2D,TEXTURE); 37 37 … … 102 102 virtual void subload(const Texture2D& texture,State& state) const = 0; 103 103 }; 104 104 105 105 void setSubloadCallback(SubloadCallback* cb) { _subloadCallback = cb;; } 106 106 107 107 SubloadCallback* getSubloadCallback() { return _subloadCallback.get(); } 108 108 … … 117 117 /** Gets the number of mipmap levels created. */ 118 118 unsigned int getNumMipmapLevels() const { return _numMipmapLevels; } 119 119 120 120 121 121 /** Copies pixels into a 2D texture image, as per glCopyTexImage2D. … … 157 157 /** Subloaded images can have different texture and image sizes. */ 158 158 mutable GLsizei _textureWidth, _textureHeight; 159 160 /** Number of mipmap levels created. */ 159 160 /** Number of mipmap levels created. */ 161 161 mutable GLsizei _numMipmapLevels; 162 162
