Updated the bindings with the latest generator revision.
This commit is contained in:
parent
d5961d3b8a
commit
baf9b4d648
4 changed files with 167 additions and 94 deletions
|
@ -2,8 +2,10 @@ namespace OpenTK.OpenGL
|
|||
{
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
#pragma warning disable 3019
|
||||
#pragma warning disable 1591
|
||||
|
||||
public static partial class Glu
|
||||
static partial class Glu
|
||||
{
|
||||
|
||||
public static
|
||||
|
@ -32,12 +34,17 @@ namespace OpenTK.OpenGL
|
|||
|
||||
public static
|
||||
Int32 Build1DMipmapLevel(OpenTK.OpenGL.Enums.TextureTarget target, Int32 internalFormat, Int32 width, OpenTK.OpenGL.Enums.PixelFormat format, OpenTK.OpenGL.Enums.PixelType type, Int32 level, Int32 @base, Int32 max, IntPtr data)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
return Delegates.gluBuild1DMipmapLevels((OpenTK.OpenGL.Enums.TextureTarget)target, (Int32)internalFormat, (Int32)width, (OpenTK.OpenGL.Enums.PixelFormat)format, (OpenTK.OpenGL.Enums.PixelType)type, (Int32)level, (Int32)@base, (Int32)max, (IntPtr)data);
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
Int32 Build1DMipmapLevel(OpenTK.OpenGL.Enums.TextureTarget target, Int32 internalFormat, Int32 width, OpenTK.OpenGL.Enums.PixelFormat format, OpenTK.OpenGL.Enums.PixelType type, Int32 level, Int32 @base, Int32 max, [In, Out] object data)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
System.Runtime.InteropServices.GCHandle data_ptr = System.Runtime.InteropServices.GCHandle.Alloc(data, System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
try
|
||||
|
@ -49,15 +56,21 @@ namespace OpenTK.OpenGL
|
|||
data_ptr.Free();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
Int32 Build1DMipmap(OpenTK.OpenGL.Enums.TextureTarget target, Int32 internalFormat, Int32 width, OpenTK.OpenGL.Enums.PixelFormat format, OpenTK.OpenGL.Enums.PixelType type, IntPtr data)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
return Delegates.gluBuild1DMipmaps((OpenTK.OpenGL.Enums.TextureTarget)target, (Int32)internalFormat, (Int32)width, (OpenTK.OpenGL.Enums.PixelFormat)format, (OpenTK.OpenGL.Enums.PixelType)type, (IntPtr)data);
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
Int32 Build1DMipmap(OpenTK.OpenGL.Enums.TextureTarget target, Int32 internalFormat, Int32 width, OpenTK.OpenGL.Enums.PixelFormat format, OpenTK.OpenGL.Enums.PixelType type, [In, Out] object data)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
System.Runtime.InteropServices.GCHandle data_ptr = System.Runtime.InteropServices.GCHandle.Alloc(data, System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
try
|
||||
|
@ -69,15 +82,21 @@ namespace OpenTK.OpenGL
|
|||
data_ptr.Free();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
Int32 Build2DMipmapLevel(OpenTK.OpenGL.Enums.TextureTarget target, Int32 internalFormat, Int32 width, Int32 height, OpenTK.OpenGL.Enums.PixelFormat format, OpenTK.OpenGL.Enums.PixelType type, Int32 level, Int32 @base, Int32 max, IntPtr data)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
return Delegates.gluBuild2DMipmapLevels((OpenTK.OpenGL.Enums.TextureTarget)target, (Int32)internalFormat, (Int32)width, (Int32)height, (OpenTK.OpenGL.Enums.PixelFormat)format, (OpenTK.OpenGL.Enums.PixelType)type, (Int32)level, (Int32)@base, (Int32)max, (IntPtr)data);
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
Int32 Build2DMipmapLevel(OpenTK.OpenGL.Enums.TextureTarget target, Int32 internalFormat, Int32 width, Int32 height, OpenTK.OpenGL.Enums.PixelFormat format, OpenTK.OpenGL.Enums.PixelType type, Int32 level, Int32 @base, Int32 max, [In, Out] object data)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
System.Runtime.InteropServices.GCHandle data_ptr = System.Runtime.InteropServices.GCHandle.Alloc(data, System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
try
|
||||
|
@ -89,15 +108,21 @@ namespace OpenTK.OpenGL
|
|||
data_ptr.Free();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
Int32 Build2DMipmap(OpenTK.OpenGL.Enums.TextureTarget target, Int32 internalFormat, Int32 width, Int32 height, OpenTK.OpenGL.Enums.PixelFormat format, OpenTK.OpenGL.Enums.PixelType type, IntPtr data)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
return Delegates.gluBuild2DMipmaps((OpenTK.OpenGL.Enums.TextureTarget)target, (Int32)internalFormat, (Int32)width, (Int32)height, (OpenTK.OpenGL.Enums.PixelFormat)format, (OpenTK.OpenGL.Enums.PixelType)type, (IntPtr)data);
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
Int32 Build2DMipmap(OpenTK.OpenGL.Enums.TextureTarget target, Int32 internalFormat, Int32 width, Int32 height, OpenTK.OpenGL.Enums.PixelFormat format, OpenTK.OpenGL.Enums.PixelType type, [In, Out] object data)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
System.Runtime.InteropServices.GCHandle data_ptr = System.Runtime.InteropServices.GCHandle.Alloc(data, System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
try
|
||||
|
@ -109,15 +134,21 @@ namespace OpenTK.OpenGL
|
|||
data_ptr.Free();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
Int32 Build3DMipmapLevel(OpenTK.OpenGL.Enums.TextureTarget target, Int32 internalFormat, Int32 width, Int32 height, Int32 depth, OpenTK.OpenGL.Enums.PixelFormat format, OpenTK.OpenGL.Enums.PixelType type, Int32 level, Int32 @base, Int32 max, IntPtr data)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
return Delegates.gluBuild3DMipmapLevels((OpenTK.OpenGL.Enums.TextureTarget)target, (Int32)internalFormat, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.OpenGL.Enums.PixelFormat)format, (OpenTK.OpenGL.Enums.PixelType)type, (Int32)level, (Int32)@base, (Int32)max, (IntPtr)data);
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
Int32 Build3DMipmapLevel(OpenTK.OpenGL.Enums.TextureTarget target, Int32 internalFormat, Int32 width, Int32 height, Int32 depth, OpenTK.OpenGL.Enums.PixelFormat format, OpenTK.OpenGL.Enums.PixelType type, Int32 level, Int32 @base, Int32 max, [In, Out] object data)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
System.Runtime.InteropServices.GCHandle data_ptr = System.Runtime.InteropServices.GCHandle.Alloc(data, System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
try
|
||||
|
@ -129,15 +160,21 @@ namespace OpenTK.OpenGL
|
|||
data_ptr.Free();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
Int32 Build3DMipmap(OpenTK.OpenGL.Enums.TextureTarget target, Int32 internalFormat, Int32 width, Int32 height, Int32 depth, OpenTK.OpenGL.Enums.PixelFormat format, OpenTK.OpenGL.Enums.PixelType type, IntPtr data)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
return Delegates.gluBuild3DMipmaps((OpenTK.OpenGL.Enums.TextureTarget)target, (Int32)internalFormat, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.OpenGL.Enums.PixelFormat)format, (OpenTK.OpenGL.Enums.PixelType)type, (IntPtr)data);
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
Int32 Build3DMipmap(OpenTK.OpenGL.Enums.TextureTarget target, Int32 internalFormat, Int32 width, Int32 height, Int32 depth, OpenTK.OpenGL.Enums.PixelFormat format, OpenTK.OpenGL.Enums.PixelType type, [In, Out] object data)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
System.Runtime.InteropServices.GCHandle data_ptr = System.Runtime.InteropServices.GCHandle.Alloc(data, System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
try
|
||||
|
@ -149,6 +186,7 @@ namespace OpenTK.OpenGL
|
|||
data_ptr.Free();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
bool CheckExtension(Byte[] extName, Byte[] extString)
|
||||
|
@ -239,15 +277,21 @@ namespace OpenTK.OpenGL
|
|||
|
||||
public static
|
||||
string ErrorString(OpenTK.OpenGL.Enums.GluErrorCode error)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.gluErrorString((OpenTK.OpenGL.Enums.GluErrorCode)error));
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
string GetString(OpenTK.OpenGL.Enums.GluStringName name)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.gluGetString((OpenTK.OpenGL.Enums.GluStringName)name));
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
void GetNurbsProperty(int nurb, OpenTK.OpenGL.Enums.NurbsProperty property, [Out] float[] data)
|
||||
|
@ -386,12 +430,17 @@ namespace OpenTK.OpenGL
|
|||
|
||||
public static
|
||||
void NurbsCallbackData(int nurb, IntPtr userData)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
Delegates.gluNurbsCallbackData((int)nurb, (IntPtr)userData);
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
void NurbsCallbackData(int nurb, [In, Out] object userData)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
System.Runtime.InteropServices.GCHandle userData_ptr = System.Runtime.InteropServices.GCHandle.Alloc(userData, System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
try
|
||||
|
@ -403,6 +452,7 @@ namespace OpenTK.OpenGL
|
|||
userData_ptr.Free();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
void NurbsCurve(int nurb, Int32 knotCount, [Out] float[] knots, Int32 stride, [Out] float[] control, Int32 order, OpenTK.OpenGL.Enums.MapTarget type)
|
||||
|
@ -634,12 +684,17 @@ namespace OpenTK.OpenGL
|
|||
|
||||
public static
|
||||
Int32 ScaleImage(OpenTK.OpenGL.Enums.PixelFormat format, Int32 wIn, Int32 hIn, OpenTK.OpenGL.Enums.PixelType typeIn, IntPtr dataIn, Int32 wOut, Int32 hOut, OpenTK.OpenGL.Enums.PixelType typeOut, [Out] IntPtr dataOut)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
return Delegates.gluScaleImage((OpenTK.OpenGL.Enums.PixelFormat)format, (Int32)wIn, (Int32)hIn, (OpenTK.OpenGL.Enums.PixelType)typeIn, (IntPtr)dataIn, (Int32)wOut, (Int32)hOut, (OpenTK.OpenGL.Enums.PixelType)typeOut, (IntPtr)dataOut);
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
Int32 ScaleImage(OpenTK.OpenGL.Enums.PixelFormat format, Int32 wIn, Int32 hIn, OpenTK.OpenGL.Enums.PixelType typeIn, [In, Out] object dataIn, Int32 wOut, Int32 hOut, OpenTK.OpenGL.Enums.PixelType typeOut, [In, Out] object dataOut)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
System.Runtime.InteropServices.GCHandle dataIn_ptr = System.Runtime.InteropServices.GCHandle.Alloc(dataIn, System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
System.Runtime.InteropServices.GCHandle dataOut_ptr = System.Runtime.InteropServices.GCHandle.Alloc(dataOut, System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
|
@ -653,6 +708,7 @@ namespace OpenTK.OpenGL
|
|||
dataOut_ptr.Free();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
void Sphere(int quad, double radius, Int32 slices, Int32 stacks)
|
||||
|
@ -668,12 +724,17 @@ namespace OpenTK.OpenGL
|
|||
|
||||
public static
|
||||
void TessBeginPolygon(int tess, IntPtr data)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
Delegates.gluTessBeginPolygon((int)tess, (IntPtr)data);
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
void TessBeginPolygon(int tess, [In, Out] object data)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
System.Runtime.InteropServices.GCHandle data_ptr = System.Runtime.InteropServices.GCHandle.Alloc(data, System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
try
|
||||
|
@ -685,6 +746,7 @@ namespace OpenTK.OpenGL
|
|||
data_ptr.Free();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
void TessCallback(int tess, OpenTK.OpenGL.Enums.TessCallback which, IntPtr CallBackFunc)
|
||||
|
@ -852,12 +914,17 @@ namespace OpenTK.OpenGL
|
|||
{
|
||||
public static
|
||||
void NurbsCallbackData(int nurb, IntPtr userData)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
Delegates.gluNurbsCallbackDataEXT((int)nurb, (IntPtr)userData);
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
void NurbsCallbackData(int nurb, [In, Out] object userData)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
System.Runtime.InteropServices.GCHandle userData_ptr = System.Runtime.InteropServices.GCHandle.Alloc(userData, System.Runtime.InteropServices.GCHandleType.Pinned);
|
||||
try
|
||||
|
@ -869,33 +936,34 @@ namespace OpenTK.OpenGL
|
|||
userData_ptr.Free();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
public static partial class Sgi
|
||||
{
|
||||
public static
|
||||
Int32 TexFilterFunc(OpenTK.OpenGL.Enums.TextureTarget target, OpenTK.OpenGL.Enums.Filter4TypeSgis filtertype, float[] parms, Int32 n, [Out] float[] weights)
|
||||
Int32 TexFilterFunc(OpenTK.OpenGL.Enums.TextureTarget target, OpenTK.OpenGL.Enums.SgisTextureFilter4 filtertype, float[] parms, Int32 n, [Out] float[] weights)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
fixed (float* parms_ptr = parms)
|
||||
fixed (float* weights_ptr = weights)
|
||||
{
|
||||
return Delegates.gluTexFilterFuncSGI((OpenTK.OpenGL.Enums.TextureTarget)target, (OpenTK.OpenGL.Enums.Filter4TypeSgis)filtertype, (float*)parms_ptr, (Int32)n, (float*)weights_ptr);
|
||||
return Delegates.gluTexFilterFuncSGI((OpenTK.OpenGL.Enums.TextureTarget)target, (OpenTK.OpenGL.Enums.SgisTextureFilter4)filtertype, (float*)parms_ptr, (Int32)n, (float*)weights_ptr);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public static
|
||||
Int32 TexFilterFunc(OpenTK.OpenGL.Enums.TextureTarget target, OpenTK.OpenGL.Enums.Filter4TypeSgis filtertype, ref float parms, Int32 n, [Out] out float weights)
|
||||
Int32 TexFilterFunc(OpenTK.OpenGL.Enums.TextureTarget target, OpenTK.OpenGL.Enums.SgisTextureFilter4 filtertype, ref float parms, Int32 n, [Out] out float weights)
|
||||
{
|
||||
unsafe
|
||||
{
|
||||
fixed (float* parms_ptr = &parms)
|
||||
fixed (float* weights_ptr = &weights)
|
||||
{
|
||||
Int32 retval = Delegates.gluTexFilterFuncSGI((OpenTK.OpenGL.Enums.TextureTarget)target, (OpenTK.OpenGL.Enums.Filter4TypeSgis)filtertype, (float*)parms_ptr, (Int32)n, (float*)weights_ptr);
|
||||
Int32 retval = Delegates.gluTexFilterFuncSGI((OpenTK.OpenGL.Enums.TextureTarget)target, (OpenTK.OpenGL.Enums.SgisTextureFilter4)filtertype, (float*)parms_ptr, (Int32)n, (float*)weights_ptr);
|
||||
weights = *weights_ptr;
|
||||
return retval;
|
||||
}
|
||||
|
@ -904,9 +972,9 @@ namespace OpenTK.OpenGL
|
|||
|
||||
[System.CLSCompliant(false)]
|
||||
public static
|
||||
unsafe Int32 TexFilterFunc(OpenTK.OpenGL.Enums.TextureTarget target, OpenTK.OpenGL.Enums.Filter4TypeSgis filtertype, float* parms, Int32 n, [Out] float* weights)
|
||||
unsafe Int32 TexFilterFunc(OpenTK.OpenGL.Enums.TextureTarget target, OpenTK.OpenGL.Enums.SgisTextureFilter4 filtertype, float* parms, Int32 n, [Out] float* weights)
|
||||
{
|
||||
return Delegates.gluTexFilterFuncSGI((OpenTK.OpenGL.Enums.TextureTarget)target, (OpenTK.OpenGL.Enums.Filter4TypeSgis)filtertype, (float*)parms, (Int32)n, (float*)weights);
|
||||
return Delegates.gluTexFilterFuncSGI((OpenTK.OpenGL.Enums.TextureTarget)target, (OpenTK.OpenGL.Enums.SgisTextureFilter4)filtertype, (float*)parms, (Int32)n, (float*)weights);
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -2,6 +2,8 @@ namespace OpenTK.OpenGL
|
|||
{
|
||||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
#pragma warning disable 3019
|
||||
#pragma warning disable 1591
|
||||
|
||||
partial class Glu
|
||||
{
|
||||
|
|
|
@ -3,6 +3,8 @@ namespace OpenTK.OpenGL
|
|||
using System;
|
||||
using System.Runtime.InteropServices;
|
||||
#pragma warning disable 0649
|
||||
#pragma warning disable 3019
|
||||
#pragma warning disable 1591
|
||||
|
||||
partial class Glu
|
||||
{
|
||||
|
@ -180,7 +182,7 @@ namespace OpenTK.OpenGL
|
|||
internal unsafe delegate void TessVertex(int tess, [Out] double* location, IntPtr data);
|
||||
internal unsafe static TessVertex gluTessVertex;
|
||||
[System.Security.SuppressUnmanagedCodeSecurity()]
|
||||
internal unsafe delegate Int32 TexFilterFuncSGI(OpenTK.OpenGL.Enums.TextureTarget target, OpenTK.OpenGL.Enums.Filter4TypeSgis filtertype, float* parms, Int32 n, [Out] float* weights);
|
||||
internal unsafe delegate Int32 TexFilterFuncSGI(OpenTK.OpenGL.Enums.TextureTarget target, OpenTK.OpenGL.Enums.SgisTextureFilter4 filtertype, float* parms, Int32 n, [Out] float* weights);
|
||||
internal unsafe static TexFilterFuncSGI gluTexFilterFuncSGI;
|
||||
[System.Security.SuppressUnmanagedCodeSecurity()]
|
||||
internal unsafe delegate Int32 UnProject(double winX, double winY, double winZ, double* model, double* proj, Int32* view, double* objX, double* objY, double* objZ);
|
||||
|
@ -190,5 +192,4 @@ namespace OpenTK.OpenGL
|
|||
internal unsafe static UnProject4 gluUnProject4;
|
||||
}
|
||||
}
|
||||
#pragma warning restore 0649
|
||||
}
|
||||
|
|
|
@ -2,6 +2,8 @@ namespace OpenTK.OpenGL
|
|||
{
|
||||
namespace Enums
|
||||
{
|
||||
#pragma warning disable 3019
|
||||
#pragma warning disable 1591
|
||||
public enum GluVersion
|
||||
{
|
||||
Version11 = ((int)1),
|
||||
|
@ -23,7 +25,7 @@ namespace OpenTK.OpenGL
|
|||
InvalidOperation = ((int)100904),
|
||||
}
|
||||
|
||||
public enum Filter4TypeSgis
|
||||
public enum Filter4TypeSGIS
|
||||
{
|
||||
MitchellNetravaliSgi = ((int)100301),
|
||||
LagrangianSgi = ((int)100300),
|
||||
|
|
Loading…
Reference in a new issue