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