OSG_GL_DISPLAYLISTS_AVAILABLE OSG_GL_FIXED_FUNCTION_AVAILABLE OSG_GL_MATRICES_AVAILABLE OSG_GL_VERTEX_ARRAY_FUNCS_AVAILABLE OSG_GL_VERTEX_FUNCS_AVAILABLE Configure and build OpenSceneGraph. ⑥配置并编译 OpenSceneGraph。 (2)编译 osgEarth 支持 GLCORE Build osgEarth for GLCORE Now that you have OSG ...
g1->getOrCreateStateSet()->setAttributeAndModes( new osg::BlendFunc(GL_SRC_ALPHA,GL_ONE_MINUS_SRC_ALPHA), 1);#ifdef OSG_GL_FIXED_FUNCTION_AVAILABLE // for semi-transpareny items, we want the lighting to "shine through" osg::LightModel* lm = new osg::LightModel(); ...
cd OpenSceneGraph wget http://www2.ai2.upv.es/difusion/osgAndroid/3rdpartyAndroid.zip unzip 3rdpartyAndroid.zip cmake . -DOSG_BUILD_PLATFORM_ANDROID=ON -DDYNAMIC_OPENTHREADS=OFF -DDYNAMIC_OPENSCENEGRAPH=OFF -DOSG_GL1_AVAILABLE=OFF -DOSG_GL2_AVAILABLE=OFF -DOSG_GL3_AVAILABLE=OFF -DOSG...
将第一个的GL文件夹和第二个的KHR文件夹复制到OSG源码的include目录下。 点击OSG项展开, 勾选 OSG_GL3_AVAILABLE 1 取消勾选 OSG_GL1_AVAILABLE OSG_GL2_AVAILABLE OSG_GLES1_AVAILABLE OSG_GLES2_AVAILABLE OSG_GL_DISPLAYLISTS_AVAILABLE OSG_GL_FIXED_FUNCTION_AVAILABLE OSG_GL_MATRICES_AVAILABLE OSG_GL_V...