Exemplo n.º 1
0
 /// <summary>
 /// Return a texture image.
 /// </summary>
 /// <param name="target">Specifies which texture is to	be obtained. OpenGL.TEXTURE_1D and OpenGL.TEXTURE_2D are accepted.</param>
 /// <param name="level">Specifies the level-of-detail number of the desired image.  Level	0 is the base image level.  Level n is the nth mipmap reduction image.</param>
 /// <param name="format">Specifies a pixel format for the returned data.</param>
 /// <param name="type">Specifies a pixel type for the returned data.</param>
 /// <param name="pixels">Returns the texture image.  Should be	a pointer to an array of the type specified by type.</param>
 public static void GetTexImage(GetTexImageTargets target, int level, GetTexImageFormats format, GetTexImageTypes type, UnmanagedArrayBase pixels)
 {
     GL.GetTexImage((uint)target, level, (uint)format, (uint)type, pixels.Header);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Return a texture image.
 /// </summary>
 /// <param name="target">Specifies which texture is to	be obtained. OpenGL.TEXTURE_1D and OpenGL.TEXTURE_2D are accepted.</param>
 /// <param name="level">Specifies the level-of-detail number of the desired image.  Level	0 is the base image level.  Level n is the nth mipmap reduction image.</param>
 /// <param name="format">Specifies a pixel format for the returned data.</param>
 /// <param name="type">Specifies a pixel type for the returned data.</param>
 /// <param name="pixels">Returns the texture image.  Should be	a pointer to an array of the type specified by type.</param>
 public static void GetTexImage(GetTexImageTargets target, int level, GetTexImageFormats format, GetTexImageTypes type, UnmanagedArrayBase pixels)
 {
     GL.GetTexImage((uint)target, level, (uint)format, (uint)type, pixels.Header);
 }