public new static bool HasCapabilities() { return(DrawState.HasCapabilities(4, 4, "GL_ARB_buffer_storage") && DrawState.HasCapabilities(3, 0, "GL_ARB_map_buffer_range") && DrawState.HasCapabilities(1, 5) && GpuCommandSync.HasCapabilities() && PrimitiveStreamerVao <TPrimitive> .HasCapabilities()); }
protected override void internalDispose() { GL.BindBuffer(BufferTarget.ArrayBuffer, vertexBufferId); GL.UnmapBuffer(BufferTarget.ArrayBuffer); commandSync.Dispose(); commandSync = null; base.internalDispose(); }
public PrimitiveStreamerPersistentMap(VertexDeclaration vertexDeclaration, int minRenderableVertexCount, ushort[] indexes = null) : base(vertexDeclaration, minRenderableVertexCount, indexes) { commandSync = new GpuCommandSync(); }