using System; using System.Collections.Generic; using System.Linq; using System.Runtime.CompilerServices; using System.Text; using System.Threading.Tasks; namespace StgSharp.Graphics { public partial class Form { /// /// Create a set of . /// /// Amount of EBO to be created. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] protected ElementBuffer CreateElementBuffer(int count) { return new ElementBuffer(count, this.gl); } /// /// Create a set of . /// /// Amount of VAO to be crated. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] protected VertexArray CreateVertexArray(int count) { return new VertexArray(count, gl); } /// /// Create a sets of /// /// Amount of textures to be crated. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] protected Texture CreateTexture(int count) { return new Texture(count, this.GL); } /// /// Create aset of . /// /// Amount of Object to be created. /// [MethodImpl(MethodImplOptions.AggressiveInlining)] protected VertexBuffer CreateVertexBuffer(int count) { return new VertexBuffer(count, gl); } } }