Ejemplo n.º 1
0
        internal void VertexAttributePointer(long index, int size, WebGLType type, bool normalized, int stride, int offset)
        {
            int normalizedInt = normalized ? 0 : 1;

            InvokeCanvasMethodUnmarshalled <object>(UnmarshalledCanvasMethod.VertexAttributePointer, index, size, type, normalizedInt, stride, offset);
            // InvokeCanvasMethod("vertexAttribPointer", new object[] { index, size, (int)type, normalized, stride, offset });
        }
Ejemplo n.º 2
0
 public void DrawElements(WebGLDrawMode mode, int offset, WebGLType type, int vertexCount)
 {
     InvokeCanvasMethodUnmarshalled <object>(UnmarshalledCanvasMethod.DrawElements, mode, offset, type, vertexCount);
     //InvokeCanvasMethod("drawArrays", new object[] { (int)mode, offset, vertexCount });
 }
 public void VertexAttributePointer(int size, WebGLType type, bool normalized, int stride, int offset)
 {
     program.Context.VertexAttributePointer(id, size, type, normalized, stride, offset);
 }