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 }); }
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); }