[osg-users] Minor issue with GraphicsWindowWin32.cpp and mouse capture in 3.4.0

2017-01-23 Thread Andrew Cunningham
Hi,
Somewhere along the line since 3.0.1 the logic of 'mouse capture' changed to 
have the concept of it being possible to have multiple buttons 'captured' on 
button down. When the capture count goes to 0 on mouse up, the mouse is 
'released'.

Unfortunately, this seems to cause problems with , say, Win32 pop-up/context 
menus as OSG is not 'releasing' the mouse to the pop-up menu. 

The 'fix' ( for me) was to revert to 3.0.1 behavior so that the 
::ReleaseCapture() is always called on 'button-up'. Just a heads up for 
others...

Andrew

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=70033#70033





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] [build] OSG with OpenGL ES 2.0 and Angle

2017-01-23 Thread Andrea Pennarelli
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@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org