public static void Delete(ref VAO vao) { if (vao._vao != 0) { GLAssert.EnsureContext(); GL.DeleteVertexArray(vao._vao); vao = default; } }
public static void Delete(ref IBO ibo) { if (ibo._ibo != 0) { GLAssert.EnsureContext(); GL.DeleteBuffer(ibo._ibo); ibo = default; } }
public static void Delete(ref Ssbo ssbo) { if (ssbo._ssbo != 0) { GLAssert.EnsureContext(); GL.DeleteBuffer(ssbo._ssbo); ssbo = default; } }
public static unsafe void Delete(ref VBO vbo) { if (vbo._vbo != 0) { GLAssert.EnsureContext(); GL.DeleteBuffer(vbo._vbo); vbo = default; } }
internal static void Delete(ref ProgramObject po) { if (po._program != 0) { GLAssert.EnsureContext(); GL.DeleteProgram(po._program); po = default; } }
public static IBO Create() { GLAssert.EnsureContext(); return(new IBO(GL.GenBuffer())); }
public static TextureObject Create() { GLAssert.EnsureContext(); return(new TextureObject(GL.GenTexture())); }
public static void BindBase(Ssbo ssbo, int index) { GLAssert.EnsureContext(); GL.BindBufferBase(BufferRangeTarget.ShaderStorageBuffer, index, ssbo._ssbo); }
public static unsafe void BufferData(int byteSize, void *data, BufferHint hint) { GLAssert.EnsureContext(); GL.BufferData(BufferTarget.ShaderStorageBuffer, byteSize, (IntPtr)data, hint.ToOriginalValue()); }
public static void Bind(Ssbo ssbo) { GLAssert.EnsureContext(); GL.BindBuffer(BufferTarget.ShaderStorageBuffer, ssbo._ssbo); }
public static Ssbo Create() { GLAssert.EnsureContext(); return(new Ssbo(GL.GenBuffer())); }
public static VAO Create() { GLAssert.EnsureContext(); return(new VAO(GL.GenVertexArray())); }
internal static ProgramObject Create() { GLAssert.EnsureContext(); return(new ProgramObject(GL.CreateProgram())); }