Skip to main content
added 22 characters in body; edited title
Source Link
user1430
user1430

Is it acceptable to buffer no data openGLOpenGL?

Correct me if I am wrong, but if you call "glBufferData(...)" upon an existing buffer, it will resize the buffer to whatever data you upload.

Does that mean if I call something like

glBufferData(GL_ARRAY_BUFFER, 0, NULL, GL_DYNAMIC_DRAW);

it will keep the buffer in existence, but it will have size and no data?

In the description of glBufferData here http://www.opengl.org/sdk/docs/man/xhtml/glBufferData.xmldescription of glBufferData, it says it is acceptable to pass NULLNULL as a datadata parameter, but it mentions nothing of the sizesize parameter.

Is it acceptable to buffer no data openGL

Correct me if I am wrong, but if you call "glBufferData(...)" upon an existing buffer, it will resize the buffer to whatever data you upload.

Does that mean if I call something like

glBufferData(GL_ARRAY_BUFFER, 0, NULL, GL_DYNAMIC_DRAW);

it will keep the buffer in existence, but it will have size and no data?

In the description of glBufferData here http://www.opengl.org/sdk/docs/man/xhtml/glBufferData.xml, it says it is acceptable to pass NULL as a data parameter, but it mentions nothing of the size parameter.

Is it acceptable to buffer no data OpenGL?

Correct me if I am wrong, but if you call "glBufferData(...)" upon an existing buffer, it will resize the buffer to whatever data you upload.

Does that mean if I call something like

glBufferData(GL_ARRAY_BUFFER, 0, NULL, GL_DYNAMIC_DRAW);

it will keep the buffer in existence, but it will have size and no data?

In the description of glBufferData, it says it is acceptable to pass NULL as a data parameter, but it mentions nothing of the size parameter.

Source Link
BWG
  • 167
  • 7

Is it acceptable to buffer no data openGL

Correct me if I am wrong, but if you call "glBufferData(...)" upon an existing buffer, it will resize the buffer to whatever data you upload.

Does that mean if I call something like

glBufferData(GL_ARRAY_BUFFER, 0, NULL, GL_DYNAMIC_DRAW);

it will keep the buffer in existence, but it will have size and no data?

In the description of glBufferData here http://www.opengl.org/sdk/docs/man/xhtml/glBufferData.xml, it says it is acceptable to pass NULL as a data parameter, but it mentions nothing of the size parameter.