示例#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();
     }
 }
示例#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}!");
            }
        }
示例#3
0
文件: GL.cs 项目: mortend/uno
 public void VertexAttribPointer(int index, int size, GLDataType type, bool normalized, int stride, int offset)
 {
     TKGL.VertexAttribPointer(index, size, (VertexAttribPointerType)type, normalized, stride, offset);
 }
示例#4
0
 internal abstract void glVertexPointer(int size, GLDataType type, int stride, void *pointer);
示例#5
0
 internal abstract void glTexCoordPointer(int size, GLDataType type, int stride, void *pointer);
示例#6
0
 internal abstract void glNormalPointer(GLDataType type, int stride, void *pointer);
示例#7
0
 internal abstract void glColorPointer(int size, GLDataType type, int stride, void *pointer);
示例#8
0
文件: GL.cs 项目: yongaru/uno
 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);
 }
示例#9
0
文件: DummyGL.cs 项目: mortend/uno
 public void VertexAttribPointer(int index, int size, GLDataType type, bool normalized, int stride, int offset)
 {
 }
示例#10
0
 public static extern void glNormalPointer(GLDataType type, int stride, void *pointer);
示例#11
0
 public static extern void glColorPointer(int size, GLDataType type, int stride, void *pointer);
示例#12
0
 public static extern void glTexCoordPointer(int size, GLDataType type, int stride, void *pointer);