Advertisement

Need help with making new Data Type for VB to work with OpenGL smoothly

Started by March 09, 2002 06:10 PM
1 comment, last by Waldoo 22 years, 11 months ago
In Visual Basic looks like that: glReadPixel xpos, ypos, 1, 1, rpRed. pxlByte, Variable How do you make new date type to make "pxlUnsignedByte" instead of pxlByte? Reason I asked that is because pxlByte output is 0 to 127 and it discard any minus number in VB. I think it is final problem for VB with OpenGL Waldoo
Public Const pxlUnsignedByte &H1401

Shove that in a module somewhere and you should be able to pass that to glReadPixels.



-------- E y e .Scream Software --------
----------------------------------------
                                  /-\
    http://www.eyescream.cjb.net | * |
                                  \-/
----------------------------------------
Advertisement
It worked thanks!

How did you find find &H1401?

Waldoo

This topic is closed to new replies.

Advertisement