| 51 | } |
| 52 | |
| 53 | void GL46Buffer::Initialize() |
| 54 | { |
| 55 | glBindBuffer(mType, mGLHandle); |
| 56 | |
| 57 | // Access the buffer. |
| 58 | auto buffer = GetBuffer(); |
| 59 | |
| 60 | // Create and initialize a buffer. |
| 61 | glBufferData(mType, buffer->GetNumBytes(), buffer->GetData(), mUsage); |
| 62 | |
| 63 | glBindBuffer(mType, 0); |
| 64 | } |
| 65 | |
| 66 | bool GL46Buffer::Update() |
| 67 | { |
nothing calls this directly
no test coverage detected