コード例 #1
0
 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());
 }
コード例 #2
0
        protected override void internalDispose()
        {
            GL.BindBuffer(BufferTarget.ArrayBuffer, vertexBufferId);
            GL.UnmapBuffer(BufferTarget.ArrayBuffer);

            commandSync.Dispose();
            commandSync = null;

            base.internalDispose();
        }
コード例 #3
0
 public PrimitiveStreamerPersistentMap(VertexDeclaration vertexDeclaration, int minRenderableVertexCount, ushort[] indexes = null)
     : base(vertexDeclaration, minRenderableVertexCount, indexes)
 {
     commandSync = new GpuCommandSync();
 }