glSelectBuffer float value for depth

BlitzMax Forums/BlitzMax OpenGL Programming/glSelectBuffer float value for depth

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

Oh well, it was what you asked so I assumed it was what you wanted to know..:)

Your second post seems to be asking how to convert an int into a floating range of 0.1?

If so, this'll do it,

   Function IntToFloat:Float( IntVal:Int,MaxVal:Int )
        return float(maxVal)/float(intVal)
   end function


Max range being the highest value an int will reach.(This'll result in 1)

Sorry if I'm mis-understood again, i'm not all that good at maths...