vancegroup / vr-jugglua

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

Wrap numbers from lua into osgLua in a class with custom converters #103

Open rpavlik opened 12 years ago

rpavlik commented 12 years ago

Instead of loading them directly as doubles (and thus breaking methods that want floats, when really we just don't distinguish between them since everything's a double in Lua), load them in a new class that has a handmade introspection wrapper with custom converters.

This might even allow us to get rid of or at least re-structure the "is it an int?" hack we do right now.

cc: @lpberg