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: enter image description here

you can find article here


Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -