I have a few questions about shaders, some of which apply to JOGL and others are basic opengl operation:
- When getting the shader info log, we’re supposed to pass in a byte buffer. Since in java, chars are 2 bytes (I think it’s only 1 in c/c++), so will the byte buffer have to be 2 * number of chars in the info log? and will the byte buffer’s method getChar(index) still work correctly?
2)When using glDrawPixels and there’s a shader program linked, will the fragment shader get used?
3)Do you have to use glCreateShader(type) to get an id, or can you call glShaderSource(…) with a predefined id and have it make a shader for that id?
Thanks