Lines Matching refs:size
28 VertexFrame::VertexFrame(int size)
30 size_(size) {
42 bool VertexFrame::WriteData(const uint8_t* data, int size) {
55 if (first_upload && size == size_)
56 glBufferData(GL_ARRAY_BUFFER, size, data, GL_STATIC_DRAW);
57 else if (!first_upload && size <= size_)
58 glBufferSubData(GL_ARRAY_BUFFER, 0, size, data);
61 "inside the vertex frame (%d bytes)!", size, size_);
69 // Subsequent uploads are now bound to the size given here
70 size_ = size;