Changeset 10717
- Timestamp:
- 11/04/09 18:26:59 (4 years ago)
- Location:
- OpenSceneGraph/trunk
- Files:
-
- 3 modified
-
examples/CMakeLists.txt (modified) (1 diff)
-
include/osg/GL (modified) (2 diffs)
-
src/osg/ArrayDispatchers.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
OpenSceneGraph/trunk/examples/CMakeLists.txt
r10712 r10717 138 138 ADD_SUBDIRECTORY(osgwidgetwindow) 139 139 140 IF(NOT OSG_GLES 2_AVAILABLE AND NOT OSG_GLES2_AVAILABLE AND NOT OSG_GL3_AVAILABLE)140 IF(NOT OSG_GLES1_AVAILABLE AND NOT OSG_GLES2_AVAILABLE AND NOT OSG_GL3_AVAILABLE) 141 141 ADD_SUBDIRECTORY(osgscreencapture) 142 142 ADD_SUBDIRECTORY(osgmotionblur) -
OpenSceneGraph/trunk/include/osg/GL
r10710 r10717 16 16 17 17 #include <osg/Config> 18 #include <osg/Export> 18 19 19 20 #ifndef WIN32 … … 162 163 #endif 163 164 164 #ifdef OSG_GLES1_AVAILABLE165 inline void glColor4ubv(const GLubyte* c) { glColor4ub(c[0], c[1], c[2], c[3]); }166 inline void glColor3fv(const GLfloat* c) { glColor4f(c[0], c[1], c[2], 1.0f); }167 inline void glColor4fv(const GLfloat* c) { glColor4f(c[0], c[1], c[2], c[3]); }168 inline void glColor3dv(const GLdouble* c) { glColor4f(c[0], c[1], c[2], 1.0f); }169 inline void glColor4dv(const GLdouble* c) { glColor4f(c[0], c[1], c[2], c[3]); }170 171 inline void glNormal3bv(const GLbyte* n) { const float div = 1.0f/128.0f; glNormal3f(float(n[0])*div, float(n[1])*div, float(n[3])*div); }172 inline void glNormal3sv(const GLshort* n) { const float div = 1.0f/32768.0f; glNormal3f(float(n[0])*div, float(n[1])*div, float(n[3])*div); }173 inline void glNormal3fv(const GLfloat* n) { glNormal3f(n[0], n[1], n[3]); }174 inline void glNormal3dv(const GLdouble* n) { glNormal3f(n[0], n[1], n[3]); }175 #endif176 177 165 #endif // __osgGL_h -
OpenSceneGraph/trunk/src/osg/ArrayDispatchers.cpp
r10691 r10717 18 18 #include <osg/io_utils> 19 19 20 20 21 namespace osg 21 22 { 23 24 inline void glColor4ubv(const GLubyte* c) { glColor4ub(c[0], c[1], c[2], c[3]); } 25 inline void glColor3fv(const GLfloat* c) { glColor4f(c[0], c[1], c[2], 1.0f); } 26 inline void glColor4fv(const GLfloat* c) { glColor4f(c[0], c[1], c[2], c[3]); } 27 inline void glColor3dv(const GLdouble* c) { glColor4f(c[0], c[1], c[2], 1.0f); } 28 inline void glColor4dv(const GLdouble* c) { glColor4f(c[0], c[1], c[2], c[3]); } 29 30 inline void glNormal3bv(const GLbyte* n) { const float div = 1.0f/128.0f; glNormal3f(float(n[0])*div, float(n[1])*div, float(n[3])*div); } 31 inline void glNormal3sv(const GLshort* n) { const float div = 1.0f/32768.0f; glNormal3f(float(n[0])*div, float(n[1])*div, float(n[3])*div); } 32 inline void glNormal3fv(const GLfloat* n) { glNormal3f(n[0], n[1], n[3]); } 33 inline void glNormal3dv(const GLdouble* n) { glNormal3f(n[0], n[1], n[3]); } 22 34 23 35 template<typename T>
