Login  Register

GLubyte equivalent

Posted by rullie on Aug 31, 2010; 4:34pm
URL: https://forum.jogamp.org/GLubyte-equivalent-tp1395467.html

Hello,
  I am procedurally generating a texture and calling glTexImage1D.  The last parameter asks for a Buffer, should I be putting in ByteBuffer? If so, is the second last parameter GL_UNSIGNED_BYTE? Would Byte.MAX_VALUE be equivalent to (GLubyte)255?

Thanks in advance.
Regards,
rullie