/// <summary> /// Sets up Vertex Declaration for a shader attribute variable declared with 64-bit double precision. /// </summary> /// <param name="vaobj">identifies a vertex array object used instead of the currently bound one</param> /// <param name="buffer">buffer is used in place of the buffer object bound to ARRAY_BUFFER</param> /// <param name="index">Attribute Index to declare vertex specification for.</param> /// <param name="size">size may be one, two, three or four</param> /// <param name="type">type must be DOUBLE</param> /// <param name="stride">the length in bytes between two vertices.</param> /// <param name="offset">offset in bytes in named buffer to retrive vertices from.</param> public static void VertexArrayVertexAttribLOffsetEXT(uint vaobj, uint buffer, uint index, int size, VertexAttribLFormat type = VertexAttribLFormat.Double, int stride = 0, long offset = 0) { Delegates.glVertexArrayVertexAttribLOffsetEXT(vaobj, buffer, index, size, type, stride, (IntPtr)offset); }
public static void VertexArrayVertexAttribLFormatEXT(uint vaobj, uint AttribIndex, int Size, VertexAttribLFormat type, uint relativeOffset) { Delegates.glVertexArrayVertexAttribLFormatEXT(vaobj, AttribIndex, Size, type, relativeOffset); }
public static void VertexAttribLPointer(uint index, int size, VertexAttribLFormat type, int stride, long Offset) { Delegates.glVertexAttribLPointer(index, size, type, stride, (IntPtr)Offset); }
/// <summary> /// Sets up the Vertex Declaration for a AttributeIndex without specifind source buffer. /// Source buffer are specified by bind to bindingindex and map bindingindex and attribute index afterwards. /// </summary> /// <param name="attribIndex">Attribute Index to specify vertex declaration for.</param> /// <param name="Size">Number of components in vertices. aka vec2d = 2, vec3d = 3 osv.</param> /// <param name="ltype">Must be DOUBLE</param> /// <param name="relativeOffset">offset in bytes from start of eventually bound buffer?</param> public static void VertexAttribLFormat(uint attribIndex, int Size, VertexAttribLFormat ltype, uint relativeOffset) { Delegates.glVertexAttribLFormat(attribIndex, Size, ltype, relativeOffset); }