c++ - glClearBufferData - Usage Example? -
void glclearbufferdata(glenum target, glenum internalformat, glenum format, glenum type, const void* data);
i'm not quite sure how use method properly. more internalformat , format parameters. official documentation vague these are, , i'm having trouble finding list of available targets these. these set targets, or need pass size data or something? couldn't find usage examples of function online... provide me one, or perhaps list of targets?
- target target destination buffer bound.
- internalformat must set 1 of format tokens given opengl
- format , type specify format , type of source data.
- data converted data passed buffer
reference: http://www.opengl.org/registry/specs/arb/clear_buffer_object.txt
you can find list of internal formats here: http://www.opengl.org/sdk/docs/man/xhtml/glteximage2d.xml
though cannot seem find table 3.15 text references.
example:
you can find article here
Comments
Post a Comment