Example #1
0
 /// <summary>
 /// Defines the vertex specification for an Attribute Index on the current bound VertexArrayObject.
 /// </summary>
 /// <param name="index">Attribute Index to specify vertex data for.</param>
 /// <param name="Size">Number of components of type. or BGRA if ARB_vertex_array_bgra/gl3.2 is supported.</param>
 /// <param name="type">The opengl base type of data to set.</param>
 /// <param name="normalized">Is data normalized</param>
 /// <param name="stride">The stride between vertices.</param>
 /// <param name="offset">offset in current bound buffer object to start sourcing at.</param>
 public static void VertexAttribPointer(uint index, int Size, VertexAttribFormat type, int stride, long offset, bool normalized = false)
 {
     Delegates.glVertexAttribPointer(index, Size, type, normalized, stride, (IntPtr)offset);
 }
 /// <summary>
 /// Defines the vertex specification for an Attribute Index on the current bound VertexArrayObject.
 /// </summary>
 /// <param name="index">Attribute Index to specify vertex data for.</param>
 /// <param name="Size">Number of components of type. or BGRA if ARB_vertex_array_bgra/gl3.2 is supported.</param>
 /// <param name="type">The opengl base type of data to set.</param>
 /// <param name="normalized">Is data normalized</param>
 /// <param name="stride">The stride between vertices.</param>
 /// <param name="offset">offset in current bound buffer object to start sourcing at.</param>
 public static void VertexAttribPointer(uint index, int Size, VertexAttribFormat type, int stride, long offset, bool normalized = false)
 {
     Delegates.glVertexAttribPointer(index, Size, type, normalized, stride, (IntPtr)offset);
 }
 public static void VertexArrayVertexAttribFormatEXT(uint vaobj, uint AttribIndex, int Size, VertexAttribFormat type, uint relativeOffset, bool normalized = false)
 {
     Delegates.glVertexArrayVertexAttribFormatEXT(vaobj, AttribIndex, Size, type, normalized, relativeOffset);
 }
Example #4
0
 /// <summary>
 /// Binds a named buffer to an AttributeIndex on a named vertexarray and specifies its vertex declaration.
 /// </summary>
 /// <param name="vaobj">VertexArrayObject to bind to.</param>
 /// <param name="BufferID">ID of buffer to bind to vao.</param>
 /// <param name="index">Attribute Index on Vao to bind to.</param>
 /// <param name="Size">Number of components in vertex declaration.</param>
 /// <param name="type">Type of component in vertex declaration.</param>
 /// <param name="normalized">Is data normalized.</param>
 /// <param name="stride">Stride between two vertices.</param>
 /// <param name="Offset">Offset in bytes from start of buffer to start of vertices.</param>
 public static void VertexArrayVertexAttribOffsetEXT(uint vaobj, uint BufferID, uint index, int Size, VertexAttribFormat type, int stride, long Offset, bool normalized = false)
 {
     Delegates.glVertexArrayVertexAttribOffsetEXT(vaobj, BufferID, index, Size, type, normalized, stride, (IntPtr)Offset);
 }
Example #5
0
 public static void VertexArrayVertexAttribFormatEXT(uint vaobj, uint AttribIndex, int Size, VertexAttribFormat type, uint relativeOffset, bool normalized = false)
 {
     Delegates.glVertexArrayVertexAttribFormatEXT(vaobj, AttribIndex, Size, type, normalized, relativeOffset);
 }
 /// <summary>
 /// Binds a named buffer to an AttributeIndex on a named vertexarray and specifies its vertex declaration.
 /// </summary>
 /// <param name="vaobj">VertexArrayObject to bind to.</param>
 /// <param name="BufferID">ID of buffer to bind to vao.</param>
 /// <param name="index">Attribute Index on Vao to bind to.</param>
 /// <param name="Size">Number of components in vertex declaration.</param>
 /// <param name="type">Type of component in vertex declaration.</param>
 /// <param name="normalized">Is data normalized.</param>
 /// <param name="stride">Stride between two vertices.</param>
 /// <param name="Offset">Offset in bytes from start of buffer to start of vertices.</param>
 public static void VertexArrayVertexAttribOffsetEXT(uint vaobj, uint BufferID, uint index, int Size, VertexAttribFormat type, int stride, long Offset, bool normalized = false)
 {
     Delegates.glVertexArrayVertexAttribOffsetEXT(vaobj, BufferID, index, Size, type, normalized, stride, (IntPtr)Offset);
 }