PDA

View Full Version : Need help with making new Data Type for VB to work with OpenGL smoothly



waldoo
03-09-2002, 04:23 PM
In Visual Basic looks like that: glReadPixel xpos, ypos, 1, 1, rpRed. pxlByte, Variable
How do you make new date type "pxlUnsignedByte" instead of pxlByte?

Reason I asked that is because pxlByte output is 0 to 127 and it discard any minus number in VB.

Waldoo

No slur please

Shag
03-09-2002, 11:41 PM
A VB string is the same as a uByte. try usinf that to get the data, then converting to an integer afterwards.