Oh, and I forgot:

5. "It's too hard to make a subtraction"
switch(value) {
    case 100: return 0;
    case 101: return 1;
    case 102: return 2;
    case 103: return 3;
    case 104: return 4;
    case 105: return 5;
    case 106: return 6;
    case 107: return 7;
    // etc...
}

Sukender
PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to