public void VertexAttribPointer(int index, int size, GLDataType type, bool normalized, int stride, int offset) { try { this.BeginFunc(); this._gl.VertexAttribPointer(index, size, type, normalized, stride, offset); } finally { this.EndFunc(); } }
public static PICAAttributeFormat ToPICAAttributeFormat(this GLDataType Format) { switch (Format) { case GLDataType.GL_BYTE: return(PICAAttributeFormat.Byte); case GLDataType.GL_UNSIGNED_BYTE: return(PICAAttributeFormat.Ubyte); case GLDataType.GL_SHORT: return(PICAAttributeFormat.Short); case GLDataType.GL_FLOAT: return(PICAAttributeFormat.Float); default: throw new ArgumentException($"Invalid format {Format}!"); } }
public void VertexAttribPointer(int index, int size, GLDataType type, bool normalized, int stride, int offset) { TKGL.VertexAttribPointer(index, size, (VertexAttribPointerType)type, normalized, stride, offset); }
internal abstract void glVertexPointer(int size, GLDataType type, int stride, void *pointer);
internal abstract void glTexCoordPointer(int size, GLDataType type, int stride, void *pointer);
internal abstract void glNormalPointer(GLDataType type, int stride, void *pointer);
internal abstract void glColorPointer(int size, GLDataType type, int stride, void *pointer);
public static void VertexAttribPointer(int index, int size, GLDataType type, bool normalized, int stride, int offset) { GL._gl.VertexAttribPointer(index, size, type, normalized, stride, offset); }
public void VertexAttribPointer(int index, int size, GLDataType type, bool normalized, int stride, int offset) { }
public static extern void glNormalPointer(GLDataType type, int stride, void *pointer);
public static extern void glColorPointer(int size, GLDataType type, int stride, void *pointer);
public static extern void glTexCoordPointer(int size, GLDataType type, int stride, void *pointer);