void glClearBufferData(GLenum target, GLenum internalformat, GLenum format,
GLenum type, const void* data);
I'm not quite sure how to use this method properly. More specifically the internalformat and format parameters. The official documentation is very vague about what these are, and I'm having trouble finding a list of available targets for these. Are these set targets, or do I need to just to pass a size for the data or something? I also couldn't find any usage examples of this function online... could anyone provide me with one, or perhaps a list of targets?
Reference: http://www.opengl.org/registry/specs/ARB/clear_buffer_object.txt
You can find a list of some internal formats here: http://www.opengl.org/sdk/docs/man/xhtml/glTexImage2D.xml
though i cannot seem to find table 3.15 that the text references.
EXAMPLE:
You can find this article here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With