vancegroup / vr-jugglua

VR JuggLua: A Framework for VR Applications Combining Lua, OpenSceneGraph, and VR Juggler
Boost Software License 1.0
11 stars 11 forks source link

wireframe and stateset bug #117

Open carlsonp opened 11 years ago

carlsonp commented 11 years ago

Found by @chiefkikio:

Here is the code that I tried unsuccessfully
wireframeMode = osg.PolygonMode:setMode(osg.PolygonMode.Mode.FRONT_AND_BACK,osg.PolygonMode.Mode.FILL)
mystate:setAttributeAndModes(wireframeMode)

This code runs without errors but draws a filled polygon regardless of the numeric enums put in:
wireframeMode = osg.PolygonMode()
wireframeMode:setMode(0, 1)
mystate:setAttributeAndModes(wireframeMode)