private void EnsureInitialized() { if (Initialized) { return; } if (_Handle == -1) { Create(); } Bind(); if (_vbo == null) { _vbo = CreateVBO(); } // if (_ebo == null) // _ebo = CreateEBO(); Layout.InitAttributes(); Initialized = true; }
public VertexArrayObject(VertexLayoutBinded layout, VertexBufferObject vbo = null, ElementsBufferObject ebo = null) { Layout = layout; _vbo = vbo; _ebo = ebo; }
public void SetVbo(VertexBufferObject vbo) { _vbo = vbo; }