Exemple #1
0
 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();
     }
 }
Exemple #2
0
        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}!");
            }
        }
Exemple #3
0
 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);
Exemple #8
0
 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);
 }
Exemple #9
0
 public void VertexAttribPointer(int index, int size, GLDataType type, bool normalized, int stride, int offset)
 {
 }
Exemple #10
0
 public static extern void glNormalPointer(GLDataType type, int stride, void *pointer);
Exemple #11
0
 public static extern void glColorPointer(int size, GLDataType type, int stride, void *pointer);
Exemple #12
0
 public static extern void glTexCoordPointer(int size, GLDataType type, int stride, void *pointer);