Changeset 13041 for OpenSceneGraph/trunk/src/osg/DrawPixels.cpp
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/src/osg/DrawPixels.cpp (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/src/osg/DrawPixels.cpp
r12912 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 */ … … 19 19 // turn off display lists right now, just incase we want to modify the projection matrix along the way. 20 20 setSupportsDisplayList(false); 21 21 22 22 _position.set(0.0f,0.0f,0.0f); 23 23 24 24 _useSubImage = false; 25 25 _offsetX = 0; 26 _offsetY = 0; 26 _offsetY = 0; 27 27 _width = 0; 28 28 _height = 0; … … 34 34 _image(drawimage._image), 35 35 _useSubImage(drawimage._useSubImage), 36 _offsetX(drawimage._offsetX), 36 _offsetX(drawimage._offsetX), 37 37 _offsetY(drawimage._offsetY), 38 38 _width(drawimage._width), … … 56 56 _useSubImage = true; 57 57 _offsetX = offsetX; 58 _offsetY = offsetY; 58 _offsetY = offsetY; 59 59 _width = width; 60 60 _height = height; … … 64 64 { 65 65 offsetX = _offsetX; 66 offsetY = _offsetY; 66 offsetY = _offsetY; 67 67 width = _width; 68 68 height = _height; … … 83 83 diagonal = sqrtf(_image->s()*_image->s()+_image->t()*_image->t()); 84 84 } 85 85 86 86 bbox.expandBy(_position-osg::Vec3(diagonal,diagonal,diagonal)); 87 87 bbox.expandBy(_position+osg::Vec3(diagonal,diagonal,diagonal));
