private void InitializeGLObjects(VertexLayout.Type layoutType) { InitializeVBO(); InitializeEBO(); InitializeVAO(layoutType); _shouldDispose = true; }
private void InitializeVAO(VertexLayout.Type layoutType) { VAO = GL.GenVertexArray(); GL.BindVertexArray(VAO); VertexLayout.SetLayout(VAO, layoutType); }
public Mesh(VertexLayout.Type layoutType) { LayoutType = layoutType; InitializeGLObjects(LayoutType); }
public Renderer(ShaderWrapper shader, VertexLayout.Type type) { _shaderWrapper = shader; _mesh = new Mesh(type); _shouldDispose = true; }