Changeset 13041 for OpenSceneGraph/trunk/include/osg/GLExtensions
- Timestamp:
- 03/21/12 18:36:20 (14 months ago)
- Files:
-
- 1 modified
-
OpenSceneGraph/trunk/include/osg/GLExtensions (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/include/osg/GLExtensions
r11817 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 */ … … 50 50 * is compiled locally to the calling code. This should get by Windows' 51 51 * dumb implementation of having different GL function ptr's for each 52 * library when linked to it. 52 * library when linked to it. 53 53 */ 54 54 extern OSG_EXPORT void* getGLExtensionFuncPtr(const char *funcName); … … 110 110 { 111 111 memcpy(&t, &data, sizeof(T)); 112 return true; 112 return true; 113 113 } 114 114 else 115 115 { 116 116 t = 0; 117 return false; 117 return false; 118 118 } 119 119 } … … 126 126 { 127 127 memcpy(&t, &data, sizeof(T)); 128 return true; 128 return true; 129 129 } 130 130 else 131 131 { 132 132 t = 0; 133 return false; 133 return false; 134 134 } 135 135 } … … 142 142 { 143 143 memcpy(&t, &data, sizeof(T)); 144 return true; 144 return true; 145 145 } 146 146 else 147 147 { 148 148 t = 0; 149 return false; 149 return false; 150 150 } 151 151 }
