DungeonLords
08-01-2010, 04:34 AM
I have a programm, wich drawing quad into screen; it use VBO. My programm work good, but I have a question.
Tell me please if I wood use in place of:
[Delphi code][/B]
glBufferData(GL_ARRAY_BUFFER, sizeof(GLFLoat)*3*Count, @VertexBuffer[0], GL_STATIC_DRAW);
this code:
var Size:Integer;
...
Size := sizeof(GLFLoat)*3*Count;
glBufferData(GL_ARRAY_BUFFER, Size, nil, GL_STREAM_DRAW);
glBufferSubData(GL_ARRAY_BUFFER, 0, Size, @VertexBuffer[0]);
The performance don't lower??? Fact is that I creating classes for simple using VBO. This is a reason, that I want to have max flexibility.
P.S. Use the simple english words, please.
Tell me please if I wood use in place of:
[Delphi code][/B]
glBufferData(GL_ARRAY_BUFFER, sizeof(GLFLoat)*3*Count, @VertexBuffer[0], GL_STATIC_DRAW);
this code:
var Size:Integer;
...
Size := sizeof(GLFLoat)*3*Count;
glBufferData(GL_ARRAY_BUFFER, Size, nil, GL_STREAM_DRAW);
glBufferSubData(GL_ARRAY_BUFFER, 0, Size, @VertexBuffer[0]);
The performance don't lower??? Fact is that I creating classes for simple using VBO. This is a reason, that I want to have max flexibility.
P.S. Use the simple english words, please.