Beispiel #1
0
        public VertexStreamGL VertexStreamGL(AttributeMappings mappings)
        {
            int index          = mappings.InstanceIndex;
            var existingStream = vertexStreamsGL[index];

            if (existingStream == null)
            {
                var stream = vertexStreamsGL[index] = new VertexStreamGL();
                mappings.BindAttributes(
                    stream,
                    vertexFormat
                    );
                return(stream);
            }
            else
            {
                return(existingStream);
            }
        }
Beispiel #2
0
        public VertexStreamGL VertexStreamGL(AttributeMappings mappings)
        {
            int index     = mappings.InstanceIndex;
            var bindings0 = vertexStreamsGL[index];

            if (bindings0 == null)
            {
                var bindings = vertexStreamsGL[index] = new VertexStreamGL();
                mappings.BindAttributes(
                    bindings,
                    vertexFormat
                    );
                return(bindings);
            }
            else
            {
                return(bindings0);
            }
        }
 public VertexStreamGL VertexStreamGL(AttributeMappings mappings)
 {
     throw new InvalidOperationException();
 }
Beispiel #4
0
 public VertexStreamGL VertexStreamGL(AttributeMappings mappings)
 {
     return(buffer.VertexStreamGL(mappings));
 }