Lines Matching refs:size
32 VertexFrame::VertexFrame(int size)
34 size_(size) {
46 bool VertexFrame::WriteData(const uint8_t* data, int size) {
59 if (first_upload && size == size_)
60 glBufferData(GL_ARRAY_BUFFER, size, data, GL_STATIC_DRAW);
61 else if (!first_upload && size <= size_)
62 glBufferSubData(GL_ARRAY_BUFFER, 0, size, data);
65 "inside the vertex frame (%d bytes)!", size, size_);
73 // Subsequent uploads are now bound to the size given here
74 size_ = size;