[osg-users] [build] OSG with OpenGL ES 2.0 and Angle
Alistair Baxter
alistair at mve.com
Tue Jan 24 07:25:52 PST 2017
There are one or two things that need tweaked manually when building for ANGLE on Windows, generally just commenting of ifdefing stuff out. I needed to set the names of the angle gles libraries linked to by hand in Visual Studio, because I couldn't work out how to do that in the cmake configuration.
There are some assumptions in the codebase (unless they've been fixed in recent times, it's a while since I tried it) that Windows implies use of wgl. As I said in my previous post on the subject ( http://forum.openscenegraph.org/viewtopic.php?t=14043&highlight= ), you can't use the Windows graphicsWindow class, you need to create your OpenGL contexts by hand (or, as I did, via Qt) and use GraphicsWindowEmbedded.
________________________________________
From: osg-users [osg-users-bounces at lists.openscenegraph.org] on behalf of Andrea Pennarelli [andrea.peretti at edu.unito.it]
Sent: 23 January 2017 16:36
To: osg-users at lists.openscenegraph.org
Subject: [osg-users] [build] OSG with OpenGL ES 2.0 and Angle
Hi,
I'm trying to build openscenegraph with OpenGL ES 2.0 and Angle on windows, using CMake GUI and Visual Studio 2015. I've setted the CMake variables like the page trac.openscenegraph dot org /projects/osg/wiki/Community/OpenGL-ES says. I've added the OPENGL_INCLUDE_DIR as explained in the page. I've not found the OPENGL_LIBRARY so I added it too. I've setted them to point to the Angle's include folder and Angle's libGLESv2.lib and libEGL.lib, but when I generate the project Cmake returns an error, and Visual Studio don't compile.
I receive this errors:
'glDepthRangef': identifier not found
'GL_NUM_SHADER_BINARY_FORMATS': undeclared identifier
'GL_SHADER_BINARY_FORMATS': undeclared identifier
'glShaderBinary': identifier not found
'glClearDepthf': identifier not found
I've tried to search other guides to compile in OGL ES 2.0, but I wasn't so lucky so I decided to ask in the forum.
The final goal is to compile OSG with Angle to run it on Microsoft's HoloLens.
Thank you!
Cheers,
Andrea
------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70032#70032
_______________________________________________
osg-users mailing list
osg-users at lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
More information about the osg-users
mailing list