From 57c430fc363938f449f2eab9261ac1233a1e2d8f Mon Sep 17 00:00:00 2001 From: the_fiddler Date: Sat, 15 Aug 2009 16:55:53 +0000 Subject: [PATCH] Regenerated bindings using the latest generator updates. ES bindings now exist in ES10.GL, ES11.GL and ES20.GL classes instead of ES10.ES etc (reason: easier porting to/from regular OpenGL). --- Source/OpenTK/Graphics/ES10/Core.cs | 722 +- Source/OpenTK/Graphics/ES10/Delegates.cs | 720 +- Source/OpenTK/Graphics/ES10/ES.cs | 11719 ++++---- Source/OpenTK/Graphics/ES10/Enums.cs | 1342 +- Source/OpenTK/Graphics/ES10/Helper.cs | 2 +- Source/OpenTK/Graphics/ES11/Core.cs | 1265 +- Source/OpenTK/Graphics/ES11/Delegates.cs | 1263 +- Source/OpenTK/Graphics/ES11/ES.cs | 21888 ++++++++------- Source/OpenTK/Graphics/ES11/Enums.cs | 2347 +- Source/OpenTK/Graphics/ES11/ErrorHelper.cs | 4 +- Source/OpenTK/Graphics/ES11/Helper.cs | 114 +- Source/OpenTK/Graphics/ES20/Core.cs | 1043 +- Source/OpenTK/Graphics/ES20/Delegates.cs | 1041 +- Source/OpenTK/Graphics/ES20/ES.cs | 27754 +++++++++---------- Source/OpenTK/Graphics/ES20/Enums.cs | 1937 +- Source/OpenTK/Graphics/ES20/Helper.cs | 2 +- 16 files changed, 38351 insertions(+), 34812 deletions(-) diff --git a/Source/OpenTK/Graphics/ES10/Core.cs b/Source/OpenTK/Graphics/ES10/Core.cs index ae750382..d1b79cba 100644 --- a/Source/OpenTK/Graphics/ES10/Core.cs +++ b/Source/OpenTK/Graphics/ES10/Core.cs @@ -1,361 +1,361 @@ -#region License -// -// The Open Toolkit Library License -// -// Copyright (c) 2006 - 2009 the Open Toolkit library. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -// the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -// OTHER DEALINGS IN THE SOFTWARE. -// -#endregion - -namespace OpenTK.Graphics.ES10 -{ - using System; - using System.Runtime.InteropServices; - #pragma warning disable 3019 - #pragma warning disable 1591 - - partial class ES - { - - internal static partial class Core - { - - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glActiveTexture", ExactSpelling = true)] - internal extern static void ActiveTexture([In, Out] OpenTK.Graphics.ES10.All texture); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glAlphaFunc", ExactSpelling = true)] - internal extern static void AlphaFunc([In, Out] OpenTK.Graphics.ES10.All func, [In, Out] Single @ref); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glAlphaFuncx", ExactSpelling = true)] - internal extern static void AlphaFuncx([In, Out] OpenTK.Graphics.ES10.All func, [In, Out] int @ref); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glBindTexture", ExactSpelling = true)] - internal extern static void BindTexture([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] UInt32 texture); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glBlendFunc", ExactSpelling = true)] - internal extern static void BlendFunc([In, Out] OpenTK.Graphics.ES10.All sfactor, [In, Out] OpenTK.Graphics.ES10.All dfactor); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glClear", ExactSpelling = true)] - internal extern static void Clear([In, Out] UInt32 mask); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glClearColor", ExactSpelling = true)] - internal extern static void ClearColor([In, Out] Single red, [In, Out] Single green, [In, Out] Single blue, [In, Out] Single alpha); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glClearColorx", ExactSpelling = true)] - internal extern static void ClearColorx([In, Out] int red, [In, Out] int green, [In, Out] int blue, [In, Out] int alpha); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glClearDepthf", ExactSpelling = true)] - internal extern static void ClearDepthf([In, Out] Single depth); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glClearDepthx", ExactSpelling = true)] - internal extern static void ClearDepthx([In, Out] int depth); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glClearStencil", ExactSpelling = true)] - internal extern static void ClearStencil([In, Out] Int32 s); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glClientActiveTexture", ExactSpelling = true)] - internal extern static void ClientActiveTexture([In, Out] OpenTK.Graphics.ES10.All texture); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glColor4f", ExactSpelling = true)] - internal extern static void Color4f([In, Out] Single red, [In, Out] Single green, [In, Out] Single blue, [In, Out] Single alpha); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glColor4x", ExactSpelling = true)] - internal extern static void Color4x([In, Out] int red, [In, Out] int green, [In, Out] int blue, [In, Out] int alpha); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glColorMask", ExactSpelling = true)] - internal extern static void ColorMask([In, Out] bool red, [In, Out] bool green, [In, Out] bool blue, [In, Out] bool alpha); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glColorPointer", ExactSpelling = true)] - internal extern static void ColorPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glCompressedTexImage2D", ExactSpelling = true)] - internal extern static void CompressedTexImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES10.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] Int32 imageSize, [In, Out] IntPtr data); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glCompressedTexSubImage2D", ExactSpelling = true)] - internal extern static void CompressedTexSubImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] Int32 imageSize, [In, Out] IntPtr data); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glCopyTexImage2D", ExactSpelling = true)] - internal extern static void CopyTexImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES10.All internalformat, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glCopyTexSubImage2D", ExactSpelling = true)] - internal extern static void CopyTexSubImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glCullFace", ExactSpelling = true)] - internal extern static void CullFace([In, Out] OpenTK.Graphics.ES10.All mode); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDeleteTextures", ExactSpelling = true)] - internal extern static unsafe void DeleteTextures([In, Out] Int32 n, [In, Out] UInt32* textures); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDepthFunc", ExactSpelling = true)] - internal extern static void DepthFunc([In, Out] OpenTK.Graphics.ES10.All func); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDepthMask", ExactSpelling = true)] - internal extern static void DepthMask([In, Out] bool flag); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDepthRangef", ExactSpelling = true)] - internal extern static void DepthRangef([In, Out] Single zNear, [In, Out] Single zFar); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDepthRangex", ExactSpelling = true)] - internal extern static void DepthRangex([In, Out] int zNear, [In, Out] int zFar); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDisable", ExactSpelling = true)] - internal extern static void Disable([In, Out] OpenTK.Graphics.ES10.All cap); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDisableClientState", ExactSpelling = true)] - internal extern static void DisableClientState([In, Out] OpenTK.Graphics.ES10.All array); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDrawArrays", ExactSpelling = true)] - internal extern static void DrawArrays([In, Out] OpenTK.Graphics.ES10.All mode, [In, Out] Int32 first, [In, Out] Int32 count); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDrawElements", ExactSpelling = true)] - internal extern static void DrawElements([In, Out] OpenTK.Graphics.ES10.All mode, [In, Out] Int32 count, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] IntPtr indices); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glEnable", ExactSpelling = true)] - internal extern static void Enable([In, Out] OpenTK.Graphics.ES10.All cap); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glEnableClientState", ExactSpelling = true)] - internal extern static void EnableClientState([In, Out] OpenTK.Graphics.ES10.All array); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFinish", ExactSpelling = true)] - internal extern static void Finish(); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFlush", ExactSpelling = true)] - internal extern static void Flush(); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFogf", ExactSpelling = true)] - internal extern static void Fogf([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFogfv", ExactSpelling = true)] - internal extern static unsafe void Fogfv([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFogx", ExactSpelling = true)] - internal extern static void Fogx([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFogxv", ExactSpelling = true)] - internal extern static unsafe void Fogxv([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFrontFace", ExactSpelling = true)] - internal extern static void FrontFace([In, Out] OpenTK.Graphics.ES10.All mode); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFrustumf", ExactSpelling = true)] - internal extern static void Frustumf([In, Out] Single left, [In, Out] Single right, [In, Out] Single bottom, [In, Out] Single top, [In, Out] Single zNear, [In, Out] Single zFar); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFrustumx", ExactSpelling = true)] - internal extern static void Frustumx([In, Out] int left, [In, Out] int right, [In, Out] int bottom, [In, Out] int top, [In, Out] int zNear, [In, Out] int zFar); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGenTextures", ExactSpelling = true)] - internal extern static unsafe void GenTextures([In, Out] Int32 n, [In, Out] UInt32* textures); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetError", ExactSpelling = true)] - internal extern static OpenTK.Graphics.ES10.All GetError(); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetIntegerv", ExactSpelling = true)] - internal extern static unsafe void GetIntegerv([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Int32* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetString", ExactSpelling = true)] - internal extern static unsafe IntPtr GetString([In, Out] OpenTK.Graphics.ES10.All name); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glHint", ExactSpelling = true)] - internal extern static void Hint([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All mode); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLightf", ExactSpelling = true)] - internal extern static void Lightf([In, Out] OpenTK.Graphics.ES10.All light, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLightfv", ExactSpelling = true)] - internal extern static unsafe void Lightfv([In, Out] OpenTK.Graphics.ES10.All light, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLightModelf", ExactSpelling = true)] - internal extern static void LightModelf([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLightModelfv", ExactSpelling = true)] - internal extern static unsafe void LightModelfv([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLightModelx", ExactSpelling = true)] - internal extern static void LightModelx([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLightModelxv", ExactSpelling = true)] - internal extern static unsafe void LightModelxv([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLightx", ExactSpelling = true)] - internal extern static void Lightx([In, Out] OpenTK.Graphics.ES10.All light, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLightxv", ExactSpelling = true)] - internal extern static unsafe void Lightxv([In, Out] OpenTK.Graphics.ES10.All light, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLineWidth", ExactSpelling = true)] - internal extern static void LineWidth([In, Out] Single width); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLineWidthx", ExactSpelling = true)] - internal extern static void LineWidthx([In, Out] int width); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLoadIdentity", ExactSpelling = true)] - internal extern static void LoadIdentity(); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLoadMatrixf", ExactSpelling = true)] - internal extern static unsafe void LoadMatrixf([In, Out] Single* m); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLoadMatrixx", ExactSpelling = true)] - internal extern static unsafe void LoadMatrixx([In, Out] int* m); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLogicOp", ExactSpelling = true)] - internal extern static void LogicOp([In, Out] OpenTK.Graphics.ES10.All opcode); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glMaterialf", ExactSpelling = true)] - internal extern static void Materialf([In, Out] OpenTK.Graphics.ES10.All face, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glMaterialfv", ExactSpelling = true)] - internal extern static unsafe void Materialfv([In, Out] OpenTK.Graphics.ES10.All face, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glMaterialx", ExactSpelling = true)] - internal extern static void Materialx([In, Out] OpenTK.Graphics.ES10.All face, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glMaterialxv", ExactSpelling = true)] - internal extern static unsafe void Materialxv([In, Out] OpenTK.Graphics.ES10.All face, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glMatrixMode", ExactSpelling = true)] - internal extern static void MatrixMode([In, Out] OpenTK.Graphics.ES10.All mode); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glMultiTexCoord4f", ExactSpelling = true)] - internal extern static void MultiTexCoord4f([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Single s, [In, Out] Single t, [In, Out] Single r, [In, Out] Single q); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glMultiTexCoord4x", ExactSpelling = true)] - internal extern static void MultiTexCoord4x([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] int s, [In, Out] int t, [In, Out] int r, [In, Out] int q); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glMultMatrixf", ExactSpelling = true)] - internal extern static unsafe void MultMatrixf([In, Out] Single* m); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glMultMatrixx", ExactSpelling = true)] - internal extern static unsafe void MultMatrixx([In, Out] int* m); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glNormal3f", ExactSpelling = true)] - internal extern static void Normal3f([In, Out] Single nx, [In, Out] Single ny, [In, Out] Single nz); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glNormal3x", ExactSpelling = true)] - internal extern static void Normal3x([In, Out] int nx, [In, Out] int ny, [In, Out] int nz); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glNormalPointer", ExactSpelling = true)] - internal extern static void NormalPointer([In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glOrthof", ExactSpelling = true)] - internal extern static void Orthof([In, Out] Single left, [In, Out] Single right, [In, Out] Single bottom, [In, Out] Single top, [In, Out] Single zNear, [In, Out] Single zFar); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glOrthox", ExactSpelling = true)] - internal extern static void Orthox([In, Out] int left, [In, Out] int right, [In, Out] int bottom, [In, Out] int top, [In, Out] int zNear, [In, Out] int zFar); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glPixelStorei", ExactSpelling = true)] - internal extern static void PixelStorei([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Int32 param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glPointSize", ExactSpelling = true)] - internal extern static void PointSize([In, Out] Single size); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glPointSizex", ExactSpelling = true)] - internal extern static void PointSizex([In, Out] int size); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glPolygonOffset", ExactSpelling = true)] - internal extern static void PolygonOffset([In, Out] Single factor, [In, Out] Single units); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glPolygonOffsetx", ExactSpelling = true)] - internal extern static void PolygonOffsetx([In, Out] int factor, [In, Out] int units); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glPopMatrix", ExactSpelling = true)] - internal extern static void PopMatrix(); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glPushMatrix", ExactSpelling = true)] - internal extern static void PushMatrix(); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glReadPixels", ExactSpelling = true)] - internal extern static void ReadPixels([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] IntPtr pixels); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glRotatef", ExactSpelling = true)] - internal extern static void Rotatef([In, Out] Single angle, [In, Out] Single x, [In, Out] Single y, [In, Out] Single z); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glRotatex", ExactSpelling = true)] - internal extern static void Rotatex([In, Out] int angle, [In, Out] int x, [In, Out] int y, [In, Out] int z); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glSampleCoverage", ExactSpelling = true)] - internal extern static void SampleCoverage([In, Out] Single value, [In, Out] bool invert); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glSampleCoveragex", ExactSpelling = true)] - internal extern static void SampleCoveragex([In, Out] int value, [In, Out] bool invert); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glScalef", ExactSpelling = true)] - internal extern static void Scalef([In, Out] Single x, [In, Out] Single y, [In, Out] Single z); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glScalex", ExactSpelling = true)] - internal extern static void Scalex([In, Out] int x, [In, Out] int y, [In, Out] int z); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glScissor", ExactSpelling = true)] - internal extern static void Scissor([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glShadeModel", ExactSpelling = true)] - internal extern static void ShadeModel([In, Out] OpenTK.Graphics.ES10.All mode); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glStencilFunc", ExactSpelling = true)] - internal extern static void StencilFunc([In, Out] OpenTK.Graphics.ES10.All func, [In, Out] Int32 @ref, [In, Out] UInt32 mask); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glStencilMask", ExactSpelling = true)] - internal extern static void StencilMask([In, Out] UInt32 mask); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glStencilOp", ExactSpelling = true)] - internal extern static void StencilOp([In, Out] OpenTK.Graphics.ES10.All fail, [In, Out] OpenTK.Graphics.ES10.All zfail, [In, Out] OpenTK.Graphics.ES10.All zpass); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexCoordPointer", ExactSpelling = true)] - internal extern static void TexCoordPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexEnvf", ExactSpelling = true)] - internal extern static void TexEnvf([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexEnvfv", ExactSpelling = true)] - internal extern static unsafe void TexEnvfv([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexEnvx", ExactSpelling = true)] - internal extern static void TexEnvx([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexEnvxv", ExactSpelling = true)] - internal extern static unsafe void TexEnvxv([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexImage2D", ExactSpelling = true)] - internal extern static void TexImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] IntPtr pixels); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexParameterf", ExactSpelling = true)] - internal extern static void TexParameterf([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexParameterx", ExactSpelling = true)] - internal extern static void TexParameterx([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexSubImage2D", ExactSpelling = true)] - internal extern static void TexSubImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] IntPtr pixels); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTranslatef", ExactSpelling = true)] - internal extern static void Translatef([In, Out] Single x, [In, Out] Single y, [In, Out] Single z); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTranslatex", ExactSpelling = true)] - internal extern static void Translatex([In, Out] int x, [In, Out] int y, [In, Out] int z); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glVertexPointer", ExactSpelling = true)] - internal extern static void VertexPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glViewport", ExactSpelling = true)] - internal extern static void Viewport([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height); - } - } -} +#region License +// +// The Open Toolkit Library License +// +// Copyright (c) 2006 - 2009 the Open Toolkit library. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do +// so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// +#endregion + +namespace OpenTK.Graphics.ES10 +{ + using System; + using System.Runtime.InteropServices; + #pragma warning disable 3019 + #pragma warning disable 1591 + + partial class GL + { + + internal static partial class Core + { + + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glActiveTexture", ExactSpelling = true)] + internal extern static void ActiveTexture(OpenTK.Graphics.ES10.All texture); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glAlphaFunc", ExactSpelling = true)] + internal extern static void AlphaFunc(OpenTK.Graphics.ES10.All func, Single @ref); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glAlphaFuncx", ExactSpelling = true)] + internal extern static void AlphaFuncx(OpenTK.Graphics.ES10.All func, int @ref); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindTexture", ExactSpelling = true)] + internal extern static void BindTexture(OpenTK.Graphics.ES10.All target, UInt32 texture); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendFunc", ExactSpelling = true)] + internal extern static void BlendFunc(OpenTK.Graphics.ES10.All sfactor, OpenTK.Graphics.ES10.All dfactor); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClear", ExactSpelling = true)] + internal extern static void Clear(UInt32 mask); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearColor", ExactSpelling = true)] + internal extern static void ClearColor(Single red, Single green, Single blue, Single alpha); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearColorx", ExactSpelling = true)] + internal extern static void ClearColorx(int red, int green, int blue, int alpha); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearDepthf", ExactSpelling = true)] + internal extern static void ClearDepthf(Single depth); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearDepthx", ExactSpelling = true)] + internal extern static void ClearDepthx(int depth); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearStencil", ExactSpelling = true)] + internal extern static void ClearStencil(Int32 s); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClientActiveTexture", ExactSpelling = true)] + internal extern static void ClientActiveTexture(OpenTK.Graphics.ES10.All texture); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glColor4f", ExactSpelling = true)] + internal extern static void Color4f(Single red, Single green, Single blue, Single alpha); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glColor4x", ExactSpelling = true)] + internal extern static void Color4x(int red, int green, int blue, int alpha); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glColorMask", ExactSpelling = true)] + internal extern static void ColorMask(bool red, bool green, bool blue, bool alpha); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glColorPointer", ExactSpelling = true)] + internal extern static void ColorPointer(Int32 size, OpenTK.Graphics.ES10.All type, Int32 stride, IntPtr pointer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCompressedTexImage2D", ExactSpelling = true)] + internal extern static void CompressedTexImage2D(OpenTK.Graphics.ES10.All target, Int32 level, OpenTK.Graphics.ES10.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCompressedTexSubImage2D", ExactSpelling = true)] + internal extern static void CompressedTexSubImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES10.All format, Int32 imageSize, IntPtr data); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCopyTexImage2D", ExactSpelling = true)] + internal extern static void CopyTexImage2D(OpenTK.Graphics.ES10.All target, Int32 level, OpenTK.Graphics.ES10.All internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCopyTexSubImage2D", ExactSpelling = true)] + internal extern static void CopyTexSubImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCullFace", ExactSpelling = true)] + internal extern static void CullFace(OpenTK.Graphics.ES10.All mode); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteTextures", ExactSpelling = true)] + internal extern static unsafe void DeleteTextures(Int32 n, UInt32* textures); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDepthFunc", ExactSpelling = true)] + internal extern static void DepthFunc(OpenTK.Graphics.ES10.All func); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDepthMask", ExactSpelling = true)] + internal extern static void DepthMask(bool flag); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDepthRangef", ExactSpelling = true)] + internal extern static void DepthRangef(Single zNear, Single zFar); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDepthRangex", ExactSpelling = true)] + internal extern static void DepthRangex(int zNear, int zFar); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDisable", ExactSpelling = true)] + internal extern static void Disable(OpenTK.Graphics.ES10.All cap); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDisableClientState", ExactSpelling = true)] + internal extern static void DisableClientState(OpenTK.Graphics.ES10.All array); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawArrays", ExactSpelling = true)] + internal extern static void DrawArrays(OpenTK.Graphics.ES10.All mode, Int32 first, Int32 count); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawElements", ExactSpelling = true)] + internal extern static void DrawElements(OpenTK.Graphics.ES10.All mode, Int32 count, OpenTK.Graphics.ES10.All type, IntPtr indices); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEnable", ExactSpelling = true)] + internal extern static void Enable(OpenTK.Graphics.ES10.All cap); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEnableClientState", ExactSpelling = true)] + internal extern static void EnableClientState(OpenTK.Graphics.ES10.All array); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFinish", ExactSpelling = true)] + internal extern static void Finish(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFlush", ExactSpelling = true)] + internal extern static void Flush(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFogf", ExactSpelling = true)] + internal extern static void Fogf(OpenTK.Graphics.ES10.All pname, Single param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFogfv", ExactSpelling = true)] + internal extern static unsafe void Fogfv(OpenTK.Graphics.ES10.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFogx", ExactSpelling = true)] + internal extern static void Fogx(OpenTK.Graphics.ES10.All pname, int param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFogxv", ExactSpelling = true)] + internal extern static unsafe void Fogxv(OpenTK.Graphics.ES10.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFrontFace", ExactSpelling = true)] + internal extern static void FrontFace(OpenTK.Graphics.ES10.All mode); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFrustumf", ExactSpelling = true)] + internal extern static void Frustumf(Single left, Single right, Single bottom, Single top, Single zNear, Single zFar); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFrustumx", ExactSpelling = true)] + internal extern static void Frustumx(int left, int right, int bottom, int top, int zNear, int zFar); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenTextures", ExactSpelling = true)] + internal extern static unsafe void GenTextures(Int32 n, UInt32* textures); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetError", ExactSpelling = true)] + internal extern static OpenTK.Graphics.ES10.All GetError(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetIntegerv", ExactSpelling = true)] + internal extern static unsafe void GetIntegerv(OpenTK.Graphics.ES10.All pname, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetString", ExactSpelling = true)] + internal extern static unsafe IntPtr GetString(OpenTK.Graphics.ES10.All name); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glHint", ExactSpelling = true)] + internal extern static void Hint(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All mode); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLightf", ExactSpelling = true)] + internal extern static void Lightf(OpenTK.Graphics.ES10.All light, OpenTK.Graphics.ES10.All pname, Single param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLightfv", ExactSpelling = true)] + internal extern static unsafe void Lightfv(OpenTK.Graphics.ES10.All light, OpenTK.Graphics.ES10.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLightModelf", ExactSpelling = true)] + internal extern static void LightModelf(OpenTK.Graphics.ES10.All pname, Single param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLightModelfv", ExactSpelling = true)] + internal extern static unsafe void LightModelfv(OpenTK.Graphics.ES10.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLightModelx", ExactSpelling = true)] + internal extern static void LightModelx(OpenTK.Graphics.ES10.All pname, int param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLightModelxv", ExactSpelling = true)] + internal extern static unsafe void LightModelxv(OpenTK.Graphics.ES10.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLightx", ExactSpelling = true)] + internal extern static void Lightx(OpenTK.Graphics.ES10.All light, OpenTK.Graphics.ES10.All pname, int param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLightxv", ExactSpelling = true)] + internal extern static unsafe void Lightxv(OpenTK.Graphics.ES10.All light, OpenTK.Graphics.ES10.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLineWidth", ExactSpelling = true)] + internal extern static void LineWidth(Single width); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLineWidthx", ExactSpelling = true)] + internal extern static void LineWidthx(int width); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLoadIdentity", ExactSpelling = true)] + internal extern static void LoadIdentity(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLoadMatrixf", ExactSpelling = true)] + internal extern static unsafe void LoadMatrixf(Single* m); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLoadMatrixx", ExactSpelling = true)] + internal extern static unsafe void LoadMatrixx(int* m); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLogicOp", ExactSpelling = true)] + internal extern static void LogicOp(OpenTK.Graphics.ES10.All opcode); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMaterialf", ExactSpelling = true)] + internal extern static void Materialf(OpenTK.Graphics.ES10.All face, OpenTK.Graphics.ES10.All pname, Single param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMaterialfv", ExactSpelling = true)] + internal extern static unsafe void Materialfv(OpenTK.Graphics.ES10.All face, OpenTK.Graphics.ES10.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMaterialx", ExactSpelling = true)] + internal extern static void Materialx(OpenTK.Graphics.ES10.All face, OpenTK.Graphics.ES10.All pname, int param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMaterialxv", ExactSpelling = true)] + internal extern static unsafe void Materialxv(OpenTK.Graphics.ES10.All face, OpenTK.Graphics.ES10.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMatrixMode", ExactSpelling = true)] + internal extern static void MatrixMode(OpenTK.Graphics.ES10.All mode); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMultiTexCoord4f", ExactSpelling = true)] + internal extern static void MultiTexCoord4f(OpenTK.Graphics.ES10.All target, Single s, Single t, Single r, Single q); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMultiTexCoord4x", ExactSpelling = true)] + internal extern static void MultiTexCoord4x(OpenTK.Graphics.ES10.All target, int s, int t, int r, int q); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMultMatrixf", ExactSpelling = true)] + internal extern static unsafe void MultMatrixf(Single* m); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMultMatrixx", ExactSpelling = true)] + internal extern static unsafe void MultMatrixx(int* m); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glNormal3f", ExactSpelling = true)] + internal extern static void Normal3f(Single nx, Single ny, Single nz); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glNormal3x", ExactSpelling = true)] + internal extern static void Normal3x(int nx, int ny, int nz); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glNormalPointer", ExactSpelling = true)] + internal extern static void NormalPointer(OpenTK.Graphics.ES10.All type, Int32 stride, IntPtr pointer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glOrthof", ExactSpelling = true)] + internal extern static void Orthof(Single left, Single right, Single bottom, Single top, Single zNear, Single zFar); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glOrthox", ExactSpelling = true)] + internal extern static void Orthox(int left, int right, int bottom, int top, int zNear, int zFar); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPixelStorei", ExactSpelling = true)] + internal extern static void PixelStorei(OpenTK.Graphics.ES10.All pname, Int32 param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPointSize", ExactSpelling = true)] + internal extern static void PointSize(Single size); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPointSizex", ExactSpelling = true)] + internal extern static void PointSizex(int size); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPolygonOffset", ExactSpelling = true)] + internal extern static void PolygonOffset(Single factor, Single units); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPolygonOffsetx", ExactSpelling = true)] + internal extern static void PolygonOffsetx(int factor, int units); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPopMatrix", ExactSpelling = true)] + internal extern static void PopMatrix(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPushMatrix", ExactSpelling = true)] + internal extern static void PushMatrix(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glReadPixels", ExactSpelling = true)] + internal extern static void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES10.All format, OpenTK.Graphics.ES10.All type, IntPtr pixels); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glRotatef", ExactSpelling = true)] + internal extern static void Rotatef(Single angle, Single x, Single y, Single z); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glRotatex", ExactSpelling = true)] + internal extern static void Rotatex(int angle, int x, int y, int z); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glSampleCoverage", ExactSpelling = true)] + internal extern static void SampleCoverage(Single value, bool invert); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glSampleCoveragex", ExactSpelling = true)] + internal extern static void SampleCoveragex(int value, bool invert); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glScalef", ExactSpelling = true)] + internal extern static void Scalef(Single x, Single y, Single z); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glScalex", ExactSpelling = true)] + internal extern static void Scalex(int x, int y, int z); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glScissor", ExactSpelling = true)] + internal extern static void Scissor(Int32 x, Int32 y, Int32 width, Int32 height); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glShadeModel", ExactSpelling = true)] + internal extern static void ShadeModel(OpenTK.Graphics.ES10.All mode); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilFunc", ExactSpelling = true)] + internal extern static void StencilFunc(OpenTK.Graphics.ES10.All func, Int32 @ref, UInt32 mask); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilMask", ExactSpelling = true)] + internal extern static void StencilMask(UInt32 mask); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilOp", ExactSpelling = true)] + internal extern static void StencilOp(OpenTK.Graphics.ES10.All fail, OpenTK.Graphics.ES10.All zfail, OpenTK.Graphics.ES10.All zpass); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexCoordPointer", ExactSpelling = true)] + internal extern static void TexCoordPointer(Int32 size, OpenTK.Graphics.ES10.All type, Int32 stride, IntPtr pointer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexEnvf", ExactSpelling = true)] + internal extern static void TexEnvf(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All pname, Single param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexEnvfv", ExactSpelling = true)] + internal extern static unsafe void TexEnvfv(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexEnvx", ExactSpelling = true)] + internal extern static void TexEnvx(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All pname, int param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexEnvxv", ExactSpelling = true)] + internal extern static unsafe void TexEnvxv(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexImage2D", ExactSpelling = true)] + internal extern static void TexImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES10.All format, OpenTK.Graphics.ES10.All type, IntPtr pixels); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameterf", ExactSpelling = true)] + internal extern static void TexParameterf(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All pname, Single param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameterx", ExactSpelling = true)] + internal extern static void TexParameterx(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All pname, int param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexSubImage2D", ExactSpelling = true)] + internal extern static void TexSubImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES10.All format, OpenTK.Graphics.ES10.All type, IntPtr pixels); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTranslatef", ExactSpelling = true)] + internal extern static void Translatef(Single x, Single y, Single z); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTranslatex", ExactSpelling = true)] + internal extern static void Translatex(int x, int y, int z); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glVertexPointer", ExactSpelling = true)] + internal extern static void VertexPointer(Int32 size, OpenTK.Graphics.ES10.All type, Int32 stride, IntPtr pointer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glViewport", ExactSpelling = true)] + internal extern static void Viewport(Int32 x, Int32 y, Int32 width, Int32 height); + } + } +} diff --git a/Source/OpenTK/Graphics/ES10/Delegates.cs b/Source/OpenTK/Graphics/ES10/Delegates.cs index a6bd152c..c7be5abe 100644 --- a/Source/OpenTK/Graphics/ES10/Delegates.cs +++ b/Source/OpenTK/Graphics/ES10/Delegates.cs @@ -1,360 +1,360 @@ -#region License -// -// The Open Toolkit Library License -// -// Copyright (c) 2006 - 2009 the Open Toolkit library. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -// the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -// OTHER DEALINGS IN THE SOFTWARE. -// -#endregion - -namespace OpenTK.Graphics.ES10 -{ - using System; - using System.Runtime.InteropServices; - #pragma warning disable 0649 - #pragma warning disable 3019 - #pragma warning disable 1591 - - partial class ES - { - internal static partial class Delegates - { - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ActiveTexture([In, Out] OpenTK.Graphics.ES10.All texture); - internal static ActiveTexture glActiveTexture; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void AlphaFunc([In, Out] OpenTK.Graphics.ES10.All func, [In, Out] Single @ref); - internal static AlphaFunc glAlphaFunc; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void AlphaFuncx([In, Out] OpenTK.Graphics.ES10.All func, [In, Out] int @ref); - internal static AlphaFuncx glAlphaFuncx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BindTexture([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] UInt32 texture); - internal static BindTexture glBindTexture; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BlendFunc([In, Out] OpenTK.Graphics.ES10.All sfactor, [In, Out] OpenTK.Graphics.ES10.All dfactor); - internal static BlendFunc glBlendFunc; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Clear([In, Out] UInt32 mask); - internal static Clear glClear; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ClearColor([In, Out] Single red, [In, Out] Single green, [In, Out] Single blue, [In, Out] Single alpha); - internal static ClearColor glClearColor; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ClearColorx([In, Out] int red, [In, Out] int green, [In, Out] int blue, [In, Out] int alpha); - internal static ClearColorx glClearColorx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ClearDepthf([In, Out] Single depth); - internal static ClearDepthf glClearDepthf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ClearDepthx([In, Out] int depth); - internal static ClearDepthx glClearDepthx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ClearStencil([In, Out] Int32 s); - internal static ClearStencil glClearStencil; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ClientActiveTexture([In, Out] OpenTK.Graphics.ES10.All texture); - internal static ClientActiveTexture glClientActiveTexture; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Color4f([In, Out] Single red, [In, Out] Single green, [In, Out] Single blue, [In, Out] Single alpha); - internal static Color4f glColor4f; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Color4x([In, Out] int red, [In, Out] int green, [In, Out] int blue, [In, Out] int alpha); - internal static Color4x glColor4x; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ColorMask([In, Out] bool red, [In, Out] bool green, [In, Out] bool blue, [In, Out] bool alpha); - internal static ColorMask glColorMask; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ColorPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer); - internal static ColorPointer glColorPointer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CompressedTexImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES10.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] Int32 imageSize, [In, Out] IntPtr data); - internal static CompressedTexImage2D glCompressedTexImage2D; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CompressedTexSubImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] Int32 imageSize, [In, Out] IntPtr data); - internal static CompressedTexSubImage2D glCompressedTexSubImage2D; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CopyTexImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES10.All internalformat, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border); - internal static CopyTexImage2D glCopyTexImage2D; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CopyTexSubImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height); - internal static CopyTexSubImage2D glCopyTexSubImage2D; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CullFace([In, Out] OpenTK.Graphics.ES10.All mode); - internal static CullFace glCullFace; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void DeleteTextures([In, Out] Int32 n, [In, Out] UInt32* textures); - internal unsafe static DeleteTextures glDeleteTextures; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DepthFunc([In, Out] OpenTK.Graphics.ES10.All func); - internal static DepthFunc glDepthFunc; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DepthMask([In, Out] bool flag); - internal static DepthMask glDepthMask; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DepthRangef([In, Out] Single zNear, [In, Out] Single zFar); - internal static DepthRangef glDepthRangef; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DepthRangex([In, Out] int zNear, [In, Out] int zFar); - internal static DepthRangex glDepthRangex; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Disable([In, Out] OpenTK.Graphics.ES10.All cap); - internal static Disable glDisable; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DisableClientState([In, Out] OpenTK.Graphics.ES10.All array); - internal static DisableClientState glDisableClientState; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DrawArrays([In, Out] OpenTK.Graphics.ES10.All mode, [In, Out] Int32 first, [In, Out] Int32 count); - internal static DrawArrays glDrawArrays; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DrawElements([In, Out] OpenTK.Graphics.ES10.All mode, [In, Out] Int32 count, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] IntPtr indices); - internal static DrawElements glDrawElements; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Enable([In, Out] OpenTK.Graphics.ES10.All cap); - internal static Enable glEnable; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void EnableClientState([In, Out] OpenTK.Graphics.ES10.All array); - internal static EnableClientState glEnableClientState; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Finish(); - internal static Finish glFinish; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Flush(); - internal static Flush glFlush; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Fogf([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single param); - internal static Fogf glFogf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void Fogfv([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single* @params); - internal unsafe static Fogfv glFogfv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Fogx([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int param); - internal static Fogx glFogx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void Fogxv([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int* @params); - internal unsafe static Fogxv glFogxv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void FrontFace([In, Out] OpenTK.Graphics.ES10.All mode); - internal static FrontFace glFrontFace; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Frustumf([In, Out] Single left, [In, Out] Single right, [In, Out] Single bottom, [In, Out] Single top, [In, Out] Single zNear, [In, Out] Single zFar); - internal static Frustumf glFrustumf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Frustumx([In, Out] int left, [In, Out] int right, [In, Out] int bottom, [In, Out] int top, [In, Out] int zNear, [In, Out] int zFar); - internal static Frustumx glFrustumx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GenTextures([In, Out] Int32 n, [In, Out] UInt32* textures); - internal unsafe static GenTextures glGenTextures; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate OpenTK.Graphics.ES10.All GetError(); - internal static GetError glGetError; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetIntegerv([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Int32* @params); - internal unsafe static GetIntegerv glGetIntegerv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr GetString([In, Out] OpenTK.Graphics.ES10.All name); - internal unsafe static GetString glGetString; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Hint([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All mode); - internal static Hint glHint; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Lightf([In, Out] OpenTK.Graphics.ES10.All light, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single param); - internal static Lightf glLightf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void Lightfv([In, Out] OpenTK.Graphics.ES10.All light, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single* @params); - internal unsafe static Lightfv glLightfv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void LightModelf([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single param); - internal static LightModelf glLightModelf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void LightModelfv([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single* @params); - internal unsafe static LightModelfv glLightModelfv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void LightModelx([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int param); - internal static LightModelx glLightModelx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void LightModelxv([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int* @params); - internal unsafe static LightModelxv glLightModelxv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Lightx([In, Out] OpenTK.Graphics.ES10.All light, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int param); - internal static Lightx glLightx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void Lightxv([In, Out] OpenTK.Graphics.ES10.All light, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int* @params); - internal unsafe static Lightxv glLightxv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void LineWidth([In, Out] Single width); - internal static LineWidth glLineWidth; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void LineWidthx([In, Out] int width); - internal static LineWidthx glLineWidthx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void LoadIdentity(); - internal static LoadIdentity glLoadIdentity; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void LoadMatrixf([In, Out] Single* m); - internal unsafe static LoadMatrixf glLoadMatrixf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void LoadMatrixx([In, Out] int* m); - internal unsafe static LoadMatrixx glLoadMatrixx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void LogicOp([In, Out] OpenTK.Graphics.ES10.All opcode); - internal static LogicOp glLogicOp; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Materialf([In, Out] OpenTK.Graphics.ES10.All face, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single param); - internal static Materialf glMaterialf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void Materialfv([In, Out] OpenTK.Graphics.ES10.All face, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single* @params); - internal unsafe static Materialfv glMaterialfv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Materialx([In, Out] OpenTK.Graphics.ES10.All face, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int param); - internal static Materialx glMaterialx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void Materialxv([In, Out] OpenTK.Graphics.ES10.All face, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int* @params); - internal unsafe static Materialxv glMaterialxv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void MatrixMode([In, Out] OpenTK.Graphics.ES10.All mode); - internal static MatrixMode glMatrixMode; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void MultiTexCoord4f([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Single s, [In, Out] Single t, [In, Out] Single r, [In, Out] Single q); - internal static MultiTexCoord4f glMultiTexCoord4f; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void MultiTexCoord4x([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] int s, [In, Out] int t, [In, Out] int r, [In, Out] int q); - internal static MultiTexCoord4x glMultiTexCoord4x; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void MultMatrixf([In, Out] Single* m); - internal unsafe static MultMatrixf glMultMatrixf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void MultMatrixx([In, Out] int* m); - internal unsafe static MultMatrixx glMultMatrixx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Normal3f([In, Out] Single nx, [In, Out] Single ny, [In, Out] Single nz); - internal static Normal3f glNormal3f; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Normal3x([In, Out] int nx, [In, Out] int ny, [In, Out] int nz); - internal static Normal3x glNormal3x; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void NormalPointer([In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer); - internal static NormalPointer glNormalPointer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Orthof([In, Out] Single left, [In, Out] Single right, [In, Out] Single bottom, [In, Out] Single top, [In, Out] Single zNear, [In, Out] Single zFar); - internal static Orthof glOrthof; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Orthox([In, Out] int left, [In, Out] int right, [In, Out] int bottom, [In, Out] int top, [In, Out] int zNear, [In, Out] int zFar); - internal static Orthox glOrthox; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PixelStorei([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Int32 param); - internal static PixelStorei glPixelStorei; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PointSize([In, Out] Single size); - internal static PointSize glPointSize; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PointSizex([In, Out] int size); - internal static PointSizex glPointSizex; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PolygonOffset([In, Out] Single factor, [In, Out] Single units); - internal static PolygonOffset glPolygonOffset; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PolygonOffsetx([In, Out] int factor, [In, Out] int units); - internal static PolygonOffsetx glPolygonOffsetx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PopMatrix(); - internal static PopMatrix glPopMatrix; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PushMatrix(); - internal static PushMatrix glPushMatrix; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ReadPixels([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] IntPtr pixels); - internal static ReadPixels glReadPixels; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Rotatef([In, Out] Single angle, [In, Out] Single x, [In, Out] Single y, [In, Out] Single z); - internal static Rotatef glRotatef; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Rotatex([In, Out] int angle, [In, Out] int x, [In, Out] int y, [In, Out] int z); - internal static Rotatex glRotatex; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void SampleCoverage([In, Out] Single value, [In, Out] bool invert); - internal static SampleCoverage glSampleCoverage; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void SampleCoveragex([In, Out] int value, [In, Out] bool invert); - internal static SampleCoveragex glSampleCoveragex; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Scalef([In, Out] Single x, [In, Out] Single y, [In, Out] Single z); - internal static Scalef glScalef; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Scalex([In, Out] int x, [In, Out] int y, [In, Out] int z); - internal static Scalex glScalex; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Scissor([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height); - internal static Scissor glScissor; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ShadeModel([In, Out] OpenTK.Graphics.ES10.All mode); - internal static ShadeModel glShadeModel; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilFunc([In, Out] OpenTK.Graphics.ES10.All func, [In, Out] Int32 @ref, [In, Out] UInt32 mask); - internal static StencilFunc glStencilFunc; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilMask([In, Out] UInt32 mask); - internal static StencilMask glStencilMask; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilOp([In, Out] OpenTK.Graphics.ES10.All fail, [In, Out] OpenTK.Graphics.ES10.All zfail, [In, Out] OpenTK.Graphics.ES10.All zpass); - internal static StencilOp glStencilOp; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexCoordPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer); - internal static TexCoordPointer glTexCoordPointer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexEnvf([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single param); - internal static TexEnvf glTexEnvf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void TexEnvfv([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single* @params); - internal unsafe static TexEnvfv glTexEnvfv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexEnvx([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int param); - internal static TexEnvx glTexEnvx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void TexEnvxv([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int* @params); - internal unsafe static TexEnvxv glTexEnvxv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] IntPtr pixels); - internal static TexImage2D glTexImage2D; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexParameterf([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single param); - internal static TexParameterf glTexParameterf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexParameterx([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int param); - internal static TexParameterx glTexParameterx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexSubImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] IntPtr pixels); - internal static TexSubImage2D glTexSubImage2D; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Translatef([In, Out] Single x, [In, Out] Single y, [In, Out] Single z); - internal static Translatef glTranslatef; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Translatex([In, Out] int x, [In, Out] int y, [In, Out] int z); - internal static Translatex glTranslatex; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void VertexPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer); - internal static VertexPointer glVertexPointer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Viewport([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height); - internal static Viewport glViewport; - } - } -} +#region License +// +// The Open Toolkit Library License +// +// Copyright (c) 2006 - 2009 the Open Toolkit library. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do +// so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// +#endregion + +namespace OpenTK.Graphics.ES10 +{ + using System; + using System.Runtime.InteropServices; + #pragma warning disable 0649 + #pragma warning disable 3019 + #pragma warning disable 1591 + + partial class GL + { + internal static partial class Delegates + { + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ActiveTexture(OpenTK.Graphics.ES10.All texture); + internal static ActiveTexture glActiveTexture; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void AlphaFunc(OpenTK.Graphics.ES10.All func, Single @ref); + internal static AlphaFunc glAlphaFunc; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void AlphaFuncx(OpenTK.Graphics.ES10.All func, int @ref); + internal static AlphaFuncx glAlphaFuncx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BindTexture(OpenTK.Graphics.ES10.All target, UInt32 texture); + internal static BindTexture glBindTexture; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BlendFunc(OpenTK.Graphics.ES10.All sfactor, OpenTK.Graphics.ES10.All dfactor); + internal static BlendFunc glBlendFunc; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Clear(UInt32 mask); + internal static Clear glClear; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ClearColor(Single red, Single green, Single blue, Single alpha); + internal static ClearColor glClearColor; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ClearColorx(int red, int green, int blue, int alpha); + internal static ClearColorx glClearColorx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ClearDepthf(Single depth); + internal static ClearDepthf glClearDepthf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ClearDepthx(int depth); + internal static ClearDepthx glClearDepthx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ClearStencil(Int32 s); + internal static ClearStencil glClearStencil; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ClientActiveTexture(OpenTK.Graphics.ES10.All texture); + internal static ClientActiveTexture glClientActiveTexture; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Color4f(Single red, Single green, Single blue, Single alpha); + internal static Color4f glColor4f; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Color4x(int red, int green, int blue, int alpha); + internal static Color4x glColor4x; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ColorMask(bool red, bool green, bool blue, bool alpha); + internal static ColorMask glColorMask; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ColorPointer(Int32 size, OpenTK.Graphics.ES10.All type, Int32 stride, IntPtr pointer); + internal static ColorPointer glColorPointer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void CompressedTexImage2D(OpenTK.Graphics.ES10.All target, Int32 level, OpenTK.Graphics.ES10.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data); + internal static CompressedTexImage2D glCompressedTexImage2D; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void CompressedTexSubImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES10.All format, Int32 imageSize, IntPtr data); + internal static CompressedTexSubImage2D glCompressedTexSubImage2D; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void CopyTexImage2D(OpenTK.Graphics.ES10.All target, Int32 level, OpenTK.Graphics.ES10.All internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border); + internal static CopyTexImage2D glCopyTexImage2D; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void CopyTexSubImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height); + internal static CopyTexSubImage2D glCopyTexSubImage2D; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void CullFace(OpenTK.Graphics.ES10.All mode); + internal static CullFace glCullFace; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void DeleteTextures(Int32 n, UInt32* textures); + internal unsafe static DeleteTextures glDeleteTextures; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DepthFunc(OpenTK.Graphics.ES10.All func); + internal static DepthFunc glDepthFunc; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DepthMask(bool flag); + internal static DepthMask glDepthMask; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DepthRangef(Single zNear, Single zFar); + internal static DepthRangef glDepthRangef; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DepthRangex(int zNear, int zFar); + internal static DepthRangex glDepthRangex; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Disable(OpenTK.Graphics.ES10.All cap); + internal static Disable glDisable; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DisableClientState(OpenTK.Graphics.ES10.All array); + internal static DisableClientState glDisableClientState; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DrawArrays(OpenTK.Graphics.ES10.All mode, Int32 first, Int32 count); + internal static DrawArrays glDrawArrays; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DrawElements(OpenTK.Graphics.ES10.All mode, Int32 count, OpenTK.Graphics.ES10.All type, IntPtr indices); + internal static DrawElements glDrawElements; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Enable(OpenTK.Graphics.ES10.All cap); + internal static Enable glEnable; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void EnableClientState(OpenTK.Graphics.ES10.All array); + internal static EnableClientState glEnableClientState; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Finish(); + internal static Finish glFinish; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Flush(); + internal static Flush glFlush; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Fogf(OpenTK.Graphics.ES10.All pname, Single param); + internal static Fogf glFogf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void Fogfv(OpenTK.Graphics.ES10.All pname, Single* @params); + internal unsafe static Fogfv glFogfv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Fogx(OpenTK.Graphics.ES10.All pname, int param); + internal static Fogx glFogx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void Fogxv(OpenTK.Graphics.ES10.All pname, int* @params); + internal unsafe static Fogxv glFogxv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void FrontFace(OpenTK.Graphics.ES10.All mode); + internal static FrontFace glFrontFace; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Frustumf(Single left, Single right, Single bottom, Single top, Single zNear, Single zFar); + internal static Frustumf glFrustumf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Frustumx(int left, int right, int bottom, int top, int zNear, int zFar); + internal static Frustumx glFrustumx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GenTextures(Int32 n, UInt32* textures); + internal unsafe static GenTextures glGenTextures; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate OpenTK.Graphics.ES10.All GetError(); + internal static GetError glGetError; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetIntegerv(OpenTK.Graphics.ES10.All pname, Int32* @params); + internal unsafe static GetIntegerv glGetIntegerv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate IntPtr GetString(OpenTK.Graphics.ES10.All name); + internal unsafe static GetString glGetString; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Hint(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All mode); + internal static Hint glHint; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Lightf(OpenTK.Graphics.ES10.All light, OpenTK.Graphics.ES10.All pname, Single param); + internal static Lightf glLightf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void Lightfv(OpenTK.Graphics.ES10.All light, OpenTK.Graphics.ES10.All pname, Single* @params); + internal unsafe static Lightfv glLightfv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void LightModelf(OpenTK.Graphics.ES10.All pname, Single param); + internal static LightModelf glLightModelf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void LightModelfv(OpenTK.Graphics.ES10.All pname, Single* @params); + internal unsafe static LightModelfv glLightModelfv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void LightModelx(OpenTK.Graphics.ES10.All pname, int param); + internal static LightModelx glLightModelx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void LightModelxv(OpenTK.Graphics.ES10.All pname, int* @params); + internal unsafe static LightModelxv glLightModelxv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Lightx(OpenTK.Graphics.ES10.All light, OpenTK.Graphics.ES10.All pname, int param); + internal static Lightx glLightx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void Lightxv(OpenTK.Graphics.ES10.All light, OpenTK.Graphics.ES10.All pname, int* @params); + internal unsafe static Lightxv glLightxv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void LineWidth(Single width); + internal static LineWidth glLineWidth; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void LineWidthx(int width); + internal static LineWidthx glLineWidthx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void LoadIdentity(); + internal static LoadIdentity glLoadIdentity; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void LoadMatrixf(Single* m); + internal unsafe static LoadMatrixf glLoadMatrixf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void LoadMatrixx(int* m); + internal unsafe static LoadMatrixx glLoadMatrixx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void LogicOp(OpenTK.Graphics.ES10.All opcode); + internal static LogicOp glLogicOp; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Materialf(OpenTK.Graphics.ES10.All face, OpenTK.Graphics.ES10.All pname, Single param); + internal static Materialf glMaterialf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void Materialfv(OpenTK.Graphics.ES10.All face, OpenTK.Graphics.ES10.All pname, Single* @params); + internal unsafe static Materialfv glMaterialfv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Materialx(OpenTK.Graphics.ES10.All face, OpenTK.Graphics.ES10.All pname, int param); + internal static Materialx glMaterialx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void Materialxv(OpenTK.Graphics.ES10.All face, OpenTK.Graphics.ES10.All pname, int* @params); + internal unsafe static Materialxv glMaterialxv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void MatrixMode(OpenTK.Graphics.ES10.All mode); + internal static MatrixMode glMatrixMode; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void MultiTexCoord4f(OpenTK.Graphics.ES10.All target, Single s, Single t, Single r, Single q); + internal static MultiTexCoord4f glMultiTexCoord4f; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void MultiTexCoord4x(OpenTK.Graphics.ES10.All target, int s, int t, int r, int q); + internal static MultiTexCoord4x glMultiTexCoord4x; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void MultMatrixf(Single* m); + internal unsafe static MultMatrixf glMultMatrixf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void MultMatrixx(int* m); + internal unsafe static MultMatrixx glMultMatrixx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Normal3f(Single nx, Single ny, Single nz); + internal static Normal3f glNormal3f; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Normal3x(int nx, int ny, int nz); + internal static Normal3x glNormal3x; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void NormalPointer(OpenTK.Graphics.ES10.All type, Int32 stride, IntPtr pointer); + internal static NormalPointer glNormalPointer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Orthof(Single left, Single right, Single bottom, Single top, Single zNear, Single zFar); + internal static Orthof glOrthof; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Orthox(int left, int right, int bottom, int top, int zNear, int zFar); + internal static Orthox glOrthox; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PixelStorei(OpenTK.Graphics.ES10.All pname, Int32 param); + internal static PixelStorei glPixelStorei; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PointSize(Single size); + internal static PointSize glPointSize; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PointSizex(int size); + internal static PointSizex glPointSizex; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PolygonOffset(Single factor, Single units); + internal static PolygonOffset glPolygonOffset; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PolygonOffsetx(int factor, int units); + internal static PolygonOffsetx glPolygonOffsetx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PopMatrix(); + internal static PopMatrix glPopMatrix; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PushMatrix(); + internal static PushMatrix glPushMatrix; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES10.All format, OpenTK.Graphics.ES10.All type, IntPtr pixels); + internal static ReadPixels glReadPixels; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Rotatef(Single angle, Single x, Single y, Single z); + internal static Rotatef glRotatef; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Rotatex(int angle, int x, int y, int z); + internal static Rotatex glRotatex; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void SampleCoverage(Single value, bool invert); + internal static SampleCoverage glSampleCoverage; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void SampleCoveragex(int value, bool invert); + internal static SampleCoveragex glSampleCoveragex; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Scalef(Single x, Single y, Single z); + internal static Scalef glScalef; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Scalex(int x, int y, int z); + internal static Scalex glScalex; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Scissor(Int32 x, Int32 y, Int32 width, Int32 height); + internal static Scissor glScissor; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ShadeModel(OpenTK.Graphics.ES10.All mode); + internal static ShadeModel glShadeModel; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void StencilFunc(OpenTK.Graphics.ES10.All func, Int32 @ref, UInt32 mask); + internal static StencilFunc glStencilFunc; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void StencilMask(UInt32 mask); + internal static StencilMask glStencilMask; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void StencilOp(OpenTK.Graphics.ES10.All fail, OpenTK.Graphics.ES10.All zfail, OpenTK.Graphics.ES10.All zpass); + internal static StencilOp glStencilOp; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexCoordPointer(Int32 size, OpenTK.Graphics.ES10.All type, Int32 stride, IntPtr pointer); + internal static TexCoordPointer glTexCoordPointer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexEnvf(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All pname, Single param); + internal static TexEnvf glTexEnvf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void TexEnvfv(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All pname, Single* @params); + internal unsafe static TexEnvfv glTexEnvfv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexEnvx(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All pname, int param); + internal static TexEnvx glTexEnvx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void TexEnvxv(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All pname, int* @params); + internal unsafe static TexEnvxv glTexEnvxv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES10.All format, OpenTK.Graphics.ES10.All type, IntPtr pixels); + internal static TexImage2D glTexImage2D; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexParameterf(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All pname, Single param); + internal static TexParameterf glTexParameterf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexParameterx(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All pname, int param); + internal static TexParameterx glTexParameterx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexSubImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES10.All format, OpenTK.Graphics.ES10.All type, IntPtr pixels); + internal static TexSubImage2D glTexSubImage2D; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Translatef(Single x, Single y, Single z); + internal static Translatef glTranslatef; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Translatex(int x, int y, int z); + internal static Translatex glTranslatex; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void VertexPointer(Int32 size, OpenTK.Graphics.ES10.All type, Int32 stride, IntPtr pointer); + internal static VertexPointer glVertexPointer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Viewport(Int32 x, Int32 y, Int32 width, Int32 height); + internal static Viewport glViewport; + } + } +} diff --git a/Source/OpenTK/Graphics/ES10/ES.cs b/Source/OpenTK/Graphics/ES10/ES.cs index 4a6116bb..466a1aba 100644 --- a/Source/OpenTK/Graphics/ES10/ES.cs +++ b/Source/OpenTK/Graphics/ES10/ES.cs @@ -1,6053 +1,5666 @@ -#region License -// -// The Open Toolkit Library License -// -// Copyright (c) 2006 - 2009 the Open Toolkit library. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -// the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -// OTHER DEALINGS IN THE SOFTWARE. -// -#endregion - -namespace OpenTK.Graphics.ES10 -{ - using System; - using System.Runtime.InteropServices; - #pragma warning disable 3019 - #pragma warning disable 1591 - #pragma warning disable 1572 - #pragma warning disable 1573 - - static partial class ES - { - - - /// - /// Select active texture unit - /// - /// - /// - /// Specifies which texture unit to make active. The number of texture units is implementation dependent, but must be at least two. texture must be one of GL_TEXTURE, where i ranges from 0 to the larger of (GL_MAX_TEXTURE_COORDS - 1) and (GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS - 1). The initial value is GL_TEXTURE0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glActiveTexture")] - public static - void ActiveTexture([In, Out] OpenTK.Graphics.ES10.All texture) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glActiveTexture((OpenTK.Graphics.ES10.All)texture); - #if DEBUG - } - #endif - } - - - /// - /// Specify the alpha test function - /// - /// - /// - /// Specifies the alpha comparison function. Symbolic constants GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL, GL_GREATER, GL_NOTEQUAL, GL_GEQUAL, and GL_ALWAYS are accepted. The initial value is GL_ALWAYS. - /// - /// - /// - /// - /// Specifies the reference value that incoming alpha values are compared to. This value is clamped to the range [0,1], where 0 represents the lowest possible alpha value and 1 the highest possible value. The initial reference value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glAlphaFunc")] - public static - void AlphaFunc([In, Out] OpenTK.Graphics.ES10.All func, [In, Out] Single @ref) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glAlphaFunc((OpenTK.Graphics.ES10.All)func, (Single)@ref); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glAlphaFuncx")] - public static - void AlphaFuncx([In, Out] OpenTK.Graphics.ES10.All func, [In, Out] int @ref) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glAlphaFuncx((OpenTK.Graphics.ES10.All)func, (int)@ref); - #if DEBUG - } - #endif - } - - - /// - /// Bind a named texture to a texturing target - /// - /// - /// - /// Specifies the target to which the texture is bound. Must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the name of a texture. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glBindTexture")] - public static - void BindTexture([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 texture) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBindTexture((OpenTK.Graphics.ES10.All)target, (UInt32)texture); - #if DEBUG - } - #endif - } - - - /// - /// Bind a named texture to a texturing target - /// - /// - /// - /// Specifies the target to which the texture is bound. Must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the name of a texture. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glBindTexture")] - public static - void BindTexture([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] UInt32 texture) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBindTexture((OpenTK.Graphics.ES10.All)target, (UInt32)texture); - #if DEBUG - } - #endif - } - - - /// - /// Specify pixel arithmetic - /// - /// - /// - /// Specifies how the red, green, blue, and alpha source blending factors are computed. The following symbolic constants are accepted: GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA, GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, GL_ONE_MINUS_CONSTANT_ALPHA, and GL_SRC_ALPHA_SATURATE. The initial value is GL_ONE. - /// - /// - /// - /// - /// Specifies how the red, green, blue, and alpha destination blending factors are computed. The following symbolic constants are accepted: GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA. GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, and GL_ONE_MINUS_CONSTANT_ALPHA. The initial value is GL_ZERO. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glBlendFunc")] - public static - void BlendFunc([In, Out] OpenTK.Graphics.ES10.All sfactor, [In, Out] OpenTK.Graphics.ES10.All dfactor) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBlendFunc((OpenTK.Graphics.ES10.All)sfactor, (OpenTK.Graphics.ES10.All)dfactor); - #if DEBUG - } - #endif - } - - - /// - /// Clear buffers to preset values - /// - /// - /// - /// Bitwise OR of masks that indicate the buffers to be cleared. The four masks are GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_ACCUM_BUFFER_BIT, and GL_STENCIL_BUFFER_BIT. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glClear")] - public static - void Clear([In, Out] Int32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClear((UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Clear buffers to preset values - /// - /// - /// - /// Bitwise OR of masks that indicate the buffers to be cleared. The four masks are GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_ACCUM_BUFFER_BIT, and GL_STENCIL_BUFFER_BIT. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glClear")] - public static - void Clear([In, Out] UInt32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClear((UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Specify clear values for the color buffers - /// - /// - /// - /// Specify the red, green, blue, and alpha values used when the color buffers are cleared. The initial values are all 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glClearColor")] - public static - void ClearColor([In, Out] Single red, [In, Out] Single green, [In, Out] Single blue, [In, Out] Single alpha) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClearColor((Single)red, (Single)green, (Single)blue, (Single)alpha); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glClearColorx")] - public static - void ClearColorx([In, Out] int red, [In, Out] int green, [In, Out] int blue, [In, Out] int alpha) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClearColorx((int)red, (int)green, (int)blue, (int)alpha); - #if DEBUG - } - #endif - } - - - /// - /// Specify the clear value for the depth buffer - /// - /// - /// - /// Specifies the depth value used when the depth buffer is cleared. The initial value is 1. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glClearDepthf")] - public static - void ClearDepth([In, Out] Single depth) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClearDepthf((Single)depth); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glClearDepthx")] - public static - void ClearDepthx([In, Out] int depth) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClearDepthx((int)depth); - #if DEBUG - } - #endif - } - - - /// - /// Specify the clear value for the stencil buffer - /// - /// - /// - /// Specifies the index used when the stencil buffer is cleared. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glClearStencil")] - public static - void ClearStencil([In, Out] Int32 s) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClearStencil((Int32)s); - #if DEBUG - } - #endif - } - - - /// - /// Select active texture unit - /// - /// - /// - /// Specifies which texture unit to make active. The number of texture units is implementation dependent, but must be at least two. texture must be one of GL_TEXTURE, where i ranges from 0 to the value of GL_MAX_TEXTURE_COORDS - 1, which is an implementation-dependent value. The initial value is GL_TEXTURE0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glClientActiveTexture")] - public static - void ClientActiveTexture([In, Out] OpenTK.Graphics.ES10.All texture) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClientActiveTexture((OpenTK.Graphics.ES10.All)texture); - #if DEBUG - } - #endif - } - - - /// - /// Set the current color - /// - /// - /// - /// Specify new red, green, and blue values for the current color. - /// - /// - /// - /// - /// Specifies a new alpha value for the current color. Included only in the four-argument glColor4 commands. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glColor4f")] - public static - void Color4([In, Out] Single red, [In, Out] Single green, [In, Out] Single blue, [In, Out] Single alpha) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glColor4f((Single)red, (Single)green, (Single)blue, (Single)alpha); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glColor4x")] - public static - void Color4x([In, Out] int red, [In, Out] int green, [In, Out] int blue, [In, Out] int alpha) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glColor4x((int)red, (int)green, (int)blue, (int)alpha); - #if DEBUG - } - #endif - } - - - /// - /// Enable and disable writing of frame buffer color components - /// - /// - /// - /// Specify whether red, green, blue, and alpha can or cannot be written into the frame buffer. The initial values are all GL_TRUE, indicating that the color components can be written. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glColorMask")] - public static - void ColorMask([In, Out] bool red, [In, Out] bool green, [In, Out] bool blue, [In, Out] bool alpha) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glColorMask((bool)red, (bool)green, (bool)blue, (bool)alpha); - #if DEBUG - } - #endif - } - - - /// - /// Define an array of colors - /// - /// - /// - /// Specifies the number of components per color. Must be 3 or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first component of the first color element in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glColorPointer")] - public static - void ColorPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] T3[,] pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of colors - /// - /// - /// - /// Specifies the number of components per color. Must be 3 or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first component of the first color element in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glColorPointer")] - public static - void ColorPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] T3[,,] pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of colors - /// - /// - /// - /// Specifies the number of components per color. Must be 3 or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first component of the first color element in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glColorPointer")] - public static - void ColorPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] T3[] pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of colors - /// - /// - /// - /// Specifies the number of components per color. Must be 3 or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first component of the first color element in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glColorPointer")] - public static - void ColorPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer); - #if DEBUG - } - #endif - } - - - /// - /// Define an array of colors - /// - /// - /// - /// Specifies the number of components per color. Must be 3 or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first component of the first color element in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glColorPointer")] - public static - void ColorPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] ref T3 pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glCompressedTexImage2D")] - public static - void CompressedTexImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES10.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] Int32 imageSize, [In, Out] T7[,] data) - where T7 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (OpenTK.Graphics.ES10.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glCompressedTexImage2D")] - public static - void CompressedTexImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES10.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] Int32 imageSize, [In, Out] T7[,,] data) - where T7 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (OpenTK.Graphics.ES10.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glCompressedTexImage2D")] - public static - void CompressedTexImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES10.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] Int32 imageSize, [In, Out] T7[] data) - where T7 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (OpenTK.Graphics.ES10.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glCompressedTexImage2D")] - public static - void CompressedTexImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES10.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] Int32 imageSize, [In, Out] IntPtr data) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (OpenTK.Graphics.ES10.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data); - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glCompressedTexImage2D")] - public static - void CompressedTexImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES10.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] Int32 imageSize, [In, Out] ref T7 data) - where T7 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (OpenTK.Graphics.ES10.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glCompressedTexSubImage2D")] - public static - void CompressedTexSubImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] Int32 imageSize, [In, Out] T8[,] data) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glCompressedTexSubImage2D")] - public static - void CompressedTexSubImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] Int32 imageSize, [In, Out] T8[,,] data) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glCompressedTexSubImage2D")] - public static - void CompressedTexSubImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] Int32 imageSize, [In, Out] T8[] data) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glCompressedTexSubImage2D")] - public static - void CompressedTexSubImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] Int32 imageSize, [In, Out] IntPtr data) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (Int32)imageSize, (IntPtr)data); - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glCompressedTexSubImage2D")] - public static - void CompressedTexSubImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] Int32 imageSize, [In, Out] ref T8 data) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Copy pixels into a 2D texture image - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the internal format of the texture. Must be one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_RGB, GL_R3_G3_B2, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. - /// - /// - /// - /// - /// Specify the window coordinates of the lower left corner of the rectangular region of pixels to be copied. - /// - /// - /// - /// - /// Specifies the width of the texture image. Must be 0 or 2 sup n + 2 ( border ) for some integer . - /// - /// - /// - /// - /// Specifies the height of the texture image. Must be 0 or 2 sup m + 2 ( border ) for some integer . - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glCopyTexImage2D")] - public static - void CopyTexImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES10.All internalformat, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glCopyTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (OpenTK.Graphics.ES10.All)internalformat, (Int32)x, (Int32)y, (Int32)width, (Int32)height, (Int32)border); - #if DEBUG - } - #endif - } - - - /// - /// Copy a two-dimensional texture subimage - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specify the window coordinates of the lower left corner of the rectangular region of pixels to be copied. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glCopyTexSubImage2D")] - public static - void CopyTexSubImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glCopyTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)x, (Int32)y, (Int32)width, (Int32)height); - #if DEBUG - } - #endif - } - - - /// - /// Specify whether front- or back-facing facets can be culled - /// - /// - /// - /// Specifies whether front- or back-facing facets are candidates for culling. Symbolic constants GL_FRONT, GL_BACK, and GL_FRONT_AND_BACK are accepted. The initial value is GL_BACK. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glCullFace")] - public static - void CullFace([In, Out] OpenTK.Graphics.ES10.All mode) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glCullFace((OpenTK.Graphics.ES10.All)mode); - #if DEBUG - } - #endif - } - - - /// - /// Delete named textures - /// - /// - /// - /// Specifies the number of textures to be deleted. - /// - /// - /// - /// - /// Specifies an array of textures to be deleted. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glDeleteTextures")] - public static - void DeleteTextures([In, Out] Int32 n, [In, Out] ref Int32 textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* textures_ptr = &textures) - { - Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Delete named textures - /// - /// - /// - /// Specifies the number of textures to be deleted. - /// - /// - /// - /// - /// Specifies an array of textures to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glDeleteTextures")] - public static - unsafe void DeleteTextures([In, Out] Int32 n, [In, Out] UInt32* textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDeleteTextures((Int32)n, (UInt32*)textures); - #if DEBUG - } - #endif - } - - - /// - /// Delete named textures - /// - /// - /// - /// Specifies the number of textures to be deleted. - /// - /// - /// - /// - /// Specifies an array of textures to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glDeleteTextures")] - public static - unsafe void DeleteTextures([In, Out] Int32 n, [In, Out] Int32* textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDeleteTextures((Int32)n, (UInt32*)textures); - #if DEBUG - } - #endif - } - - - /// - /// Delete named textures - /// - /// - /// - /// Specifies the number of textures to be deleted. - /// - /// - /// - /// - /// Specifies an array of textures to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glDeleteTextures")] - public static - void DeleteTextures([In, Out] Int32 n, [In, Out] UInt32[] textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* textures_ptr = textures) - { - Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Delete named textures - /// - /// - /// - /// Specifies the number of textures to be deleted. - /// - /// - /// - /// - /// Specifies an array of textures to be deleted. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glDeleteTextures")] - public static - void DeleteTextures([In, Out] Int32 n, [In, Out] Int32[] textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* textures_ptr = textures) - { - Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Delete named textures - /// - /// - /// - /// Specifies the number of textures to be deleted. - /// - /// - /// - /// - /// Specifies an array of textures to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glDeleteTextures")] - public static - void DeleteTextures([In, Out] Int32 n, [In, Out] ref UInt32 textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* textures_ptr = &textures) - { - Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify the value used for depth buffer comparisons - /// - /// - /// - /// Specifies the depth comparison function. Symbolic constants GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL, GL_GREATER, GL_NOTEQUAL, GL_GEQUAL, and GL_ALWAYS are accepted. The initial value is GL_LESS. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glDepthFunc")] - public static - void DepthFunc([In, Out] OpenTK.Graphics.ES10.All func) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDepthFunc((OpenTK.Graphics.ES10.All)func); - #if DEBUG - } - #endif - } - - - /// - /// Enable or disable writing into the depth buffer - /// - /// - /// - /// Specifies whether the depth buffer is enabled for writing. If flag is GL_FALSE, depth buffer writing is disabled. Otherwise, it is enabled. Initially, depth buffer writing is enabled. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glDepthMask")] - public static - void DepthMask([In, Out] bool flag) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDepthMask((bool)flag); - #if DEBUG - } - #endif - } - - - /// - /// Specify mapping of depth values from normalized device coordinates to window coordinates - /// - /// - /// - /// Specifies the mapping of the near clipping plane to window coordinates. The initial value is 0. - /// - /// - /// - /// - /// Specifies the mapping of the far clipping plane to window coordinates. The initial value is 1. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glDepthRangef")] - public static - void DepthRange([In, Out] Single zNear, [In, Out] Single zFar) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDepthRangef((Single)zNear, (Single)zFar); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glDepthRangex")] - public static - void DepthRangex([In, Out] int zNear, [In, Out] int zFar) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDepthRangex((int)zNear, (int)zFar); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glDisable")] - public static - void Disable([In, Out] OpenTK.Graphics.ES10.All cap) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDisable((OpenTK.Graphics.ES10.All)cap); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glDisableClientState")] - public static - void DisableClientState([In, Out] OpenTK.Graphics.ES10.All array) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDisableClientState((OpenTK.Graphics.ES10.All)array); - #if DEBUG - } - #endif - } - - - /// - /// Render primitives from array data - /// - /// - /// - /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. - /// - /// - /// - /// - /// Specifies the starting index in the enabled arrays. - /// - /// - /// - /// - /// Specifies the number of indices to be rendered. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glDrawArrays")] - public static - void DrawArrays([In, Out] OpenTK.Graphics.ES10.All mode, [In, Out] Int32 first, [In, Out] Int32 count) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDrawArrays((OpenTK.Graphics.ES10.All)mode, (Int32)first, (Int32)count); - #if DEBUG - } - #endif - } - - - /// - /// Render primitives from array data - /// - /// - /// - /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. - /// - /// - /// - /// - /// Specifies the number of elements to be rendered. - /// - /// - /// - /// - /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. - /// - /// - /// - /// - /// Specifies a pointer to the location where the indices are stored. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glDrawElements")] - public static - void DrawElements([In, Out] OpenTK.Graphics.ES10.All mode, [In, Out] Int32 count, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] T3[,] indices) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElements((OpenTK.Graphics.ES10.All)mode, (Int32)count, (OpenTK.Graphics.ES10.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Render primitives from array data - /// - /// - /// - /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. - /// - /// - /// - /// - /// Specifies the number of elements to be rendered. - /// - /// - /// - /// - /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. - /// - /// - /// - /// - /// Specifies a pointer to the location where the indices are stored. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glDrawElements")] - public static - void DrawElements([In, Out] OpenTK.Graphics.ES10.All mode, [In, Out] Int32 count, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] T3[,,] indices) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElements((OpenTK.Graphics.ES10.All)mode, (Int32)count, (OpenTK.Graphics.ES10.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Render primitives from array data - /// - /// - /// - /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. - /// - /// - /// - /// - /// Specifies the number of elements to be rendered. - /// - /// - /// - /// - /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. - /// - /// - /// - /// - /// Specifies a pointer to the location where the indices are stored. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glDrawElements")] - public static - void DrawElements([In, Out] OpenTK.Graphics.ES10.All mode, [In, Out] Int32 count, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] T3[] indices) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElements((OpenTK.Graphics.ES10.All)mode, (Int32)count, (OpenTK.Graphics.ES10.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Render primitives from array data - /// - /// - /// - /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. - /// - /// - /// - /// - /// Specifies the number of elements to be rendered. - /// - /// - /// - /// - /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. - /// - /// - /// - /// - /// Specifies a pointer to the location where the indices are stored. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glDrawElements")] - public static - void DrawElements([In, Out] OpenTK.Graphics.ES10.All mode, [In, Out] Int32 count, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] IntPtr indices) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDrawElements((OpenTK.Graphics.ES10.All)mode, (Int32)count, (OpenTK.Graphics.ES10.All)type, (IntPtr)indices); - #if DEBUG - } - #endif - } - - - /// - /// Render primitives from array data - /// - /// - /// - /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. - /// - /// - /// - /// - /// Specifies the number of elements to be rendered. - /// - /// - /// - /// - /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. - /// - /// - /// - /// - /// Specifies a pointer to the location where the indices are stored. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glDrawElements")] - public static - void DrawElements([In, Out] OpenTK.Graphics.ES10.All mode, [In, Out] Int32 count, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] ref T3 indices) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElements((OpenTK.Graphics.ES10.All)mode, (Int32)count, (OpenTK.Graphics.ES10.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Enable or disable server-side GL capabilities - /// - /// - /// - /// Specifies a symbolic constant indicating a GL capability. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glEnable")] - public static - void Enable([In, Out] OpenTK.Graphics.ES10.All cap) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glEnable((OpenTK.Graphics.ES10.All)cap); - #if DEBUG - } - #endif - } - - - /// - /// Enable or disable client-side capability - /// - /// - /// - /// Specifies the capability to enable. Symbolic constants GL_COLOR_ARRAY, GL_EDGE_FLAG_ARRAY, GL_FOG_COORD_ARRAY, GL_INDEX_ARRAY, GL_NORMAL_ARRAY, GL_SECONDARY_COLOR_ARRAY, GL_TEXTURE_COORD_ARRAY, and GL_VERTEX_ARRAY are accepted. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glEnableClientState")] - public static - void EnableClientState([In, Out] OpenTK.Graphics.ES10.All array) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glEnableClientState((OpenTK.Graphics.ES10.All)array); - #if DEBUG - } - #endif - } - - - /// - /// Block until all GL execution is complete - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glFinish")] - public static - void Finish() - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFinish(); - #if DEBUG - } - #endif - } - - - /// - /// Force execution of GL commands in finite time - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glFlush")] - public static - void Flush() - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFlush(); - #if DEBUG - } - #endif - } - - - /// - /// Specify fog parameters - /// - /// - /// - /// Specifies a single-valued fog parameter. GL_FOG_MODE, GL_FOG_DENSITY, GL_FOG_START, GL_FOG_END, GL_FOG_INDEX, and GL_FOG_COORD_SRC are accepted. - /// - /// - /// - /// - /// Specifies the value that pname will be set to. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glFogf")] - public static - void Fog([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFogf((OpenTK.Graphics.ES10.All)pname, (Single)param); - #if DEBUG - } - #endif - } - - - /// - /// Specify fog parameters - /// - /// - /// - /// Specifies a single-valued fog parameter. GL_FOG_MODE, GL_FOG_DENSITY, GL_FOG_START, GL_FOG_END, GL_FOG_INDEX, and GL_FOG_COORD_SRC are accepted. - /// - /// - /// - /// - /// Specifies the value that pname will be set to. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glFogfv")] - public static - unsafe void Fog([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFogfv((OpenTK.Graphics.ES10.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Specify fog parameters - /// - /// - /// - /// Specifies a single-valued fog parameter. GL_FOG_MODE, GL_FOG_DENSITY, GL_FOG_START, GL_FOG_END, GL_FOG_INDEX, and GL_FOG_COORD_SRC are accepted. - /// - /// - /// - /// - /// Specifies the value that pname will be set to. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glFogfv")] - public static - void Fog([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glFogfv((OpenTK.Graphics.ES10.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glFogx")] - public static - void Fogx([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFogx((OpenTK.Graphics.ES10.All)pname, (int)param); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glFogxv")] - public static - unsafe void Fogx([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFogxv((OpenTK.Graphics.ES10.All)pname, (int*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glFogxv")] - public static - void Fogx([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = @params) - { - Delegates.glFogxv((OpenTK.Graphics.ES10.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Define front- and back-facing polygons - /// - /// - /// - /// Specifies the orientation of front-facing polygons. GL_CW and GL_CCW are accepted. The initial value is GL_CCW. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glFrontFace")] - public static - void FrontFace([In, Out] OpenTK.Graphics.ES10.All mode) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFrontFace((OpenTK.Graphics.ES10.All)mode); - #if DEBUG - } - #endif - } - - - /// - /// Multiply the current matrix by a perspective matrix - /// - /// - /// - /// Specify the coordinates for the left and right vertical clipping planes. - /// - /// - /// - /// - /// Specify the coordinates for the bottom and top horizontal clipping planes. - /// - /// - /// - /// - /// Specify the distances to the near and far depth clipping planes. Both distances must be positive. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glFrustumf")] - public static - void Frustum([In, Out] Single left, [In, Out] Single right, [In, Out] Single bottom, [In, Out] Single top, [In, Out] Single zNear, [In, Out] Single zFar) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFrustumf((Single)left, (Single)right, (Single)bottom, (Single)top, (Single)zNear, (Single)zFar); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glFrustumx")] - public static - void Frustumx([In, Out] int left, [In, Out] int right, [In, Out] int bottom, [In, Out] int top, [In, Out] int zNear, [In, Out] int zFar) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFrustumx((int)left, (int)right, (int)bottom, (int)top, (int)zNear, (int)zFar); - #if DEBUG - } - #endif - } - - - /// - /// Generate texture names - /// - /// - /// - /// Specifies the number of texture names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated texture names are stored. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glGenTextures")] - public static - void GenTextures([In, Out] Int32 n, [In, Out] ref Int32 textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* textures_ptr = &textures) - { - Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Generate texture names - /// - /// - /// - /// Specifies the number of texture names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated texture names are stored. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glGenTextures")] - public static - unsafe void GenTextures([In, Out] Int32 n, [In, Out] UInt32* textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGenTextures((Int32)n, (UInt32*)textures); - #if DEBUG - } - #endif - } - - - /// - /// Generate texture names - /// - /// - /// - /// Specifies the number of texture names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated texture names are stored. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glGenTextures")] - public static - unsafe void GenTextures([In, Out] Int32 n, [In, Out] Int32* textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGenTextures((Int32)n, (UInt32*)textures); - #if DEBUG - } - #endif - } - - - /// - /// Generate texture names - /// - /// - /// - /// Specifies the number of texture names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated texture names are stored. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glGenTextures")] - public static - void GenTextures([In, Out] Int32 n, [In, Out] UInt32[] textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* textures_ptr = textures) - { - Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Generate texture names - /// - /// - /// - /// Specifies the number of texture names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated texture names are stored. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glGenTextures")] - public static - void GenTextures([In, Out] Int32 n, [In, Out] Int32[] textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* textures_ptr = textures) - { - Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Generate texture names - /// - /// - /// - /// Specifies the number of texture names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated texture names are stored. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glGenTextures")] - public static - void GenTextures([In, Out] Int32 n, [In, Out] ref UInt32 textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* textures_ptr = &textures) - { - Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return error information - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glGetError")] - public static - OpenTK.Graphics.ES10.All GetError() - { - return Delegates.glGetError(); - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glGetIntegerv")] - public static - unsafe void GetInteger([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Int32* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetIntegerv((OpenTK.Graphics.ES10.All)pname, (Int32*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glGetIntegerv")] - public static - void GetInteger([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] ref Int32 @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = &@params) - { - Delegates.glGetIntegerv((OpenTK.Graphics.ES10.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glGetIntegerv")] - public static - void GetInteger([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Int32[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = @params) - { - Delegates.glGetIntegerv((OpenTK.Graphics.ES10.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return a string describing the current GL connection - /// - /// - /// - /// Specifies a symbolic constant, one of GL_VENDOR, GL_RENDERER, GL_VERSION, GL_SHADING_LANGUAGE_VERSION, or GL_EXTENSIONS. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glGetString")] - public static - unsafe string GetString([In, Out] OpenTK.Graphics.ES10.All name) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.glGetString((OpenTK.Graphics.ES10.All)name)); - #if DEBUG - } - #endif - } - - - /// - /// Specify implementation-specific hints - /// - /// - /// - /// Specifies a symbolic constant indicating the behavior to be controlled. GL_FOG_HINT, GL_GENERATE_MIPMAP_HINT, GL_LINE_SMOOTH_HINT, GL_PERSPECTIVE_CORRECTION_HINT, GL_POINT_SMOOTH_HINT, GL_POLYGON_SMOOTH_HINT, GL_TEXTURE_COMPRESSION_HINT, and GL_FRAGMENT_SHADER_DERIVATIVE_HINT are accepted. - /// - /// - /// - /// - /// Specifies a symbolic constant indicating the desired behavior. GL_FASTEST, GL_NICEST, and GL_DONT_CARE are accepted. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glHint")] - public static - void Hint([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All mode) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glHint((OpenTK.Graphics.ES10.All)target, (OpenTK.Graphics.ES10.All)mode); - #if DEBUG - } - #endif - } - - - /// - /// Set light source parameters - /// - /// - /// - /// Specifies a light. The number of lights depends on the implementation, but at least eight lights are supported. They are identified by symbolic names of the form GL_LIGHT , where i ranges from 0 to the value of GL_MAX_LIGHTS - 1. - /// - /// - /// - /// - /// Specifies a single-valued light source parameter for light. GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION, and GL_QUADRATIC_ATTENUATION are accepted. - /// - /// - /// - /// - /// Specifies the value that parameter pname of light source light will be set to. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLightf")] - public static - void Light([In, Out] OpenTK.Graphics.ES10.All light, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLightf((OpenTK.Graphics.ES10.All)light, (OpenTK.Graphics.ES10.All)pname, (Single)param); - #if DEBUG - } - #endif - } - - - /// - /// Set light source parameters - /// - /// - /// - /// Specifies a light. The number of lights depends on the implementation, but at least eight lights are supported. They are identified by symbolic names of the form GL_LIGHT , where i ranges from 0 to the value of GL_MAX_LIGHTS - 1. - /// - /// - /// - /// - /// Specifies a single-valued light source parameter for light. GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION, and GL_QUADRATIC_ATTENUATION are accepted. - /// - /// - /// - /// - /// Specifies the value that parameter pname of light source light will be set to. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLightfv")] - public static - void Light([In, Out] OpenTK.Graphics.ES10.All light, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glLightfv((OpenTK.Graphics.ES10.All)light, (OpenTK.Graphics.ES10.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Set light source parameters - /// - /// - /// - /// Specifies a light. The number of lights depends on the implementation, but at least eight lights are supported. They are identified by symbolic names of the form GL_LIGHT , where i ranges from 0 to the value of GL_MAX_LIGHTS - 1. - /// - /// - /// - /// - /// Specifies a single-valued light source parameter for light. GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION, and GL_QUADRATIC_ATTENUATION are accepted. - /// - /// - /// - /// - /// Specifies the value that parameter pname of light source light will be set to. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLightfv")] - public static - unsafe void Light([In, Out] OpenTK.Graphics.ES10.All light, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLightfv((OpenTK.Graphics.ES10.All)light, (OpenTK.Graphics.ES10.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Set the lighting model parameters - /// - /// - /// - /// Specifies a single-valued lighting model parameter. GL_LIGHT_MODEL_LOCAL_VIEWER, GL_LIGHT_MODEL_COLOR_CONTROL, and GL_LIGHT_MODEL_TWO_SIDE are accepted. - /// - /// - /// - /// - /// Specifies the value that param will be set to. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLightModelf")] - public static - void LightModel([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLightModelf((OpenTK.Graphics.ES10.All)pname, (Single)param); - #if DEBUG - } - #endif - } - - - /// - /// Set the lighting model parameters - /// - /// - /// - /// Specifies a single-valued lighting model parameter. GL_LIGHT_MODEL_LOCAL_VIEWER, GL_LIGHT_MODEL_COLOR_CONTROL, and GL_LIGHT_MODEL_TWO_SIDE are accepted. - /// - /// - /// - /// - /// Specifies the value that param will be set to. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLightModelfv")] - public static - unsafe void LightModel([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLightModelfv((OpenTK.Graphics.ES10.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Set the lighting model parameters - /// - /// - /// - /// Specifies a single-valued lighting model parameter. GL_LIGHT_MODEL_LOCAL_VIEWER, GL_LIGHT_MODEL_COLOR_CONTROL, and GL_LIGHT_MODEL_TWO_SIDE are accepted. - /// - /// - /// - /// - /// Specifies the value that param will be set to. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLightModelfv")] - public static - void LightModel([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glLightModelfv((OpenTK.Graphics.ES10.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLightModelx")] - public static - void LightModelx([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLightModelx((OpenTK.Graphics.ES10.All)pname, (int)param); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLightModelxv")] - public static - unsafe void LightModelx([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLightModelxv((OpenTK.Graphics.ES10.All)pname, (int*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLightModelxv")] - public static - void LightModelx([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = @params) - { - Delegates.glLightModelxv((OpenTK.Graphics.ES10.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLightx")] - public static - void Lightx([In, Out] OpenTK.Graphics.ES10.All light, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLightx((OpenTK.Graphics.ES10.All)light, (OpenTK.Graphics.ES10.All)pname, (int)param); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLightxv")] - public static - unsafe void Lightx([In, Out] OpenTK.Graphics.ES10.All light, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLightxv((OpenTK.Graphics.ES10.All)light, (OpenTK.Graphics.ES10.All)pname, (int*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLightxv")] - public static - void Lightx([In, Out] OpenTK.Graphics.ES10.All light, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = @params) - { - Delegates.glLightxv((OpenTK.Graphics.ES10.All)light, (OpenTK.Graphics.ES10.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify the width of rasterized lines - /// - /// - /// - /// Specifies the width of rasterized lines. The initial value is 1. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLineWidth")] - public static - void LineWidth([In, Out] Single width) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLineWidth((Single)width); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLineWidthx")] - public static - void LineWidthx([In, Out] int width) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLineWidthx((int)width); - #if DEBUG - } - #endif - } - - - /// - /// Replace the current matrix with the identity matrix - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLoadIdentity")] - public static - void LoadIdentity() - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLoadIdentity(); - #if DEBUG - } - #endif - } - - - /// - /// Replace the current matrix with the specified matrix - /// - /// - /// - /// Specifies a pointer to 16 consecutive values, which are used as the elements of a 4 times 4 column-major matrix. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLoadMatrixf")] - public static - unsafe void LoadMatrix([In, Out] Single* m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLoadMatrixf((Single*)m); - #if DEBUG - } - #endif - } - - - /// - /// Replace the current matrix with the specified matrix - /// - /// - /// - /// Specifies a pointer to 16 consecutive values, which are used as the elements of a 4 times 4 column-major matrix. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLoadMatrixf")] - public static - void LoadMatrix([In, Out] ref Single m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* m_ptr = &m) - { - Delegates.glLoadMatrixf((Single*)m_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Replace the current matrix with the specified matrix - /// - /// - /// - /// Specifies a pointer to 16 consecutive values, which are used as the elements of a 4 times 4 column-major matrix. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLoadMatrixf")] - public static - void LoadMatrix([In, Out] Single[] m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* m_ptr = m) - { - Delegates.glLoadMatrixf((Single*)m_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLoadMatrixx")] - public static - unsafe void LoadMatrixx([In, Out] int* m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLoadMatrixx((int*)m); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLoadMatrixx")] - public static - void LoadMatrixx([In, Out] ref int m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* m_ptr = &m) - { - Delegates.glLoadMatrixx((int*)m_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLoadMatrixx")] - public static - void LoadMatrixx([In, Out] int[] m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* m_ptr = m) - { - Delegates.glLoadMatrixx((int*)m_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a logical pixel operation for color index rendering - /// - /// - /// - /// Specifies a symbolic constant that selects a logical operation. The following symbols are accepted: GL_CLEAR, GL_SET, GL_COPY, GL_COPY_INVERTED, GL_NOOP, GL_INVERT, GL_AND, GL_NAND, GL_OR, GL_NOR, GL_XOR, GL_EQUIV, GL_AND_REVERSE, GL_AND_INVERTED, GL_OR_REVERSE, and GL_OR_INVERTED. The initial value is GL_COPY. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glLogicOp")] - public static - void LogicOp([In, Out] OpenTK.Graphics.ES10.All opcode) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLogicOp((OpenTK.Graphics.ES10.All)opcode); - #if DEBUG - } - #endif - } - - - /// - /// Specify material parameters for the lighting model - /// - /// - /// - /// Specifies which face or faces are being updated. Must be one of GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK. - /// - /// - /// - /// - /// Specifies the single-valued material parameter of the face or faces that is being updated. Must be GL_SHININESS. - /// - /// - /// - /// - /// Specifies the value that parameter GL_SHININESS will be set to. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glMaterialf")] - public static - void Material([In, Out] OpenTK.Graphics.ES10.All face, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glMaterialf((OpenTK.Graphics.ES10.All)face, (OpenTK.Graphics.ES10.All)pname, (Single)param); - #if DEBUG - } - #endif - } - - - /// - /// Specify material parameters for the lighting model - /// - /// - /// - /// Specifies which face or faces are being updated. Must be one of GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK. - /// - /// - /// - /// - /// Specifies the single-valued material parameter of the face or faces that is being updated. Must be GL_SHININESS. - /// - /// - /// - /// - /// Specifies the value that parameter GL_SHININESS will be set to. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glMaterialfv")] - public static - unsafe void Material([In, Out] OpenTK.Graphics.ES10.All face, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glMaterialfv((OpenTK.Graphics.ES10.All)face, (OpenTK.Graphics.ES10.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Specify material parameters for the lighting model - /// - /// - /// - /// Specifies which face or faces are being updated. Must be one of GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK. - /// - /// - /// - /// - /// Specifies the single-valued material parameter of the face or faces that is being updated. Must be GL_SHININESS. - /// - /// - /// - /// - /// Specifies the value that parameter GL_SHININESS will be set to. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glMaterialfv")] - public static - void Material([In, Out] OpenTK.Graphics.ES10.All face, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glMaterialfv((OpenTK.Graphics.ES10.All)face, (OpenTK.Graphics.ES10.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glMaterialx")] - public static - void Materialx([In, Out] OpenTK.Graphics.ES10.All face, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glMaterialx((OpenTK.Graphics.ES10.All)face, (OpenTK.Graphics.ES10.All)pname, (int)param); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glMaterialxv")] - public static - unsafe void Materialx([In, Out] OpenTK.Graphics.ES10.All face, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glMaterialxv((OpenTK.Graphics.ES10.All)face, (OpenTK.Graphics.ES10.All)pname, (int*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glMaterialxv")] - public static - void Materialx([In, Out] OpenTK.Graphics.ES10.All face, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = @params) - { - Delegates.glMaterialxv((OpenTK.Graphics.ES10.All)face, (OpenTK.Graphics.ES10.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify which matrix is the current matrix - /// - /// - /// - /// Specifies which matrix stack is the target for subsequent matrix operations. Three values are accepted: GL_MODELVIEW, GL_PROJECTION, and GL_TEXTURE. The initial value is GL_MODELVIEW. Additionally, if the ARB_imaging extension is supported, GL_COLOR is also accepted. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glMatrixMode")] - public static - void MatrixMode([In, Out] OpenTK.Graphics.ES10.All mode) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glMatrixMode((OpenTK.Graphics.ES10.All)mode); - #if DEBUG - } - #endif - } - - - /// - /// Set the current texture coordinates - /// - /// - /// - /// Specifies the texture unit whose coordinates should be modified. The number of texture units is implementation dependent, but must be at least two. Symbolic constant must be one of GL_TEXTURE, where i ranges from 0 to GL_MAX_TEXTURE_COORDS - 1, which is an implementation-dependent value. - /// - /// - /// - /// - /// Specify s, t, r, and q texture coordinates for target texture unit. Not all parameters are present in all forms of the command. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glMultiTexCoord4f")] - public static - void MultiTexCoord4([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Single s, [In, Out] Single t, [In, Out] Single r, [In, Out] Single q) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glMultiTexCoord4f((OpenTK.Graphics.ES10.All)target, (Single)s, (Single)t, (Single)r, (Single)q); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glMultiTexCoord4x")] - public static - void MultiTexCoord4x([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] int s, [In, Out] int t, [In, Out] int r, [In, Out] int q) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glMultiTexCoord4x((OpenTK.Graphics.ES10.All)target, (int)s, (int)t, (int)r, (int)q); - #if DEBUG - } - #endif - } - - - /// - /// Multiply the current matrix with the specified matrix - /// - /// - /// - /// Points to 16 consecutive values that are used as the elements of a 4 times 4 column-major matrix. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glMultMatrixf")] - public static - unsafe void MultMatrix([In, Out] Single* m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glMultMatrixf((Single*)m); - #if DEBUG - } - #endif - } - - - /// - /// Multiply the current matrix with the specified matrix - /// - /// - /// - /// Points to 16 consecutive values that are used as the elements of a 4 times 4 column-major matrix. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glMultMatrixf")] - public static - void MultMatrix([In, Out] Single[] m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* m_ptr = m) - { - Delegates.glMultMatrixf((Single*)m_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Multiply the current matrix with the specified matrix - /// - /// - /// - /// Points to 16 consecutive values that are used as the elements of a 4 times 4 column-major matrix. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glMultMatrixf")] - public static - void MultMatrix([In, Out] ref Single m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* m_ptr = &m) - { - Delegates.glMultMatrixf((Single*)m_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glMultMatrixx")] - public static - unsafe void MultMatrixx([In, Out] int* m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glMultMatrixx((int*)m); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glMultMatrixx")] - public static - void MultMatrixx([In, Out] int[] m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* m_ptr = m) - { - Delegates.glMultMatrixx((int*)m_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glMultMatrixx")] - public static - void MultMatrixx([In, Out] ref int m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* m_ptr = &m) - { - Delegates.glMultMatrixx((int*)m_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Set the current normal vector - /// - /// - /// - /// Specify the , , and coordinates of the new current normal. The initial value of the current normal is the unit vector, (0, 0, 1). - /// - /// - /// - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glNormal3f")] - public static - void Normal3([In, Out] Single nx, [In, Out] Single ny, [In, Out] Single nz) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glNormal3f((Single)nx, (Single)ny, (Single)nz); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glNormal3x")] - public static - void Normal3x([In, Out] int nx, [In, Out] int ny, [In, Out] int nz) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glNormal3x((int)nx, (int)ny, (int)nz); - #if DEBUG - } - #endif - } - - - /// - /// Define an array of normals - /// - /// - /// - /// Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first normal in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glNormalPointer")] - public static - void NormalPointer([In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] T2[,] pointer) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointer((OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of normals - /// - /// - /// - /// Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first normal in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glNormalPointer")] - public static - void NormalPointer([In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] T2[,,] pointer) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointer((OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of normals - /// - /// - /// - /// Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first normal in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glNormalPointer")] - public static - void NormalPointer([In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] T2[] pointer) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointer((OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of normals - /// - /// - /// - /// Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first normal in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glNormalPointer")] - public static - void NormalPointer([In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glNormalPointer((OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer); - #if DEBUG - } - #endif - } - - - /// - /// Define an array of normals - /// - /// - /// - /// Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first normal in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glNormalPointer")] - public static - void NormalPointer([In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] ref T2 pointer) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointer((OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Multiply the current matrix with an orthographic matrix - /// - /// - /// - /// Specify the coordinates for the left and right vertical clipping planes. - /// - /// - /// - /// - /// Specify the coordinates for the bottom and top horizontal clipping planes. - /// - /// - /// - /// - /// Specify the distances to the nearer and farther depth clipping planes. These values are negative if the plane is to be behind the viewer. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glOrthof")] - public static - void Ortho([In, Out] Single left, [In, Out] Single right, [In, Out] Single bottom, [In, Out] Single top, [In, Out] Single zNear, [In, Out] Single zFar) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glOrthof((Single)left, (Single)right, (Single)bottom, (Single)top, (Single)zNear, (Single)zFar); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glOrthox")] - public static - void Orthox([In, Out] int left, [In, Out] int right, [In, Out] int bottom, [In, Out] int top, [In, Out] int zNear, [In, Out] int zFar) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glOrthox((int)left, (int)right, (int)bottom, (int)top, (int)zNear, (int)zFar); - #if DEBUG - } - #endif - } - - - /// - /// Set pixel storage modes - /// - /// - /// - /// Specifies the symbolic name of the parameter to be set. Six values affect the packing of pixel data into memory: GL_PACK_SWAP_BYTES, GL_PACK_LSB_FIRST, GL_PACK_ROW_LENGTH, GL_PACK_IMAGE_HEIGHT, GL_PACK_SKIP_PIXELS, GL_PACK_SKIP_ROWS, GL_PACK_SKIP_IMAGES, and GL_PACK_ALIGNMENT. Six more affect the unpacking of pixel data from memory: GL_UNPACK_SWAP_BYTES, GL_UNPACK_LSB_FIRST, GL_UNPACK_ROW_LENGTH, GL_UNPACK_IMAGE_HEIGHT, GL_UNPACK_SKIP_PIXELS, GL_UNPACK_SKIP_ROWS, GL_UNPACK_SKIP_IMAGES, and GL_UNPACK_ALIGNMENT. - /// - /// - /// - /// - /// Specifies the value that pname is set to. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glPixelStorei")] - public static - void PixelStore([In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Int32 param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glPixelStorei((OpenTK.Graphics.ES10.All)pname, (Int32)param); - #if DEBUG - } - #endif - } - - - /// - /// Specify the diameter of rasterized points - /// - /// - /// - /// Specifies the diameter of rasterized points. The initial value is 1. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glPointSize")] - public static - void PointSize([In, Out] Single size) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glPointSize((Single)size); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glPointSizex")] - public static - void PointSizex([In, Out] int size) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glPointSizex((int)size); - #if DEBUG - } - #endif - } - - - /// - /// Set the scale and units used to calculate depth values - /// - /// - /// - /// Specifies a scale factor that is used to create a variable depth offset for each polygon. The initial value is 0. - /// - /// - /// - /// - /// Is multiplied by an implementation-specific value to create a constant depth offset. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glPolygonOffset")] - public static - void PolygonOffset([In, Out] Single factor, [In, Out] Single units) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glPolygonOffset((Single)factor, (Single)units); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glPolygonOffsetx")] - public static - void PolygonOffsetx([In, Out] int factor, [In, Out] int units) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glPolygonOffsetx((int)factor, (int)units); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glPopMatrix")] - public static - void PopMatrix() - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glPopMatrix(); - #if DEBUG - } - #endif - } - - - /// - /// Push and pop the current matrix stack - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glPushMatrix")] - public static - void PushMatrix() - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glPushMatrix(); - #if DEBUG - } - #endif - } - - - /// - /// Read a block of pixels from the frame buffer - /// - /// - /// - /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. - /// - /// - /// - /// - /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Returns the pixel data. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glReadPixels")] - public static - void ReadPixels([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] T6[,] pixels) - where T6 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Read a block of pixels from the frame buffer - /// - /// - /// - /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. - /// - /// - /// - /// - /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Returns the pixel data. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glReadPixels")] - public static - void ReadPixels([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] T6[,,] pixels) - where T6 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Read a block of pixels from the frame buffer - /// - /// - /// - /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. - /// - /// - /// - /// - /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Returns the pixel data. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glReadPixels")] - public static - void ReadPixels([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] T6[] pixels) - where T6 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Read a block of pixels from the frame buffer - /// - /// - /// - /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. - /// - /// - /// - /// - /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Returns the pixel data. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glReadPixels")] - public static - void ReadPixels([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] IntPtr pixels) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels); - #if DEBUG - } - #endif - } - - - /// - /// Read a block of pixels from the frame buffer - /// - /// - /// - /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. - /// - /// - /// - /// - /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Returns the pixel data. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glReadPixels")] - public static - void ReadPixels([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] ref T6 pixels) - where T6 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Multiply the current matrix by a rotation matrix - /// - /// - /// - /// Specifies the angle of rotation, in degrees. - /// - /// - /// - /// - /// Specify the x, y, and z coordinates of a vector, respectively. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glRotatef")] - public static - void Rotate([In, Out] Single angle, [In, Out] Single x, [In, Out] Single y, [In, Out] Single z) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glRotatef((Single)angle, (Single)x, (Single)y, (Single)z); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glRotatex")] - public static - void Rotatex([In, Out] int angle, [In, Out] int x, [In, Out] int y, [In, Out] int z) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glRotatex((int)angle, (int)x, (int)y, (int)z); - #if DEBUG - } - #endif - } - - - /// - /// Specify multisample coverage parameters - /// - /// - /// - /// Specify a single floating-point sample coverage value. The value is clamped to the range [0 ,1]. The initial value is 1.0. - /// - /// - /// - /// - /// Specify a single boolean value representing if the coverage masks should be inverted. GL_TRUE and GL_FALSE are accepted. The initial value is GL_FALSE. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glSampleCoverage")] - public static - void SampleCoverage([In, Out] Single value, [In, Out] bool invert) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glSampleCoverage((Single)value, (bool)invert); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glSampleCoveragex")] - public static - void SampleCoveragex([In, Out] int value, [In, Out] bool invert) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glSampleCoveragex((int)value, (bool)invert); - #if DEBUG - } - #endif - } - - - /// - /// Multiply the current matrix by a general scaling matrix - /// - /// - /// - /// Specify scale factors along the x, y, and z axes, respectively. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glScalef")] - public static - void Scale([In, Out] Single x, [In, Out] Single y, [In, Out] Single z) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glScalef((Single)x, (Single)y, (Single)z); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glScalex")] - public static - void Scalex([In, Out] int x, [In, Out] int y, [In, Out] int z) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glScalex((int)x, (int)y, (int)z); - #if DEBUG - } - #endif - } - - - /// - /// Define the scissor box - /// - /// - /// - /// Specify the lower left corner of the scissor box. Initially (0, 0). - /// - /// - /// - /// - /// Specify the width and height of the scissor box. When a GL context is first attached to a window, width and height are set to the dimensions of that window. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glScissor")] - public static - void Scissor([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glScissor((Int32)x, (Int32)y, (Int32)width, (Int32)height); - #if DEBUG - } - #endif - } - - - /// - /// Select flat or smooth shading - /// - /// - /// - /// Specifies a symbolic value representing a shading technique. Accepted values are GL_FLAT and GL_SMOOTH. The initial value is GL_SMOOTH. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glShadeModel")] - public static - void ShadeModel([In, Out] OpenTK.Graphics.ES10.All mode) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glShadeModel((OpenTK.Graphics.ES10.All)mode); - #if DEBUG - } - #endif - } - - - /// - /// Set front and back function and reference value for stencil testing - /// - /// - /// - /// Specifies the test function. Eight symbolic constants are valid: GL_NEVER, GL_LESS, GL_LEQUAL, GL_GREATER, GL_GEQUAL, GL_EQUAL, GL_NOTEQUAL, and GL_ALWAYS. The initial value is GL_ALWAYS. - /// - /// - /// - /// - /// Specifies the reference value for the stencil test. ref is clamped to the range [0, 2 sup n - 1], where is the number of bitplanes in the stencil buffer. The initial value is 0. - /// - /// - /// - /// - /// Specifies a mask that is ANDed with both the reference value and the stored stencil value when the test is done. The initial value is all 1's. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glStencilFunc")] - public static - void StencilFunc([In, Out] OpenTK.Graphics.ES10.All func, [In, Out] Int32 @ref, [In, Out] Int32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glStencilFunc((OpenTK.Graphics.ES10.All)func, (Int32)@ref, (UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Set front and back function and reference value for stencil testing - /// - /// - /// - /// Specifies the test function. Eight symbolic constants are valid: GL_NEVER, GL_LESS, GL_LEQUAL, GL_GREATER, GL_GEQUAL, GL_EQUAL, GL_NOTEQUAL, and GL_ALWAYS. The initial value is GL_ALWAYS. - /// - /// - /// - /// - /// Specifies the reference value for the stencil test. ref is clamped to the range [0, 2 sup n - 1], where is the number of bitplanes in the stencil buffer. The initial value is 0. - /// - /// - /// - /// - /// Specifies a mask that is ANDed with both the reference value and the stored stencil value when the test is done. The initial value is all 1's. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glStencilFunc")] - public static - void StencilFunc([In, Out] OpenTK.Graphics.ES10.All func, [In, Out] Int32 @ref, [In, Out] UInt32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glStencilFunc((OpenTK.Graphics.ES10.All)func, (Int32)@ref, (UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Control the front and back writing of individual bits in the stencil planes - /// - /// - /// - /// Specifies a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, the mask is all 1's. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glStencilMask")] - public static - void StencilMask([In, Out] Int32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glStencilMask((UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Control the front and back writing of individual bits in the stencil planes - /// - /// - /// - /// Specifies a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, the mask is all 1's. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glStencilMask")] - public static - void StencilMask([In, Out] UInt32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glStencilMask((UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Set front and back stencil test actions - /// - /// - /// - /// Specifies the action to take when the stencil test fails. Eight symbolic constants are accepted: GL_KEEP, GL_ZERO, GL_REPLACE, GL_INCR, GL_INCR_WRAP, GL_DECR, GL_DECR_WRAP, and GL_INVERT. The initial value is GL_KEEP. - /// - /// - /// - /// - /// Specifies the stencil action when the stencil test passes, but the depth test fails. dpfail accepts the same symbolic constants as sfail. The initial value is GL_KEEP. - /// - /// - /// - /// - /// Specifies the stencil action when both the stencil test and the depth test pass, or when the stencil test passes and either there is no depth buffer or depth testing is not enabled. dppass accepts the same symbolic constants as sfail. The initial value is GL_KEEP. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glStencilOp")] - public static - void StencilOp([In, Out] OpenTK.Graphics.ES10.All fail, [In, Out] OpenTK.Graphics.ES10.All zfail, [In, Out] OpenTK.Graphics.ES10.All zpass) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glStencilOp((OpenTK.Graphics.ES10.All)fail, (OpenTK.Graphics.ES10.All)zfail, (OpenTK.Graphics.ES10.All)zpass); - #if DEBUG - } - #endif - } - - - /// - /// Define an array of texture coordinates - /// - /// - /// - /// Specifies the number of coordinates per array element. Must be 1, 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each texture coordinate. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive texture coordinate sets. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first texture coordinate set in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexCoordPointer")] - public static - void TexCoordPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] T3[,] pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of texture coordinates - /// - /// - /// - /// Specifies the number of coordinates per array element. Must be 1, 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each texture coordinate. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive texture coordinate sets. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first texture coordinate set in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexCoordPointer")] - public static - void TexCoordPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] T3[,,] pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of texture coordinates - /// - /// - /// - /// Specifies the number of coordinates per array element. Must be 1, 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each texture coordinate. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive texture coordinate sets. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first texture coordinate set in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexCoordPointer")] - public static - void TexCoordPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] T3[] pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of texture coordinates - /// - /// - /// - /// Specifies the number of coordinates per array element. Must be 1, 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each texture coordinate. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive texture coordinate sets. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first texture coordinate set in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexCoordPointer")] - public static - void TexCoordPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer); - #if DEBUG - } - #endif - } - - - /// - /// Define an array of texture coordinates - /// - /// - /// - /// Specifies the number of coordinates per array element. Must be 1, 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each texture coordinate. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive texture coordinate sets. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first texture coordinate set in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexCoordPointer")] - public static - void TexCoordPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] ref T3 pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Set texture environment parameters - /// - /// - /// - /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL or GL_POINT_SPRITE. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture environment parameter. May be either GL_TEXTURE_ENV_MODE, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. - /// - /// - /// - /// - /// Specifies a single symbolic constant, one of GL_ADD, GL_ADD_SIGNED, GL_INTERPOLATE, GL_MODULATE, GL_DECAL, GL_BLEND, GL_REPLACE, GL_SUBTRACT, GL_COMBINE, GL_TEXTURE, GL_CONSTANT, GL_PRIMARY_COLOR, GL_PREVIOUS, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, a single boolean value for the point sprite texture coordinate replacement, a single floating-point value for the texture level-of-detail bias, or 1.0, 2.0, or 4.0 when specifying the GL_RGB_SCALE or GL_ALPHA_SCALE. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexEnvf")] - public static - void TexEnv([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexEnvf((OpenTK.Graphics.ES10.All)target, (OpenTK.Graphics.ES10.All)pname, (Single)param); - #if DEBUG - } - #endif - } - - - /// - /// Set texture environment parameters - /// - /// - /// - /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL or GL_POINT_SPRITE. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture environment parameter. May be either GL_TEXTURE_ENV_MODE, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. - /// - /// - /// - /// - /// Specifies a single symbolic constant, one of GL_ADD, GL_ADD_SIGNED, GL_INTERPOLATE, GL_MODULATE, GL_DECAL, GL_BLEND, GL_REPLACE, GL_SUBTRACT, GL_COMBINE, GL_TEXTURE, GL_CONSTANT, GL_PRIMARY_COLOR, GL_PREVIOUS, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, a single boolean value for the point sprite texture coordinate replacement, a single floating-point value for the texture level-of-detail bias, or 1.0, 2.0, or 4.0 when specifying the GL_RGB_SCALE or GL_ALPHA_SCALE. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexEnvfv")] - public static - unsafe void TexEnv([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexEnvfv((OpenTK.Graphics.ES10.All)target, (OpenTK.Graphics.ES10.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Set texture environment parameters - /// - /// - /// - /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL or GL_POINT_SPRITE. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture environment parameter. May be either GL_TEXTURE_ENV_MODE, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. - /// - /// - /// - /// - /// Specifies a single symbolic constant, one of GL_ADD, GL_ADD_SIGNED, GL_INTERPOLATE, GL_MODULATE, GL_DECAL, GL_BLEND, GL_REPLACE, GL_SUBTRACT, GL_COMBINE, GL_TEXTURE, GL_CONSTANT, GL_PRIMARY_COLOR, GL_PREVIOUS, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, a single boolean value for the point sprite texture coordinate replacement, a single floating-point value for the texture level-of-detail bias, or 1.0, 2.0, or 4.0 when specifying the GL_RGB_SCALE or GL_ALPHA_SCALE. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexEnvfv")] - public static - void TexEnv([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glTexEnvfv((OpenTK.Graphics.ES10.All)target, (OpenTK.Graphics.ES10.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexEnvx")] - public static - void TexEnvx([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexEnvx((OpenTK.Graphics.ES10.All)target, (OpenTK.Graphics.ES10.All)pname, (int)param); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexEnvxv")] - public static - unsafe void TexEnvx([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexEnvxv((OpenTK.Graphics.ES10.All)target, (OpenTK.Graphics.ES10.All)pname, (int*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexEnvxv")] - public static - void TexEnvx([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = @params) - { - Delegates.glTexEnvxv((OpenTK.Graphics.ES10.All)target, (OpenTK.Graphics.ES10.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexImage2D")] - public static - void TexImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] T8[,] pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexImage2D")] - public static - void TexImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] T8[,,] pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexImage2D")] - public static - void TexImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] T8[] pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexImage2D")] - public static - void TexImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] IntPtr pixels) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels); - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexImage2D")] - public static - void TexImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] ref T8 pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Set texture parameters - /// - /// - /// - /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. - /// - /// - /// - /// - /// Specifies the value of pname. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexParameterf")] - public static - void TexParameter([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] Single param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexParameterf((OpenTK.Graphics.ES10.All)target, (OpenTK.Graphics.ES10.All)pname, (Single)param); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexParameterx")] - public static - void TexParameterx([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] OpenTK.Graphics.ES10.All pname, [In, Out] int param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexParameterx((OpenTK.Graphics.ES10.All)target, (OpenTK.Graphics.ES10.All)pname, (int)param); - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexSubImage2D")] - public static - void TexSubImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] T8[,] pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexSubImage2D")] - public static - void TexSubImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] T8[,,] pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexSubImage2D")] - public static - void TexSubImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] T8[] pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexSubImage2D")] - public static - void TexSubImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] IntPtr pixels) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels); - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTexSubImage2D")] - public static - void TexSubImage2D([In, Out] OpenTK.Graphics.ES10.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES10.All format, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] ref T8 pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Multiply the current matrix by a translation matrix - /// - /// - /// - /// Specify the x, y, and z coordinates of a translation vector. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTranslatef")] - public static - void Translate([In, Out] Single x, [In, Out] Single y, [In, Out] Single z) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTranslatef((Single)x, (Single)y, (Single)z); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glTranslatex")] - public static - void Translatex([In, Out] int x, [In, Out] int y, [In, Out] int z) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTranslatex((int)x, (int)y, (int)z); - #if DEBUG - } - #endif - } - - - /// - /// Define an array of vertex data - /// - /// - /// - /// Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first vertex in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glVertexPointer")] - public static - void VertexPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] T3[,] pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of vertex data - /// - /// - /// - /// Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first vertex in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glVertexPointer")] - public static - void VertexPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] T3[,,] pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of vertex data - /// - /// - /// - /// Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first vertex in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glVertexPointer")] - public static - void VertexPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] T3[] pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of vertex data - /// - /// - /// - /// Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first vertex in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glVertexPointer")] - public static - void VertexPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer); - #if DEBUG - } - #endif - } - - - /// - /// Define an array of vertex data - /// - /// - /// - /// Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first vertex in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glVertexPointer")] - public static - void VertexPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES10.All type, [In, Out] Int32 stride, [In, Out] ref T3 pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Set the viewport - /// - /// - /// - /// Specify the lower left corner of the viewport rectangle, in pixels. The initial value is (0,0). - /// - /// - /// - /// - /// Specify the width and height of the viewport. When a GL context is first attached to a window, width and height are set to the dimensions of that window. - /// - /// - - [AutoGenerated(Category = "1.0", Version = "", EntryPoint = "glViewport")] - public static - void Viewport([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glViewport((Int32)x, (Int32)y, (Int32)width, (Int32)height); - #if DEBUG - } - #endif - } - - } -} +#region License +// +// The Open Toolkit Library License +// +// Copyright (c) 2006 - 2009 the Open Toolkit library. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do +// so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// +#endregion + +namespace OpenTK.Graphics.ES10 +{ + using System; + using System.Runtime.InteropServices; + #pragma warning disable 3019 + #pragma warning disable 1591 + #pragma warning disable 1572 + #pragma warning disable 1573 + + static partial class GL + { + + + /// + /// Select active texture unit + /// + /// + /// + /// Specifies which texture unit to make active. The number of texture units is implementation dependent, but must be at least two. texture must be one of GL_TEXTURE, where i ranges from 0 to the larger of (GL_MAX_TEXTURE_COORDS - 1) and (GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS - 1). The initial value is GL_TEXTURE0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glActiveTexture")] + public static + void ActiveTexture(OpenTK.Graphics.ES10.All texture) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glActiveTexture((OpenTK.Graphics.ES10.All)texture); + #if DEBUG + } + #endif + } + + + /// + /// Specify the alpha test function + /// + /// + /// + /// Specifies the alpha comparison function. Symbolic constants GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL, GL_GREATER, GL_NOTEQUAL, GL_GEQUAL, and GL_ALWAYS are accepted. The initial value is GL_ALWAYS. + /// + /// + /// + /// + /// Specifies the reference value that incoming alpha values are compared to. This value is clamped to the range [0,1], where 0 represents the lowest possible alpha value and 1 the highest possible value. The initial reference value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glAlphaFunc")] + public static + void AlphaFunc(OpenTK.Graphics.ES10.All func, Single @ref) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glAlphaFunc((OpenTK.Graphics.ES10.All)func, (Single)@ref); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glAlphaFuncx")] + public static + void AlphaFuncx(OpenTK.Graphics.ES10.All func, int @ref) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glAlphaFuncx((OpenTK.Graphics.ES10.All)func, (int)@ref); + #if DEBUG + } + #endif + } + + + /// + /// Bind a named texture to a texturing target + /// + /// + /// + /// Specifies the target to which the texture is bound. Must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the name of a texture. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glBindTexture")] + public static + void BindTexture(OpenTK.Graphics.ES10.All target, UInt32 texture) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBindTexture((OpenTK.Graphics.ES10.All)target, (UInt32)texture); + #if DEBUG + } + #endif + } + + + /// + /// Specify pixel arithmetic + /// + /// + /// + /// Specifies how the red, green, blue, and alpha source blending factors are computed. The following symbolic constants are accepted: GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA, GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, GL_ONE_MINUS_CONSTANT_ALPHA, and GL_SRC_ALPHA_SATURATE. The initial value is GL_ONE. + /// + /// + /// + /// + /// Specifies how the red, green, blue, and alpha destination blending factors are computed. The following symbolic constants are accepted: GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA. GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, and GL_ONE_MINUS_CONSTANT_ALPHA. The initial value is GL_ZERO. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glBlendFunc")] + public static + void BlendFunc(OpenTK.Graphics.ES10.All sfactor, OpenTK.Graphics.ES10.All dfactor) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBlendFunc((OpenTK.Graphics.ES10.All)sfactor, (OpenTK.Graphics.ES10.All)dfactor); + #if DEBUG + } + #endif + } + + + /// + /// Clear buffers to preset values + /// + /// + /// + /// Bitwise OR of masks that indicate the buffers to be cleared. The four masks are GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_ACCUM_BUFFER_BIT, and GL_STENCIL_BUFFER_BIT. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glClear")] + public static + void Clear(UInt32 mask) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClear((UInt32)mask); + #if DEBUG + } + #endif + } + + + /// + /// Specify clear values for the color buffers + /// + /// + /// + /// Specify the red, green, blue, and alpha values used when the color buffers are cleared. The initial values are all 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glClearColor")] + public static + void ClearColor(Single red, Single green, Single blue, Single alpha) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClearColor((Single)red, (Single)green, (Single)blue, (Single)alpha); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glClearColorx")] + public static + void ClearColorx(int red, int green, int blue, int alpha) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClearColorx((int)red, (int)green, (int)blue, (int)alpha); + #if DEBUG + } + #endif + } + + + /// + /// Specify the clear value for the depth buffer + /// + /// + /// + /// Specifies the depth value used when the depth buffer is cleared. The initial value is 1. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glClearDepthf")] + public static + void ClearDepth(Single depth) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClearDepthf((Single)depth); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glClearDepthx")] + public static + void ClearDepthx(int depth) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClearDepthx((int)depth); + #if DEBUG + } + #endif + } + + + /// + /// Specify the clear value for the stencil buffer + /// + /// + /// + /// Specifies the index used when the stencil buffer is cleared. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glClearStencil")] + public static + void ClearStencil(Int32 s) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClearStencil((Int32)s); + #if DEBUG + } + #endif + } + + + /// + /// Select active texture unit + /// + /// + /// + /// Specifies which texture unit to make active. The number of texture units is implementation dependent, but must be at least two. texture must be one of GL_TEXTURE, where i ranges from 0 to the value of GL_MAX_TEXTURE_COORDS - 1, which is an implementation-dependent value. The initial value is GL_TEXTURE0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glClientActiveTexture")] + public static + void ClientActiveTexture(OpenTK.Graphics.ES10.All texture) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClientActiveTexture((OpenTK.Graphics.ES10.All)texture); + #if DEBUG + } + #endif + } + + + /// + /// Set the current color + /// + /// + /// + /// Specify new red, green, and blue values for the current color. + /// + /// + /// + /// + /// Specifies a new alpha value for the current color. Included only in the four-argument glColor4 commands. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glColor4f")] + public static + void Color4(Single red, Single green, Single blue, Single alpha) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glColor4f((Single)red, (Single)green, (Single)blue, (Single)alpha); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glColor4x")] + public static + void Color4x(int red, int green, int blue, int alpha) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glColor4x((int)red, (int)green, (int)blue, (int)alpha); + #if DEBUG + } + #endif + } + + + /// + /// Enable and disable writing of frame buffer color components + /// + /// + /// + /// Specify whether red, green, blue, and alpha can or cannot be written into the frame buffer. The initial values are all GL_TRUE, indicating that the color components can be written. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glColorMask")] + public static + void ColorMask(bool red, bool green, bool blue, bool alpha) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glColorMask((bool)red, (bool)green, (bool)blue, (bool)alpha); + #if DEBUG + } + #endif + } + + + /// + /// Define an array of colors + /// + /// + /// + /// Specifies the number of components per color. Must be 3 or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first component of the first color element in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glColorPointer")] + public static + void ColorPointer(Int32 size, OpenTK.Graphics.ES10.All type, Int32 stride, [InAttribute, OutAttribute] ref T3 pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of colors + /// + /// + /// + /// Specifies the number of components per color. Must be 3 or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first component of the first color element in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glColorPointer")] + public static + void ColorPointer(Int32 size, OpenTK.Graphics.ES10.All type, Int32 stride, [InAttribute, OutAttribute] T3[,,] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of colors + /// + /// + /// + /// Specifies the number of components per color. Must be 3 or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first component of the first color element in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glColorPointer")] + public static + void ColorPointer(Int32 size, OpenTK.Graphics.ES10.All type, Int32 stride, [InAttribute, OutAttribute] T3[,] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of colors + /// + /// + /// + /// Specifies the number of components per color. Must be 3 or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first component of the first color element in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glColorPointer")] + public static + void ColorPointer(Int32 size, OpenTK.Graphics.ES10.All type, Int32 stride, [InAttribute, OutAttribute] T3[] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of colors + /// + /// + /// + /// Specifies the number of components per color. Must be 3 or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first component of the first color element in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glColorPointer")] + public static + void ColorPointer(Int32 size, OpenTK.Graphics.ES10.All type, Int32 stride, IntPtr pointer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCompressedTexImage2D")] + public static + void CompressedTexImage2D(OpenTK.Graphics.ES10.All target, Int32 level, OpenTK.Graphics.ES10.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] ref T7 data) + where T7 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (OpenTK.Graphics.ES10.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCompressedTexImage2D")] + public static + void CompressedTexImage2D(OpenTK.Graphics.ES10.All target, Int32 level, OpenTK.Graphics.ES10.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T7[,,] data) + where T7 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (OpenTK.Graphics.ES10.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCompressedTexImage2D")] + public static + void CompressedTexImage2D(OpenTK.Graphics.ES10.All target, Int32 level, OpenTK.Graphics.ES10.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T7[,] data) + where T7 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (OpenTK.Graphics.ES10.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCompressedTexImage2D")] + public static + void CompressedTexImage2D(OpenTK.Graphics.ES10.All target, Int32 level, OpenTK.Graphics.ES10.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T7[] data) + where T7 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (OpenTK.Graphics.ES10.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCompressedTexImage2D")] + public static + void CompressedTexImage2D(OpenTK.Graphics.ES10.All target, Int32 level, OpenTK.Graphics.ES10.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (OpenTK.Graphics.ES10.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data); + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCompressedTexSubImage2D")] + public static + void CompressedTexSubImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES10.All format, Int32 imageSize, [InAttribute, OutAttribute] ref T8 data) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCompressedTexSubImage2D")] + public static + void CompressedTexSubImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES10.All format, Int32 imageSize, [InAttribute, OutAttribute] T8[,,] data) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCompressedTexSubImage2D")] + public static + void CompressedTexSubImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES10.All format, Int32 imageSize, [InAttribute, OutAttribute] T8[,] data) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCompressedTexSubImage2D")] + public static + void CompressedTexSubImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES10.All format, Int32 imageSize, [InAttribute, OutAttribute] T8[] data) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCompressedTexSubImage2D")] + public static + void CompressedTexSubImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES10.All format, Int32 imageSize, IntPtr data) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (Int32)imageSize, (IntPtr)data); + #if DEBUG + } + #endif + } + + + /// + /// Copy pixels into a 2D texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the internal format of the texture. Must be one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_RGB, GL_R3_G3_B2, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specify the window coordinates of the lower left corner of the rectangular region of pixels to be copied. + /// + /// + /// + /// + /// Specifies the width of the texture image. Must be 0 or 2 sup n + 2 ( border ) for some integer . + /// + /// + /// + /// + /// Specifies the height of the texture image. Must be 0 or 2 sup m + 2 ( border ) for some integer . + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCopyTexImage2D")] + public static + void CopyTexImage2D(OpenTK.Graphics.ES10.All target, Int32 level, OpenTK.Graphics.ES10.All internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glCopyTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (OpenTK.Graphics.ES10.All)internalformat, (Int32)x, (Int32)y, (Int32)width, (Int32)height, (Int32)border); + #if DEBUG + } + #endif + } + + + /// + /// Copy a two-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specify the window coordinates of the lower left corner of the rectangular region of pixels to be copied. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCopyTexSubImage2D")] + public static + void CopyTexSubImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glCopyTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif + } + + + /// + /// Specify whether front- or back-facing facets can be culled + /// + /// + /// + /// Specifies whether front- or back-facing facets are candidates for culling. Symbolic constants GL_FRONT, GL_BACK, and GL_FRONT_AND_BACK are accepted. The initial value is GL_BACK. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glCullFace")] + public static + void CullFace(OpenTK.Graphics.ES10.All mode) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glCullFace((OpenTK.Graphics.ES10.All)mode); + #if DEBUG + } + #endif + } + + + /// + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glDeleteTextures")] + public static + unsafe void DeleteTextures(Int32 n, Int32* textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures); + #if DEBUG + } + #endif + } + + + /// + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glDeleteTextures")] + public static + void DeleteTextures(Int32 n, ref UInt32 textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* textures_ptr = &textures) + { + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glDeleteTextures")] + public static + unsafe void DeleteTextures(Int32 n, UInt32* textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures); + #if DEBUG + } + #endif + } + + + /// + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glDeleteTextures")] + public static + void DeleteTextures(Int32 n, UInt32[] textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* textures_ptr = textures) + { + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify the value used for depth buffer comparisons + /// + /// + /// + /// Specifies the depth comparison function. Symbolic constants GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL, GL_GREATER, GL_NOTEQUAL, GL_GEQUAL, and GL_ALWAYS are accepted. The initial value is GL_LESS. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glDepthFunc")] + public static + void DepthFunc(OpenTK.Graphics.ES10.All func) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDepthFunc((OpenTK.Graphics.ES10.All)func); + #if DEBUG + } + #endif + } + + + /// + /// Enable or disable writing into the depth buffer + /// + /// + /// + /// Specifies whether the depth buffer is enabled for writing. If flag is GL_FALSE, depth buffer writing is disabled. Otherwise, it is enabled. Initially, depth buffer writing is enabled. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glDepthMask")] + public static + void DepthMask(bool flag) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDepthMask((bool)flag); + #if DEBUG + } + #endif + } + + + /// + /// Specify mapping of depth values from normalized device coordinates to window coordinates + /// + /// + /// + /// Specifies the mapping of the near clipping plane to window coordinates. The initial value is 0. + /// + /// + /// + /// + /// Specifies the mapping of the far clipping plane to window coordinates. The initial value is 1. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glDepthRangef")] + public static + void DepthRange(Single zNear, Single zFar) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDepthRangef((Single)zNear, (Single)zFar); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glDepthRangex")] + public static + void DepthRangex(int zNear, int zFar) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDepthRangex((int)zNear, (int)zFar); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glDisable")] + public static + void Disable(OpenTK.Graphics.ES10.All cap) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDisable((OpenTK.Graphics.ES10.All)cap); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glDisableClientState")] + public static + void DisableClientState(OpenTK.Graphics.ES10.All array) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDisableClientState((OpenTK.Graphics.ES10.All)array); + #if DEBUG + } + #endif + } + + + /// + /// Render primitives from array data + /// + /// + /// + /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. + /// + /// + /// + /// + /// Specifies the starting index in the enabled arrays. + /// + /// + /// + /// + /// Specifies the number of indices to be rendered. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glDrawArrays")] + public static + void DrawArrays(OpenTK.Graphics.ES10.All mode, Int32 first, Int32 count) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDrawArrays((OpenTK.Graphics.ES10.All)mode, (Int32)first, (Int32)count); + #if DEBUG + } + #endif + } + + + /// + /// Render primitives from array data + /// + /// + /// + /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. + /// + /// + /// + /// + /// Specifies the number of elements to be rendered. + /// + /// + /// + /// + /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. + /// + /// + /// + /// + /// Specifies a pointer to the location where the indices are stored. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glDrawElements")] + public static + void DrawElements(OpenTK.Graphics.ES10.All mode, Int32 count, OpenTK.Graphics.ES10.All type, [InAttribute, OutAttribute] ref T3 indices) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElements((OpenTK.Graphics.ES10.All)mode, (Int32)count, (OpenTK.Graphics.ES10.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Render primitives from array data + /// + /// + /// + /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. + /// + /// + /// + /// + /// Specifies the number of elements to be rendered. + /// + /// + /// + /// + /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. + /// + /// + /// + /// + /// Specifies a pointer to the location where the indices are stored. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glDrawElements")] + public static + void DrawElements(OpenTK.Graphics.ES10.All mode, Int32 count, OpenTK.Graphics.ES10.All type, [InAttribute, OutAttribute] T3[,,] indices) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElements((OpenTK.Graphics.ES10.All)mode, (Int32)count, (OpenTK.Graphics.ES10.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Render primitives from array data + /// + /// + /// + /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. + /// + /// + /// + /// + /// Specifies the number of elements to be rendered. + /// + /// + /// + /// + /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. + /// + /// + /// + /// + /// Specifies a pointer to the location where the indices are stored. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glDrawElements")] + public static + void DrawElements(OpenTK.Graphics.ES10.All mode, Int32 count, OpenTK.Graphics.ES10.All type, [InAttribute, OutAttribute] T3[,] indices) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElements((OpenTK.Graphics.ES10.All)mode, (Int32)count, (OpenTK.Graphics.ES10.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Render primitives from array data + /// + /// + /// + /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. + /// + /// + /// + /// + /// Specifies the number of elements to be rendered. + /// + /// + /// + /// + /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. + /// + /// + /// + /// + /// Specifies a pointer to the location where the indices are stored. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glDrawElements")] + public static + void DrawElements(OpenTK.Graphics.ES10.All mode, Int32 count, OpenTK.Graphics.ES10.All type, [InAttribute, OutAttribute] T3[] indices) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElements((OpenTK.Graphics.ES10.All)mode, (Int32)count, (OpenTK.Graphics.ES10.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Render primitives from array data + /// + /// + /// + /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. + /// + /// + /// + /// + /// Specifies the number of elements to be rendered. + /// + /// + /// + /// + /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. + /// + /// + /// + /// + /// Specifies a pointer to the location where the indices are stored. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glDrawElements")] + public static + void DrawElements(OpenTK.Graphics.ES10.All mode, Int32 count, OpenTK.Graphics.ES10.All type, IntPtr indices) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDrawElements((OpenTK.Graphics.ES10.All)mode, (Int32)count, (OpenTK.Graphics.ES10.All)type, (IntPtr)indices); + #if DEBUG + } + #endif + } + + + /// + /// Enable or disable server-side GL capabilities + /// + /// + /// + /// Specifies a symbolic constant indicating a GL capability. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnable")] + public static + void Enable(OpenTK.Graphics.ES10.All cap) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glEnable((OpenTK.Graphics.ES10.All)cap); + #if DEBUG + } + #endif + } + + + /// + /// Enable or disable client-side capability + /// + /// + /// + /// Specifies the capability to enable. Symbolic constants GL_COLOR_ARRAY, GL_EDGE_FLAG_ARRAY, GL_FOG_COORD_ARRAY, GL_INDEX_ARRAY, GL_NORMAL_ARRAY, GL_SECONDARY_COLOR_ARRAY, GL_TEXTURE_COORD_ARRAY, and GL_VERTEX_ARRAY are accepted. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glEnableClientState")] + public static + void EnableClientState(OpenTK.Graphics.ES10.All array) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glEnableClientState((OpenTK.Graphics.ES10.All)array); + #if DEBUG + } + #endif + } + + + /// + /// Block until all GL execution is complete + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glFinish")] + public static + void Finish() + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFinish(); + #if DEBUG + } + #endif + } + + + /// + /// Force execution of GL commands in finite time + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glFlush")] + public static + void Flush() + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFlush(); + #if DEBUG + } + #endif + } + + + /// + /// Specify fog parameters + /// + /// + /// + /// Specifies a single-valued fog parameter. GL_FOG_MODE, GL_FOG_DENSITY, GL_FOG_START, GL_FOG_END, GL_FOG_INDEX, and GL_FOG_COORD_SRC are accepted. + /// + /// + /// + /// + /// Specifies the value that pname will be set to. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glFogf")] + public static + void Fog(OpenTK.Graphics.ES10.All pname, Single param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFogf((OpenTK.Graphics.ES10.All)pname, (Single)param); + #if DEBUG + } + #endif + } + + + /// + /// Specify fog parameters + /// + /// + /// + /// Specifies a single-valued fog parameter. GL_FOG_MODE, GL_FOG_DENSITY, GL_FOG_START, GL_FOG_END, GL_FOG_INDEX, and GL_FOG_COORD_SRC are accepted. + /// + /// + /// + /// + /// Specifies the value that pname will be set to. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glFogfv")] + public static + unsafe void Fog(OpenTK.Graphics.ES10.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFogfv((OpenTK.Graphics.ES10.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Specify fog parameters + /// + /// + /// + /// Specifies a single-valued fog parameter. GL_FOG_MODE, GL_FOG_DENSITY, GL_FOG_START, GL_FOG_END, GL_FOG_INDEX, and GL_FOG_COORD_SRC are accepted. + /// + /// + /// + /// + /// Specifies the value that pname will be set to. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glFogfv")] + public static + void Fog(OpenTK.Graphics.ES10.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glFogfv((OpenTK.Graphics.ES10.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glFogx")] + public static + void Fogx(OpenTK.Graphics.ES10.All pname, int param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFogx((OpenTK.Graphics.ES10.All)pname, (int)param); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glFogxv")] + public static + unsafe void Fogx(OpenTK.Graphics.ES10.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFogxv((OpenTK.Graphics.ES10.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glFogxv")] + public static + void Fogx(OpenTK.Graphics.ES10.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glFogxv((OpenTK.Graphics.ES10.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Define front- and back-facing polygons + /// + /// + /// + /// Specifies the orientation of front-facing polygons. GL_CW and GL_CCW are accepted. The initial value is GL_CCW. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glFrontFace")] + public static + void FrontFace(OpenTK.Graphics.ES10.All mode) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFrontFace((OpenTK.Graphics.ES10.All)mode); + #if DEBUG + } + #endif + } + + + /// + /// Multiply the current matrix by a perspective matrix + /// + /// + /// + /// Specify the coordinates for the left and right vertical clipping planes. + /// + /// + /// + /// + /// Specify the coordinates for the bottom and top horizontal clipping planes. + /// + /// + /// + /// + /// Specify the distances to the near and far depth clipping planes. Both distances must be positive. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glFrustumf")] + public static + void Frustum(Single left, Single right, Single bottom, Single top, Single zNear, Single zFar) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFrustumf((Single)left, (Single)right, (Single)bottom, (Single)top, (Single)zNear, (Single)zFar); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glFrustumx")] + public static + void Frustumx(int left, int right, int bottom, int top, int zNear, int zFar) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFrustumx((int)left, (int)right, (int)bottom, (int)top, (int)zNear, (int)zFar); + #if DEBUG + } + #endif + } + + + /// + /// Generate texture names + /// + /// + /// + /// Specifies the number of texture names to be generated. + /// + /// + /// + /// + /// Specifies an array in which the generated texture names are stored. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGenTextures")] + public static + unsafe void GenTextures(Int32 n, Int32* textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenTextures((Int32)n, (UInt32*)textures); + #if DEBUG + } + #endif + } + + + /// + /// Generate texture names + /// + /// + /// + /// Specifies the number of texture names to be generated. + /// + /// + /// + /// + /// Specifies an array in which the generated texture names are stored. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGenTextures")] + public static + void GenTextures(Int32 n, ref UInt32 textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* textures_ptr = &textures) + { + Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Generate texture names + /// + /// + /// + /// Specifies the number of texture names to be generated. + /// + /// + /// + /// + /// Specifies an array in which the generated texture names are stored. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGenTextures")] + public static + unsafe void GenTextures(Int32 n, UInt32* textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenTextures((Int32)n, (UInt32*)textures); + #if DEBUG + } + #endif + } + + + /// + /// Generate texture names + /// + /// + /// + /// Specifies the number of texture names to be generated. + /// + /// + /// + /// + /// Specifies an array in which the generated texture names are stored. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGenTextures")] + public static + void GenTextures(Int32 n, UInt32[] textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* textures_ptr = textures) + { + Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return error information + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetError")] + public static + OpenTK.Graphics.ES10.All GetError() + { + return Delegates.glGetError(); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetIntegerv")] + public static + unsafe void GetInteger(OpenTK.Graphics.ES10.All pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetIntegerv((OpenTK.Graphics.ES10.All)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetIntegerv")] + public static + void GetInteger(OpenTK.Graphics.ES10.All pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glGetIntegerv((OpenTK.Graphics.ES10.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetIntegerv")] + public static + void GetInteger(OpenTK.Graphics.ES10.All pname, ref Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glGetIntegerv((OpenTK.Graphics.ES10.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return a string describing the current GL connection + /// + /// + /// + /// Specifies a symbolic constant, one of GL_VENDOR, GL_RENDERER, GL_VERSION, GL_SHADING_LANGUAGE_VERSION, or GL_EXTENSIONS. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glGetString")] + public static + unsafe string GetString(OpenTK.Graphics.ES10.All name) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.glGetString((OpenTK.Graphics.ES10.All)name)); + #if DEBUG + } + #endif + } + + + /// + /// Specify implementation-specific hints + /// + /// + /// + /// Specifies a symbolic constant indicating the behavior to be controlled. GL_FOG_HINT, GL_GENERATE_MIPMAP_HINT, GL_LINE_SMOOTH_HINT, GL_PERSPECTIVE_CORRECTION_HINT, GL_POINT_SMOOTH_HINT, GL_POLYGON_SMOOTH_HINT, GL_TEXTURE_COMPRESSION_HINT, and GL_FRAGMENT_SHADER_DERIVATIVE_HINT are accepted. + /// + /// + /// + /// + /// Specifies a symbolic constant indicating the desired behavior. GL_FASTEST, GL_NICEST, and GL_DONT_CARE are accepted. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glHint")] + public static + void Hint(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All mode) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glHint((OpenTK.Graphics.ES10.All)target, (OpenTK.Graphics.ES10.All)mode); + #if DEBUG + } + #endif + } + + + /// + /// Set light source parameters + /// + /// + /// + /// Specifies a light. The number of lights depends on the implementation, but at least eight lights are supported. They are identified by symbolic names of the form GL_LIGHT , where i ranges from 0 to the value of GL_MAX_LIGHTS - 1. + /// + /// + /// + /// + /// Specifies a single-valued light source parameter for light. GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION, and GL_QUADRATIC_ATTENUATION are accepted. + /// + /// + /// + /// + /// Specifies the value that parameter pname of light source light will be set to. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLightf")] + public static + void Light(OpenTK.Graphics.ES10.All light, OpenTK.Graphics.ES10.All pname, Single param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLightf((OpenTK.Graphics.ES10.All)light, (OpenTK.Graphics.ES10.All)pname, (Single)param); + #if DEBUG + } + #endif + } + + + /// + /// Set light source parameters + /// + /// + /// + /// Specifies a light. The number of lights depends on the implementation, but at least eight lights are supported. They are identified by symbolic names of the form GL_LIGHT , where i ranges from 0 to the value of GL_MAX_LIGHTS - 1. + /// + /// + /// + /// + /// Specifies a single-valued light source parameter for light. GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION, and GL_QUADRATIC_ATTENUATION are accepted. + /// + /// + /// + /// + /// Specifies the value that parameter pname of light source light will be set to. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLightfv")] + public static + unsafe void Light(OpenTK.Graphics.ES10.All light, OpenTK.Graphics.ES10.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLightfv((OpenTK.Graphics.ES10.All)light, (OpenTK.Graphics.ES10.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Set light source parameters + /// + /// + /// + /// Specifies a light. The number of lights depends on the implementation, but at least eight lights are supported. They are identified by symbolic names of the form GL_LIGHT , where i ranges from 0 to the value of GL_MAX_LIGHTS - 1. + /// + /// + /// + /// + /// Specifies a single-valued light source parameter for light. GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION, and GL_QUADRATIC_ATTENUATION are accepted. + /// + /// + /// + /// + /// Specifies the value that parameter pname of light source light will be set to. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLightfv")] + public static + void Light(OpenTK.Graphics.ES10.All light, OpenTK.Graphics.ES10.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glLightfv((OpenTK.Graphics.ES10.All)light, (OpenTK.Graphics.ES10.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Set the lighting model parameters + /// + /// + /// + /// Specifies a single-valued lighting model parameter. GL_LIGHT_MODEL_LOCAL_VIEWER, GL_LIGHT_MODEL_COLOR_CONTROL, and GL_LIGHT_MODEL_TWO_SIDE are accepted. + /// + /// + /// + /// + /// Specifies the value that param will be set to. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLightModelf")] + public static + void LightModel(OpenTK.Graphics.ES10.All pname, Single param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLightModelf((OpenTK.Graphics.ES10.All)pname, (Single)param); + #if DEBUG + } + #endif + } + + + /// + /// Set the lighting model parameters + /// + /// + /// + /// Specifies a single-valued lighting model parameter. GL_LIGHT_MODEL_LOCAL_VIEWER, GL_LIGHT_MODEL_COLOR_CONTROL, and GL_LIGHT_MODEL_TWO_SIDE are accepted. + /// + /// + /// + /// + /// Specifies the value that param will be set to. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLightModelfv")] + public static + unsafe void LightModel(OpenTK.Graphics.ES10.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLightModelfv((OpenTK.Graphics.ES10.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Set the lighting model parameters + /// + /// + /// + /// Specifies a single-valued lighting model parameter. GL_LIGHT_MODEL_LOCAL_VIEWER, GL_LIGHT_MODEL_COLOR_CONTROL, and GL_LIGHT_MODEL_TWO_SIDE are accepted. + /// + /// + /// + /// + /// Specifies the value that param will be set to. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLightModelfv")] + public static + void LightModel(OpenTK.Graphics.ES10.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glLightModelfv((OpenTK.Graphics.ES10.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLightModelx")] + public static + void LightModelx(OpenTK.Graphics.ES10.All pname, int param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLightModelx((OpenTK.Graphics.ES10.All)pname, (int)param); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLightModelxv")] + public static + unsafe void LightModelx(OpenTK.Graphics.ES10.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLightModelxv((OpenTK.Graphics.ES10.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLightModelxv")] + public static + void LightModelx(OpenTK.Graphics.ES10.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glLightModelxv((OpenTK.Graphics.ES10.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLightx")] + public static + void Lightx(OpenTK.Graphics.ES10.All light, OpenTK.Graphics.ES10.All pname, int param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLightx((OpenTK.Graphics.ES10.All)light, (OpenTK.Graphics.ES10.All)pname, (int)param); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLightxv")] + public static + unsafe void Lightx(OpenTK.Graphics.ES10.All light, OpenTK.Graphics.ES10.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLightxv((OpenTK.Graphics.ES10.All)light, (OpenTK.Graphics.ES10.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLightxv")] + public static + void Lightx(OpenTK.Graphics.ES10.All light, OpenTK.Graphics.ES10.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glLightxv((OpenTK.Graphics.ES10.All)light, (OpenTK.Graphics.ES10.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify the width of rasterized lines + /// + /// + /// + /// Specifies the width of rasterized lines. The initial value is 1. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLineWidth")] + public static + void LineWidth(Single width) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLineWidth((Single)width); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLineWidthx")] + public static + void LineWidthx(int width) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLineWidthx((int)width); + #if DEBUG + } + #endif + } + + + /// + /// Replace the current matrix with the identity matrix + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLoadIdentity")] + public static + void LoadIdentity() + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLoadIdentity(); + #if DEBUG + } + #endif + } + + + /// + /// Replace the current matrix with the specified matrix + /// + /// + /// + /// Specifies a pointer to 16 consecutive values, which are used as the elements of a 4 times 4 column-major matrix. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLoadMatrixf")] + public static + void LoadMatrix(ref Single m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* m_ptr = &m) + { + Delegates.glLoadMatrixf((Single*)m_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Replace the current matrix with the specified matrix + /// + /// + /// + /// Specifies a pointer to 16 consecutive values, which are used as the elements of a 4 times 4 column-major matrix. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLoadMatrixf")] + public static + unsafe void LoadMatrix(Single* m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLoadMatrixf((Single*)m); + #if DEBUG + } + #endif + } + + + /// + /// Replace the current matrix with the specified matrix + /// + /// + /// + /// Specifies a pointer to 16 consecutive values, which are used as the elements of a 4 times 4 column-major matrix. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLoadMatrixf")] + public static + void LoadMatrix(Single[] m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* m_ptr = m) + { + Delegates.glLoadMatrixf((Single*)m_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLoadMatrixx")] + public static + unsafe void LoadMatrixx(int* m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLoadMatrixx((int*)m); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLoadMatrixx")] + public static + void LoadMatrixx(int[] m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* m_ptr = m) + { + Delegates.glLoadMatrixx((int*)m_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLoadMatrixx")] + public static + void LoadMatrixx(ref int m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* m_ptr = &m) + { + Delegates.glLoadMatrixx((int*)m_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a logical pixel operation for color index rendering + /// + /// + /// + /// Specifies a symbolic constant that selects a logical operation. The following symbols are accepted: GL_CLEAR, GL_SET, GL_COPY, GL_COPY_INVERTED, GL_NOOP, GL_INVERT, GL_AND, GL_NAND, GL_OR, GL_NOR, GL_XOR, GL_EQUIV, GL_AND_REVERSE, GL_AND_INVERTED, GL_OR_REVERSE, and GL_OR_INVERTED. The initial value is GL_COPY. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glLogicOp")] + public static + void LogicOp(OpenTK.Graphics.ES10.All opcode) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLogicOp((OpenTK.Graphics.ES10.All)opcode); + #if DEBUG + } + #endif + } + + + /// + /// Specify material parameters for the lighting model + /// + /// + /// + /// Specifies which face or faces are being updated. Must be one of GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK. + /// + /// + /// + /// + /// Specifies the single-valued material parameter of the face or faces that is being updated. Must be GL_SHININESS. + /// + /// + /// + /// + /// Specifies the value that parameter GL_SHININESS will be set to. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glMaterialf")] + public static + void Material(OpenTK.Graphics.ES10.All face, OpenTK.Graphics.ES10.All pname, Single param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMaterialf((OpenTK.Graphics.ES10.All)face, (OpenTK.Graphics.ES10.All)pname, (Single)param); + #if DEBUG + } + #endif + } + + + /// + /// Specify material parameters for the lighting model + /// + /// + /// + /// Specifies which face or faces are being updated. Must be one of GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK. + /// + /// + /// + /// + /// Specifies the single-valued material parameter of the face or faces that is being updated. Must be GL_SHININESS. + /// + /// + /// + /// + /// Specifies the value that parameter GL_SHININESS will be set to. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glMaterialfv")] + public static + unsafe void Material(OpenTK.Graphics.ES10.All face, OpenTK.Graphics.ES10.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMaterialfv((OpenTK.Graphics.ES10.All)face, (OpenTK.Graphics.ES10.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Specify material parameters for the lighting model + /// + /// + /// + /// Specifies which face or faces are being updated. Must be one of GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK. + /// + /// + /// + /// + /// Specifies the single-valued material parameter of the face or faces that is being updated. Must be GL_SHININESS. + /// + /// + /// + /// + /// Specifies the value that parameter GL_SHININESS will be set to. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glMaterialfv")] + public static + void Material(OpenTK.Graphics.ES10.All face, OpenTK.Graphics.ES10.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glMaterialfv((OpenTK.Graphics.ES10.All)face, (OpenTK.Graphics.ES10.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glMaterialx")] + public static + void Materialx(OpenTK.Graphics.ES10.All face, OpenTK.Graphics.ES10.All pname, int param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMaterialx((OpenTK.Graphics.ES10.All)face, (OpenTK.Graphics.ES10.All)pname, (int)param); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glMaterialxv")] + public static + unsafe void Materialx(OpenTK.Graphics.ES10.All face, OpenTK.Graphics.ES10.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMaterialxv((OpenTK.Graphics.ES10.All)face, (OpenTK.Graphics.ES10.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glMaterialxv")] + public static + void Materialx(OpenTK.Graphics.ES10.All face, OpenTK.Graphics.ES10.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glMaterialxv((OpenTK.Graphics.ES10.All)face, (OpenTK.Graphics.ES10.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify which matrix is the current matrix + /// + /// + /// + /// Specifies which matrix stack is the target for subsequent matrix operations. Three values are accepted: GL_MODELVIEW, GL_PROJECTION, and GL_TEXTURE. The initial value is GL_MODELVIEW. Additionally, if the ARB_imaging extension is supported, GL_COLOR is also accepted. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glMatrixMode")] + public static + void MatrixMode(OpenTK.Graphics.ES10.All mode) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMatrixMode((OpenTK.Graphics.ES10.All)mode); + #if DEBUG + } + #endif + } + + + /// + /// Set the current texture coordinates + /// + /// + /// + /// Specifies the texture unit whose coordinates should be modified. The number of texture units is implementation dependent, but must be at least two. Symbolic constant must be one of GL_TEXTURE, where i ranges from 0 to GL_MAX_TEXTURE_COORDS - 1, which is an implementation-dependent value. + /// + /// + /// + /// + /// Specify s, t, r, and q texture coordinates for target texture unit. Not all parameters are present in all forms of the command. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glMultiTexCoord4f")] + public static + void MultiTexCoord4(OpenTK.Graphics.ES10.All target, Single s, Single t, Single r, Single q) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMultiTexCoord4f((OpenTK.Graphics.ES10.All)target, (Single)s, (Single)t, (Single)r, (Single)q); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glMultiTexCoord4x")] + public static + void MultiTexCoord4x(OpenTK.Graphics.ES10.All target, int s, int t, int r, int q) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMultiTexCoord4x((OpenTK.Graphics.ES10.All)target, (int)s, (int)t, (int)r, (int)q); + #if DEBUG + } + #endif + } + + + /// + /// Multiply the current matrix with the specified matrix + /// + /// + /// + /// Points to 16 consecutive values that are used as the elements of a 4 times 4 column-major matrix. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glMultMatrixf")] + public static + void MultMatrix(ref Single m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* m_ptr = &m) + { + Delegates.glMultMatrixf((Single*)m_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Multiply the current matrix with the specified matrix + /// + /// + /// + /// Points to 16 consecutive values that are used as the elements of a 4 times 4 column-major matrix. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glMultMatrixf")] + public static + unsafe void MultMatrix(Single* m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMultMatrixf((Single*)m); + #if DEBUG + } + #endif + } + + + /// + /// Multiply the current matrix with the specified matrix + /// + /// + /// + /// Points to 16 consecutive values that are used as the elements of a 4 times 4 column-major matrix. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glMultMatrixf")] + public static + void MultMatrix(Single[] m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* m_ptr = m) + { + Delegates.glMultMatrixf((Single*)m_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glMultMatrixx")] + public static + unsafe void MultMatrixx(int* m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMultMatrixx((int*)m); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glMultMatrixx")] + public static + void MultMatrixx(int[] m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* m_ptr = m) + { + Delegates.glMultMatrixx((int*)m_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glMultMatrixx")] + public static + void MultMatrixx(ref int m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* m_ptr = &m) + { + Delegates.glMultMatrixx((int*)m_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Set the current normal vector + /// + /// + /// + /// Specify the , , and coordinates of the new current normal. The initial value of the current normal is the unit vector, (0, 0, 1). + /// + /// + /// + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glNormal3f")] + public static + void Normal3(Single nx, Single ny, Single nz) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glNormal3f((Single)nx, (Single)ny, (Single)nz); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glNormal3x")] + public static + void Normal3x(int nx, int ny, int nz) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glNormal3x((int)nx, (int)ny, (int)nz); + #if DEBUG + } + #endif + } + + + /// + /// Define an array of normals + /// + /// + /// + /// Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first normal in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glNormalPointer")] + public static + void NormalPointer(OpenTK.Graphics.ES10.All type, Int32 stride, [InAttribute, OutAttribute] ref T2 pointer) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointer((OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of normals + /// + /// + /// + /// Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first normal in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glNormalPointer")] + public static + void NormalPointer(OpenTK.Graphics.ES10.All type, Int32 stride, [InAttribute, OutAttribute] T2[,,] pointer) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointer((OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of normals + /// + /// + /// + /// Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first normal in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glNormalPointer")] + public static + void NormalPointer(OpenTK.Graphics.ES10.All type, Int32 stride, [InAttribute, OutAttribute] T2[,] pointer) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointer((OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of normals + /// + /// + /// + /// Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first normal in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glNormalPointer")] + public static + void NormalPointer(OpenTK.Graphics.ES10.All type, Int32 stride, [InAttribute, OutAttribute] T2[] pointer) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointer((OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of normals + /// + /// + /// + /// Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first normal in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glNormalPointer")] + public static + void NormalPointer(OpenTK.Graphics.ES10.All type, Int32 stride, IntPtr pointer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glNormalPointer((OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG + } + #endif + } + + + /// + /// Multiply the current matrix with an orthographic matrix + /// + /// + /// + /// Specify the coordinates for the left and right vertical clipping planes. + /// + /// + /// + /// + /// Specify the coordinates for the bottom and top horizontal clipping planes. + /// + /// + /// + /// + /// Specify the distances to the nearer and farther depth clipping planes. These values are negative if the plane is to be behind the viewer. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glOrthof")] + public static + void Ortho(Single left, Single right, Single bottom, Single top, Single zNear, Single zFar) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glOrthof((Single)left, (Single)right, (Single)bottom, (Single)top, (Single)zNear, (Single)zFar); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glOrthox")] + public static + void Orthox(int left, int right, int bottom, int top, int zNear, int zFar) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glOrthox((int)left, (int)right, (int)bottom, (int)top, (int)zNear, (int)zFar); + #if DEBUG + } + #endif + } + + + /// + /// Set pixel storage modes + /// + /// + /// + /// Specifies the symbolic name of the parameter to be set. Six values affect the packing of pixel data into memory: GL_PACK_SWAP_BYTES, GL_PACK_LSB_FIRST, GL_PACK_ROW_LENGTH, GL_PACK_IMAGE_HEIGHT, GL_PACK_SKIP_PIXELS, GL_PACK_SKIP_ROWS, GL_PACK_SKIP_IMAGES, and GL_PACK_ALIGNMENT. Six more affect the unpacking of pixel data from memory: GL_UNPACK_SWAP_BYTES, GL_UNPACK_LSB_FIRST, GL_UNPACK_ROW_LENGTH, GL_UNPACK_IMAGE_HEIGHT, GL_UNPACK_SKIP_PIXELS, GL_UNPACK_SKIP_ROWS, GL_UNPACK_SKIP_IMAGES, and GL_UNPACK_ALIGNMENT. + /// + /// + /// + /// + /// Specifies the value that pname is set to. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glPixelStorei")] + public static + void PixelStore(OpenTK.Graphics.ES10.All pname, Int32 param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPixelStorei((OpenTK.Graphics.ES10.All)pname, (Int32)param); + #if DEBUG + } + #endif + } + + + /// + /// Specify the diameter of rasterized points + /// + /// + /// + /// Specifies the diameter of rasterized points. The initial value is 1. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glPointSize")] + public static + void PointSize(Single size) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPointSize((Single)size); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glPointSizex")] + public static + void PointSizex(int size) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPointSizex((int)size); + #if DEBUG + } + #endif + } + + + /// + /// Set the scale and units used to calculate depth values + /// + /// + /// + /// Specifies a scale factor that is used to create a variable depth offset for each polygon. The initial value is 0. + /// + /// + /// + /// + /// Is multiplied by an implementation-specific value to create a constant depth offset. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glPolygonOffset")] + public static + void PolygonOffset(Single factor, Single units) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPolygonOffset((Single)factor, (Single)units); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glPolygonOffsetx")] + public static + void PolygonOffsetx(int factor, int units) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPolygonOffsetx((int)factor, (int)units); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glPopMatrix")] + public static + void PopMatrix() + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPopMatrix(); + #if DEBUG + } + #endif + } + + + /// + /// Push and pop the current matrix stack + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glPushMatrix")] + public static + void PushMatrix() + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPushMatrix(); + #if DEBUG + } + #endif + } + + + /// + /// Read a block of pixels from the frame buffer + /// + /// + /// + /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. + /// + /// + /// + /// + /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Returns the pixel data. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glReadPixels")] + public static + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES10.All format, OpenTK.Graphics.ES10.All type, [InAttribute, OutAttribute] ref T6 pixels) + where T6 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Read a block of pixels from the frame buffer + /// + /// + /// + /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. + /// + /// + /// + /// + /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Returns the pixel data. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glReadPixels")] + public static + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES10.All format, OpenTK.Graphics.ES10.All type, [InAttribute, OutAttribute] T6[,,] pixels) + where T6 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Read a block of pixels from the frame buffer + /// + /// + /// + /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. + /// + /// + /// + /// + /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Returns the pixel data. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glReadPixels")] + public static + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES10.All format, OpenTK.Graphics.ES10.All type, [InAttribute, OutAttribute] T6[,] pixels) + where T6 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Read a block of pixels from the frame buffer + /// + /// + /// + /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. + /// + /// + /// + /// + /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Returns the pixel data. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glReadPixels")] + public static + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES10.All format, OpenTK.Graphics.ES10.All type, [InAttribute, OutAttribute] T6[] pixels) + where T6 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Read a block of pixels from the frame buffer + /// + /// + /// + /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. + /// + /// + /// + /// + /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Returns the pixel data. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glReadPixels")] + public static + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES10.All format, OpenTK.Graphics.ES10.All type, IntPtr pixels) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels); + #if DEBUG + } + #endif + } + + + /// + /// Multiply the current matrix by a rotation matrix + /// + /// + /// + /// Specifies the angle of rotation, in degrees. + /// + /// + /// + /// + /// Specify the x, y, and z coordinates of a vector, respectively. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glRotatef")] + public static + void Rotate(Single angle, Single x, Single y, Single z) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glRotatef((Single)angle, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glRotatex")] + public static + void Rotatex(int angle, int x, int y, int z) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glRotatex((int)angle, (int)x, (int)y, (int)z); + #if DEBUG + } + #endif + } + + + /// + /// Specify multisample coverage parameters + /// + /// + /// + /// Specify a single floating-point sample coverage value. The value is clamped to the range [0 ,1]. The initial value is 1.0. + /// + /// + /// + /// + /// Specify a single boolean value representing if the coverage masks should be inverted. GL_TRUE and GL_FALSE are accepted. The initial value is GL_FALSE. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glSampleCoverage")] + public static + void SampleCoverage(Single value, bool invert) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glSampleCoverage((Single)value, (bool)invert); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glSampleCoveragex")] + public static + void SampleCoveragex(int value, bool invert) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glSampleCoveragex((int)value, (bool)invert); + #if DEBUG + } + #endif + } + + + /// + /// Multiply the current matrix by a general scaling matrix + /// + /// + /// + /// Specify scale factors along the x, y, and z axes, respectively. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glScalef")] + public static + void Scale(Single x, Single y, Single z) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glScalef((Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glScalex")] + public static + void Scalex(int x, int y, int z) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glScalex((int)x, (int)y, (int)z); + #if DEBUG + } + #endif + } + + + /// + /// Define the scissor box + /// + /// + /// + /// Specify the lower left corner of the scissor box. Initially (0, 0). + /// + /// + /// + /// + /// Specify the width and height of the scissor box. When a GL context is first attached to a window, width and height are set to the dimensions of that window. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glScissor")] + public static + void Scissor(Int32 x, Int32 y, Int32 width, Int32 height) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glScissor((Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif + } + + + /// + /// Select flat or smooth shading + /// + /// + /// + /// Specifies a symbolic value representing a shading technique. Accepted values are GL_FLAT and GL_SMOOTH. The initial value is GL_SMOOTH. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glShadeModel")] + public static + void ShadeModel(OpenTK.Graphics.ES10.All mode) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glShadeModel((OpenTK.Graphics.ES10.All)mode); + #if DEBUG + } + #endif + } + + + /// + /// Set front and back function and reference value for stencil testing + /// + /// + /// + /// Specifies the test function. Eight symbolic constants are valid: GL_NEVER, GL_LESS, GL_LEQUAL, GL_GREATER, GL_GEQUAL, GL_EQUAL, GL_NOTEQUAL, and GL_ALWAYS. The initial value is GL_ALWAYS. + /// + /// + /// + /// + /// Specifies the reference value for the stencil test. ref is clamped to the range [0, 2 sup n - 1], where is the number of bitplanes in the stencil buffer. The initial value is 0. + /// + /// + /// + /// + /// Specifies a mask that is ANDed with both the reference value and the stored stencil value when the test is done. The initial value is all 1's. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glStencilFunc")] + public static + void StencilFunc(OpenTK.Graphics.ES10.All func, Int32 @ref, UInt32 mask) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glStencilFunc((OpenTK.Graphics.ES10.All)func, (Int32)@ref, (UInt32)mask); + #if DEBUG + } + #endif + } + + + /// + /// Control the front and back writing of individual bits in the stencil planes + /// + /// + /// + /// Specifies a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, the mask is all 1's. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glStencilMask")] + public static + void StencilMask(UInt32 mask) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glStencilMask((UInt32)mask); + #if DEBUG + } + #endif + } + + + /// + /// Set front and back stencil test actions + /// + /// + /// + /// Specifies the action to take when the stencil test fails. Eight symbolic constants are accepted: GL_KEEP, GL_ZERO, GL_REPLACE, GL_INCR, GL_INCR_WRAP, GL_DECR, GL_DECR_WRAP, and GL_INVERT. The initial value is GL_KEEP. + /// + /// + /// + /// + /// Specifies the stencil action when the stencil test passes, but the depth test fails. dpfail accepts the same symbolic constants as sfail. The initial value is GL_KEEP. + /// + /// + /// + /// + /// Specifies the stencil action when both the stencil test and the depth test pass, or when the stencil test passes and either there is no depth buffer or depth testing is not enabled. dppass accepts the same symbolic constants as sfail. The initial value is GL_KEEP. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glStencilOp")] + public static + void StencilOp(OpenTK.Graphics.ES10.All fail, OpenTK.Graphics.ES10.All zfail, OpenTK.Graphics.ES10.All zpass) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glStencilOp((OpenTK.Graphics.ES10.All)fail, (OpenTK.Graphics.ES10.All)zfail, (OpenTK.Graphics.ES10.All)zpass); + #if DEBUG + } + #endif + } + + + /// + /// Define an array of texture coordinates + /// + /// + /// + /// Specifies the number of coordinates per array element. Must be 1, 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each texture coordinate. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive texture coordinate sets. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first texture coordinate set in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexCoordPointer")] + public static + void TexCoordPointer(Int32 size, OpenTK.Graphics.ES10.All type, Int32 stride, [InAttribute, OutAttribute] ref T3 pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of texture coordinates + /// + /// + /// + /// Specifies the number of coordinates per array element. Must be 1, 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each texture coordinate. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive texture coordinate sets. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first texture coordinate set in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexCoordPointer")] + public static + void TexCoordPointer(Int32 size, OpenTK.Graphics.ES10.All type, Int32 stride, [InAttribute, OutAttribute] T3[,,] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of texture coordinates + /// + /// + /// + /// Specifies the number of coordinates per array element. Must be 1, 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each texture coordinate. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive texture coordinate sets. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first texture coordinate set in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexCoordPointer")] + public static + void TexCoordPointer(Int32 size, OpenTK.Graphics.ES10.All type, Int32 stride, [InAttribute, OutAttribute] T3[,] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of texture coordinates + /// + /// + /// + /// Specifies the number of coordinates per array element. Must be 1, 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each texture coordinate. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive texture coordinate sets. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first texture coordinate set in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexCoordPointer")] + public static + void TexCoordPointer(Int32 size, OpenTK.Graphics.ES10.All type, Int32 stride, [InAttribute, OutAttribute] T3[] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of texture coordinates + /// + /// + /// + /// Specifies the number of coordinates per array element. Must be 1, 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each texture coordinate. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive texture coordinate sets. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first texture coordinate set in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexCoordPointer")] + public static + void TexCoordPointer(Int32 size, OpenTK.Graphics.ES10.All type, Int32 stride, IntPtr pointer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG + } + #endif + } + + + /// + /// Set texture environment parameters + /// + /// + /// + /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL or GL_POINT_SPRITE. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture environment parameter. May be either GL_TEXTURE_ENV_MODE, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. + /// + /// + /// + /// + /// Specifies a single symbolic constant, one of GL_ADD, GL_ADD_SIGNED, GL_INTERPOLATE, GL_MODULATE, GL_DECAL, GL_BLEND, GL_REPLACE, GL_SUBTRACT, GL_COMBINE, GL_TEXTURE, GL_CONSTANT, GL_PRIMARY_COLOR, GL_PREVIOUS, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, a single boolean value for the point sprite texture coordinate replacement, a single floating-point value for the texture level-of-detail bias, or 1.0, 2.0, or 4.0 when specifying the GL_RGB_SCALE or GL_ALPHA_SCALE. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexEnvf")] + public static + void TexEnv(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All pname, Single param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexEnvf((OpenTK.Graphics.ES10.All)target, (OpenTK.Graphics.ES10.All)pname, (Single)param); + #if DEBUG + } + #endif + } + + + /// + /// Set texture environment parameters + /// + /// + /// + /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL or GL_POINT_SPRITE. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture environment parameter. May be either GL_TEXTURE_ENV_MODE, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. + /// + /// + /// + /// + /// Specifies a single symbolic constant, one of GL_ADD, GL_ADD_SIGNED, GL_INTERPOLATE, GL_MODULATE, GL_DECAL, GL_BLEND, GL_REPLACE, GL_SUBTRACT, GL_COMBINE, GL_TEXTURE, GL_CONSTANT, GL_PRIMARY_COLOR, GL_PREVIOUS, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, a single boolean value for the point sprite texture coordinate replacement, a single floating-point value for the texture level-of-detail bias, or 1.0, 2.0, or 4.0 when specifying the GL_RGB_SCALE or GL_ALPHA_SCALE. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexEnvfv")] + public static + unsafe void TexEnv(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexEnvfv((OpenTK.Graphics.ES10.All)target, (OpenTK.Graphics.ES10.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Set texture environment parameters + /// + /// + /// + /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL or GL_POINT_SPRITE. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture environment parameter. May be either GL_TEXTURE_ENV_MODE, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. + /// + /// + /// + /// + /// Specifies a single symbolic constant, one of GL_ADD, GL_ADD_SIGNED, GL_INTERPOLATE, GL_MODULATE, GL_DECAL, GL_BLEND, GL_REPLACE, GL_SUBTRACT, GL_COMBINE, GL_TEXTURE, GL_CONSTANT, GL_PRIMARY_COLOR, GL_PREVIOUS, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, a single boolean value for the point sprite texture coordinate replacement, a single floating-point value for the texture level-of-detail bias, or 1.0, 2.0, or 4.0 when specifying the GL_RGB_SCALE or GL_ALPHA_SCALE. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexEnvfv")] + public static + void TexEnv(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glTexEnvfv((OpenTK.Graphics.ES10.All)target, (OpenTK.Graphics.ES10.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexEnvx")] + public static + void TexEnvx(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All pname, int param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexEnvx((OpenTK.Graphics.ES10.All)target, (OpenTK.Graphics.ES10.All)pname, (int)param); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexEnvxv")] + public static + unsafe void TexEnvx(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexEnvxv((OpenTK.Graphics.ES10.All)target, (OpenTK.Graphics.ES10.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexEnvxv")] + public static + void TexEnvx(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glTexEnvxv((OpenTK.Graphics.ES10.All)target, (OpenTK.Graphics.ES10.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexImage2D")] + public static + void TexImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES10.All format, OpenTK.Graphics.ES10.All type, [InAttribute, OutAttribute] ref T8 pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexImage2D")] + public static + void TexImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES10.All format, OpenTK.Graphics.ES10.All type, [InAttribute, OutAttribute] T8[,,] pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexImage2D")] + public static + void TexImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES10.All format, OpenTK.Graphics.ES10.All type, [InAttribute, OutAttribute] T8[,] pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexImage2D")] + public static + void TexImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES10.All format, OpenTK.Graphics.ES10.All type, [InAttribute, OutAttribute] T8[] pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexImage2D")] + public static + void TexImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES10.All format, OpenTK.Graphics.ES10.All type, IntPtr pixels) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels); + #if DEBUG + } + #endif + } + + + /// + /// Set texture parameters + /// + /// + /// + /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. + /// + /// + /// + /// + /// Specifies the value of pname. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexParameterf")] + public static + void TexParameter(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All pname, Single param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexParameterf((OpenTK.Graphics.ES10.All)target, (OpenTK.Graphics.ES10.All)pname, (Single)param); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexParameterx")] + public static + void TexParameterx(OpenTK.Graphics.ES10.All target, OpenTK.Graphics.ES10.All pname, int param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexParameterx((OpenTK.Graphics.ES10.All)target, (OpenTK.Graphics.ES10.All)pname, (int)param); + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexSubImage2D")] + public static + void TexSubImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES10.All format, OpenTK.Graphics.ES10.All type, [InAttribute, OutAttribute] ref T8 pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexSubImage2D")] + public static + void TexSubImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES10.All format, OpenTK.Graphics.ES10.All type, [InAttribute, OutAttribute] T8[,,] pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexSubImage2D")] + public static + void TexSubImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES10.All format, OpenTK.Graphics.ES10.All type, [InAttribute, OutAttribute] T8[,] pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexSubImage2D")] + public static + void TexSubImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES10.All format, OpenTK.Graphics.ES10.All type, [InAttribute, OutAttribute] T8[] pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTexSubImage2D")] + public static + void TexSubImage2D(OpenTK.Graphics.ES10.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES10.All format, OpenTK.Graphics.ES10.All type, IntPtr pixels) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexSubImage2D((OpenTK.Graphics.ES10.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES10.All)format, (OpenTK.Graphics.ES10.All)type, (IntPtr)pixels); + #if DEBUG + } + #endif + } + + + /// + /// Multiply the current matrix by a translation matrix + /// + /// + /// + /// Specify the x, y, and z coordinates of a translation vector. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTranslatef")] + public static + void Translate(Single x, Single y, Single z) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTranslatef((Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glTranslatex")] + public static + void Translatex(int x, int y, int z) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTranslatex((int)x, (int)y, (int)z); + #if DEBUG + } + #endif + } + + + /// + /// Define an array of vertex data + /// + /// + /// + /// Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first vertex in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glVertexPointer")] + public static + void VertexPointer(Int32 size, OpenTK.Graphics.ES10.All type, Int32 stride, [InAttribute, OutAttribute] ref T3 pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of vertex data + /// + /// + /// + /// Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first vertex in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glVertexPointer")] + public static + void VertexPointer(Int32 size, OpenTK.Graphics.ES10.All type, Int32 stride, [InAttribute, OutAttribute] T3[,,] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of vertex data + /// + /// + /// + /// Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first vertex in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glVertexPointer")] + public static + void VertexPointer(Int32 size, OpenTK.Graphics.ES10.All type, Int32 stride, [InAttribute, OutAttribute] T3[,] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of vertex data + /// + /// + /// + /// Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first vertex in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glVertexPointer")] + public static + void VertexPointer(Int32 size, OpenTK.Graphics.ES10.All type, Int32 stride, [InAttribute, OutAttribute] T3[] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of vertex data + /// + /// + /// + /// Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first vertex in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glVertexPointer")] + public static + void VertexPointer(Int32 size, OpenTK.Graphics.ES10.All type, Int32 stride, IntPtr pointer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES10.All)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG + } + #endif + } + + + /// + /// Set the viewport + /// + /// + /// + /// Specify the lower left corner of the viewport rectangle, in pixels. The initial value is (0,0). + /// + /// + /// + /// + /// Specify the width and height of the viewport. When a GL context is first attached to a window, width and height are set to the dimensions of that window. + /// + /// + [AutoGenerated(Category = "1.0", Version = "1.0", EntryPoint = "glViewport")] + public static + void Viewport(Int32 x, Int32 y, Int32 width, Int32 height) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glViewport((Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif + } + + } +} diff --git a/Source/OpenTK/Graphics/ES10/Enums.cs b/Source/OpenTK/Graphics/ES10/Enums.cs index 1675319a..9aa6d4c0 100644 --- a/Source/OpenTK/Graphics/ES10/Enums.cs +++ b/Source/OpenTK/Graphics/ES10/Enums.cs @@ -1,667 +1,675 @@ -#region License -// -// The Open Toolkit Library License -// -// Copyright (c) 2006 - 2009 the Open Toolkit library. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -// the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -// OTHER DEALINGS IN THE SOFTWARE. -// -#endregion - -using System; - -namespace OpenTK.Graphics.ES10 -{ - #pragma warning disable 1591 - - public enum All - { - False = ((int)0), - NoError = ((int)0), - Zero = ((int)0), - Points = ((int)0X0000), - DepthBufferBit = ((int)0X00000100), - StencilBufferBit = ((int)0X00000400), - ColorBufferBit = ((int)0X00004000), - Lines = ((int)0X0001), - LineLoop = ((int)0X0002), - LineStrip = ((int)0X0003), - Triangles = ((int)0X0004), - TriangleStrip = ((int)0X0005), - TriangleFan = ((int)0X0006), - Add = ((int)0X0104), - Never = ((int)0X0200), - Less = ((int)0X0201), - Equal = ((int)0X0202), - Lequal = ((int)0X0203), - Greater = ((int)0X0204), - Notequal = ((int)0X0205), - Gequal = ((int)0X0206), - Always = ((int)0X0207), - SrcColor = ((int)0X0300), - OneMinusSrcColor = ((int)0X0301), - SrcAlpha = ((int)0X0302), - OneMinusSrcAlpha = ((int)0X0303), - DstAlpha = ((int)0X0304), - OneMinusDstAlpha = ((int)0X0305), - DstColor = ((int)0X0306), - OneMinusDstColor = ((int)0X0307), - SrcAlphaSaturate = ((int)0X0308), - Front = ((int)0X0404), - Back = ((int)0X0405), - FrontAndBack = ((int)0X0408), - InvalidEnum = ((int)0X0500), - InvalidValue = ((int)0X0501), - InvalidOperation = ((int)0X0502), - StackOverflow = ((int)0X0503), - StackUnderflow = ((int)0X0504), - OutOfMemory = ((int)0X0505), - Exp = ((int)0X0800), - Exp2 = ((int)0X0801), - Cw = ((int)0X0900), - Ccw = ((int)0X0901), - PointSmooth = ((int)0X0b10), - SmoothPointSizeRange = ((int)0X0b12), - LineSmooth = ((int)0X0b20), - SmoothLineWidthRange = ((int)0X0b22), - CullFace = ((int)0X0b44), - Lighting = ((int)0X0b50), - LightModelTwoSide = ((int)0X0b52), - LightModelAmbient = ((int)0X0b53), - ColorMaterial = ((int)0X0b57), - Fog = ((int)0X0b60), - FogDensity = ((int)0X0b62), - FogStart = ((int)0X0b63), - FogEnd = ((int)0X0b64), - FogMode = ((int)0X0b65), - FogColor = ((int)0X0b66), - DepthTest = ((int)0X0b71), - StencilTest = ((int)0X0b90), - Normalize = ((int)0X0ba1), - AlphaTest = ((int)0X0bc0), - Dither = ((int)0X0bd0), - Blend = ((int)0X0be2), - ColorLogicOp = ((int)0X0bf2), - ScissorTest = ((int)0X0c11), - PerspectiveCorrectionHint = ((int)0X0c50), - PointSmoothHint = ((int)0X0c51), - LineSmoothHint = ((int)0X0c52), - PolygonSmoothHint = ((int)0X0c53), - FogHint = ((int)0X0c54), - UnpackAlignment = ((int)0X0cf5), - PackAlignment = ((int)0X0d05), - MaxLights = ((int)0X0d31), - MaxTextureSize = ((int)0X0d33), - MaxModelviewStackDepth = ((int)0X0d36), - MaxProjectionStackDepth = ((int)0X0d38), - MaxTextureStackDepth = ((int)0X0d39), - MaxViewportDims = ((int)0X0d3a), - SubpixelBits = ((int)0X0d50), - RedBits = ((int)0X0d52), - GreenBits = ((int)0X0d53), - BlueBits = ((int)0X0d54), - AlphaBits = ((int)0X0d55), - DepthBits = ((int)0X0d56), - StencilBits = ((int)0X0d57), - Texture2D = ((int)0X0de1), - DontCare = ((int)0X1100), - Fastest = ((int)0X1101), - Nicest = ((int)0X1102), - Ambient = ((int)0X1200), - Diffuse = ((int)0X1201), - Specular = ((int)0X1202), - Position = ((int)0X1203), - SpotDirection = ((int)0X1204), - SpotExponent = ((int)0X1205), - SpotCutoff = ((int)0X1206), - ConstantAttenuation = ((int)0X1207), - LinearAttenuation = ((int)0X1208), - QuadraticAttenuation = ((int)0X1209), - Byte = ((int)0X1400), - UnsignedByte = ((int)0X1401), - Short = ((int)0X1402), - UnsignedShort = ((int)0X1403), - Float = ((int)0X1406), - Fixed = ((int)0X140c), - Clear = ((int)0X1500), - And = ((int)0X1501), - AndReverse = ((int)0X1502), - Copy = ((int)0X1503), - AndInverted = ((int)0X1504), - Noop = ((int)0X1505), - Xor = ((int)0X1506), - Or = ((int)0X1507), - Nor = ((int)0X1508), - Equiv = ((int)0X1509), - Invert = ((int)0X150a), - OrReverse = ((int)0X150b), - CopyInverted = ((int)0X150c), - OrInverted = ((int)0X150d), - Nand = ((int)0X150e), - Set = ((int)0X150f), - Emission = ((int)0X1600), - Shininess = ((int)0X1601), - AmbientAndDiffuse = ((int)0X1602), - Modelview = ((int)0X1700), - Projection = ((int)0X1701), - Texture = ((int)0X1702), - Alpha = ((int)0X1906), - Rgb = ((int)0X1907), - Rgba = ((int)0X1908), - Luminance = ((int)0X1909), - LuminanceAlpha = ((int)0X190a), - Flat = ((int)0X1d00), - Smooth = ((int)0X1d01), - Keep = ((int)0X1e00), - Replace = ((int)0X1e01), - Incr = ((int)0X1e02), - Decr = ((int)0X1e03), - Vendor = ((int)0X1f00), - Renderer = ((int)0X1f01), - Version = ((int)0X1f02), - Extensions = ((int)0X1f03), - Modulate = ((int)0X2100), - Decal = ((int)0X2101), - TextureEnvMode = ((int)0X2200), - TextureEnvColor = ((int)0X2201), - TextureEnv = ((int)0X2300), - Nearest = ((int)0X2600), - Linear = ((int)0X2601), - NearestMipmapNearest = ((int)0X2700), - LinearMipmapNearest = ((int)0X2701), - NearestMipmapLinear = ((int)0X2702), - LinearMipmapLinear = ((int)0X2703), - TextureMagFilter = ((int)0X2800), - TextureMinFilter = ((int)0X2801), - TextureWrapS = ((int)0X2802), - TextureWrapT = ((int)0X2803), - Repeat = ((int)0X2901), - Light0 = ((int)0X4000), - Light1 = ((int)0X4001), - Light2 = ((int)0X4002), - Light3 = ((int)0X4003), - Light4 = ((int)0X4004), - Light5 = ((int)0X4005), - Light6 = ((int)0X4006), - Light7 = ((int)0X4007), - UnsignedShort4444 = ((int)0X8033), - UnsignedShort5551 = ((int)0X8034), - PolygonOffsetFill = ((int)0X8037), - RescaleNormal = ((int)0X803a), - VertexArray = ((int)0X8074), - NormalArray = ((int)0X8075), - ColorArray = ((int)0X8076), - TextureCoordArray = ((int)0X8078), - Multisample = ((int)0X809d), - SampleAlphaToCoverage = ((int)0X809e), - SampleAlphaToOne = ((int)0X809f), - SampleCoverage = ((int)0X80a0), - MaxElementsVertices = ((int)0X80e8), - MaxElementsIndices = ((int)0X80e9), - ClampToEdge = ((int)0X812f), - UnsignedShort565 = ((int)0X8363), - AliasedPointSizeRange = ((int)0X846d), - AliasedLineWidthRange = ((int)0X846e), - Texture0 = ((int)0X84c0), - Texture1 = ((int)0X84c1), - Texture2 = ((int)0X84c2), - Texture3 = ((int)0X84c3), - Texture4 = ((int)0X84c4), - Texture5 = ((int)0X84c5), - Texture6 = ((int)0X84c6), - Texture7 = ((int)0X84c7), - Texture8 = ((int)0X84c8), - Texture9 = ((int)0X84c9), - Texture10 = ((int)0X84ca), - Texture11 = ((int)0X84cb), - Texture12 = ((int)0X84cc), - Texture13 = ((int)0X84cd), - Texture14 = ((int)0X84ce), - Texture15 = ((int)0X84cf), - Texture16 = ((int)0X84d0), - Texture17 = ((int)0X84d1), - Texture18 = ((int)0X84d2), - Texture19 = ((int)0X84d3), - Texture20 = ((int)0X84d4), - Texture21 = ((int)0X84d5), - Texture22 = ((int)0X84d6), - Texture23 = ((int)0X84d7), - Texture24 = ((int)0X84d8), - Texture25 = ((int)0X84d9), - Texture26 = ((int)0X84da), - Texture27 = ((int)0X84db), - Texture28 = ((int)0X84dc), - Texture29 = ((int)0X84dd), - Texture30 = ((int)0X84de), - Texture31 = ((int)0X84df), - MaxTextureUnits = ((int)0X84e2), - NumCompressedTextureFormats = ((int)0X86a2), - CompressedTextureFormats = ((int)0X86a3), - Palette4Rgb8Oes = ((int)0X8b90), - Palette4Rgba8Oes = ((int)0X8b91), - Palette4R5G6B5Oes = ((int)0X8b92), - Palette4Rgba4Oes = ((int)0X8b93), - Palette4Rgb5A1Oes = ((int)0X8b94), - Palette8Rgb8Oes = ((int)0X8b95), - Palette8Rgba8Oes = ((int)0X8b96), - Palette8R5G6B5Oes = ((int)0X8b97), - Palette8Rgba4Oes = ((int)0X8b98), - Palette8Rgb5A1Oes = ((int)0X8b99), - ImplementationColorReadTypeOes = ((int)0X8b9a), - ImplementationColorReadFormatOes = ((int)0X8b9b), - OesCompressedPalettedTexture = ((int)1), - OesReadFormat = ((int)1), - OesVersion10 = ((int)1), - One = ((int)1), - True = ((int)1), - } - - public enum AlphaFunction - { - Never = ((int)0X0200), - Less = ((int)0X0201), - Equal = ((int)0X0202), - Lequal = ((int)0X0203), - Greater = ((int)0X0204), - Notequal = ((int)0X0205), - Gequal = ((int)0X0206), - Always = ((int)0X0207), - } - - public enum BeginMode - { - Points = ((int)0X0000), - Lines = ((int)0X0001), - LineLoop = ((int)0X0002), - LineStrip = ((int)0X0003), - Triangles = ((int)0X0004), - TriangleStrip = ((int)0X0005), - TriangleFan = ((int)0X0006), - } - - public enum BlendingFactorDest - { - Zero = ((int)0), - SrcColor = ((int)0X0300), - OneMinusSrcColor = ((int)0X0301), - SrcAlpha = ((int)0X0302), - OneMinusSrcAlpha = ((int)0X0303), - DstAlpha = ((int)0X0304), - OneMinusDstAlpha = ((int)0X0305), - One = ((int)1), - } - - public enum BlendingFactorSrc - { - DstColor = ((int)0X0306), - OneMinusDstColor = ((int)0X0307), - SrcAlphaSaturate = ((int)0X0308), - } - - public enum Boolean - { - False = ((int)0), - True = ((int)1), - } - - [Flags] - public enum ClearBufferMask - { - DepthBufferBit = ((int)0X00000100), - StencilBufferBit = ((int)0X00000400), - ColorBufferBit = ((int)0X00004000), - } - - public enum CullFaceMode - { - Front = ((int)0X0404), - Back = ((int)0X0405), - FrontAndBack = ((int)0X0408), - } - - public enum DataType - { - Byte = ((int)0X1400), - UnsignedByte = ((int)0X1401), - Short = ((int)0X1402), - UnsignedShort = ((int)0X1403), - Float = ((int)0X1406), - Fixed = ((int)0X140c), - } - - public enum EnableCap - { - PointSmooth = ((int)0X0b10), - LineSmooth = ((int)0X0b20), - CullFace = ((int)0X0b44), - Lighting = ((int)0X0b50), - ColorMaterial = ((int)0X0b57), - Fog = ((int)0X0b60), - DepthTest = ((int)0X0b71), - StencilTest = ((int)0X0b90), - Normalize = ((int)0X0ba1), - AlphaTest = ((int)0X0bc0), - Dither = ((int)0X0bd0), - Blend = ((int)0X0be2), - ColorLogicOp = ((int)0X0bf2), - ScissorTest = ((int)0X0c11), - Texture2D = ((int)0X0de1), - PolygonOffsetFill = ((int)0X8037), - RescaleNormal = ((int)0X803a), - VertexArray = ((int)0X8074), - NormalArray = ((int)0X8075), - ColorArray = ((int)0X8076), - TextureCoordArray = ((int)0X8078), - Multisample = ((int)0X809d), - SampleAlphaToCoverage = ((int)0X809e), - SampleAlphaToOne = ((int)0X809f), - SampleCoverage = ((int)0X80a0), - } - - public enum ErrorCode - { - NoError = ((int)0), - InvalidEnum = ((int)0X0500), - InvalidValue = ((int)0X0501), - InvalidOperation = ((int)0X0502), - StackOverflow = ((int)0X0503), - StackUnderflow = ((int)0X0504), - OutOfMemory = ((int)0X0505), - } - - public enum Extensions - { - OesCompressedPalettedTexture = ((int)1), - OesReadFormat = ((int)1), - OesVersion10 = ((int)1), - } - - public enum FogMode - { - Exp = ((int)0X0800), - Exp2 = ((int)0X0801), - } - - public enum FogParameter - { - FogDensity = ((int)0X0b62), - FogStart = ((int)0X0b63), - FogEnd = ((int)0X0b64), - FogMode = ((int)0X0b65), - FogColor = ((int)0X0b66), - } - - public enum FrontFaceDirection - { - Cw = ((int)0X0900), - Ccw = ((int)0X0901), - } - - public enum GetPName - { - SmoothPointSizeRange = ((int)0X0b12), - SmoothLineWidthRange = ((int)0X0b22), - MaxLights = ((int)0X0d31), - MaxTextureSize = ((int)0X0d33), - MaxModelviewStackDepth = ((int)0X0d36), - MaxProjectionStackDepth = ((int)0X0d38), - MaxTextureStackDepth = ((int)0X0d39), - MaxViewportDims = ((int)0X0d3a), - SubpixelBits = ((int)0X0d50), - RedBits = ((int)0X0d52), - GreenBits = ((int)0X0d53), - BlueBits = ((int)0X0d54), - AlphaBits = ((int)0X0d55), - DepthBits = ((int)0X0d56), - StencilBits = ((int)0X0d57), - MaxElementsVertices = ((int)0X80e8), - MaxElementsIndices = ((int)0X80e9), - AliasedPointSizeRange = ((int)0X846d), - AliasedLineWidthRange = ((int)0X846e), - MaxTextureUnits = ((int)0X84e2), - NumCompressedTextureFormats = ((int)0X86a2), - CompressedTextureFormats = ((int)0X86a3), - ImplementationColorReadTypeOes = ((int)0X8b9a), - ImplementationColorReadFormatOes = ((int)0X8b9b), - } - - public enum HintMode - { - DontCare = ((int)0X1100), - Fastest = ((int)0X1101), - Nicest = ((int)0X1102), - } - - public enum HintTarget - { - PerspectiveCorrectionHint = ((int)0X0c50), - PointSmoothHint = ((int)0X0c51), - LineSmoothHint = ((int)0X0c52), - PolygonSmoothHint = ((int)0X0c53), - FogHint = ((int)0X0c54), - } - - public enum LightModelParameter - { - LightModelTwoSide = ((int)0X0b52), - LightModelAmbient = ((int)0X0b53), - } - - public enum LightName - { - Light0 = ((int)0X4000), - Light1 = ((int)0X4001), - Light2 = ((int)0X4002), - Light3 = ((int)0X4003), - Light4 = ((int)0X4004), - Light5 = ((int)0X4005), - Light6 = ((int)0X4006), - Light7 = ((int)0X4007), - } - - public enum LightParameter - { - Ambient = ((int)0X1200), - Diffuse = ((int)0X1201), - Specular = ((int)0X1202), - Position = ((int)0X1203), - SpotDirection = ((int)0X1204), - SpotExponent = ((int)0X1205), - SpotCutoff = ((int)0X1206), - ConstantAttenuation = ((int)0X1207), - LinearAttenuation = ((int)0X1208), - QuadraticAttenuation = ((int)0X1209), - } - - public enum LogicOp - { - Clear = ((int)0X1500), - And = ((int)0X1501), - AndReverse = ((int)0X1502), - Copy = ((int)0X1503), - AndInverted = ((int)0X1504), - Noop = ((int)0X1505), - Xor = ((int)0X1506), - Or = ((int)0X1507), - Nor = ((int)0X1508), - Equiv = ((int)0X1509), - Invert = ((int)0X150a), - OrReverse = ((int)0X150b), - CopyInverted = ((int)0X150c), - OrInverted = ((int)0X150d), - Nand = ((int)0X150e), - Set = ((int)0X150f), - } - - public enum MaterialParameter - { - Emission = ((int)0X1600), - Shininess = ((int)0X1601), - AmbientAndDiffuse = ((int)0X1602), - } - - public enum MatrixMode - { - Modelview = ((int)0X1700), - Projection = ((int)0X1701), - Texture = ((int)0X1702), - } - - public enum PixelFormat - { - Alpha = ((int)0X1906), - Rgb = ((int)0X1907), - Rgba = ((int)0X1908), - Luminance = ((int)0X1909), - LuminanceAlpha = ((int)0X190a), - } - - public enum PixelInternalFormat - { - Palette4Rgb8Oes = ((int)0X8b90), - Palette4Rgba8Oes = ((int)0X8b91), - Palette4R5G6B5Oes = ((int)0X8b92), - Palette4Rgba4Oes = ((int)0X8b93), - Palette4Rgb5A1Oes = ((int)0X8b94), - Palette8Rgb8Oes = ((int)0X8b95), - Palette8Rgba8Oes = ((int)0X8b96), - Palette8R5G6B5Oes = ((int)0X8b97), - Palette8Rgba4Oes = ((int)0X8b98), - Palette8Rgb5A1Oes = ((int)0X8b99), - } - - public enum PixelStoreParameter - { - UnpackAlignment = ((int)0X0cf5), - PackAlignment = ((int)0X0d05), - } - - public enum PixelType - { - UnsignedShort4444 = ((int)0X8033), - UnsignedShort5551 = ((int)0X8034), - UnsignedShort565 = ((int)0X8363), - } - - public enum ShadingModel - { - Flat = ((int)0X1d00), - Smooth = ((int)0X1d01), - } - - public enum StencilOp - { - Keep = ((int)0X1e00), - Replace = ((int)0X1e01), - Incr = ((int)0X1e02), - Decr = ((int)0X1e03), - } - - public enum StringName - { - Vendor = ((int)0X1f00), - Renderer = ((int)0X1f01), - Version = ((int)0X1f02), - Extensions = ((int)0X1f03), - } - - public enum TextureEnvMode - { - Add = ((int)0X0104), - Modulate = ((int)0X2100), - Decal = ((int)0X2101), - } - - public enum TextureEnvParameter - { - TextureEnvMode = ((int)0X2200), - TextureEnvColor = ((int)0X2201), - } - - public enum TextureEnvTarget - { - TextureEnv = ((int)0X2300), - } - - public enum TextureMagFilter - { - Nearest = ((int)0X2600), - Linear = ((int)0X2601), - } - - public enum TextureMinFilter - { - NearestMipmapNearest = ((int)0X2700), - LinearMipmapNearest = ((int)0X2701), - NearestMipmapLinear = ((int)0X2702), - LinearMipmapLinear = ((int)0X2703), - } - - public enum TextureParameterName - { - TextureMagFilter = ((int)0X2800), - TextureMinFilter = ((int)0X2801), - TextureWrapS = ((int)0X2802), - TextureWrapT = ((int)0X2803), - } - - public enum TextureUnit - { - Texture0 = ((int)0X84c0), - Texture1 = ((int)0X84c1), - Texture2 = ((int)0X84c2), - Texture3 = ((int)0X84c3), - Texture4 = ((int)0X84c4), - Texture5 = ((int)0X84c5), - Texture6 = ((int)0X84c6), - Texture7 = ((int)0X84c7), - Texture8 = ((int)0X84c8), - Texture9 = ((int)0X84c9), - Texture10 = ((int)0X84ca), - Texture11 = ((int)0X84cb), - Texture12 = ((int)0X84cc), - Texture13 = ((int)0X84cd), - Texture14 = ((int)0X84ce), - Texture15 = ((int)0X84cf), - Texture16 = ((int)0X84d0), - Texture17 = ((int)0X84d1), - Texture18 = ((int)0X84d2), - Texture19 = ((int)0X84d3), - Texture20 = ((int)0X84d4), - Texture21 = ((int)0X84d5), - Texture22 = ((int)0X84d6), - Texture23 = ((int)0X84d7), - Texture24 = ((int)0X84d8), - Texture25 = ((int)0X84d9), - Texture26 = ((int)0X84da), - Texture27 = ((int)0X84db), - Texture28 = ((int)0X84dc), - Texture29 = ((int)0X84dd), - Texture30 = ((int)0X84de), - Texture31 = ((int)0X84df), - } - - public enum TextureWrapMode - { - Repeat = ((int)0X2901), - ClampToEdge = ((int)0X812f), - } - -} +#region License +// +// The Open Toolkit Library License +// +// Copyright (c) 2006 - 2009 the Open Toolkit library. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do +// so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// +#endregion + +using System; + +namespace OpenTK.Graphics.ES10 +{ + #pragma warning disable 1591 + + public enum All + { + False = ((int)0), + NoError = ((int)0), + Zero = ((int)0), + Points = ((int)0X0000), + DepthBufferBit = ((int)0X00000100), + StencilBufferBit = ((int)0X00000400), + ColorBufferBit = ((int)0X00004000), + Lines = ((int)0X0001), + LineLoop = ((int)0X0002), + LineStrip = ((int)0X0003), + Triangles = ((int)0X0004), + TriangleStrip = ((int)0X0005), + TriangleFan = ((int)0X0006), + Add = ((int)0X0104), + Never = ((int)0X0200), + Less = ((int)0X0201), + Equal = ((int)0X0202), + Lequal = ((int)0X0203), + Greater = ((int)0X0204), + Notequal = ((int)0X0205), + Gequal = ((int)0X0206), + Always = ((int)0X0207), + SrcColor = ((int)0X0300), + OneMinusSrcColor = ((int)0X0301), + SrcAlpha = ((int)0X0302), + OneMinusSrcAlpha = ((int)0X0303), + DstAlpha = ((int)0X0304), + OneMinusDstAlpha = ((int)0X0305), + DstColor = ((int)0X0306), + OneMinusDstColor = ((int)0X0307), + SrcAlphaSaturate = ((int)0X0308), + Front = ((int)0X0404), + Back = ((int)0X0405), + FrontAndBack = ((int)0X0408), + InvalidEnum = ((int)0X0500), + InvalidValue = ((int)0X0501), + InvalidOperation = ((int)0X0502), + StackOverflow = ((int)0X0503), + StackUnderflow = ((int)0X0504), + OutOfMemory = ((int)0X0505), + Exp = ((int)0X0800), + Exp2 = ((int)0X0801), + Cw = ((int)0X0900), + Ccw = ((int)0X0901), + PointSmooth = ((int)0X0b10), + SmoothPointSizeRange = ((int)0X0b12), + LineSmooth = ((int)0X0b20), + SmoothLineWidthRange = ((int)0X0b22), + CullFace = ((int)0X0b44), + Lighting = ((int)0X0b50), + LightModelTwoSide = ((int)0X0b52), + LightModelAmbient = ((int)0X0b53), + ColorMaterial = ((int)0X0b57), + Fog = ((int)0X0b60), + FogDensity = ((int)0X0b62), + FogStart = ((int)0X0b63), + FogEnd = ((int)0X0b64), + FogMode = ((int)0X0b65), + FogColor = ((int)0X0b66), + DepthTest = ((int)0X0b71), + StencilTest = ((int)0X0b90), + Normalize = ((int)0X0ba1), + AlphaTest = ((int)0X0bc0), + Dither = ((int)0X0bd0), + Blend = ((int)0X0be2), + ColorLogicOp = ((int)0X0bf2), + ScissorTest = ((int)0X0c11), + PerspectiveCorrectionHint = ((int)0X0c50), + PointSmoothHint = ((int)0X0c51), + LineSmoothHint = ((int)0X0c52), + PolygonSmoothHint = ((int)0X0c53), + FogHint = ((int)0X0c54), + UnpackAlignment = ((int)0X0cf5), + PackAlignment = ((int)0X0d05), + MaxLights = ((int)0X0d31), + MaxTextureSize = ((int)0X0d33), + MaxModelviewStackDepth = ((int)0X0d36), + MaxProjectionStackDepth = ((int)0X0d38), + MaxTextureStackDepth = ((int)0X0d39), + MaxViewportDims = ((int)0X0d3a), + SubpixelBits = ((int)0X0d50), + RedBits = ((int)0X0d52), + GreenBits = ((int)0X0d53), + BlueBits = ((int)0X0d54), + AlphaBits = ((int)0X0d55), + DepthBits = ((int)0X0d56), + StencilBits = ((int)0X0d57), + Texture2D = ((int)0X0de1), + DontCare = ((int)0X1100), + Fastest = ((int)0X1101), + Nicest = ((int)0X1102), + Ambient = ((int)0X1200), + Diffuse = ((int)0X1201), + Specular = ((int)0X1202), + Position = ((int)0X1203), + SpotDirection = ((int)0X1204), + SpotExponent = ((int)0X1205), + SpotCutoff = ((int)0X1206), + ConstantAttenuation = ((int)0X1207), + LinearAttenuation = ((int)0X1208), + QuadraticAttenuation = ((int)0X1209), + Byte = ((int)0X1400), + UnsignedByte = ((int)0X1401), + Short = ((int)0X1402), + UnsignedShort = ((int)0X1403), + Float = ((int)0X1406), + Fixed = ((int)0X140c), + Clear = ((int)0X1500), + And = ((int)0X1501), + AndReverse = ((int)0X1502), + Copy = ((int)0X1503), + AndInverted = ((int)0X1504), + Noop = ((int)0X1505), + Xor = ((int)0X1506), + Or = ((int)0X1507), + Nor = ((int)0X1508), + Equiv = ((int)0X1509), + Invert = ((int)0X150a), + OrReverse = ((int)0X150b), + CopyInverted = ((int)0X150c), + OrInverted = ((int)0X150d), + Nand = ((int)0X150e), + Set = ((int)0X150f), + Emission = ((int)0X1600), + Shininess = ((int)0X1601), + AmbientAndDiffuse = ((int)0X1602), + Modelview = ((int)0X1700), + Projection = ((int)0X1701), + Texture = ((int)0X1702), + Alpha = ((int)0X1906), + Rgb = ((int)0X1907), + Rgba = ((int)0X1908), + Luminance = ((int)0X1909), + LuminanceAlpha = ((int)0X190a), + Flat = ((int)0X1d00), + Smooth = ((int)0X1d01), + Keep = ((int)0X1e00), + Replace = ((int)0X1e01), + Incr = ((int)0X1e02), + Decr = ((int)0X1e03), + Vendor = ((int)0X1f00), + Renderer = ((int)0X1f01), + Version = ((int)0X1f02), + Extensions = ((int)0X1f03), + Modulate = ((int)0X2100), + Decal = ((int)0X2101), + TextureEnvMode = ((int)0X2200), + TextureEnvColor = ((int)0X2201), + TextureEnv = ((int)0X2300), + Nearest = ((int)0X2600), + Linear = ((int)0X2601), + NearestMipmapNearest = ((int)0X2700), + LinearMipmapNearest = ((int)0X2701), + NearestMipmapLinear = ((int)0X2702), + LinearMipmapLinear = ((int)0X2703), + TextureMagFilter = ((int)0X2800), + TextureMinFilter = ((int)0X2801), + TextureWrapS = ((int)0X2802), + TextureWrapT = ((int)0X2803), + Repeat = ((int)0X2901), + Light0 = ((int)0X4000), + Light1 = ((int)0X4001), + Light2 = ((int)0X4002), + Light3 = ((int)0X4003), + Light4 = ((int)0X4004), + Light5 = ((int)0X4005), + Light6 = ((int)0X4006), + Light7 = ((int)0X4007), + UnsignedShort4444 = ((int)0X8033), + UnsignedShort5551 = ((int)0X8034), + PolygonOffsetFill = ((int)0X8037), + RescaleNormal = ((int)0X803a), + VertexArray = ((int)0X8074), + NormalArray = ((int)0X8075), + ColorArray = ((int)0X8076), + TextureCoordArray = ((int)0X8078), + Multisample = ((int)0X809d), + SampleAlphaToCoverage = ((int)0X809e), + SampleAlphaToOne = ((int)0X809f), + SampleCoverage = ((int)0X80a0), + MaxElementsVertices = ((int)0X80e8), + MaxElementsIndices = ((int)0X80e9), + ClampToEdge = ((int)0X812f), + UnsignedShort565 = ((int)0X8363), + AliasedPointSizeRange = ((int)0X846d), + AliasedLineWidthRange = ((int)0X846e), + Texture0 = ((int)0X84c0), + Texture1 = ((int)0X84c1), + Texture2 = ((int)0X84c2), + Texture3 = ((int)0X84c3), + Texture4 = ((int)0X84c4), + Texture5 = ((int)0X84c5), + Texture6 = ((int)0X84c6), + Texture7 = ((int)0X84c7), + Texture8 = ((int)0X84c8), + Texture9 = ((int)0X84c9), + Texture10 = ((int)0X84ca), + Texture11 = ((int)0X84cb), + Texture12 = ((int)0X84cc), + Texture13 = ((int)0X84cd), + Texture14 = ((int)0X84ce), + Texture15 = ((int)0X84cf), + Texture16 = ((int)0X84d0), + Texture17 = ((int)0X84d1), + Texture18 = ((int)0X84d2), + Texture19 = ((int)0X84d3), + Texture20 = ((int)0X84d4), + Texture21 = ((int)0X84d5), + Texture22 = ((int)0X84d6), + Texture23 = ((int)0X84d7), + Texture24 = ((int)0X84d8), + Texture25 = ((int)0X84d9), + Texture26 = ((int)0X84da), + Texture27 = ((int)0X84db), + Texture28 = ((int)0X84dc), + Texture29 = ((int)0X84dd), + Texture30 = ((int)0X84de), + Texture31 = ((int)0X84df), + MaxTextureUnits = ((int)0X84e2), + NumCompressedTextureFormats = ((int)0X86a2), + CompressedTextureFormats = ((int)0X86a3), + Palette4Rgb8Oes = ((int)0X8b90), + Palette4Rgba8Oes = ((int)0X8b91), + Palette4R5G6B5Oes = ((int)0X8b92), + Palette4Rgba4Oes = ((int)0X8b93), + Palette4Rgb5A1Oes = ((int)0X8b94), + Palette8Rgb8Oes = ((int)0X8b95), + Palette8Rgba8Oes = ((int)0X8b96), + Palette8R5G6B5Oes = ((int)0X8b97), + Palette8Rgba4Oes = ((int)0X8b98), + Palette8Rgb5A1Oes = ((int)0X8b99), + ImplementationColorReadTypeOes = ((int)0X8b9a), + ImplementationColorReadFormatOes = ((int)0X8b9b), + 32LeanAndMean = ((int)1), + OesCompressedPalettedTexture = ((int)1), + OesReadFormat = ((int)1), + OesVersion10 = ((int)1), + One = ((int)1), + True = ((int)1), + Pi = ((int)Extern), + } + + public enum AlphaFunction + { + Never = ((int)0X0200), + Less = ((int)0X0201), + Equal = ((int)0X0202), + Lequal = ((int)0X0203), + Greater = ((int)0X0204), + Notequal = ((int)0X0205), + Gequal = ((int)0X0206), + Always = ((int)0X0207), + } + + public enum BeginMode + { + Points = ((int)0X0000), + Lines = ((int)0X0001), + LineLoop = ((int)0X0002), + LineStrip = ((int)0X0003), + Triangles = ((int)0X0004), + TriangleStrip = ((int)0X0005), + TriangleFan = ((int)0X0006), + } + + public enum BlendingFactorDest + { + Zero = ((int)0), + SrcColor = ((int)0X0300), + OneMinusSrcColor = ((int)0X0301), + SrcAlpha = ((int)0X0302), + OneMinusSrcAlpha = ((int)0X0303), + DstAlpha = ((int)0X0304), + OneMinusDstAlpha = ((int)0X0305), + One = ((int)1), + } + + public enum BlendingFactorSrc + { + DstColor = ((int)0X0306), + OneMinusDstColor = ((int)0X0307), + SrcAlphaSaturate = ((int)0X0308), + } + + public enum Boolean + { + False = ((int)0), + True = ((int)1), + } + + [Flags] + public enum ClearBufferMask + { + DepthBufferBit = ((int)0X00000100), + StencilBufferBit = ((int)0X00000400), + ColorBufferBit = ((int)0X00004000), + } + + public enum CullFaceMode + { + Front = ((int)0X0404), + Back = ((int)0X0405), + FrontAndBack = ((int)0X0408), + } + + public enum DataType + { + Byte = ((int)0X1400), + UnsignedByte = ((int)0X1401), + Short = ((int)0X1402), + UnsignedShort = ((int)0X1403), + Float = ((int)0X1406), + Fixed = ((int)0X140c), + } + + public enum EnableCap + { + PointSmooth = ((int)0X0b10), + LineSmooth = ((int)0X0b20), + CullFace = ((int)0X0b44), + Lighting = ((int)0X0b50), + ColorMaterial = ((int)0X0b57), + Fog = ((int)0X0b60), + DepthTest = ((int)0X0b71), + StencilTest = ((int)0X0b90), + Normalize = ((int)0X0ba1), + AlphaTest = ((int)0X0bc0), + Dither = ((int)0X0bd0), + Blend = ((int)0X0be2), + ColorLogicOp = ((int)0X0bf2), + ScissorTest = ((int)0X0c11), + Texture2D = ((int)0X0de1), + PolygonOffsetFill = ((int)0X8037), + RescaleNormal = ((int)0X803a), + VertexArray = ((int)0X8074), + NormalArray = ((int)0X8075), + ColorArray = ((int)0X8076), + TextureCoordArray = ((int)0X8078), + Multisample = ((int)0X809d), + SampleAlphaToCoverage = ((int)0X809e), + SampleAlphaToOne = ((int)0X809f), + SampleCoverage = ((int)0X80a0), + } + + public enum ErrorCode + { + NoError = ((int)0), + InvalidEnum = ((int)0X0500), + InvalidValue = ((int)0X0501), + InvalidOperation = ((int)0X0502), + StackOverflow = ((int)0X0503), + StackUnderflow = ((int)0X0504), + OutOfMemory = ((int)0X0505), + } + + public enum Extensions + { + OesCompressedPalettedTexture = ((int)1), + OesReadFormat = ((int)1), + OesVersion10 = ((int)1), + } + + public enum FogMode + { + Exp = ((int)0X0800), + Exp2 = ((int)0X0801), + } + + public enum FogParameter + { + FogDensity = ((int)0X0b62), + FogStart = ((int)0X0b63), + FogEnd = ((int)0X0b64), + FogMode = ((int)0X0b65), + FogColor = ((int)0X0b66), + } + + public enum FrontFaceDirection + { + Cw = ((int)0X0900), + Ccw = ((int)0X0901), + } + + public enum GetPName + { + SmoothPointSizeRange = ((int)0X0b12), + SmoothLineWidthRange = ((int)0X0b22), + MaxLights = ((int)0X0d31), + MaxTextureSize = ((int)0X0d33), + MaxModelviewStackDepth = ((int)0X0d36), + MaxProjectionStackDepth = ((int)0X0d38), + MaxTextureStackDepth = ((int)0X0d39), + MaxViewportDims = ((int)0X0d3a), + SubpixelBits = ((int)0X0d50), + RedBits = ((int)0X0d52), + GreenBits = ((int)0X0d53), + BlueBits = ((int)0X0d54), + AlphaBits = ((int)0X0d55), + DepthBits = ((int)0X0d56), + StencilBits = ((int)0X0d57), + MaxElementsVertices = ((int)0X80e8), + MaxElementsIndices = ((int)0X80e9), + AliasedPointSizeRange = ((int)0X846d), + AliasedLineWidthRange = ((int)0X846e), + MaxTextureUnits = ((int)0X84e2), + NumCompressedTextureFormats = ((int)0X86a2), + CompressedTextureFormats = ((int)0X86a3), + ImplementationColorReadTypeOes = ((int)0X8b9a), + ImplementationColorReadFormatOes = ((int)0X8b9b), + } + + public enum HintMode + { + DontCare = ((int)0X1100), + Fastest = ((int)0X1101), + Nicest = ((int)0X1102), + } + + public enum HintTarget + { + PerspectiveCorrectionHint = ((int)0X0c50), + PointSmoothHint = ((int)0X0c51), + LineSmoothHint = ((int)0X0c52), + PolygonSmoothHint = ((int)0X0c53), + FogHint = ((int)0X0c54), + } + + public enum LightModelParameter + { + LightModelTwoSide = ((int)0X0b52), + LightModelAmbient = ((int)0X0b53), + } + + public enum LightName + { + Light0 = ((int)0X4000), + Light1 = ((int)0X4001), + Light2 = ((int)0X4002), + Light3 = ((int)0X4003), + Light4 = ((int)0X4004), + Light5 = ((int)0X4005), + Light6 = ((int)0X4006), + Light7 = ((int)0X4007), + } + + public enum LightParameter + { + Ambient = ((int)0X1200), + Diffuse = ((int)0X1201), + Specular = ((int)0X1202), + Position = ((int)0X1203), + SpotDirection = ((int)0X1204), + SpotExponent = ((int)0X1205), + SpotCutoff = ((int)0X1206), + ConstantAttenuation = ((int)0X1207), + LinearAttenuation = ((int)0X1208), + QuadraticAttenuation = ((int)0X1209), + } + + public enum LogicOp + { + Clear = ((int)0X1500), + And = ((int)0X1501), + AndReverse = ((int)0X1502), + Copy = ((int)0X1503), + AndInverted = ((int)0X1504), + Noop = ((int)0X1505), + Xor = ((int)0X1506), + Or = ((int)0X1507), + Nor = ((int)0X1508), + Equiv = ((int)0X1509), + Invert = ((int)0X150a), + OrReverse = ((int)0X150b), + CopyInverted = ((int)0X150c), + OrInverted = ((int)0X150d), + Nand = ((int)0X150e), + Set = ((int)0X150f), + } + + public enum MaterialParameter + { + Emission = ((int)0X1600), + Shininess = ((int)0X1601), + AmbientAndDiffuse = ((int)0X1602), + } + + public enum MatrixMode + { + Modelview = ((int)0X1700), + Projection = ((int)0X1701), + Texture = ((int)0X1702), + } + + public enum PixelFormat + { + Alpha = ((int)0X1906), + Rgb = ((int)0X1907), + Rgba = ((int)0X1908), + Luminance = ((int)0X1909), + LuminanceAlpha = ((int)0X190a), + } + + public enum PixelInternalFormat + { + Palette4Rgb8Oes = ((int)0X8b90), + Palette4Rgba8Oes = ((int)0X8b91), + Palette4R5G6B5Oes = ((int)0X8b92), + Palette4Rgba4Oes = ((int)0X8b93), + Palette4Rgb5A1Oes = ((int)0X8b94), + Palette8Rgb8Oes = ((int)0X8b95), + Palette8Rgba8Oes = ((int)0X8b96), + Palette8R5G6B5Oes = ((int)0X8b97), + Palette8Rgba4Oes = ((int)0X8b98), + Palette8Rgb5A1Oes = ((int)0X8b99), + } + + public enum PixelStoreParameter + { + UnpackAlignment = ((int)0X0cf5), + PackAlignment = ((int)0X0d05), + } + + public enum PixelType + { + UnsignedShort4444 = ((int)0X8033), + UnsignedShort5551 = ((int)0X8034), + UnsignedShort565 = ((int)0X8363), + } + + public enum ShadingModel + { + Flat = ((int)0X1d00), + Smooth = ((int)0X1d01), + } + + public enum StencilOp + { + Keep = ((int)0X1e00), + Replace = ((int)0X1e01), + Incr = ((int)0X1e02), + Decr = ((int)0X1e03), + } + + public enum StringName + { + Vendor = ((int)0X1f00), + Renderer = ((int)0X1f01), + Version = ((int)0X1f02), + Extensions = ((int)0X1f03), + } + + public enum TextureEnvMode + { + Add = ((int)0X0104), + Modulate = ((int)0X2100), + Decal = ((int)0X2101), + } + + public enum TextureEnvParameter + { + TextureEnvMode = ((int)0X2200), + TextureEnvColor = ((int)0X2201), + } + + public enum TextureEnvTarget + { + TextureEnv = ((int)0X2300), + } + + public enum TextureMagFilter + { + Nearest = ((int)0X2600), + Linear = ((int)0X2601), + } + + public enum TextureMinFilter + { + NearestMipmapNearest = ((int)0X2700), + LinearMipmapNearest = ((int)0X2701), + NearestMipmapLinear = ((int)0X2702), + LinearMipmapLinear = ((int)0X2703), + } + + public enum TextureParameterName + { + TextureMagFilter = ((int)0X2800), + TextureMinFilter = ((int)0X2801), + TextureWrapS = ((int)0X2802), + TextureWrapT = ((int)0X2803), + } + + public enum TextureUnit + { + Texture0 = ((int)0X84c0), + Texture1 = ((int)0X84c1), + Texture2 = ((int)0X84c2), + Texture3 = ((int)0X84c3), + Texture4 = ((int)0X84c4), + Texture5 = ((int)0X84c5), + Texture6 = ((int)0X84c6), + Texture7 = ((int)0X84c7), + Texture8 = ((int)0X84c8), + Texture9 = ((int)0X84c9), + Texture10 = ((int)0X84ca), + Texture11 = ((int)0X84cb), + Texture12 = ((int)0X84cc), + Texture13 = ((int)0X84cd), + Texture14 = ((int)0X84ce), + Texture15 = ((int)0X84cf), + Texture16 = ((int)0X84d0), + Texture17 = ((int)0X84d1), + Texture18 = ((int)0X84d2), + Texture19 = ((int)0X84d3), + Texture20 = ((int)0X84d4), + Texture21 = ((int)0X84d5), + Texture22 = ((int)0X84d6), + Texture23 = ((int)0X84d7), + Texture24 = ((int)0X84d8), + Texture25 = ((int)0X84d9), + Texture26 = ((int)0X84da), + Texture27 = ((int)0X84db), + Texture28 = ((int)0X84dc), + Texture29 = ((int)0X84dd), + Texture30 = ((int)0X84de), + Texture31 = ((int)0X84df), + } + + public enum TextureWrapMode + { + Repeat = ((int)0X2901), + ClampToEdge = ((int)0X812f), + } + + public enum Unknown + { + 32LeanAndMean = ((int)1), + Pi = ((int)Extern), + } + +} diff --git a/Source/OpenTK/Graphics/ES10/Helper.cs b/Source/OpenTK/Graphics/ES10/Helper.cs index 0931807a..eee60bb9 100644 --- a/Source/OpenTK/Graphics/ES10/Helper.cs +++ b/Source/OpenTK/Graphics/ES10/Helper.cs @@ -7,7 +7,7 @@ namespace OpenTK.Graphics.ES10 /// /// Provides access to OpenGL ES 1.0 methods. /// - public static partial class ES + public static partial class GL { const string Library = "libGLES.dll"; } diff --git a/Source/OpenTK/Graphics/ES11/Core.cs b/Source/OpenTK/Graphics/ES11/Core.cs index 4b52bc7a..38b3e407 100644 --- a/Source/OpenTK/Graphics/ES11/Core.cs +++ b/Source/OpenTK/Graphics/ES11/Core.cs @@ -1,478 +1,787 @@ -#region License -// -// The Open Toolkit Library License -// -// Copyright (c) 2006 - 2009 the Open Toolkit library. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -// the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -// OTHER DEALINGS IN THE SOFTWARE. -// -#endregion - -namespace OpenTK.Graphics.ES11 -{ - using System; - using System.Runtime.InteropServices; - #pragma warning disable 3019 - #pragma warning disable 1591 - - partial class ES - { - - internal static partial class Core - { - - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glActiveTexture", ExactSpelling = true)] - internal extern static void ActiveTexture([In, Out] OpenTK.Graphics.ES11.All texture); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glAlphaFunc", ExactSpelling = true)] - internal extern static void AlphaFunc([In, Out] OpenTK.Graphics.ES11.All func, [In, Out] Single @ref); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glAlphaFuncx", ExactSpelling = true)] - internal extern static void AlphaFuncx([In, Out] OpenTK.Graphics.ES11.All func, [In, Out] int @ref); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glBindBuffer", ExactSpelling = true)] - internal extern static void BindBuffer([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] UInt32 buffer); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glBindTexture", ExactSpelling = true)] - internal extern static void BindTexture([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] UInt32 texture); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glBlendFunc", ExactSpelling = true)] - internal extern static void BlendFunc([In, Out] OpenTK.Graphics.ES11.All sfactor, [In, Out] OpenTK.Graphics.ES11.All dfactor); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glBufferData", ExactSpelling = true)] - internal extern static void BufferData([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] IntPtr size, [In, Out] IntPtr data, [In, Out] OpenTK.Graphics.ES11.All usage); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glBufferSubData", ExactSpelling = true)] - internal extern static void BufferSubData([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] IntPtr offset, [In, Out] IntPtr size, [In, Out] IntPtr data); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glClear", ExactSpelling = true)] - internal extern static void Clear([In, Out] UInt32 mask); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glClearColor", ExactSpelling = true)] - internal extern static void ClearColor([In, Out] Single red, [In, Out] Single green, [In, Out] Single blue, [In, Out] Single alpha); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glClearColorx", ExactSpelling = true)] - internal extern static void ClearColorx([In, Out] int red, [In, Out] int green, [In, Out] int blue, [In, Out] int alpha); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glClearDepthf", ExactSpelling = true)] - internal extern static void ClearDepthf([In, Out] Single depth); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glClearDepthx", ExactSpelling = true)] - internal extern static void ClearDepthx([In, Out] int depth); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glClearStencil", ExactSpelling = true)] - internal extern static void ClearStencil([In, Out] Int32 s); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glClientActiveTexture", ExactSpelling = true)] - internal extern static void ClientActiveTexture([In, Out] OpenTK.Graphics.ES11.All texture); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glClipPlanef", ExactSpelling = true)] - internal extern static unsafe void ClipPlanef([In, Out] OpenTK.Graphics.ES11.All plane, [In, Out] Single* equation); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glClipPlanex", ExactSpelling = true)] - internal extern static unsafe void ClipPlanex([In, Out] OpenTK.Graphics.ES11.All plane, [In, Out] int* equation); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glColor4f", ExactSpelling = true)] - internal extern static void Color4f([In, Out] Single red, [In, Out] Single green, [In, Out] Single blue, [In, Out] Single alpha); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glColor4ub", ExactSpelling = true)] - internal extern static void Color4ub([In, Out] Byte red, [In, Out] Byte green, [In, Out] Byte blue, [In, Out] Byte alpha); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glColor4x", ExactSpelling = true)] - internal extern static void Color4x([In, Out] int red, [In, Out] int green, [In, Out] int blue, [In, Out] int alpha); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glColorMask", ExactSpelling = true)] - internal extern static void ColorMask([In, Out] bool red, [In, Out] bool green, [In, Out] bool blue, [In, Out] bool alpha); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glColorPointer", ExactSpelling = true)] - internal extern static void ColorPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glCompressedTexImage2D", ExactSpelling = true)] - internal extern static void CompressedTexImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES11.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] Int32 imageSize, [In, Out] IntPtr data); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glCompressedTexSubImage2D", ExactSpelling = true)] - internal extern static void CompressedTexSubImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] Int32 imageSize, [In, Out] IntPtr data); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glCopyTexImage2D", ExactSpelling = true)] - internal extern static void CopyTexImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES11.All internalformat, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glCopyTexSubImage2D", ExactSpelling = true)] - internal extern static void CopyTexSubImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glCullFace", ExactSpelling = true)] - internal extern static void CullFace([In, Out] OpenTK.Graphics.ES11.All mode); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDeleteBuffers", ExactSpelling = true)] - internal extern static unsafe void DeleteBuffers([In, Out] Int32 n, [In, Out] UInt32* buffers); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDeleteTextures", ExactSpelling = true)] - internal extern static unsafe void DeleteTextures([In, Out] Int32 n, [In, Out] UInt32* textures); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDepthFunc", ExactSpelling = true)] - internal extern static void DepthFunc([In, Out] OpenTK.Graphics.ES11.All func); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDepthMask", ExactSpelling = true)] - internal extern static void DepthMask([In, Out] bool flag); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDepthRangef", ExactSpelling = true)] - internal extern static void DepthRangef([In, Out] Single zNear, [In, Out] Single zFar); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDepthRangex", ExactSpelling = true)] - internal extern static void DepthRangex([In, Out] int zNear, [In, Out] int zFar); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDisable", ExactSpelling = true)] - internal extern static void Disable([In, Out] OpenTK.Graphics.ES11.All cap); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDisableClientState", ExactSpelling = true)] - internal extern static void DisableClientState([In, Out] OpenTK.Graphics.ES11.All array); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDrawArrays", ExactSpelling = true)] - internal extern static void DrawArrays([In, Out] OpenTK.Graphics.ES11.All mode, [In, Out] Int32 first, [In, Out] Int32 count); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDrawElements", ExactSpelling = true)] - internal extern static void DrawElements([In, Out] OpenTK.Graphics.ES11.All mode, [In, Out] Int32 count, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] IntPtr indices); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glEnable", ExactSpelling = true)] - internal extern static void Enable([In, Out] OpenTK.Graphics.ES11.All cap); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glEnableClientState", ExactSpelling = true)] - internal extern static void EnableClientState([In, Out] OpenTK.Graphics.ES11.All array); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFinish", ExactSpelling = true)] - internal extern static void Finish(); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFlush", ExactSpelling = true)] - internal extern static void Flush(); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFogf", ExactSpelling = true)] - internal extern static void Fogf([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFogfv", ExactSpelling = true)] - internal extern static unsafe void Fogfv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFogx", ExactSpelling = true)] - internal extern static void Fogx([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFogxv", ExactSpelling = true)] - internal extern static unsafe void Fogxv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFrontFace", ExactSpelling = true)] - internal extern static void FrontFace([In, Out] OpenTK.Graphics.ES11.All mode); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFrustumf", ExactSpelling = true)] - internal extern static void Frustumf([In, Out] Single left, [In, Out] Single right, [In, Out] Single bottom, [In, Out] Single top, [In, Out] Single zNear, [In, Out] Single zFar); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFrustumx", ExactSpelling = true)] - internal extern static void Frustumx([In, Out] int left, [In, Out] int right, [In, Out] int bottom, [In, Out] int top, [In, Out] int zNear, [In, Out] int zFar); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGenBuffers", ExactSpelling = true)] - internal extern static unsafe void GenBuffers([In, Out] Int32 n, [In, Out] UInt32* buffers); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGenTextures", ExactSpelling = true)] - internal extern static unsafe void GenTextures([In, Out] Int32 n, [In, Out] UInt32* textures); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetBooleanv", ExactSpelling = true)] - internal extern static unsafe void GetBooleanv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] bool* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetBufferParameteriv", ExactSpelling = true)] - internal extern static unsafe void GetBufferParameteriv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetClipPlanef", ExactSpelling = true)] - internal extern static unsafe void GetClipPlanef([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* eqn); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetClipPlanex", ExactSpelling = true)] - internal extern static unsafe void GetClipPlanex([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* eqn); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetError", ExactSpelling = true)] - internal extern static OpenTK.Graphics.ES11.All GetError(); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetFixedv", ExactSpelling = true)] - internal extern static unsafe void GetFixedv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetFloatv", ExactSpelling = true)] - internal extern static unsafe void GetFloatv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetIntegerv", ExactSpelling = true)] - internal extern static unsafe void GetIntegerv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetLightfv", ExactSpelling = true)] - internal extern static unsafe void GetLightfv([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetLightxv", ExactSpelling = true)] - internal extern static unsafe void GetLightxv([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetMaterialfv", ExactSpelling = true)] - internal extern static unsafe void GetMaterialfv([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetMaterialxv", ExactSpelling = true)] - internal extern static unsafe void GetMaterialxv([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetPointerv", ExactSpelling = true)] - internal extern static void GetPointerv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] IntPtr @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetString", ExactSpelling = true)] - internal extern static Byte GetString([In, Out] OpenTK.Graphics.ES11.All name); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetTexEnvfv", ExactSpelling = true)] - internal extern static unsafe void GetTexEnvfv([In, Out] OpenTK.Graphics.ES11.All env, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetTexEnviv", ExactSpelling = true)] - internal extern static unsafe void GetTexEnviv([In, Out] OpenTK.Graphics.ES11.All env, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetTexEnvxv", ExactSpelling = true)] - internal extern static unsafe void GetTexEnvxv([In, Out] OpenTK.Graphics.ES11.All env, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetTexParameterfv", ExactSpelling = true)] - internal extern static unsafe void GetTexParameterfv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetTexParameteriv", ExactSpelling = true)] - internal extern static unsafe void GetTexParameteriv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetTexParameterxv", ExactSpelling = true)] - internal extern static unsafe void GetTexParameterxv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glHint", ExactSpelling = true)] - internal extern static void Hint([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All mode); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glIsBuffer", ExactSpelling = true)] - internal extern static bool IsBuffer([In, Out] UInt32 buffer); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glIsEnabled", ExactSpelling = true)] - internal extern static bool IsEnabled([In, Out] OpenTK.Graphics.ES11.All cap); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glIsTexture", ExactSpelling = true)] - internal extern static bool IsTexture([In, Out] UInt32 texture); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLightf", ExactSpelling = true)] - internal extern static void Lightf([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLightfv", ExactSpelling = true)] - internal extern static unsafe void Lightfv([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLightModelf", ExactSpelling = true)] - internal extern static void LightModelf([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLightModelfv", ExactSpelling = true)] - internal extern static unsafe void LightModelfv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLightModelx", ExactSpelling = true)] - internal extern static void LightModelx([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLightModelxv", ExactSpelling = true)] - internal extern static unsafe void LightModelxv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLightx", ExactSpelling = true)] - internal extern static void Lightx([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLightxv", ExactSpelling = true)] - internal extern static unsafe void Lightxv([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLineWidth", ExactSpelling = true)] - internal extern static void LineWidth([In, Out] Single width); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLineWidthx", ExactSpelling = true)] - internal extern static void LineWidthx([In, Out] int width); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLoadIdentity", ExactSpelling = true)] - internal extern static void LoadIdentity(); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLoadMatrixf", ExactSpelling = true)] - internal extern static unsafe void LoadMatrixf([In, Out] Single* m); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLoadMatrixx", ExactSpelling = true)] - internal extern static unsafe void LoadMatrixx([In, Out] int* m); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLogicOp", ExactSpelling = true)] - internal extern static void LogicOp([In, Out] OpenTK.Graphics.ES11.All opcode); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glMaterialf", ExactSpelling = true)] - internal extern static void Materialf([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glMaterialfv", ExactSpelling = true)] - internal extern static unsafe void Materialfv([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glMaterialx", ExactSpelling = true)] - internal extern static void Materialx([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glMaterialxv", ExactSpelling = true)] - internal extern static unsafe void Materialxv([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glMatrixMode", ExactSpelling = true)] - internal extern static void MatrixMode([In, Out] OpenTK.Graphics.ES11.All mode); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glMultiTexCoord4f", ExactSpelling = true)] - internal extern static void MultiTexCoord4f([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Single s, [In, Out] Single t, [In, Out] Single r, [In, Out] Single q); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glMultiTexCoord4x", ExactSpelling = true)] - internal extern static void MultiTexCoord4x([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] int s, [In, Out] int t, [In, Out] int r, [In, Out] int q); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glMultMatrixf", ExactSpelling = true)] - internal extern static unsafe void MultMatrixf([In, Out] Single* m); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glMultMatrixx", ExactSpelling = true)] - internal extern static unsafe void MultMatrixx([In, Out] int* m); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glNormal3f", ExactSpelling = true)] - internal extern static void Normal3f([In, Out] Single nx, [In, Out] Single ny, [In, Out] Single nz); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glNormal3x", ExactSpelling = true)] - internal extern static void Normal3x([In, Out] int nx, [In, Out] int ny, [In, Out] int nz); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glNormalPointer", ExactSpelling = true)] - internal extern static void NormalPointer([In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glOrthof", ExactSpelling = true)] - internal extern static void Orthof([In, Out] Single left, [In, Out] Single right, [In, Out] Single bottom, [In, Out] Single top, [In, Out] Single zNear, [In, Out] Single zFar); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glOrthox", ExactSpelling = true)] - internal extern static void Orthox([In, Out] int left, [In, Out] int right, [In, Out] int bottom, [In, Out] int top, [In, Out] int zNear, [In, Out] int zFar); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glPixelStorei", ExactSpelling = true)] - internal extern static void PixelStorei([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32 param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glPointParameterf", ExactSpelling = true)] - internal extern static void PointParameterf([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glPointParameterfv", ExactSpelling = true)] - internal extern static unsafe void PointParameterfv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glPointParameterx", ExactSpelling = true)] - internal extern static void PointParameterx([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glPointParameterxv", ExactSpelling = true)] - internal extern static unsafe void PointParameterxv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glPointSize", ExactSpelling = true)] - internal extern static void PointSize([In, Out] Single size); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glPointSizePointerOES", ExactSpelling = true)] - internal extern static void PointSizePointerOES([In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glPointSizex", ExactSpelling = true)] - internal extern static void PointSizex([In, Out] int size); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glPolygonOffset", ExactSpelling = true)] - internal extern static void PolygonOffset([In, Out] Single factor, [In, Out] Single units); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glPolygonOffsetx", ExactSpelling = true)] - internal extern static void PolygonOffsetx([In, Out] int factor, [In, Out] int units); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glPopMatrix", ExactSpelling = true)] - internal extern static void PopMatrix(); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glPushMatrix", ExactSpelling = true)] - internal extern static void PushMatrix(); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glReadPixels", ExactSpelling = true)] - internal extern static void ReadPixels([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] IntPtr pixels); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glRotatef", ExactSpelling = true)] - internal extern static void Rotatef([In, Out] Single angle, [In, Out] Single x, [In, Out] Single y, [In, Out] Single z); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glRotatex", ExactSpelling = true)] - internal extern static void Rotatex([In, Out] int angle, [In, Out] int x, [In, Out] int y, [In, Out] int z); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glSampleCoverage", ExactSpelling = true)] - internal extern static void SampleCoverage([In, Out] Single value, [In, Out] bool invert); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glSampleCoveragex", ExactSpelling = true)] - internal extern static void SampleCoveragex([In, Out] int value, [In, Out] bool invert); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glScalef", ExactSpelling = true)] - internal extern static void Scalef([In, Out] Single x, [In, Out] Single y, [In, Out] Single z); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glScalex", ExactSpelling = true)] - internal extern static void Scalex([In, Out] int x, [In, Out] int y, [In, Out] int z); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glScissor", ExactSpelling = true)] - internal extern static void Scissor([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glShadeModel", ExactSpelling = true)] - internal extern static void ShadeModel([In, Out] OpenTK.Graphics.ES11.All mode); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glStencilFunc", ExactSpelling = true)] - internal extern static void StencilFunc([In, Out] OpenTK.Graphics.ES11.All func, [In, Out] Int32 @ref, [In, Out] UInt32 mask); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glStencilMask", ExactSpelling = true)] - internal extern static void StencilMask([In, Out] UInt32 mask); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glStencilOp", ExactSpelling = true)] - internal extern static void StencilOp([In, Out] OpenTK.Graphics.ES11.All fail, [In, Out] OpenTK.Graphics.ES11.All zfail, [In, Out] OpenTK.Graphics.ES11.All zpass); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexCoordPointer", ExactSpelling = true)] - internal extern static void TexCoordPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexEnvf", ExactSpelling = true)] - internal extern static void TexEnvf([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexEnvfv", ExactSpelling = true)] - internal extern static unsafe void TexEnvfv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexEnvi", ExactSpelling = true)] - internal extern static void TexEnvi([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32 param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexEnviv", ExactSpelling = true)] - internal extern static unsafe void TexEnviv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexEnvx", ExactSpelling = true)] - internal extern static void TexEnvx([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexEnvxv", ExactSpelling = true)] - internal extern static unsafe void TexEnvxv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexImage2D", ExactSpelling = true)] - internal extern static void TexImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] IntPtr pixels); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexParameterf", ExactSpelling = true)] - internal extern static void TexParameterf([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexParameterfv", ExactSpelling = true)] - internal extern static unsafe void TexParameterfv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexParameteri", ExactSpelling = true)] - internal extern static void TexParameteri([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32 param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexParameteriv", ExactSpelling = true)] - internal extern static unsafe void TexParameteriv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexParameterx", ExactSpelling = true)] - internal extern static void TexParameterx([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexParameterxv", ExactSpelling = true)] - internal extern static unsafe void TexParameterxv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexSubImage2D", ExactSpelling = true)] - internal extern static void TexSubImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] IntPtr pixels); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTranslatef", ExactSpelling = true)] - internal extern static void Translatef([In, Out] Single x, [In, Out] Single y, [In, Out] Single z); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTranslatex", ExactSpelling = true)] - internal extern static void Translatex([In, Out] int x, [In, Out] int y, [In, Out] int z); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glVertexPointer", ExactSpelling = true)] - internal extern static void VertexPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glViewport", ExactSpelling = true)] - internal extern static void Viewport([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height); - } - } -} +#region License +// +// The Open Toolkit Library License +// +// Copyright (c) 2006 - 2009 the Open Toolkit library. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do +// so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// +#endregion + +namespace OpenTK.Graphics.ES11 +{ + using System; + using System.Runtime.InteropServices; + #pragma warning disable 3019 + #pragma warning disable 1591 + + partial class GL + { + + internal static partial class Core + { + + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glActiveTexture", ExactSpelling = true)] + internal extern static void ActiveTexture(OpenTK.Graphics.ES11.All texture); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glAlphaFunc", ExactSpelling = true)] + internal extern static void AlphaFunc(OpenTK.Graphics.ES11.All func, Single @ref); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glAlphaFuncx", ExactSpelling = true)] + internal extern static void AlphaFuncx(OpenTK.Graphics.ES11.All func, int @ref); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glAlphaFuncxOES", ExactSpelling = true)] + internal extern static void AlphaFuncxOES(OpenTK.Graphics.ES11.All func, int @ref); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindBuffer", ExactSpelling = true)] + internal extern static void BindBuffer(OpenTK.Graphics.ES11.All target, UInt32 buffer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindFramebufferOES", ExactSpelling = true)] + internal extern static void BindFramebufferOES(OpenTK.Graphics.ES11.All target, UInt32 framebuffer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindRenderbufferOES", ExactSpelling = true)] + internal extern static void BindRenderbufferOES(OpenTK.Graphics.ES11.All target, UInt32 renderbuffer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindTexture", ExactSpelling = true)] + internal extern static void BindTexture(OpenTK.Graphics.ES11.All target, UInt32 texture); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendEquationOES", ExactSpelling = true)] + internal extern static void BlendEquationOES(OpenTK.Graphics.ES11.All mode); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendEquationSeparateOES", ExactSpelling = true)] + internal extern static void BlendEquationSeparateOES(OpenTK.Graphics.ES11.All modeRGB, OpenTK.Graphics.ES11.All modeAlpha); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendFunc", ExactSpelling = true)] + internal extern static void BlendFunc(OpenTK.Graphics.ES11.All sfactor, OpenTK.Graphics.ES11.All dfactor); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendFuncSeparateOES", ExactSpelling = true)] + internal extern static void BlendFuncSeparateOES(OpenTK.Graphics.ES11.All srcRGB, OpenTK.Graphics.ES11.All dstRGB, OpenTK.Graphics.ES11.All srcAlpha, OpenTK.Graphics.ES11.All dstAlpha); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBufferData", ExactSpelling = true)] + internal extern static void BufferData(OpenTK.Graphics.ES11.All target, IntPtr size, IntPtr data, OpenTK.Graphics.ES11.All usage); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBufferSubData", ExactSpelling = true)] + internal extern static void BufferSubData(OpenTK.Graphics.ES11.All target, IntPtr offset, IntPtr size, IntPtr data); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCheckFramebufferStatusOES", ExactSpelling = true)] + internal extern static OpenTK.Graphics.ES11.All CheckFramebufferStatusOES(OpenTK.Graphics.ES11.All target); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClear", ExactSpelling = true)] + internal extern static void Clear(UInt32 mask); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearColor", ExactSpelling = true)] + internal extern static void ClearColor(Single red, Single green, Single blue, Single alpha); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearColorx", ExactSpelling = true)] + internal extern static void ClearColorx(int red, int green, int blue, int alpha); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearColorxOES", ExactSpelling = true)] + internal extern static void ClearColorxOES(int red, int green, int blue, int alpha); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearDepthf", ExactSpelling = true)] + internal extern static void ClearDepthf(Single depth); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearDepthfOES", ExactSpelling = true)] + internal extern static void ClearDepthfOES(Single depth); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearDepthx", ExactSpelling = true)] + internal extern static void ClearDepthx(int depth); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearDepthxOES", ExactSpelling = true)] + internal extern static void ClearDepthxOES(int depth); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearStencil", ExactSpelling = true)] + internal extern static void ClearStencil(Int32 s); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClientActiveTexture", ExactSpelling = true)] + internal extern static void ClientActiveTexture(OpenTK.Graphics.ES11.All texture); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClipPlanef", ExactSpelling = true)] + internal extern static unsafe void ClipPlanef(OpenTK.Graphics.ES11.All plane, Single* equation); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClipPlanefIMG", ExactSpelling = true)] + internal extern static unsafe void ClipPlanefIMG(OpenTK.Graphics.ES11.All p, Single* eqn); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClipPlanefOES", ExactSpelling = true)] + internal extern static unsafe void ClipPlanefOES(OpenTK.Graphics.ES11.All plane, Single* equation); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClipPlanex", ExactSpelling = true)] + internal extern static unsafe void ClipPlanex(OpenTK.Graphics.ES11.All plane, int* equation); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClipPlanexIMG", ExactSpelling = true)] + internal extern static unsafe void ClipPlanexIMG(OpenTK.Graphics.ES11.All p, int* eqn); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClipPlanexOES", ExactSpelling = true)] + internal extern static unsafe void ClipPlanexOES(OpenTK.Graphics.ES11.All plane, int* equation); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glColor4f", ExactSpelling = true)] + internal extern static void Color4f(Single red, Single green, Single blue, Single alpha); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glColor4ub", ExactSpelling = true)] + internal extern static void Color4ub(Byte red, Byte green, Byte blue, Byte alpha); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glColor4x", ExactSpelling = true)] + internal extern static void Color4x(int red, int green, int blue, int alpha); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glColor4xOES", ExactSpelling = true)] + internal extern static void Color4xOES(int red, int green, int blue, int alpha); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glColorMask", ExactSpelling = true)] + internal extern static void ColorMask(bool red, bool green, bool blue, bool alpha); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glColorPointer", ExactSpelling = true)] + internal extern static void ColorPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCompressedTexImage2D", ExactSpelling = true)] + internal extern static void CompressedTexImage2D(OpenTK.Graphics.ES11.All target, Int32 level, OpenTK.Graphics.ES11.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCompressedTexSubImage2D", ExactSpelling = true)] + internal extern static void CompressedTexSubImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES11.All format, Int32 imageSize, IntPtr data); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCopyTexImage2D", ExactSpelling = true)] + internal extern static void CopyTexImage2D(OpenTK.Graphics.ES11.All target, Int32 level, OpenTK.Graphics.ES11.All internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCopyTexSubImage2D", ExactSpelling = true)] + internal extern static void CopyTexSubImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCullFace", ExactSpelling = true)] + internal extern static void CullFace(OpenTK.Graphics.ES11.All mode); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCurrentPaletteMatrixOES", ExactSpelling = true)] + internal extern static void CurrentPaletteMatrixOES(UInt32 matrixpaletteindex); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteBuffers", ExactSpelling = true)] + internal extern static unsafe void DeleteBuffers(Int32 n, UInt32* buffers); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteFencesNV", ExactSpelling = true)] + internal extern static unsafe void DeleteFencesNV(Int32 n, UInt32* fences); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteFramebuffersOES", ExactSpelling = true)] + internal extern static unsafe void DeleteFramebuffersOES(Int32 n, UInt32* framebuffers); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteRenderbuffersOES", ExactSpelling = true)] + internal extern static unsafe void DeleteRenderbuffersOES(Int32 n, UInt32* renderbuffers); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteTextures", ExactSpelling = true)] + internal extern static unsafe void DeleteTextures(Int32 n, UInt32* textures); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDepthFunc", ExactSpelling = true)] + internal extern static void DepthFunc(OpenTK.Graphics.ES11.All func); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDepthMask", ExactSpelling = true)] + internal extern static void DepthMask(bool flag); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDepthRangef", ExactSpelling = true)] + internal extern static void DepthRangef(Single zNear, Single zFar); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDepthRangefOES", ExactSpelling = true)] + internal extern static void DepthRangefOES(Single zNear, Single zFar); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDepthRangex", ExactSpelling = true)] + internal extern static void DepthRangex(int zNear, int zFar); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDepthRangexOES", ExactSpelling = true)] + internal extern static void DepthRangexOES(int zNear, int zFar); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDisable", ExactSpelling = true)] + internal extern static void Disable(OpenTK.Graphics.ES11.All cap); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDisableClientState", ExactSpelling = true)] + internal extern static void DisableClientState(OpenTK.Graphics.ES11.All array); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDisableDriverControlQCOM", ExactSpelling = true)] + internal extern static void DisableDriverControlQCOM(UInt32 driverControl); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawArrays", ExactSpelling = true)] + internal extern static void DrawArrays(OpenTK.Graphics.ES11.All mode, Int32 first, Int32 count); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawElements", ExactSpelling = true)] + internal extern static void DrawElements(OpenTK.Graphics.ES11.All mode, Int32 count, OpenTK.Graphics.ES11.All type, IntPtr indices); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawTexfOES", ExactSpelling = true)] + internal extern static void DrawTexfOES(Single x, Single y, Single z, Single width, Single height); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawTexfvOES", ExactSpelling = true)] + internal extern static unsafe void DrawTexfvOES(Single* coords); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawTexiOES", ExactSpelling = true)] + internal extern static void DrawTexiOES(Int32 x, Int32 y, Int32 z, Int32 width, Int32 height); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawTexivOES", ExactSpelling = true)] + internal extern static unsafe void DrawTexivOES(Int32* coords); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawTexsOES", ExactSpelling = true)] + internal extern static void DrawTexsOES(Int16 x, Int16 y, Int16 z, Int16 width, Int16 height); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawTexsvOES", ExactSpelling = true)] + internal extern static unsafe void DrawTexsvOES(Int16* coords); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawTexxOES", ExactSpelling = true)] + internal extern static void DrawTexxOES(int x, int y, int z, int width, int height); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawTexxvOES", ExactSpelling = true)] + internal extern static unsafe void DrawTexxvOES(int* coords); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEGLImageTargetRenderbufferStorageOES", ExactSpelling = true)] + internal extern static void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES11.All target, GLeglImageOES image); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEGLImageTargetTexture2DOES", ExactSpelling = true)] + internal extern static void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES11.All target, GLeglImageOES image); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEnable", ExactSpelling = true)] + internal extern static void Enable(OpenTK.Graphics.ES11.All cap); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEnableClientState", ExactSpelling = true)] + internal extern static void EnableClientState(OpenTK.Graphics.ES11.All array); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEnableDriverControlQCOM", ExactSpelling = true)] + internal extern static void EnableDriverControlQCOM(UInt32 driverControl); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFinish", ExactSpelling = true)] + internal extern static void Finish(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFinishFenceNV", ExactSpelling = true)] + internal extern static void FinishFenceNV(UInt32 fence); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFlush", ExactSpelling = true)] + internal extern static void Flush(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFogf", ExactSpelling = true)] + internal extern static void Fogf(OpenTK.Graphics.ES11.All pname, Single param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFogfv", ExactSpelling = true)] + internal extern static unsafe void Fogfv(OpenTK.Graphics.ES11.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFogx", ExactSpelling = true)] + internal extern static void Fogx(OpenTK.Graphics.ES11.All pname, int param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFogxOES", ExactSpelling = true)] + internal extern static void FogxOES(OpenTK.Graphics.ES11.All pname, int param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFogxv", ExactSpelling = true)] + internal extern static unsafe void Fogxv(OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFogxvOES", ExactSpelling = true)] + internal extern static unsafe void FogxvOES(OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFramebufferRenderbufferOES", ExactSpelling = true)] + internal extern static void FramebufferRenderbufferOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All attachment, OpenTK.Graphics.ES11.All renderbuffertarget, UInt32 renderbuffer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFramebufferTexture2DOES", ExactSpelling = true)] + internal extern static void FramebufferTexture2DOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All attachment, OpenTK.Graphics.ES11.All textarget, UInt32 texture, Int32 level); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFrontFace", ExactSpelling = true)] + internal extern static void FrontFace(OpenTK.Graphics.ES11.All mode); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFrustumf", ExactSpelling = true)] + internal extern static void Frustumf(Single left, Single right, Single bottom, Single top, Single zNear, Single zFar); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFrustumfOES", ExactSpelling = true)] + internal extern static void FrustumfOES(Single left, Single right, Single bottom, Single top, Single zNear, Single zFar); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFrustumx", ExactSpelling = true)] + internal extern static void Frustumx(int left, int right, int bottom, int top, int zNear, int zFar); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFrustumxOES", ExactSpelling = true)] + internal extern static void FrustumxOES(int left, int right, int bottom, int top, int zNear, int zFar); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenBuffers", ExactSpelling = true)] + internal extern static unsafe void GenBuffers(Int32 n, UInt32* buffers); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenerateMipmapOES", ExactSpelling = true)] + internal extern static void GenerateMipmapOES(OpenTK.Graphics.ES11.All target); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenFencesNV", ExactSpelling = true)] + internal extern static unsafe void GenFencesNV(Int32 n, UInt32* fences); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenFramebuffersOES", ExactSpelling = true)] + internal extern static unsafe void GenFramebuffersOES(Int32 n, UInt32* framebuffers); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenRenderbuffersOES", ExactSpelling = true)] + internal extern static unsafe void GenRenderbuffersOES(Int32 n, UInt32* renderbuffers); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenTextures", ExactSpelling = true)] + internal extern static unsafe void GenTextures(Int32 n, UInt32* textures); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetBooleanv", ExactSpelling = true)] + internal extern static unsafe void GetBooleanv(OpenTK.Graphics.ES11.All pname, bool* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetBufferParameteriv", ExactSpelling = true)] + internal extern static unsafe void GetBufferParameteriv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetBufferPointervOES", ExactSpelling = true)] + internal extern static void GetBufferPointervOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, IntPtr @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetClipPlanef", ExactSpelling = true)] + internal extern static unsafe void GetClipPlanef(OpenTK.Graphics.ES11.All pname, Single* eqn); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetClipPlanefOES", ExactSpelling = true)] + internal extern static unsafe void GetClipPlanefOES(OpenTK.Graphics.ES11.All pname, Single* eqn); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetClipPlanex", ExactSpelling = true)] + internal extern static unsafe void GetClipPlanex(OpenTK.Graphics.ES11.All pname, int* eqn); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetClipPlanexOES", ExactSpelling = true)] + internal extern static unsafe void GetClipPlanexOES(OpenTK.Graphics.ES11.All pname, int* eqn); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetDriverControlsQCOM", ExactSpelling = true)] + internal extern static unsafe void GetDriverControlsQCOM(Int32* num, Int32 size, UInt32* driverControls); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetDriverControlStringQCOM", ExactSpelling = true)] + internal extern static unsafe void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, Int32* length, String driverControlString); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetError", ExactSpelling = true)] + internal extern static OpenTK.Graphics.ES11.All GetError(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFenceivNV", ExactSpelling = true)] + internal extern static unsafe void GetFenceivNV(UInt32 fence, OpenTK.Graphics.ES11.All pname, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFixedv", ExactSpelling = true)] + internal extern static unsafe void GetFixedv(OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFixedvOES", ExactSpelling = true)] + internal extern static unsafe void GetFixedvOES(OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFloatv", ExactSpelling = true)] + internal extern static unsafe void GetFloatv(OpenTK.Graphics.ES11.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFramebufferAttachmentParameterivOES", ExactSpelling = true)] + internal extern static unsafe void GetFramebufferAttachmentParameterivOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All attachment, OpenTK.Graphics.ES11.All pname, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetIntegerv", ExactSpelling = true)] + internal extern static unsafe void GetIntegerv(OpenTK.Graphics.ES11.All pname, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetLightfv", ExactSpelling = true)] + internal extern static unsafe void GetLightfv(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetLightxv", ExactSpelling = true)] + internal extern static unsafe void GetLightxv(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetLightxvOES", ExactSpelling = true)] + internal extern static unsafe void GetLightxvOES(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetMaterialfv", ExactSpelling = true)] + internal extern static unsafe void GetMaterialfv(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetMaterialxv", ExactSpelling = true)] + internal extern static unsafe void GetMaterialxv(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetMaterialxvOES", ExactSpelling = true)] + internal extern static unsafe void GetMaterialxvOES(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPointerv", ExactSpelling = true)] + internal extern static void GetPointerv(OpenTK.Graphics.ES11.All pname, IntPtr @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetRenderbufferParameterivOES", ExactSpelling = true)] + internal extern static unsafe void GetRenderbufferParameterivOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetString", ExactSpelling = true)] + internal extern static unsafe IntPtr GetString(OpenTK.Graphics.ES11.All name); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexEnvfv", ExactSpelling = true)] + internal extern static unsafe void GetTexEnvfv(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexEnviv", ExactSpelling = true)] + internal extern static unsafe void GetTexEnviv(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexEnvxv", ExactSpelling = true)] + internal extern static unsafe void GetTexEnvxv(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexEnvxvOES", ExactSpelling = true)] + internal extern static unsafe void GetTexEnvxvOES(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexGenfvOES", ExactSpelling = true)] + internal extern static unsafe void GetTexGenfvOES(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexGenivOES", ExactSpelling = true)] + internal extern static unsafe void GetTexGenivOES(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexGenxvOES", ExactSpelling = true)] + internal extern static unsafe void GetTexGenxvOES(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexParameterfv", ExactSpelling = true)] + internal extern static unsafe void GetTexParameterfv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexParameteriv", ExactSpelling = true)] + internal extern static unsafe void GetTexParameteriv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexParameterxv", ExactSpelling = true)] + internal extern static unsafe void GetTexParameterxv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexParameterxvOES", ExactSpelling = true)] + internal extern static unsafe void GetTexParameterxvOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glHint", ExactSpelling = true)] + internal extern static void Hint(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All mode); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsBuffer", ExactSpelling = true)] + internal extern static bool IsBuffer(UInt32 buffer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsEnabled", ExactSpelling = true)] + internal extern static bool IsEnabled(OpenTK.Graphics.ES11.All cap); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsFenceNV", ExactSpelling = true)] + internal extern static bool IsFenceNV(UInt32 fence); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsFramebufferOES", ExactSpelling = true)] + internal extern static bool IsFramebufferOES(UInt32 framebuffer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsRenderbufferOES", ExactSpelling = true)] + internal extern static bool IsRenderbufferOES(UInt32 renderbuffer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsTexture", ExactSpelling = true)] + internal extern static bool IsTexture(UInt32 texture); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLightf", ExactSpelling = true)] + internal extern static void Lightf(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, Single param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLightfv", ExactSpelling = true)] + internal extern static unsafe void Lightfv(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLightModelf", ExactSpelling = true)] + internal extern static void LightModelf(OpenTK.Graphics.ES11.All pname, Single param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLightModelfv", ExactSpelling = true)] + internal extern static unsafe void LightModelfv(OpenTK.Graphics.ES11.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLightModelx", ExactSpelling = true)] + internal extern static void LightModelx(OpenTK.Graphics.ES11.All pname, int param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLightModelxOES", ExactSpelling = true)] + internal extern static void LightModelxOES(OpenTK.Graphics.ES11.All pname, int param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLightModelxv", ExactSpelling = true)] + internal extern static unsafe void LightModelxv(OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLightModelxvOES", ExactSpelling = true)] + internal extern static unsafe void LightModelxvOES(OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLightx", ExactSpelling = true)] + internal extern static void Lightx(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLightxOES", ExactSpelling = true)] + internal extern static void LightxOES(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLightxv", ExactSpelling = true)] + internal extern static unsafe void Lightxv(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLightxvOES", ExactSpelling = true)] + internal extern static unsafe void LightxvOES(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLineWidth", ExactSpelling = true)] + internal extern static void LineWidth(Single width); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLineWidthx", ExactSpelling = true)] + internal extern static void LineWidthx(int width); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLineWidthxOES", ExactSpelling = true)] + internal extern static void LineWidthxOES(int width); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLoadIdentity", ExactSpelling = true)] + internal extern static void LoadIdentity(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLoadMatrixf", ExactSpelling = true)] + internal extern static unsafe void LoadMatrixf(Single* m); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLoadMatrixx", ExactSpelling = true)] + internal extern static unsafe void LoadMatrixx(int* m); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLoadMatrixxOES", ExactSpelling = true)] + internal extern static unsafe void LoadMatrixxOES(int* m); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLoadPaletteFromModelViewMatrixOES", ExactSpelling = true)] + internal extern static void LoadPaletteFromModelViewMatrixOES(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLogicOp", ExactSpelling = true)] + internal extern static void LogicOp(OpenTK.Graphics.ES11.All opcode); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapBufferOES", ExactSpelling = true)] + internal extern static unsafe IntPtr MapBufferOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All access); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMaterialf", ExactSpelling = true)] + internal extern static void Materialf(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, Single param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMaterialfv", ExactSpelling = true)] + internal extern static unsafe void Materialfv(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMaterialx", ExactSpelling = true)] + internal extern static void Materialx(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMaterialxOES", ExactSpelling = true)] + internal extern static void MaterialxOES(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMaterialxv", ExactSpelling = true)] + internal extern static unsafe void Materialxv(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMaterialxvOES", ExactSpelling = true)] + internal extern static unsafe void MaterialxvOES(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMatrixIndexPointerOES", ExactSpelling = true)] + internal extern static void MatrixIndexPointerOES(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMatrixMode", ExactSpelling = true)] + internal extern static void MatrixMode(OpenTK.Graphics.ES11.All mode); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMultiTexCoord4f", ExactSpelling = true)] + internal extern static void MultiTexCoord4f(OpenTK.Graphics.ES11.All target, Single s, Single t, Single r, Single q); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMultiTexCoord4x", ExactSpelling = true)] + internal extern static void MultiTexCoord4x(OpenTK.Graphics.ES11.All target, int s, int t, int r, int q); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMultiTexCoord4xOES", ExactSpelling = true)] + internal extern static void MultiTexCoord4xOES(OpenTK.Graphics.ES11.All target, int s, int t, int r, int q); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMultMatrixf", ExactSpelling = true)] + internal extern static unsafe void MultMatrixf(Single* m); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMultMatrixx", ExactSpelling = true)] + internal extern static unsafe void MultMatrixx(int* m); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMultMatrixxOES", ExactSpelling = true)] + internal extern static unsafe void MultMatrixxOES(int* m); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glNormal3f", ExactSpelling = true)] + internal extern static void Normal3f(Single nx, Single ny, Single nz); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glNormal3x", ExactSpelling = true)] + internal extern static void Normal3x(int nx, int ny, int nz); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glNormal3xOES", ExactSpelling = true)] + internal extern static void Normal3xOES(int nx, int ny, int nz); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glNormalPointer", ExactSpelling = true)] + internal extern static void NormalPointer(OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glOrthof", ExactSpelling = true)] + internal extern static void Orthof(Single left, Single right, Single bottom, Single top, Single zNear, Single zFar); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glOrthofOES", ExactSpelling = true)] + internal extern static void OrthofOES(Single left, Single right, Single bottom, Single top, Single zNear, Single zFar); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glOrthox", ExactSpelling = true)] + internal extern static void Orthox(int left, int right, int bottom, int top, int zNear, int zFar); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glOrthoxOES", ExactSpelling = true)] + internal extern static void OrthoxOES(int left, int right, int bottom, int top, int zNear, int zFar); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPixelStorei", ExactSpelling = true)] + internal extern static void PixelStorei(OpenTK.Graphics.ES11.All pname, Int32 param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPointParameterf", ExactSpelling = true)] + internal extern static void PointParameterf(OpenTK.Graphics.ES11.All pname, Single param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPointParameterfv", ExactSpelling = true)] + internal extern static unsafe void PointParameterfv(OpenTK.Graphics.ES11.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPointParameterx", ExactSpelling = true)] + internal extern static void PointParameterx(OpenTK.Graphics.ES11.All pname, int param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPointParameterxOES", ExactSpelling = true)] + internal extern static void PointParameterxOES(OpenTK.Graphics.ES11.All pname, int param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPointParameterxv", ExactSpelling = true)] + internal extern static unsafe void PointParameterxv(OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPointParameterxvOES", ExactSpelling = true)] + internal extern static unsafe void PointParameterxvOES(OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPointSize", ExactSpelling = true)] + internal extern static void PointSize(Single size); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPointSizePointerOES", ExactSpelling = true)] + internal extern static void PointSizePointerOES(OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPointSizex", ExactSpelling = true)] + internal extern static void PointSizex(int size); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPointSizexOES", ExactSpelling = true)] + internal extern static void PointSizexOES(int size); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPolygonOffset", ExactSpelling = true)] + internal extern static void PolygonOffset(Single factor, Single units); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPolygonOffsetx", ExactSpelling = true)] + internal extern static void PolygonOffsetx(int factor, int units); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPolygonOffsetxOES", ExactSpelling = true)] + internal extern static void PolygonOffsetxOES(int factor, int units); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPopMatrix", ExactSpelling = true)] + internal extern static void PopMatrix(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPushMatrix", ExactSpelling = true)] + internal extern static void PushMatrix(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glQueryMatrixxOES", ExactSpelling = true)] + internal extern static unsafe UInt32 QueryMatrixxOES(int* mantissa, Int32* exponent); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glReadPixels", ExactSpelling = true)] + internal extern static void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES11.All format, OpenTK.Graphics.ES11.All type, IntPtr pixels); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glRenderbufferStorageOES", ExactSpelling = true)] + internal extern static void RenderbufferStorageOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All internalformat, Int32 width, Int32 height); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glRotatef", ExactSpelling = true)] + internal extern static void Rotatef(Single angle, Single x, Single y, Single z); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glRotatex", ExactSpelling = true)] + internal extern static void Rotatex(int angle, int x, int y, int z); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glRotatexOES", ExactSpelling = true)] + internal extern static void RotatexOES(int angle, int x, int y, int z); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glSampleCoverage", ExactSpelling = true)] + internal extern static void SampleCoverage(Single value, bool invert); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glSampleCoveragex", ExactSpelling = true)] + internal extern static void SampleCoveragex(int value, bool invert); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glSampleCoveragexOES", ExactSpelling = true)] + internal extern static void SampleCoveragexOES(int value, bool invert); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glScalef", ExactSpelling = true)] + internal extern static void Scalef(Single x, Single y, Single z); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glScalex", ExactSpelling = true)] + internal extern static void Scalex(int x, int y, int z); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glScalexOES", ExactSpelling = true)] + internal extern static void ScalexOES(int x, int y, int z); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glScissor", ExactSpelling = true)] + internal extern static void Scissor(Int32 x, Int32 y, Int32 width, Int32 height); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glSetFenceNV", ExactSpelling = true)] + internal extern static void SetFenceNV(UInt32 fence, OpenTK.Graphics.ES11.All condition); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glShadeModel", ExactSpelling = true)] + internal extern static void ShadeModel(OpenTK.Graphics.ES11.All mode); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilFunc", ExactSpelling = true)] + internal extern static void StencilFunc(OpenTK.Graphics.ES11.All func, Int32 @ref, UInt32 mask); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilMask", ExactSpelling = true)] + internal extern static void StencilMask(UInt32 mask); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilOp", ExactSpelling = true)] + internal extern static void StencilOp(OpenTK.Graphics.ES11.All fail, OpenTK.Graphics.ES11.All zfail, OpenTK.Graphics.ES11.All zpass); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTestFenceNV", ExactSpelling = true)] + internal extern static bool TestFenceNV(UInt32 fence); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexCoordPointer", ExactSpelling = true)] + internal extern static void TexCoordPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexEnvf", ExactSpelling = true)] + internal extern static void TexEnvf(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Single param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexEnvfv", ExactSpelling = true)] + internal extern static unsafe void TexEnvfv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexEnvi", ExactSpelling = true)] + internal extern static void TexEnvi(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32 param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexEnviv", ExactSpelling = true)] + internal extern static unsafe void TexEnviv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexEnvx", ExactSpelling = true)] + internal extern static void TexEnvx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexEnvxOES", ExactSpelling = true)] + internal extern static void TexEnvxOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexEnvxv", ExactSpelling = true)] + internal extern static unsafe void TexEnvxv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexEnvxvOES", ExactSpelling = true)] + internal extern static unsafe void TexEnvxvOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexGenfOES", ExactSpelling = true)] + internal extern static void TexGenfOES(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Single param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexGenfvOES", ExactSpelling = true)] + internal extern static unsafe void TexGenfvOES(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexGeniOES", ExactSpelling = true)] + internal extern static void TexGeniOES(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Int32 param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexGenivOES", ExactSpelling = true)] + internal extern static unsafe void TexGenivOES(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexGenxOES", ExactSpelling = true)] + internal extern static void TexGenxOES(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, int param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexGenxvOES", ExactSpelling = true)] + internal extern static unsafe void TexGenxvOES(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexImage2D", ExactSpelling = true)] + internal extern static void TexImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES11.All format, OpenTK.Graphics.ES11.All type, IntPtr pixels); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameterf", ExactSpelling = true)] + internal extern static void TexParameterf(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Single param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameterfv", ExactSpelling = true)] + internal extern static unsafe void TexParameterfv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameteri", ExactSpelling = true)] + internal extern static void TexParameteri(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32 param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameteriv", ExactSpelling = true)] + internal extern static unsafe void TexParameteriv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameterx", ExactSpelling = true)] + internal extern static void TexParameterx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameterxOES", ExactSpelling = true)] + internal extern static void TexParameterxOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameterxv", ExactSpelling = true)] + internal extern static unsafe void TexParameterxv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameterxvOES", ExactSpelling = true)] + internal extern static unsafe void TexParameterxvOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexSubImage2D", ExactSpelling = true)] + internal extern static void TexSubImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES11.All format, OpenTK.Graphics.ES11.All type, IntPtr pixels); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTranslatef", ExactSpelling = true)] + internal extern static void Translatef(Single x, Single y, Single z); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTranslatex", ExactSpelling = true)] + internal extern static void Translatex(int x, int y, int z); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTranslatexOES", ExactSpelling = true)] + internal extern static void TranslatexOES(int x, int y, int z); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUnmapBufferOES", ExactSpelling = true)] + internal extern static bool UnmapBufferOES(OpenTK.Graphics.ES11.All target); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glVertexPointer", ExactSpelling = true)] + internal extern static void VertexPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glViewport", ExactSpelling = true)] + internal extern static void Viewport(Int32 x, Int32 y, Int32 width, Int32 height); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glWeightPointerOES", ExactSpelling = true)] + internal extern static void WeightPointerOES(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer); + } + } +} diff --git a/Source/OpenTK/Graphics/ES11/Delegates.cs b/Source/OpenTK/Graphics/ES11/Delegates.cs index ed23d8b6..d91729cc 100644 --- a/Source/OpenTK/Graphics/ES11/Delegates.cs +++ b/Source/OpenTK/Graphics/ES11/Delegates.cs @@ -1,477 +1,786 @@ -#region License -// -// The Open Toolkit Library License -// -// Copyright (c) 2006 - 2009 the Open Toolkit library. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -// the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -// OTHER DEALINGS IN THE SOFTWARE. -// -#endregion - -namespace OpenTK.Graphics.ES11 -{ - using System; - using System.Runtime.InteropServices; - #pragma warning disable 0649 - #pragma warning disable 3019 - #pragma warning disable 1591 - - partial class ES - { - internal static partial class Delegates - { - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ActiveTexture([In, Out] OpenTK.Graphics.ES11.All texture); - internal static ActiveTexture glActiveTexture; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void AlphaFunc([In, Out] OpenTK.Graphics.ES11.All func, [In, Out] Single @ref); - internal static AlphaFunc glAlphaFunc; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void AlphaFuncx([In, Out] OpenTK.Graphics.ES11.All func, [In, Out] int @ref); - internal static AlphaFuncx glAlphaFuncx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BindBuffer([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] UInt32 buffer); - internal static BindBuffer glBindBuffer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BindTexture([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] UInt32 texture); - internal static BindTexture glBindTexture; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BlendFunc([In, Out] OpenTK.Graphics.ES11.All sfactor, [In, Out] OpenTK.Graphics.ES11.All dfactor); - internal static BlendFunc glBlendFunc; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BufferData([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] IntPtr size, [In, Out] IntPtr data, [In, Out] OpenTK.Graphics.ES11.All usage); - internal static BufferData glBufferData; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BufferSubData([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] IntPtr offset, [In, Out] IntPtr size, [In, Out] IntPtr data); - internal static BufferSubData glBufferSubData; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Clear([In, Out] UInt32 mask); - internal static Clear glClear; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ClearColor([In, Out] Single red, [In, Out] Single green, [In, Out] Single blue, [In, Out] Single alpha); - internal static ClearColor glClearColor; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ClearColorx([In, Out] int red, [In, Out] int green, [In, Out] int blue, [In, Out] int alpha); - internal static ClearColorx glClearColorx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ClearDepthf([In, Out] Single depth); - internal static ClearDepthf glClearDepthf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ClearDepthx([In, Out] int depth); - internal static ClearDepthx glClearDepthx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ClearStencil([In, Out] Int32 s); - internal static ClearStencil glClearStencil; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ClientActiveTexture([In, Out] OpenTK.Graphics.ES11.All texture); - internal static ClientActiveTexture glClientActiveTexture; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void ClipPlanef([In, Out] OpenTK.Graphics.ES11.All plane, [In, Out] Single* equation); - internal unsafe static ClipPlanef glClipPlanef; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void ClipPlanex([In, Out] OpenTK.Graphics.ES11.All plane, [In, Out] int* equation); - internal unsafe static ClipPlanex glClipPlanex; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Color4f([In, Out] Single red, [In, Out] Single green, [In, Out] Single blue, [In, Out] Single alpha); - internal static Color4f glColor4f; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Color4ub([In, Out] Byte red, [In, Out] Byte green, [In, Out] Byte blue, [In, Out] Byte alpha); - internal static Color4ub glColor4ub; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Color4x([In, Out] int red, [In, Out] int green, [In, Out] int blue, [In, Out] int alpha); - internal static Color4x glColor4x; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ColorMask([In, Out] bool red, [In, Out] bool green, [In, Out] bool blue, [In, Out] bool alpha); - internal static ColorMask glColorMask; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ColorPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer); - internal static ColorPointer glColorPointer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CompressedTexImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES11.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] Int32 imageSize, [In, Out] IntPtr data); - internal static CompressedTexImage2D glCompressedTexImage2D; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CompressedTexSubImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] Int32 imageSize, [In, Out] IntPtr data); - internal static CompressedTexSubImage2D glCompressedTexSubImage2D; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CopyTexImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES11.All internalformat, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border); - internal static CopyTexImage2D glCopyTexImage2D; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CopyTexSubImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height); - internal static CopyTexSubImage2D glCopyTexSubImage2D; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CullFace([In, Out] OpenTK.Graphics.ES11.All mode); - internal static CullFace glCullFace; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void DeleteBuffers([In, Out] Int32 n, [In, Out] UInt32* buffers); - internal unsafe static DeleteBuffers glDeleteBuffers; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void DeleteTextures([In, Out] Int32 n, [In, Out] UInt32* textures); - internal unsafe static DeleteTextures glDeleteTextures; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DepthFunc([In, Out] OpenTK.Graphics.ES11.All func); - internal static DepthFunc glDepthFunc; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DepthMask([In, Out] bool flag); - internal static DepthMask glDepthMask; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DepthRangef([In, Out] Single zNear, [In, Out] Single zFar); - internal static DepthRangef glDepthRangef; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DepthRangex([In, Out] int zNear, [In, Out] int zFar); - internal static DepthRangex glDepthRangex; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Disable([In, Out] OpenTK.Graphics.ES11.All cap); - internal static Disable glDisable; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DisableClientState([In, Out] OpenTK.Graphics.ES11.All array); - internal static DisableClientState glDisableClientState; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DrawArrays([In, Out] OpenTK.Graphics.ES11.All mode, [In, Out] Int32 first, [In, Out] Int32 count); - internal static DrawArrays glDrawArrays; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DrawElements([In, Out] OpenTK.Graphics.ES11.All mode, [In, Out] Int32 count, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] IntPtr indices); - internal static DrawElements glDrawElements; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Enable([In, Out] OpenTK.Graphics.ES11.All cap); - internal static Enable glEnable; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void EnableClientState([In, Out] OpenTK.Graphics.ES11.All array); - internal static EnableClientState glEnableClientState; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Finish(); - internal static Finish glFinish; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Flush(); - internal static Flush glFlush; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Fogf([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single param); - internal static Fogf glFogf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void Fogfv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - internal unsafe static Fogfv glFogfv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Fogx([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int param); - internal static Fogx glFogx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void Fogxv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - internal unsafe static Fogxv glFogxv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void FrontFace([In, Out] OpenTK.Graphics.ES11.All mode); - internal static FrontFace glFrontFace; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Frustumf([In, Out] Single left, [In, Out] Single right, [In, Out] Single bottom, [In, Out] Single top, [In, Out] Single zNear, [In, Out] Single zFar); - internal static Frustumf glFrustumf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Frustumx([In, Out] int left, [In, Out] int right, [In, Out] int bottom, [In, Out] int top, [In, Out] int zNear, [In, Out] int zFar); - internal static Frustumx glFrustumx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GenBuffers([In, Out] Int32 n, [In, Out] UInt32* buffers); - internal unsafe static GenBuffers glGenBuffers; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GenTextures([In, Out] Int32 n, [In, Out] UInt32* textures); - internal unsafe static GenTextures glGenTextures; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetBooleanv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] bool* @params); - internal unsafe static GetBooleanv glGetBooleanv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetBufferParameteriv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32* @params); - internal unsafe static GetBufferParameteriv glGetBufferParameteriv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetClipPlanef([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* eqn); - internal unsafe static GetClipPlanef glGetClipPlanef; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetClipPlanex([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* eqn); - internal unsafe static GetClipPlanex glGetClipPlanex; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate OpenTK.Graphics.ES11.All GetError(); - internal static GetError glGetError; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetFixedv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - internal unsafe static GetFixedv glGetFixedv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetFloatv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - internal unsafe static GetFloatv glGetFloatv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetIntegerv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32* @params); - internal unsafe static GetIntegerv glGetIntegerv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetLightfv([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - internal unsafe static GetLightfv glGetLightfv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetLightxv([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - internal unsafe static GetLightxv glGetLightxv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetMaterialfv([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - internal unsafe static GetMaterialfv glGetMaterialfv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetMaterialxv([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - internal unsafe static GetMaterialxv glGetMaterialxv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void GetPointerv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] IntPtr @params); - internal static GetPointerv glGetPointerv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate Byte GetString([In, Out] OpenTK.Graphics.ES11.All name); - internal static GetString glGetString; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetTexEnvfv([In, Out] OpenTK.Graphics.ES11.All env, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - internal unsafe static GetTexEnvfv glGetTexEnvfv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetTexEnviv([In, Out] OpenTK.Graphics.ES11.All env, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32* @params); - internal unsafe static GetTexEnviv glGetTexEnviv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetTexEnvxv([In, Out] OpenTK.Graphics.ES11.All env, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - internal unsafe static GetTexEnvxv glGetTexEnvxv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetTexParameterfv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - internal unsafe static GetTexParameterfv glGetTexParameterfv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetTexParameteriv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32* @params); - internal unsafe static GetTexParameteriv glGetTexParameteriv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetTexParameterxv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - internal unsafe static GetTexParameterxv glGetTexParameterxv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Hint([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All mode); - internal static Hint glHint; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate bool IsBuffer([In, Out] UInt32 buffer); - internal static IsBuffer glIsBuffer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate bool IsEnabled([In, Out] OpenTK.Graphics.ES11.All cap); - internal static IsEnabled glIsEnabled; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate bool IsTexture([In, Out] UInt32 texture); - internal static IsTexture glIsTexture; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Lightf([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single param); - internal static Lightf glLightf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void Lightfv([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - internal unsafe static Lightfv glLightfv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void LightModelf([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single param); - internal static LightModelf glLightModelf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void LightModelfv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - internal unsafe static LightModelfv glLightModelfv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void LightModelx([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int param); - internal static LightModelx glLightModelx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void LightModelxv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - internal unsafe static LightModelxv glLightModelxv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Lightx([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int param); - internal static Lightx glLightx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void Lightxv([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - internal unsafe static Lightxv glLightxv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void LineWidth([In, Out] Single width); - internal static LineWidth glLineWidth; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void LineWidthx([In, Out] int width); - internal static LineWidthx glLineWidthx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void LoadIdentity(); - internal static LoadIdentity glLoadIdentity; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void LoadMatrixf([In, Out] Single* m); - internal unsafe static LoadMatrixf glLoadMatrixf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void LoadMatrixx([In, Out] int* m); - internal unsafe static LoadMatrixx glLoadMatrixx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void LogicOp([In, Out] OpenTK.Graphics.ES11.All opcode); - internal static LogicOp glLogicOp; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Materialf([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single param); - internal static Materialf glMaterialf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void Materialfv([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - internal unsafe static Materialfv glMaterialfv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Materialx([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int param); - internal static Materialx glMaterialx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void Materialxv([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - internal unsafe static Materialxv glMaterialxv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void MatrixMode([In, Out] OpenTK.Graphics.ES11.All mode); - internal static MatrixMode glMatrixMode; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void MultiTexCoord4f([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Single s, [In, Out] Single t, [In, Out] Single r, [In, Out] Single q); - internal static MultiTexCoord4f glMultiTexCoord4f; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void MultiTexCoord4x([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] int s, [In, Out] int t, [In, Out] int r, [In, Out] int q); - internal static MultiTexCoord4x glMultiTexCoord4x; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void MultMatrixf([In, Out] Single* m); - internal unsafe static MultMatrixf glMultMatrixf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void MultMatrixx([In, Out] int* m); - internal unsafe static MultMatrixx glMultMatrixx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Normal3f([In, Out] Single nx, [In, Out] Single ny, [In, Out] Single nz); - internal static Normal3f glNormal3f; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Normal3x([In, Out] int nx, [In, Out] int ny, [In, Out] int nz); - internal static Normal3x glNormal3x; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void NormalPointer([In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer); - internal static NormalPointer glNormalPointer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Orthof([In, Out] Single left, [In, Out] Single right, [In, Out] Single bottom, [In, Out] Single top, [In, Out] Single zNear, [In, Out] Single zFar); - internal static Orthof glOrthof; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Orthox([In, Out] int left, [In, Out] int right, [In, Out] int bottom, [In, Out] int top, [In, Out] int zNear, [In, Out] int zFar); - internal static Orthox glOrthox; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PixelStorei([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32 param); - internal static PixelStorei glPixelStorei; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PointParameterf([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single param); - internal static PointParameterf glPointParameterf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void PointParameterfv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - internal unsafe static PointParameterfv glPointParameterfv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PointParameterx([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int param); - internal static PointParameterx glPointParameterx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void PointParameterxv([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - internal unsafe static PointParameterxv glPointParameterxv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PointSize([In, Out] Single size); - internal static PointSize glPointSize; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PointSizePointerOES([In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer); - internal static PointSizePointerOES glPointSizePointerOES; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PointSizex([In, Out] int size); - internal static PointSizex glPointSizex; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PolygonOffset([In, Out] Single factor, [In, Out] Single units); - internal static PolygonOffset glPolygonOffset; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PolygonOffsetx([In, Out] int factor, [In, Out] int units); - internal static PolygonOffsetx glPolygonOffsetx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PopMatrix(); - internal static PopMatrix glPopMatrix; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PushMatrix(); - internal static PushMatrix glPushMatrix; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ReadPixels([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] IntPtr pixels); - internal static ReadPixels glReadPixels; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Rotatef([In, Out] Single angle, [In, Out] Single x, [In, Out] Single y, [In, Out] Single z); - internal static Rotatef glRotatef; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Rotatex([In, Out] int angle, [In, Out] int x, [In, Out] int y, [In, Out] int z); - internal static Rotatex glRotatex; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void SampleCoverage([In, Out] Single value, [In, Out] bool invert); - internal static SampleCoverage glSampleCoverage; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void SampleCoveragex([In, Out] int value, [In, Out] bool invert); - internal static SampleCoveragex glSampleCoveragex; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Scalef([In, Out] Single x, [In, Out] Single y, [In, Out] Single z); - internal static Scalef glScalef; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Scalex([In, Out] int x, [In, Out] int y, [In, Out] int z); - internal static Scalex glScalex; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Scissor([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height); - internal static Scissor glScissor; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ShadeModel([In, Out] OpenTK.Graphics.ES11.All mode); - internal static ShadeModel glShadeModel; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilFunc([In, Out] OpenTK.Graphics.ES11.All func, [In, Out] Int32 @ref, [In, Out] UInt32 mask); - internal static StencilFunc glStencilFunc; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilMask([In, Out] UInt32 mask); - internal static StencilMask glStencilMask; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilOp([In, Out] OpenTK.Graphics.ES11.All fail, [In, Out] OpenTK.Graphics.ES11.All zfail, [In, Out] OpenTK.Graphics.ES11.All zpass); - internal static StencilOp glStencilOp; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexCoordPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer); - internal static TexCoordPointer glTexCoordPointer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexEnvf([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single param); - internal static TexEnvf glTexEnvf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void TexEnvfv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - internal unsafe static TexEnvfv glTexEnvfv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexEnvi([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32 param); - internal static TexEnvi glTexEnvi; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void TexEnviv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32* @params); - internal unsafe static TexEnviv glTexEnviv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexEnvx([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int param); - internal static TexEnvx glTexEnvx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void TexEnvxv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - internal unsafe static TexEnvxv glTexEnvxv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] IntPtr pixels); - internal static TexImage2D glTexImage2D; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexParameterf([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single param); - internal static TexParameterf glTexParameterf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void TexParameterfv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params); - internal unsafe static TexParameterfv glTexParameterfv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexParameteri([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32 param); - internal static TexParameteri glTexParameteri; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void TexParameteriv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32* @params); - internal unsafe static TexParameteriv glTexParameteriv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexParameterx([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int param); - internal static TexParameterx glTexParameterx; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void TexParameterxv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params); - internal unsafe static TexParameterxv glTexParameterxv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexSubImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] IntPtr pixels); - internal static TexSubImage2D glTexSubImage2D; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Translatef([In, Out] Single x, [In, Out] Single y, [In, Out] Single z); - internal static Translatef glTranslatef; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Translatex([In, Out] int x, [In, Out] int y, [In, Out] int z); - internal static Translatex glTranslatex; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void VertexPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer); - internal static VertexPointer glVertexPointer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Viewport([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height); - internal static Viewport glViewport; - } - } -} +#region License +// +// The Open Toolkit Library License +// +// Copyright (c) 2006 - 2009 the Open Toolkit library. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do +// so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// +#endregion + +namespace OpenTK.Graphics.ES11 +{ + using System; + using System.Runtime.InteropServices; + #pragma warning disable 0649 + #pragma warning disable 3019 + #pragma warning disable 1591 + + partial class GL + { + internal static partial class Delegates + { + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ActiveTexture(OpenTK.Graphics.ES11.All texture); + internal static ActiveTexture glActiveTexture; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void AlphaFunc(OpenTK.Graphics.ES11.All func, Single @ref); + internal static AlphaFunc glAlphaFunc; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void AlphaFuncx(OpenTK.Graphics.ES11.All func, int @ref); + internal static AlphaFuncx glAlphaFuncx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void AlphaFuncxOES(OpenTK.Graphics.ES11.All func, int @ref); + internal static AlphaFuncxOES glAlphaFuncxOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BindBuffer(OpenTK.Graphics.ES11.All target, UInt32 buffer); + internal static BindBuffer glBindBuffer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BindFramebufferOES(OpenTK.Graphics.ES11.All target, UInt32 framebuffer); + internal static BindFramebufferOES glBindFramebufferOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BindRenderbufferOES(OpenTK.Graphics.ES11.All target, UInt32 renderbuffer); + internal static BindRenderbufferOES glBindRenderbufferOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BindTexture(OpenTK.Graphics.ES11.All target, UInt32 texture); + internal static BindTexture glBindTexture; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BlendEquationOES(OpenTK.Graphics.ES11.All mode); + internal static BlendEquationOES glBlendEquationOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BlendEquationSeparateOES(OpenTK.Graphics.ES11.All modeRGB, OpenTK.Graphics.ES11.All modeAlpha); + internal static BlendEquationSeparateOES glBlendEquationSeparateOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BlendFunc(OpenTK.Graphics.ES11.All sfactor, OpenTK.Graphics.ES11.All dfactor); + internal static BlendFunc glBlendFunc; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BlendFuncSeparateOES(OpenTK.Graphics.ES11.All srcRGB, OpenTK.Graphics.ES11.All dstRGB, OpenTK.Graphics.ES11.All srcAlpha, OpenTK.Graphics.ES11.All dstAlpha); + internal static BlendFuncSeparateOES glBlendFuncSeparateOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BufferData(OpenTK.Graphics.ES11.All target, IntPtr size, IntPtr data, OpenTK.Graphics.ES11.All usage); + internal static BufferData glBufferData; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BufferSubData(OpenTK.Graphics.ES11.All target, IntPtr offset, IntPtr size, IntPtr data); + internal static BufferSubData glBufferSubData; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate OpenTK.Graphics.ES11.All CheckFramebufferStatusOES(OpenTK.Graphics.ES11.All target); + internal static CheckFramebufferStatusOES glCheckFramebufferStatusOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Clear(UInt32 mask); + internal static Clear glClear; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ClearColor(Single red, Single green, Single blue, Single alpha); + internal static ClearColor glClearColor; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ClearColorx(int red, int green, int blue, int alpha); + internal static ClearColorx glClearColorx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ClearColorxOES(int red, int green, int blue, int alpha); + internal static ClearColorxOES glClearColorxOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ClearDepthf(Single depth); + internal static ClearDepthf glClearDepthf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ClearDepthfOES(Single depth); + internal static ClearDepthfOES glClearDepthfOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ClearDepthx(int depth); + internal static ClearDepthx glClearDepthx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ClearDepthxOES(int depth); + internal static ClearDepthxOES glClearDepthxOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ClearStencil(Int32 s); + internal static ClearStencil glClearStencil; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ClientActiveTexture(OpenTK.Graphics.ES11.All texture); + internal static ClientActiveTexture glClientActiveTexture; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void ClipPlanef(OpenTK.Graphics.ES11.All plane, Single* equation); + internal unsafe static ClipPlanef glClipPlanef; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void ClipPlanefIMG(OpenTK.Graphics.ES11.All p, Single* eqn); + internal unsafe static ClipPlanefIMG glClipPlanefIMG; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void ClipPlanefOES(OpenTK.Graphics.ES11.All plane, Single* equation); + internal unsafe static ClipPlanefOES glClipPlanefOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void ClipPlanex(OpenTK.Graphics.ES11.All plane, int* equation); + internal unsafe static ClipPlanex glClipPlanex; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void ClipPlanexIMG(OpenTK.Graphics.ES11.All p, int* eqn); + internal unsafe static ClipPlanexIMG glClipPlanexIMG; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void ClipPlanexOES(OpenTK.Graphics.ES11.All plane, int* equation); + internal unsafe static ClipPlanexOES glClipPlanexOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Color4f(Single red, Single green, Single blue, Single alpha); + internal static Color4f glColor4f; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Color4ub(Byte red, Byte green, Byte blue, Byte alpha); + internal static Color4ub glColor4ub; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Color4x(int red, int green, int blue, int alpha); + internal static Color4x glColor4x; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Color4xOES(int red, int green, int blue, int alpha); + internal static Color4xOES glColor4xOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ColorMask(bool red, bool green, bool blue, bool alpha); + internal static ColorMask glColorMask; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ColorPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer); + internal static ColorPointer glColorPointer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void CompressedTexImage2D(OpenTK.Graphics.ES11.All target, Int32 level, OpenTK.Graphics.ES11.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data); + internal static CompressedTexImage2D glCompressedTexImage2D; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void CompressedTexSubImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES11.All format, Int32 imageSize, IntPtr data); + internal static CompressedTexSubImage2D glCompressedTexSubImage2D; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void CopyTexImage2D(OpenTK.Graphics.ES11.All target, Int32 level, OpenTK.Graphics.ES11.All internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border); + internal static CopyTexImage2D glCopyTexImage2D; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void CopyTexSubImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height); + internal static CopyTexSubImage2D glCopyTexSubImage2D; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void CullFace(OpenTK.Graphics.ES11.All mode); + internal static CullFace glCullFace; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void CurrentPaletteMatrixOES(UInt32 matrixpaletteindex); + internal static CurrentPaletteMatrixOES glCurrentPaletteMatrixOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void DeleteBuffers(Int32 n, UInt32* buffers); + internal unsafe static DeleteBuffers glDeleteBuffers; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void DeleteFencesNV(Int32 n, UInt32* fences); + internal unsafe static DeleteFencesNV glDeleteFencesNV; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void DeleteFramebuffersOES(Int32 n, UInt32* framebuffers); + internal unsafe static DeleteFramebuffersOES glDeleteFramebuffersOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void DeleteRenderbuffersOES(Int32 n, UInt32* renderbuffers); + internal unsafe static DeleteRenderbuffersOES glDeleteRenderbuffersOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void DeleteTextures(Int32 n, UInt32* textures); + internal unsafe static DeleteTextures glDeleteTextures; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DepthFunc(OpenTK.Graphics.ES11.All func); + internal static DepthFunc glDepthFunc; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DepthMask(bool flag); + internal static DepthMask glDepthMask; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DepthRangef(Single zNear, Single zFar); + internal static DepthRangef glDepthRangef; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DepthRangefOES(Single zNear, Single zFar); + internal static DepthRangefOES glDepthRangefOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DepthRangex(int zNear, int zFar); + internal static DepthRangex glDepthRangex; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DepthRangexOES(int zNear, int zFar); + internal static DepthRangexOES glDepthRangexOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Disable(OpenTK.Graphics.ES11.All cap); + internal static Disable glDisable; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DisableClientState(OpenTK.Graphics.ES11.All array); + internal static DisableClientState glDisableClientState; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DisableDriverControlQCOM(UInt32 driverControl); + internal static DisableDriverControlQCOM glDisableDriverControlQCOM; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DrawArrays(OpenTK.Graphics.ES11.All mode, Int32 first, Int32 count); + internal static DrawArrays glDrawArrays; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DrawElements(OpenTK.Graphics.ES11.All mode, Int32 count, OpenTK.Graphics.ES11.All type, IntPtr indices); + internal static DrawElements glDrawElements; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DrawTexfOES(Single x, Single y, Single z, Single width, Single height); + internal static DrawTexfOES glDrawTexfOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void DrawTexfvOES(Single* coords); + internal unsafe static DrawTexfvOES glDrawTexfvOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DrawTexiOES(Int32 x, Int32 y, Int32 z, Int32 width, Int32 height); + internal static DrawTexiOES glDrawTexiOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void DrawTexivOES(Int32* coords); + internal unsafe static DrawTexivOES glDrawTexivOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DrawTexsOES(Int16 x, Int16 y, Int16 z, Int16 width, Int16 height); + internal static DrawTexsOES glDrawTexsOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void DrawTexsvOES(Int16* coords); + internal unsafe static DrawTexsvOES glDrawTexsvOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DrawTexxOES(int x, int y, int z, int width, int height); + internal static DrawTexxOES glDrawTexxOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void DrawTexxvOES(int* coords); + internal unsafe static DrawTexxvOES glDrawTexxvOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES11.All target, GLeglImageOES image); + internal static EGLImageTargetRenderbufferStorageOES glEGLImageTargetRenderbufferStorageOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES11.All target, GLeglImageOES image); + internal static EGLImageTargetTexture2DOES glEGLImageTargetTexture2DOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Enable(OpenTK.Graphics.ES11.All cap); + internal static Enable glEnable; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void EnableClientState(OpenTK.Graphics.ES11.All array); + internal static EnableClientState glEnableClientState; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void EnableDriverControlQCOM(UInt32 driverControl); + internal static EnableDriverControlQCOM glEnableDriverControlQCOM; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Finish(); + internal static Finish glFinish; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void FinishFenceNV(UInt32 fence); + internal static FinishFenceNV glFinishFenceNV; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Flush(); + internal static Flush glFlush; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Fogf(OpenTK.Graphics.ES11.All pname, Single param); + internal static Fogf glFogf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void Fogfv(OpenTK.Graphics.ES11.All pname, Single* @params); + internal unsafe static Fogfv glFogfv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Fogx(OpenTK.Graphics.ES11.All pname, int param); + internal static Fogx glFogx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void FogxOES(OpenTK.Graphics.ES11.All pname, int param); + internal static FogxOES glFogxOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void Fogxv(OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static Fogxv glFogxv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void FogxvOES(OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static FogxvOES glFogxvOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void FramebufferRenderbufferOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All attachment, OpenTK.Graphics.ES11.All renderbuffertarget, UInt32 renderbuffer); + internal static FramebufferRenderbufferOES glFramebufferRenderbufferOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void FramebufferTexture2DOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All attachment, OpenTK.Graphics.ES11.All textarget, UInt32 texture, Int32 level); + internal static FramebufferTexture2DOES glFramebufferTexture2DOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void FrontFace(OpenTK.Graphics.ES11.All mode); + internal static FrontFace glFrontFace; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Frustumf(Single left, Single right, Single bottom, Single top, Single zNear, Single zFar); + internal static Frustumf glFrustumf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void FrustumfOES(Single left, Single right, Single bottom, Single top, Single zNear, Single zFar); + internal static FrustumfOES glFrustumfOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Frustumx(int left, int right, int bottom, int top, int zNear, int zFar); + internal static Frustumx glFrustumx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void FrustumxOES(int left, int right, int bottom, int top, int zNear, int zFar); + internal static FrustumxOES glFrustumxOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GenBuffers(Int32 n, UInt32* buffers); + internal unsafe static GenBuffers glGenBuffers; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void GenerateMipmapOES(OpenTK.Graphics.ES11.All target); + internal static GenerateMipmapOES glGenerateMipmapOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GenFencesNV(Int32 n, UInt32* fences); + internal unsafe static GenFencesNV glGenFencesNV; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GenFramebuffersOES(Int32 n, UInt32* framebuffers); + internal unsafe static GenFramebuffersOES glGenFramebuffersOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GenRenderbuffersOES(Int32 n, UInt32* renderbuffers); + internal unsafe static GenRenderbuffersOES glGenRenderbuffersOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GenTextures(Int32 n, UInt32* textures); + internal unsafe static GenTextures glGenTextures; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetBooleanv(OpenTK.Graphics.ES11.All pname, bool* @params); + internal unsafe static GetBooleanv glGetBooleanv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetBufferParameteriv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32* @params); + internal unsafe static GetBufferParameteriv glGetBufferParameteriv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void GetBufferPointervOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, IntPtr @params); + internal static GetBufferPointervOES glGetBufferPointervOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetClipPlanef(OpenTK.Graphics.ES11.All pname, Single* eqn); + internal unsafe static GetClipPlanef glGetClipPlanef; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetClipPlanefOES(OpenTK.Graphics.ES11.All pname, Single* eqn); + internal unsafe static GetClipPlanefOES glGetClipPlanefOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetClipPlanex(OpenTK.Graphics.ES11.All pname, int* eqn); + internal unsafe static GetClipPlanex glGetClipPlanex; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetClipPlanexOES(OpenTK.Graphics.ES11.All pname, int* eqn); + internal unsafe static GetClipPlanexOES glGetClipPlanexOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetDriverControlsQCOM(Int32* num, Int32 size, UInt32* driverControls); + internal unsafe static GetDriverControlsQCOM glGetDriverControlsQCOM; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, Int32* length, String driverControlString); + internal unsafe static GetDriverControlStringQCOM glGetDriverControlStringQCOM; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate OpenTK.Graphics.ES11.All GetError(); + internal static GetError glGetError; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetFenceivNV(UInt32 fence, OpenTK.Graphics.ES11.All pname, Int32* @params); + internal unsafe static GetFenceivNV glGetFenceivNV; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetFixedv(OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static GetFixedv glGetFixedv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetFixedvOES(OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static GetFixedvOES glGetFixedvOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetFloatv(OpenTK.Graphics.ES11.All pname, Single* @params); + internal unsafe static GetFloatv glGetFloatv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetFramebufferAttachmentParameterivOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All attachment, OpenTK.Graphics.ES11.All pname, Int32* @params); + internal unsafe static GetFramebufferAttachmentParameterivOES glGetFramebufferAttachmentParameterivOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetIntegerv(OpenTK.Graphics.ES11.All pname, Int32* @params); + internal unsafe static GetIntegerv glGetIntegerv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetLightfv(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, Single* @params); + internal unsafe static GetLightfv glGetLightfv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetLightxv(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static GetLightxv glGetLightxv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetLightxvOES(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static GetLightxvOES glGetLightxvOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetMaterialfv(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, Single* @params); + internal unsafe static GetMaterialfv glGetMaterialfv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetMaterialxv(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static GetMaterialxv glGetMaterialxv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetMaterialxvOES(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static GetMaterialxvOES glGetMaterialxvOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void GetPointerv(OpenTK.Graphics.ES11.All pname, IntPtr @params); + internal static GetPointerv glGetPointerv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetRenderbufferParameterivOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32* @params); + internal unsafe static GetRenderbufferParameterivOES glGetRenderbufferParameterivOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate IntPtr GetString(OpenTK.Graphics.ES11.All name); + internal unsafe static GetString glGetString; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetTexEnvfv(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, Single* @params); + internal unsafe static GetTexEnvfv glGetTexEnvfv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetTexEnviv(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, Int32* @params); + internal unsafe static GetTexEnviv glGetTexEnviv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetTexEnvxv(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static GetTexEnvxv glGetTexEnvxv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetTexEnvxvOES(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static GetTexEnvxvOES glGetTexEnvxvOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetTexGenfvOES(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Single* @params); + internal unsafe static GetTexGenfvOES glGetTexGenfvOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetTexGenivOES(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Int32* @params); + internal unsafe static GetTexGenivOES glGetTexGenivOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetTexGenxvOES(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static GetTexGenxvOES glGetTexGenxvOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetTexParameterfv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Single* @params); + internal unsafe static GetTexParameterfv glGetTexParameterfv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetTexParameteriv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32* @params); + internal unsafe static GetTexParameteriv glGetTexParameteriv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetTexParameterxv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static GetTexParameterxv glGetTexParameterxv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetTexParameterxvOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static GetTexParameterxvOES glGetTexParameterxvOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Hint(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All mode); + internal static Hint glHint; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate bool IsBuffer(UInt32 buffer); + internal static IsBuffer glIsBuffer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate bool IsEnabled(OpenTK.Graphics.ES11.All cap); + internal static IsEnabled glIsEnabled; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate bool IsFenceNV(UInt32 fence); + internal static IsFenceNV glIsFenceNV; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate bool IsFramebufferOES(UInt32 framebuffer); + internal static IsFramebufferOES glIsFramebufferOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate bool IsRenderbufferOES(UInt32 renderbuffer); + internal static IsRenderbufferOES glIsRenderbufferOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate bool IsTexture(UInt32 texture); + internal static IsTexture glIsTexture; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Lightf(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, Single param); + internal static Lightf glLightf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void Lightfv(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, Single* @params); + internal unsafe static Lightfv glLightfv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void LightModelf(OpenTK.Graphics.ES11.All pname, Single param); + internal static LightModelf glLightModelf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void LightModelfv(OpenTK.Graphics.ES11.All pname, Single* @params); + internal unsafe static LightModelfv glLightModelfv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void LightModelx(OpenTK.Graphics.ES11.All pname, int param); + internal static LightModelx glLightModelx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void LightModelxOES(OpenTK.Graphics.ES11.All pname, int param); + internal static LightModelxOES glLightModelxOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void LightModelxv(OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static LightModelxv glLightModelxv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void LightModelxvOES(OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static LightModelxvOES glLightModelxvOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Lightx(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int param); + internal static Lightx glLightx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void LightxOES(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int param); + internal static LightxOES glLightxOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void Lightxv(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static Lightxv glLightxv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void LightxvOES(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static LightxvOES glLightxvOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void LineWidth(Single width); + internal static LineWidth glLineWidth; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void LineWidthx(int width); + internal static LineWidthx glLineWidthx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void LineWidthxOES(int width); + internal static LineWidthxOES glLineWidthxOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void LoadIdentity(); + internal static LoadIdentity glLoadIdentity; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void LoadMatrixf(Single* m); + internal unsafe static LoadMatrixf glLoadMatrixf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void LoadMatrixx(int* m); + internal unsafe static LoadMatrixx glLoadMatrixx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void LoadMatrixxOES(int* m); + internal unsafe static LoadMatrixxOES glLoadMatrixxOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void LoadPaletteFromModelViewMatrixOES(); + internal static LoadPaletteFromModelViewMatrixOES glLoadPaletteFromModelViewMatrixOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void LogicOp(OpenTK.Graphics.ES11.All opcode); + internal static LogicOp glLogicOp; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate IntPtr MapBufferOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All access); + internal unsafe static MapBufferOES glMapBufferOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Materialf(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, Single param); + internal static Materialf glMaterialf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void Materialfv(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, Single* @params); + internal unsafe static Materialfv glMaterialfv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Materialx(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int param); + internal static Materialx glMaterialx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void MaterialxOES(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int param); + internal static MaterialxOES glMaterialxOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void Materialxv(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static Materialxv glMaterialxv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void MaterialxvOES(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static MaterialxvOES glMaterialxvOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void MatrixIndexPointerOES(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer); + internal static MatrixIndexPointerOES glMatrixIndexPointerOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void MatrixMode(OpenTK.Graphics.ES11.All mode); + internal static MatrixMode glMatrixMode; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void MultiTexCoord4f(OpenTK.Graphics.ES11.All target, Single s, Single t, Single r, Single q); + internal static MultiTexCoord4f glMultiTexCoord4f; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void MultiTexCoord4x(OpenTK.Graphics.ES11.All target, int s, int t, int r, int q); + internal static MultiTexCoord4x glMultiTexCoord4x; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void MultiTexCoord4xOES(OpenTK.Graphics.ES11.All target, int s, int t, int r, int q); + internal static MultiTexCoord4xOES glMultiTexCoord4xOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void MultMatrixf(Single* m); + internal unsafe static MultMatrixf glMultMatrixf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void MultMatrixx(int* m); + internal unsafe static MultMatrixx glMultMatrixx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void MultMatrixxOES(int* m); + internal unsafe static MultMatrixxOES glMultMatrixxOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Normal3f(Single nx, Single ny, Single nz); + internal static Normal3f glNormal3f; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Normal3x(int nx, int ny, int nz); + internal static Normal3x glNormal3x; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Normal3xOES(int nx, int ny, int nz); + internal static Normal3xOES glNormal3xOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void NormalPointer(OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer); + internal static NormalPointer glNormalPointer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Orthof(Single left, Single right, Single bottom, Single top, Single zNear, Single zFar); + internal static Orthof glOrthof; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void OrthofOES(Single left, Single right, Single bottom, Single top, Single zNear, Single zFar); + internal static OrthofOES glOrthofOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Orthox(int left, int right, int bottom, int top, int zNear, int zFar); + internal static Orthox glOrthox; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void OrthoxOES(int left, int right, int bottom, int top, int zNear, int zFar); + internal static OrthoxOES glOrthoxOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PixelStorei(OpenTK.Graphics.ES11.All pname, Int32 param); + internal static PixelStorei glPixelStorei; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PointParameterf(OpenTK.Graphics.ES11.All pname, Single param); + internal static PointParameterf glPointParameterf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void PointParameterfv(OpenTK.Graphics.ES11.All pname, Single* @params); + internal unsafe static PointParameterfv glPointParameterfv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PointParameterx(OpenTK.Graphics.ES11.All pname, int param); + internal static PointParameterx glPointParameterx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PointParameterxOES(OpenTK.Graphics.ES11.All pname, int param); + internal static PointParameterxOES glPointParameterxOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void PointParameterxv(OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static PointParameterxv glPointParameterxv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void PointParameterxvOES(OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static PointParameterxvOES glPointParameterxvOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PointSize(Single size); + internal static PointSize glPointSize; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PointSizePointerOES(OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer); + internal static PointSizePointerOES glPointSizePointerOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PointSizex(int size); + internal static PointSizex glPointSizex; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PointSizexOES(int size); + internal static PointSizexOES glPointSizexOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PolygonOffset(Single factor, Single units); + internal static PolygonOffset glPolygonOffset; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PolygonOffsetx(int factor, int units); + internal static PolygonOffsetx glPolygonOffsetx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PolygonOffsetxOES(int factor, int units); + internal static PolygonOffsetxOES glPolygonOffsetxOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PopMatrix(); + internal static PopMatrix glPopMatrix; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PushMatrix(); + internal static PushMatrix glPushMatrix; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate UInt32 QueryMatrixxOES(int* mantissa, Int32* exponent); + internal unsafe static QueryMatrixxOES glQueryMatrixxOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES11.All format, OpenTK.Graphics.ES11.All type, IntPtr pixels); + internal static ReadPixels glReadPixels; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void RenderbufferStorageOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All internalformat, Int32 width, Int32 height); + internal static RenderbufferStorageOES glRenderbufferStorageOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Rotatef(Single angle, Single x, Single y, Single z); + internal static Rotatef glRotatef; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Rotatex(int angle, int x, int y, int z); + internal static Rotatex glRotatex; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void RotatexOES(int angle, int x, int y, int z); + internal static RotatexOES glRotatexOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void SampleCoverage(Single value, bool invert); + internal static SampleCoverage glSampleCoverage; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void SampleCoveragex(int value, bool invert); + internal static SampleCoveragex glSampleCoveragex; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void SampleCoveragexOES(int value, bool invert); + internal static SampleCoveragexOES glSampleCoveragexOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Scalef(Single x, Single y, Single z); + internal static Scalef glScalef; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Scalex(int x, int y, int z); + internal static Scalex glScalex; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ScalexOES(int x, int y, int z); + internal static ScalexOES glScalexOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Scissor(Int32 x, Int32 y, Int32 width, Int32 height); + internal static Scissor glScissor; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void SetFenceNV(UInt32 fence, OpenTK.Graphics.ES11.All condition); + internal static SetFenceNV glSetFenceNV; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ShadeModel(OpenTK.Graphics.ES11.All mode); + internal static ShadeModel glShadeModel; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void StencilFunc(OpenTK.Graphics.ES11.All func, Int32 @ref, UInt32 mask); + internal static StencilFunc glStencilFunc; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void StencilMask(UInt32 mask); + internal static StencilMask glStencilMask; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void StencilOp(OpenTK.Graphics.ES11.All fail, OpenTK.Graphics.ES11.All zfail, OpenTK.Graphics.ES11.All zpass); + internal static StencilOp glStencilOp; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate bool TestFenceNV(UInt32 fence); + internal static TestFenceNV glTestFenceNV; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexCoordPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer); + internal static TexCoordPointer glTexCoordPointer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexEnvf(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Single param); + internal static TexEnvf glTexEnvf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void TexEnvfv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Single* @params); + internal unsafe static TexEnvfv glTexEnvfv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexEnvi(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32 param); + internal static TexEnvi glTexEnvi; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void TexEnviv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32* @params); + internal unsafe static TexEnviv glTexEnviv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexEnvx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int param); + internal static TexEnvx glTexEnvx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexEnvxOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int param); + internal static TexEnvxOES glTexEnvxOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void TexEnvxv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static TexEnvxv glTexEnvxv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void TexEnvxvOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static TexEnvxvOES glTexEnvxvOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexGenfOES(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Single param); + internal static TexGenfOES glTexGenfOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void TexGenfvOES(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Single* @params); + internal unsafe static TexGenfvOES glTexGenfvOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexGeniOES(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Int32 param); + internal static TexGeniOES glTexGeniOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void TexGenivOES(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Int32* @params); + internal unsafe static TexGenivOES glTexGenivOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexGenxOES(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, int param); + internal static TexGenxOES glTexGenxOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void TexGenxvOES(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static TexGenxvOES glTexGenxvOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES11.All format, OpenTK.Graphics.ES11.All type, IntPtr pixels); + internal static TexImage2D glTexImage2D; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexParameterf(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Single param); + internal static TexParameterf glTexParameterf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void TexParameterfv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Single* @params); + internal unsafe static TexParameterfv glTexParameterfv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexParameteri(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32 param); + internal static TexParameteri glTexParameteri; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void TexParameteriv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32* @params); + internal unsafe static TexParameteriv glTexParameteriv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexParameterx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int param); + internal static TexParameterx glTexParameterx; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexParameterxOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int param); + internal static TexParameterxOES glTexParameterxOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void TexParameterxv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static TexParameterxv glTexParameterxv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void TexParameterxvOES(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int* @params); + internal unsafe static TexParameterxvOES glTexParameterxvOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexSubImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES11.All format, OpenTK.Graphics.ES11.All type, IntPtr pixels); + internal static TexSubImage2D glTexSubImage2D; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Translatef(Single x, Single y, Single z); + internal static Translatef glTranslatef; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Translatex(int x, int y, int z); + internal static Translatex glTranslatex; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TranslatexOES(int x, int y, int z); + internal static TranslatexOES glTranslatexOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate bool UnmapBufferOES(OpenTK.Graphics.ES11.All target); + internal static UnmapBufferOES glUnmapBufferOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void VertexPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer); + internal static VertexPointer glVertexPointer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Viewport(Int32 x, Int32 y, Int32 width, Int32 height); + internal static Viewport glViewport; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void WeightPointerOES(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer); + internal static WeightPointerOES glWeightPointerOES; + } + } +} diff --git a/Source/OpenTK/Graphics/ES11/ES.cs b/Source/OpenTK/Graphics/ES11/ES.cs index 85da1a86..bcf8abf5 100644 --- a/Source/OpenTK/Graphics/ES11/ES.cs +++ b/Source/OpenTK/Graphics/ES11/ES.cs @@ -1,9386 +1,12502 @@ -#region License -// -// The Open Toolkit Library License -// -// Copyright (c) 2006 - 2009 the Open Toolkit library. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -// the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -// OTHER DEALINGS IN THE SOFTWARE. -// -#endregion - -namespace OpenTK.Graphics.ES11 -{ - using System; - using System.Runtime.InteropServices; - #pragma warning disable 3019 - #pragma warning disable 1591 - #pragma warning disable 1572 - #pragma warning disable 1573 - - static partial class ES - { - - - /// - /// Select active texture unit - /// - /// - /// - /// Specifies which texture unit to make active. The number of texture units is implementation dependent, but must be at least two. texture must be one of GL_TEXTURE, where i ranges from 0 to the larger of (GL_MAX_TEXTURE_COORDS - 1) and (GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS - 1). The initial value is GL_TEXTURE0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glActiveTexture")] - public static - void ActiveTexture([In, Out] OpenTK.Graphics.ES11.All texture) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glActiveTexture((OpenTK.Graphics.ES11.All)texture); - #if DEBUG - } - #endif - } - - - /// - /// Specify the alpha test function - /// - /// - /// - /// Specifies the alpha comparison function. Symbolic constants GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL, GL_GREATER, GL_NOTEQUAL, GL_GEQUAL, and GL_ALWAYS are accepted. The initial value is GL_ALWAYS. - /// - /// - /// - /// - /// Specifies the reference value that incoming alpha values are compared to. This value is clamped to the range [0,1], where 0 represents the lowest possible alpha value and 1 the highest possible value. The initial reference value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glAlphaFunc")] - public static - void AlphaFunc([In, Out] OpenTK.Graphics.ES11.All func, [In, Out] Single @ref) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glAlphaFunc((OpenTK.Graphics.ES11.All)func, (Single)@ref); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glAlphaFuncx")] - public static - void AlphaFuncx([In, Out] OpenTK.Graphics.ES11.All func, [In, Out] int @ref) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glAlphaFuncx((OpenTK.Graphics.ES11.All)func, (int)@ref); - #if DEBUG - } - #endif - } - - - /// - /// Bind a named buffer object - /// - /// - /// - /// Specifies the target to which the buffer object is bound. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the name of a buffer object. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glBindBuffer")] - public static - void BindBuffer([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 buffer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBindBuffer((OpenTK.Graphics.ES11.All)target, (UInt32)buffer); - #if DEBUG - } - #endif - } - - - /// - /// Bind a named buffer object - /// - /// - /// - /// Specifies the target to which the buffer object is bound. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the name of a buffer object. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glBindBuffer")] - public static - void BindBuffer([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] UInt32 buffer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBindBuffer((OpenTK.Graphics.ES11.All)target, (UInt32)buffer); - #if DEBUG - } - #endif - } - - - /// - /// Bind a named texture to a texturing target - /// - /// - /// - /// Specifies the target to which the texture is bound. Must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the name of a texture. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glBindTexture")] - public static - void BindTexture([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] UInt32 texture) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBindTexture((OpenTK.Graphics.ES11.All)target, (UInt32)texture); - #if DEBUG - } - #endif - } - - - /// - /// Bind a named texture to a texturing target - /// - /// - /// - /// Specifies the target to which the texture is bound. Must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the name of a texture. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glBindTexture")] - public static - void BindTexture([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 texture) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBindTexture((OpenTK.Graphics.ES11.All)target, (UInt32)texture); - #if DEBUG - } - #endif - } - - - /// - /// Specify pixel arithmetic - /// - /// - /// - /// Specifies how the red, green, blue, and alpha source blending factors are computed. The following symbolic constants are accepted: GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA, GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, GL_ONE_MINUS_CONSTANT_ALPHA, and GL_SRC_ALPHA_SATURATE. The initial value is GL_ONE. - /// - /// - /// - /// - /// Specifies how the red, green, blue, and alpha destination blending factors are computed. The following symbolic constants are accepted: GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA. GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, and GL_ONE_MINUS_CONSTANT_ALPHA. The initial value is GL_ZERO. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glBlendFunc")] - public static - void BlendFunc([In, Out] OpenTK.Graphics.ES11.All sfactor, [In, Out] OpenTK.Graphics.ES11.All dfactor) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBlendFunc((OpenTK.Graphics.ES11.All)sfactor, (OpenTK.Graphics.ES11.All)dfactor); - #if DEBUG - } - #endif - } - - - /// - /// Creates and initializes a buffer object's data store - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the size in bytes of the buffer object's new data store. - /// - /// - /// - /// - /// Specifies a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied. - /// - /// - /// - /// - /// Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glBufferData")] - public static - void BufferData([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] IntPtr size, [In, Out] T2[] data, [In, Out] OpenTK.Graphics.ES11.All usage) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferData((OpenTK.Graphics.ES11.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES11.All)usage); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Creates and initializes a buffer object's data store - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the size in bytes of the buffer object's new data store. - /// - /// - /// - /// - /// Specifies a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied. - /// - /// - /// - /// - /// Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glBufferData")] - public static - void BufferData([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] IntPtr size, [In, Out] T2[,,] data, [In, Out] OpenTK.Graphics.ES11.All usage) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferData((OpenTK.Graphics.ES11.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES11.All)usage); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Creates and initializes a buffer object's data store - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the size in bytes of the buffer object's new data store. - /// - /// - /// - /// - /// Specifies a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied. - /// - /// - /// - /// - /// Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glBufferData")] - public static - void BufferData([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] IntPtr size, [In, Out] T2[,] data, [In, Out] OpenTK.Graphics.ES11.All usage) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferData((OpenTK.Graphics.ES11.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES11.All)usage); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Creates and initializes a buffer object's data store - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the size in bytes of the buffer object's new data store. - /// - /// - /// - /// - /// Specifies a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied. - /// - /// - /// - /// - /// Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glBufferData")] - public static - void BufferData([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] IntPtr size, [In, Out] ref T2 data, [In, Out] OpenTK.Graphics.ES11.All usage) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferData((OpenTK.Graphics.ES11.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES11.All)usage); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Creates and initializes a buffer object's data store - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the size in bytes of the buffer object's new data store. - /// - /// - /// - /// - /// Specifies a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied. - /// - /// - /// - /// - /// Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glBufferData")] - public static - void BufferData([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] IntPtr size, [In, Out] IntPtr data, [In, Out] OpenTK.Graphics.ES11.All usage) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBufferData((OpenTK.Graphics.ES11.All)target, (IntPtr)size, (IntPtr)data, (OpenTK.Graphics.ES11.All)usage); - #if DEBUG - } - #endif - } - - - /// - /// Updates a subset of a buffer object's data store - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. - /// - /// - /// - /// - /// Specifies the size in bytes of the data store region being replaced. - /// - /// - /// - /// - /// Specifies a pointer to the new data that will be copied into the data store. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glBufferSubData")] - public static - void BufferSubData([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] IntPtr offset, [In, Out] IntPtr size, [In, Out] T3[] data) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferSubData((OpenTK.Graphics.ES11.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Updates a subset of a buffer object's data store - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. - /// - /// - /// - /// - /// Specifies the size in bytes of the data store region being replaced. - /// - /// - /// - /// - /// Specifies a pointer to the new data that will be copied into the data store. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glBufferSubData")] - public static - void BufferSubData([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] IntPtr offset, [In, Out] IntPtr size, [In, Out] T3[,] data) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferSubData((OpenTK.Graphics.ES11.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Updates a subset of a buffer object's data store - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. - /// - /// - /// - /// - /// Specifies the size in bytes of the data store region being replaced. - /// - /// - /// - /// - /// Specifies a pointer to the new data that will be copied into the data store. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glBufferSubData")] - public static - void BufferSubData([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] IntPtr offset, [In, Out] IntPtr size, [In, Out] T3[,,] data) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferSubData((OpenTK.Graphics.ES11.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Updates a subset of a buffer object's data store - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. - /// - /// - /// - /// - /// Specifies the size in bytes of the data store region being replaced. - /// - /// - /// - /// - /// Specifies a pointer to the new data that will be copied into the data store. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glBufferSubData")] - public static - void BufferSubData([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] IntPtr offset, [In, Out] IntPtr size, [In, Out] ref T3 data) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferSubData((OpenTK.Graphics.ES11.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Updates a subset of a buffer object's data store - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. - /// - /// - /// - /// - /// Specifies the size in bytes of the data store region being replaced. - /// - /// - /// - /// - /// Specifies a pointer to the new data that will be copied into the data store. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glBufferSubData")] - public static - void BufferSubData([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] IntPtr offset, [In, Out] IntPtr size, [In, Out] IntPtr data) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBufferSubData((OpenTK.Graphics.ES11.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data); - #if DEBUG - } - #endif - } - - - /// - /// Clear buffers to preset values - /// - /// - /// - /// Bitwise OR of masks that indicate the buffers to be cleared. The four masks are GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_ACCUM_BUFFER_BIT, and GL_STENCIL_BUFFER_BIT. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glClear")] - public static - void Clear([In, Out] UInt32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClear((UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Clear buffers to preset values - /// - /// - /// - /// Bitwise OR of masks that indicate the buffers to be cleared. The four masks are GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_ACCUM_BUFFER_BIT, and GL_STENCIL_BUFFER_BIT. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glClear")] - public static - void Clear([In, Out] Int32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClear((UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Specify clear values for the color buffers - /// - /// - /// - /// Specify the red, green, blue, and alpha values used when the color buffers are cleared. The initial values are all 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glClearColor")] - public static - void ClearColor([In, Out] Single red, [In, Out] Single green, [In, Out] Single blue, [In, Out] Single alpha) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClearColor((Single)red, (Single)green, (Single)blue, (Single)alpha); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glClearColorx")] - public static - void ClearColorx([In, Out] int red, [In, Out] int green, [In, Out] int blue, [In, Out] int alpha) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClearColorx((int)red, (int)green, (int)blue, (int)alpha); - #if DEBUG - } - #endif - } - - - /// - /// Specify the clear value for the depth buffer - /// - /// - /// - /// Specifies the depth value used when the depth buffer is cleared. The initial value is 1. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glClearDepthf")] - public static - void ClearDepth([In, Out] Single depth) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClearDepthf((Single)depth); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glClearDepthx")] - public static - void ClearDepthx([In, Out] int depth) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClearDepthx((int)depth); - #if DEBUG - } - #endif - } - - - /// - /// Specify the clear value for the stencil buffer - /// - /// - /// - /// Specifies the index used when the stencil buffer is cleared. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glClearStencil")] - public static - void ClearStencil([In, Out] Int32 s) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClearStencil((Int32)s); - #if DEBUG - } - #endif - } - - - /// - /// Select active texture unit - /// - /// - /// - /// Specifies which texture unit to make active. The number of texture units is implementation dependent, but must be at least two. texture must be one of GL_TEXTURE, where i ranges from 0 to the value of GL_MAX_TEXTURE_COORDS - 1, which is an implementation-dependent value. The initial value is GL_TEXTURE0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glClientActiveTexture")] - public static - void ClientActiveTexture([In, Out] OpenTK.Graphics.ES11.All texture) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClientActiveTexture((OpenTK.Graphics.ES11.All)texture); - #if DEBUG - } - #endif - } - - - /// - /// Specify a plane against which all geometry is clipped - /// - /// - /// - /// Specifies which clipping plane is being positioned. Symbolic names of the form GL_CLIP_PLANEi, where i is an integer between 0 and GL_MAX_CLIP_PLANES - 1, are accepted. - /// - /// - /// - /// - /// Specifies the address of an array of four double-precision floating-point values. These values are interpreted as a plane equation. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glClipPlanef")] - public static - void ClipPlane([In, Out] OpenTK.Graphics.ES11.All plane, [In, Out] Single[] equation) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* equation_ptr = equation) - { - Delegates.glClipPlanef((OpenTK.Graphics.ES11.All)plane, (Single*)equation_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a plane against which all geometry is clipped - /// - /// - /// - /// Specifies which clipping plane is being positioned. Symbolic names of the form GL_CLIP_PLANEi, where i is an integer between 0 and GL_MAX_CLIP_PLANES - 1, are accepted. - /// - /// - /// - /// - /// Specifies the address of an array of four double-precision floating-point values. These values are interpreted as a plane equation. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glClipPlanef")] - public static - unsafe void ClipPlane([In, Out] OpenTK.Graphics.ES11.All plane, [In, Out] Single* equation) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClipPlanef((OpenTK.Graphics.ES11.All)plane, (Single*)equation); - #if DEBUG - } - #endif - } - - - /// - /// Specify a plane against which all geometry is clipped - /// - /// - /// - /// Specifies which clipping plane is being positioned. Symbolic names of the form GL_CLIP_PLANEi, where i is an integer between 0 and GL_MAX_CLIP_PLANES - 1, are accepted. - /// - /// - /// - /// - /// Specifies the address of an array of four double-precision floating-point values. These values are interpreted as a plane equation. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glClipPlanef")] - public static - void ClipPlane([In, Out] OpenTK.Graphics.ES11.All plane, [In, Out] ref Single equation) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* equation_ptr = &equation) - { - Delegates.glClipPlanef((OpenTK.Graphics.ES11.All)plane, (Single*)equation_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glClipPlanex")] - public static - void ClipPlanex([In, Out] OpenTK.Graphics.ES11.All plane, [In, Out] ref int equation) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* equation_ptr = &equation) - { - Delegates.glClipPlanex((OpenTK.Graphics.ES11.All)plane, (int*)equation_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glClipPlanex")] - public static - void ClipPlanex([In, Out] OpenTK.Graphics.ES11.All plane, [In, Out] int[] equation) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* equation_ptr = equation) - { - Delegates.glClipPlanex((OpenTK.Graphics.ES11.All)plane, (int*)equation_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glClipPlanex")] - public static - unsafe void ClipPlanex([In, Out] OpenTK.Graphics.ES11.All plane, [In, Out] int* equation) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClipPlanex((OpenTK.Graphics.ES11.All)plane, (int*)equation); - #if DEBUG - } - #endif - } - - - /// - /// Set the current color - /// - /// - /// - /// Specify new red, green, and blue values for the current color. - /// - /// - /// - /// - /// Specifies a new alpha value for the current color. Included only in the four-argument glColor4 commands. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glColor4f")] - public static - void Color4([In, Out] Single red, [In, Out] Single green, [In, Out] Single blue, [In, Out] Single alpha) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glColor4f((Single)red, (Single)green, (Single)blue, (Single)alpha); - #if DEBUG - } - #endif - } - - - /// - /// Set the current color - /// - /// - /// - /// Specify new red, green, and blue values for the current color. - /// - /// - /// - /// - /// Specifies a new alpha value for the current color. Included only in the four-argument glColor4 commands. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glColor4ub")] - public static - void Color4([In, Out] Byte red, [In, Out] Byte green, [In, Out] Byte blue, [In, Out] Byte alpha) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glColor4ub((Byte)red, (Byte)green, (Byte)blue, (Byte)alpha); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glColor4x")] - public static - void Color4x([In, Out] int red, [In, Out] int green, [In, Out] int blue, [In, Out] int alpha) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glColor4x((int)red, (int)green, (int)blue, (int)alpha); - #if DEBUG - } - #endif - } - - - /// - /// Enable and disable writing of frame buffer color components - /// - /// - /// - /// Specify whether red, green, blue, and alpha can or cannot be written into the frame buffer. The initial values are all GL_TRUE, indicating that the color components can be written. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glColorMask")] - public static - void ColorMask([In, Out] bool red, [In, Out] bool green, [In, Out] bool blue, [In, Out] bool alpha) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glColorMask((bool)red, (bool)green, (bool)blue, (bool)alpha); - #if DEBUG - } - #endif - } - - - /// - /// Define an array of colors - /// - /// - /// - /// Specifies the number of components per color. Must be 3 or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first component of the first color element in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glColorPointer")] - public static - void ColorPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] T3[,,] pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of colors - /// - /// - /// - /// Specifies the number of components per color. Must be 3 or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first component of the first color element in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glColorPointer")] - public static - void ColorPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] ref T3 pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of colors - /// - /// - /// - /// Specifies the number of components per color. Must be 3 or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first component of the first color element in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glColorPointer")] - public static - void ColorPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer); - #if DEBUG - } - #endif - } - - - /// - /// Define an array of colors - /// - /// - /// - /// Specifies the number of components per color. Must be 3 or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first component of the first color element in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glColorPointer")] - public static - void ColorPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] T3[,] pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of colors - /// - /// - /// - /// Specifies the number of components per color. Must be 3 or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first component of the first color element in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glColorPointer")] - public static - void ColorPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] T3[] pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glCompressedTexImage2D")] - public static - void CompressedTexImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES11.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] Int32 imageSize, [In, Out] T7[,,] data) - where T7 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (OpenTK.Graphics.ES11.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glCompressedTexImage2D")] - public static - void CompressedTexImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES11.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] Int32 imageSize, [In, Out] T7[] data) - where T7 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (OpenTK.Graphics.ES11.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glCompressedTexImage2D")] - public static - void CompressedTexImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES11.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] Int32 imageSize, [In, Out] T7[,] data) - where T7 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (OpenTK.Graphics.ES11.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glCompressedTexImage2D")] - public static - void CompressedTexImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES11.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] Int32 imageSize, [In, Out] ref T7 data) - where T7 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (OpenTK.Graphics.ES11.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glCompressedTexImage2D")] - public static - void CompressedTexImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES11.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] Int32 imageSize, [In, Out] IntPtr data) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (OpenTK.Graphics.ES11.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data); - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glCompressedTexSubImage2D")] - public static - void CompressedTexSubImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] Int32 imageSize, [In, Out] T8[,,] data) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glCompressedTexSubImage2D")] - public static - void CompressedTexSubImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] Int32 imageSize, [In, Out] ref T8 data) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glCompressedTexSubImage2D")] - public static - void CompressedTexSubImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] Int32 imageSize, [In, Out] IntPtr data) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (Int32)imageSize, (IntPtr)data); - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glCompressedTexSubImage2D")] - public static - void CompressedTexSubImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] Int32 imageSize, [In, Out] T8[,] data) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glCompressedTexSubImage2D")] - public static - void CompressedTexSubImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] Int32 imageSize, [In, Out] T8[] data) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Copy pixels into a 2D texture image - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the internal format of the texture. Must be one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_RGB, GL_R3_G3_B2, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. - /// - /// - /// - /// - /// Specify the window coordinates of the lower left corner of the rectangular region of pixels to be copied. - /// - /// - /// - /// - /// Specifies the width of the texture image. Must be 0 or 2 sup n + 2 ( border ) for some integer . - /// - /// - /// - /// - /// Specifies the height of the texture image. Must be 0 or 2 sup m + 2 ( border ) for some integer . - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glCopyTexImage2D")] - public static - void CopyTexImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES11.All internalformat, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glCopyTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (OpenTK.Graphics.ES11.All)internalformat, (Int32)x, (Int32)y, (Int32)width, (Int32)height, (Int32)border); - #if DEBUG - } - #endif - } - - - /// - /// Copy a two-dimensional texture subimage - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specify the window coordinates of the lower left corner of the rectangular region of pixels to be copied. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glCopyTexSubImage2D")] - public static - void CopyTexSubImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glCopyTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)x, (Int32)y, (Int32)width, (Int32)height); - #if DEBUG - } - #endif - } - - - /// - /// Specify whether front- or back-facing facets can be culled - /// - /// - /// - /// Specifies whether front- or back-facing facets are candidates for culling. Symbolic constants GL_FRONT, GL_BACK, and GL_FRONT_AND_BACK are accepted. The initial value is GL_BACK. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glCullFace")] - public static - void CullFace([In, Out] OpenTK.Graphics.ES11.All mode) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glCullFace((OpenTK.Graphics.ES11.All)mode); - #if DEBUG - } - #endif - } - - - /// - /// Delete named buffer objects - /// - /// - /// - /// Specifies the number of buffer objects to be deleted. - /// - /// - /// - /// - /// Specifies an array of buffer objects to be deleted. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDeleteBuffers")] - public static - void DeleteBuffers([In, Out] Int32 n, [In, Out] Int32[] buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* buffers_ptr = buffers) - { - Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Delete named buffer objects - /// - /// - /// - /// Specifies the number of buffer objects to be deleted. - /// - /// - /// - /// - /// Specifies an array of buffer objects to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDeleteBuffers")] - public static - void DeleteBuffers([In, Out] Int32 n, [In, Out] UInt32[] buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* buffers_ptr = buffers) - { - Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Delete named buffer objects - /// - /// - /// - /// Specifies the number of buffer objects to be deleted. - /// - /// - /// - /// - /// Specifies an array of buffer objects to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDeleteBuffers")] - public static - void DeleteBuffers([In, Out] Int32 n, [In, Out] ref UInt32 buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* buffers_ptr = &buffers) - { - Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Delete named buffer objects - /// - /// - /// - /// Specifies the number of buffer objects to be deleted. - /// - /// - /// - /// - /// Specifies an array of buffer objects to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDeleteBuffers")] - public static - unsafe void DeleteBuffers([In, Out] Int32 n, [In, Out] Int32* buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers); - #if DEBUG - } - #endif - } - - - /// - /// Delete named buffer objects - /// - /// - /// - /// Specifies the number of buffer objects to be deleted. - /// - /// - /// - /// - /// Specifies an array of buffer objects to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDeleteBuffers")] - public static - unsafe void DeleteBuffers([In, Out] Int32 n, [In, Out] UInt32* buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers); - #if DEBUG - } - #endif - } - - - /// - /// Delete named buffer objects - /// - /// - /// - /// Specifies the number of buffer objects to be deleted. - /// - /// - /// - /// - /// Specifies an array of buffer objects to be deleted. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDeleteBuffers")] - public static - void DeleteBuffers([In, Out] Int32 n, [In, Out] ref Int32 buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* buffers_ptr = &buffers) - { - Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Delete named textures - /// - /// - /// - /// Specifies the number of textures to be deleted. - /// - /// - /// - /// - /// Specifies an array of textures to be deleted. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDeleteTextures")] - public static - void DeleteTextures([In, Out] Int32 n, [In, Out] ref Int32 textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* textures_ptr = &textures) - { - Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Delete named textures - /// - /// - /// - /// Specifies the number of textures to be deleted. - /// - /// - /// - /// - /// Specifies an array of textures to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDeleteTextures")] - public static - unsafe void DeleteTextures([In, Out] Int32 n, [In, Out] UInt32* textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDeleteTextures((Int32)n, (UInt32*)textures); - #if DEBUG - } - #endif - } - - - /// - /// Delete named textures - /// - /// - /// - /// Specifies the number of textures to be deleted. - /// - /// - /// - /// - /// Specifies an array of textures to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDeleteTextures")] - public static - unsafe void DeleteTextures([In, Out] Int32 n, [In, Out] Int32* textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDeleteTextures((Int32)n, (UInt32*)textures); - #if DEBUG - } - #endif - } - - - /// - /// Delete named textures - /// - /// - /// - /// Specifies the number of textures to be deleted. - /// - /// - /// - /// - /// Specifies an array of textures to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDeleteTextures")] - public static - void DeleteTextures([In, Out] Int32 n, [In, Out] UInt32[] textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* textures_ptr = textures) - { - Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Delete named textures - /// - /// - /// - /// Specifies the number of textures to be deleted. - /// - /// - /// - /// - /// Specifies an array of textures to be deleted. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDeleteTextures")] - public static - void DeleteTextures([In, Out] Int32 n, [In, Out] Int32[] textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* textures_ptr = textures) - { - Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Delete named textures - /// - /// - /// - /// Specifies the number of textures to be deleted. - /// - /// - /// - /// - /// Specifies an array of textures to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDeleteTextures")] - public static - void DeleteTextures([In, Out] Int32 n, [In, Out] ref UInt32 textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* textures_ptr = &textures) - { - Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify the value used for depth buffer comparisons - /// - /// - /// - /// Specifies the depth comparison function. Symbolic constants GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL, GL_GREATER, GL_NOTEQUAL, GL_GEQUAL, and GL_ALWAYS are accepted. The initial value is GL_LESS. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDepthFunc")] - public static - void DepthFunc([In, Out] OpenTK.Graphics.ES11.All func) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDepthFunc((OpenTK.Graphics.ES11.All)func); - #if DEBUG - } - #endif - } - - - /// - /// Enable or disable writing into the depth buffer - /// - /// - /// - /// Specifies whether the depth buffer is enabled for writing. If flag is GL_FALSE, depth buffer writing is disabled. Otherwise, it is enabled. Initially, depth buffer writing is enabled. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDepthMask")] - public static - void DepthMask([In, Out] bool flag) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDepthMask((bool)flag); - #if DEBUG - } - #endif - } - - - /// - /// Specify mapping of depth values from normalized device coordinates to window coordinates - /// - /// - /// - /// Specifies the mapping of the near clipping plane to window coordinates. The initial value is 0. - /// - /// - /// - /// - /// Specifies the mapping of the far clipping plane to window coordinates. The initial value is 1. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDepthRangef")] - public static - void DepthRange([In, Out] Single zNear, [In, Out] Single zFar) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDepthRangef((Single)zNear, (Single)zFar); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDepthRangex")] - public static - void DepthRangex([In, Out] int zNear, [In, Out] int zFar) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDepthRangex((int)zNear, (int)zFar); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDisable")] - public static - void Disable([In, Out] OpenTK.Graphics.ES11.All cap) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDisable((OpenTK.Graphics.ES11.All)cap); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDisableClientState")] - public static - void DisableClientState([In, Out] OpenTK.Graphics.ES11.All array) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDisableClientState((OpenTK.Graphics.ES11.All)array); - #if DEBUG - } - #endif - } - - - /// - /// Render primitives from array data - /// - /// - /// - /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. - /// - /// - /// - /// - /// Specifies the starting index in the enabled arrays. - /// - /// - /// - /// - /// Specifies the number of indices to be rendered. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDrawArrays")] - public static - void DrawArrays([In, Out] OpenTK.Graphics.ES11.All mode, [In, Out] Int32 first, [In, Out] Int32 count) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDrawArrays((OpenTK.Graphics.ES11.All)mode, (Int32)first, (Int32)count); - #if DEBUG - } - #endif - } - - - /// - /// Render primitives from array data - /// - /// - /// - /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. - /// - /// - /// - /// - /// Specifies the number of elements to be rendered. - /// - /// - /// - /// - /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. - /// - /// - /// - /// - /// Specifies a pointer to the location where the indices are stored. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDrawElements")] - public static - void DrawElements([In, Out] OpenTK.Graphics.ES11.All mode, [In, Out] Int32 count, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] T3[,] indices) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElements((OpenTK.Graphics.ES11.All)mode, (Int32)count, (OpenTK.Graphics.ES11.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Render primitives from array data - /// - /// - /// - /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. - /// - /// - /// - /// - /// Specifies the number of elements to be rendered. - /// - /// - /// - /// - /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. - /// - /// - /// - /// - /// Specifies a pointer to the location where the indices are stored. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDrawElements")] - public static - void DrawElements([In, Out] OpenTK.Graphics.ES11.All mode, [In, Out] Int32 count, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] T3[,,] indices) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElements((OpenTK.Graphics.ES11.All)mode, (Int32)count, (OpenTK.Graphics.ES11.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Render primitives from array data - /// - /// - /// - /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. - /// - /// - /// - /// - /// Specifies the number of elements to be rendered. - /// - /// - /// - /// - /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. - /// - /// - /// - /// - /// Specifies a pointer to the location where the indices are stored. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDrawElements")] - public static - void DrawElements([In, Out] OpenTK.Graphics.ES11.All mode, [In, Out] Int32 count, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] IntPtr indices) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDrawElements((OpenTK.Graphics.ES11.All)mode, (Int32)count, (OpenTK.Graphics.ES11.All)type, (IntPtr)indices); - #if DEBUG - } - #endif - } - - - /// - /// Render primitives from array data - /// - /// - /// - /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. - /// - /// - /// - /// - /// Specifies the number of elements to be rendered. - /// - /// - /// - /// - /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. - /// - /// - /// - /// - /// Specifies a pointer to the location where the indices are stored. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDrawElements")] - public static - void DrawElements([In, Out] OpenTK.Graphics.ES11.All mode, [In, Out] Int32 count, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] ref T3 indices) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElements((OpenTK.Graphics.ES11.All)mode, (Int32)count, (OpenTK.Graphics.ES11.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Render primitives from array data - /// - /// - /// - /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. - /// - /// - /// - /// - /// Specifies the number of elements to be rendered. - /// - /// - /// - /// - /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. - /// - /// - /// - /// - /// Specifies a pointer to the location where the indices are stored. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glDrawElements")] - public static - void DrawElements([In, Out] OpenTK.Graphics.ES11.All mode, [In, Out] Int32 count, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] T3[] indices) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElements((OpenTK.Graphics.ES11.All)mode, (Int32)count, (OpenTK.Graphics.ES11.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Enable or disable server-side GL capabilities - /// - /// - /// - /// Specifies a symbolic constant indicating a GL capability. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glEnable")] - public static - void Enable([In, Out] OpenTK.Graphics.ES11.All cap) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glEnable((OpenTK.Graphics.ES11.All)cap); - #if DEBUG - } - #endif - } - - - /// - /// Enable or disable client-side capability - /// - /// - /// - /// Specifies the capability to enable. Symbolic constants GL_COLOR_ARRAY, GL_EDGE_FLAG_ARRAY, GL_FOG_COORD_ARRAY, GL_INDEX_ARRAY, GL_NORMAL_ARRAY, GL_SECONDARY_COLOR_ARRAY, GL_TEXTURE_COORD_ARRAY, and GL_VERTEX_ARRAY are accepted. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glEnableClientState")] - public static - void EnableClientState([In, Out] OpenTK.Graphics.ES11.All array) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glEnableClientState((OpenTK.Graphics.ES11.All)array); - #if DEBUG - } - #endif - } - - - /// - /// Block until all GL execution is complete - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glFinish")] - public static - void Finish() - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFinish(); - #if DEBUG - } - #endif - } - - - /// - /// Force execution of GL commands in finite time - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glFlush")] - public static - void Flush() - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFlush(); - #if DEBUG - } - #endif - } - - - /// - /// Specify fog parameters - /// - /// - /// - /// Specifies a single-valued fog parameter. GL_FOG_MODE, GL_FOG_DENSITY, GL_FOG_START, GL_FOG_END, GL_FOG_INDEX, and GL_FOG_COORD_SRC are accepted. - /// - /// - /// - /// - /// Specifies the value that pname will be set to. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glFogf")] - public static - void Fog([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFogf((OpenTK.Graphics.ES11.All)pname, (Single)param); - #if DEBUG - } - #endif - } - - - /// - /// Specify fog parameters - /// - /// - /// - /// Specifies a single-valued fog parameter. GL_FOG_MODE, GL_FOG_DENSITY, GL_FOG_START, GL_FOG_END, GL_FOG_INDEX, and GL_FOG_COORD_SRC are accepted. - /// - /// - /// - /// - /// Specifies the value that pname will be set to. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glFogfv")] - public static - unsafe void Fog([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFogfv((OpenTK.Graphics.ES11.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Specify fog parameters - /// - /// - /// - /// Specifies a single-valued fog parameter. GL_FOG_MODE, GL_FOG_DENSITY, GL_FOG_START, GL_FOG_END, GL_FOG_INDEX, and GL_FOG_COORD_SRC are accepted. - /// - /// - /// - /// - /// Specifies the value that pname will be set to. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glFogfv")] - public static - void Fog([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glFogfv((OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glFogx")] - public static - void Fogx([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFogx((OpenTK.Graphics.ES11.All)pname, (int)param); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glFogxv")] - public static - unsafe void Fogx([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFogxv((OpenTK.Graphics.ES11.All)pname, (int*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glFogxv")] - public static - void Fogx([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = @params) - { - Delegates.glFogxv((OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Define front- and back-facing polygons - /// - /// - /// - /// Specifies the orientation of front-facing polygons. GL_CW and GL_CCW are accepted. The initial value is GL_CCW. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glFrontFace")] - public static - void FrontFace([In, Out] OpenTK.Graphics.ES11.All mode) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFrontFace((OpenTK.Graphics.ES11.All)mode); - #if DEBUG - } - #endif - } - - - /// - /// Multiply the current matrix by a perspective matrix - /// - /// - /// - /// Specify the coordinates for the left and right vertical clipping planes. - /// - /// - /// - /// - /// Specify the coordinates for the bottom and top horizontal clipping planes. - /// - /// - /// - /// - /// Specify the distances to the near and far depth clipping planes. Both distances must be positive. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glFrustumf")] - public static - void Frustum([In, Out] Single left, [In, Out] Single right, [In, Out] Single bottom, [In, Out] Single top, [In, Out] Single zNear, [In, Out] Single zFar) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFrustumf((Single)left, (Single)right, (Single)bottom, (Single)top, (Single)zNear, (Single)zFar); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glFrustumx")] - public static - void Frustumx([In, Out] int left, [In, Out] int right, [In, Out] int bottom, [In, Out] int top, [In, Out] int zNear, [In, Out] int zFar) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFrustumx((int)left, (int)right, (int)bottom, (int)top, (int)zNear, (int)zFar); - #if DEBUG - } - #endif - } - - - /// - /// Generate buffer object names - /// - /// - /// - /// Specifies the number of buffer object names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated buffer object names are stored. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGenBuffers")] - public static - unsafe void GenBuffers([In, Out] Int32 n, [In, Out] UInt32* buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGenBuffers((Int32)n, (UInt32*)buffers); - #if DEBUG - } - #endif - } - - - /// - /// Generate buffer object names - /// - /// - /// - /// Specifies the number of buffer object names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated buffer object names are stored. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGenBuffers")] - public static - unsafe void GenBuffers([In, Out] Int32 n, [In, Out] Int32* buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGenBuffers((Int32)n, (UInt32*)buffers); - #if DEBUG - } - #endif - } - - - /// - /// Generate buffer object names - /// - /// - /// - /// Specifies the number of buffer object names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated buffer object names are stored. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGenBuffers")] - public static - void GenBuffers([In, Out] Int32 n, [In, Out] Int32[] buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* buffers_ptr = buffers) - { - Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Generate buffer object names - /// - /// - /// - /// Specifies the number of buffer object names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated buffer object names are stored. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGenBuffers")] - public static - void GenBuffers([In, Out] Int32 n, [In, Out] UInt32[] buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* buffers_ptr = buffers) - { - Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Generate buffer object names - /// - /// - /// - /// Specifies the number of buffer object names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated buffer object names are stored. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGenBuffers")] - public static - void GenBuffers([In, Out] Int32 n, [In, Out] ref Int32 buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* buffers_ptr = &buffers) - { - Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Generate buffer object names - /// - /// - /// - /// Specifies the number of buffer object names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated buffer object names are stored. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGenBuffers")] - public static - void GenBuffers([In, Out] Int32 n, [In, Out] ref UInt32 buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* buffers_ptr = &buffers) - { - Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Generate texture names - /// - /// - /// - /// Specifies the number of texture names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated texture names are stored. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGenTextures")] - public static - unsafe void GenTextures([In, Out] Int32 n, [In, Out] UInt32* textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGenTextures((Int32)n, (UInt32*)textures); - #if DEBUG - } - #endif - } - - - /// - /// Generate texture names - /// - /// - /// - /// Specifies the number of texture names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated texture names are stored. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGenTextures")] - public static - unsafe void GenTextures([In, Out] Int32 n, [In, Out] Int32* textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGenTextures((Int32)n, (UInt32*)textures); - #if DEBUG - } - #endif - } - - - /// - /// Generate texture names - /// - /// - /// - /// Specifies the number of texture names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated texture names are stored. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGenTextures")] - public static - void GenTextures([In, Out] Int32 n, [In, Out] Int32[] textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* textures_ptr = textures) - { - Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Generate texture names - /// - /// - /// - /// Specifies the number of texture names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated texture names are stored. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGenTextures")] - public static - void GenTextures([In, Out] Int32 n, [In, Out] UInt32[] textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* textures_ptr = textures) - { - Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Generate texture names - /// - /// - /// - /// Specifies the number of texture names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated texture names are stored. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGenTextures")] - public static - void GenTextures([In, Out] Int32 n, [In, Out] ref Int32 textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* textures_ptr = &textures) - { - Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Generate texture names - /// - /// - /// - /// Specifies the number of texture names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated texture names are stored. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGenTextures")] - public static - void GenTextures([In, Out] Int32 n, [In, Out] ref UInt32 textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* textures_ptr = &textures) - { - Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetBooleanv")] - public static - void GetBoolean([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] bool[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (bool* @params_ptr = @params) - { - Delegates.glGetBooleanv((OpenTK.Graphics.ES11.All)pname, (bool*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetBooleanv")] - public static - void GetBoolean([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] ref bool @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (bool* @params_ptr = &@params) - { - Delegates.glGetBooleanv((OpenTK.Graphics.ES11.All)pname, (bool*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetBooleanv")] - public static - unsafe void GetBoolean([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] bool* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetBooleanv((OpenTK.Graphics.ES11.All)pname, (bool*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Return parameters of a buffer object - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the symbolic name of a buffer object parameter. Accepted values are GL_BUFFER_ACCESS, GL_BUFFER_MAPPED, GL_BUFFER_SIZE, or GL_BUFFER_USAGE. - /// - /// - /// - /// - /// Returns the requested parameter. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetBufferParameteriv")] - public static - unsafe void GetBufferParameter([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Return parameters of a buffer object - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the symbolic name of a buffer object parameter. Accepted values are GL_BUFFER_ACCESS, GL_BUFFER_MAPPED, GL_BUFFER_SIZE, or GL_BUFFER_USAGE. - /// - /// - /// - /// - /// Returns the requested parameter. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetBufferParameteriv")] - public static - void GetBufferParameter([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] ref Int32 @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = &@params) - { - Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return parameters of a buffer object - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the symbolic name of a buffer object parameter. Accepted values are GL_BUFFER_ACCESS, GL_BUFFER_MAPPED, GL_BUFFER_SIZE, or GL_BUFFER_USAGE. - /// - /// - /// - /// - /// Returns the requested parameter. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetBufferParameteriv")] - public static - void GetBufferParameter([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = @params) - { - Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return the coefficients of the specified clipping plane - /// - /// - /// - /// Specifies a clipping plane. The number of clipping planes depends on the implementation, but at least six clipping planes are supported. They are identified by symbolic names of the form GL_CLIP_PLANE where i ranges from 0 to the value of GL_MAX_CLIP_PLANES - 1. - /// - /// - /// - /// - /// Returns four double-precision values that are the coefficients of the plane equation of plane in eye coordinates. The initial value is (0, 0, 0, 0). - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetClipPlanef")] - public static - unsafe void GetClipPlane([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* eqn) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetClipPlanef((OpenTK.Graphics.ES11.All)pname, (Single*)eqn); - #if DEBUG - } - #endif - } - - - /// - /// Return the coefficients of the specified clipping plane - /// - /// - /// - /// Specifies a clipping plane. The number of clipping planes depends on the implementation, but at least six clipping planes are supported. They are identified by symbolic names of the form GL_CLIP_PLANE where i ranges from 0 to the value of GL_MAX_CLIP_PLANES - 1. - /// - /// - /// - /// - /// Returns four double-precision values that are the coefficients of the plane equation of plane in eye coordinates. The initial value is (0, 0, 0, 0). - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetClipPlanef")] - public static - void GetClipPlane([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single[] eqn) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* eqn_ptr = eqn) - { - Delegates.glGetClipPlanef((OpenTK.Graphics.ES11.All)pname, (Single*)eqn_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return the coefficients of the specified clipping plane - /// - /// - /// - /// Specifies a clipping plane. The number of clipping planes depends on the implementation, but at least six clipping planes are supported. They are identified by symbolic names of the form GL_CLIP_PLANE where i ranges from 0 to the value of GL_MAX_CLIP_PLANES - 1. - /// - /// - /// - /// - /// Returns four double-precision values that are the coefficients of the plane equation of plane in eye coordinates. The initial value is (0, 0, 0, 0). - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetClipPlanef")] - public static - void GetClipPlane([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] ref Single eqn) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* eqn_ptr = &eqn) - { - Delegates.glGetClipPlanef((OpenTK.Graphics.ES11.All)pname, (Single*)eqn_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetClipPlanex")] - public static - void GetClipPlanex([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] ref int eqn) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* eqn_ptr = &eqn) - { - Delegates.glGetClipPlanex((OpenTK.Graphics.ES11.All)pname, (int*)eqn_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetClipPlanex")] - public static - void GetClipPlanex([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int[] eqn) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* eqn_ptr = eqn) - { - Delegates.glGetClipPlanex((OpenTK.Graphics.ES11.All)pname, (int*)eqn_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetClipPlanex")] - public static - unsafe void GetClipPlanex([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* eqn) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetClipPlanex((OpenTK.Graphics.ES11.All)pname, (int*)eqn); - #if DEBUG - } - #endif - } - - - /// - /// Return error information - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetError")] - public static - OpenTK.Graphics.ES11.All GetError() - { - return Delegates.glGetError(); - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetFixedv")] - public static - void GetFixed([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = @params) - { - Delegates.glGetFixedv((OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetFixedv")] - public static - unsafe void GetFixed([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetFixedv((OpenTK.Graphics.ES11.All)pname, (int*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetFixedv")] - public static - void GetFixed([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] ref int @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = &@params) - { - Delegates.glGetFixedv((OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetFloatv")] - public static - unsafe void GetFloat([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetFloatv((OpenTK.Graphics.ES11.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetFloatv")] - public static - void GetFloat([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] ref Single @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = &@params) - { - Delegates.glGetFloatv((OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetFloatv")] - public static - void GetFloat([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glGetFloatv((OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetIntegerv")] - public static - unsafe void GetInteger([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetIntegerv((OpenTK.Graphics.ES11.All)pname, (Int32*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetIntegerv")] - public static - void GetInteger([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] ref Int32 @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = &@params) - { - Delegates.glGetIntegerv((OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetIntegerv")] - public static - void GetInteger([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = @params) - { - Delegates.glGetIntegerv((OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return light source parameter values - /// - /// - /// - /// Specifies a light source. The number of possible lights depends on the implementation, but at least eight lights are supported. They are identified by symbolic names of the form GL_LIGHT where ranges from 0 to the value of GL_MAX_LIGHTS - 1. - /// - /// - /// - /// - /// Specifies a light source parameter for light. Accepted symbolic names are GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_POSITION, GL_SPOT_DIRECTION, GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION, and GL_QUADRATIC_ATTENUATION. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetLightfv")] - public static - void GetLight([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glGetLightfv((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return light source parameter values - /// - /// - /// - /// Specifies a light source. The number of possible lights depends on the implementation, but at least eight lights are supported. They are identified by symbolic names of the form GL_LIGHT where ranges from 0 to the value of GL_MAX_LIGHTS - 1. - /// - /// - /// - /// - /// Specifies a light source parameter for light. Accepted symbolic names are GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_POSITION, GL_SPOT_DIRECTION, GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION, and GL_QUADRATIC_ATTENUATION. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetLightfv")] - public static - void GetLight([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] ref Single @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = &@params) - { - Delegates.glGetLightfv((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return light source parameter values - /// - /// - /// - /// Specifies a light source. The number of possible lights depends on the implementation, but at least eight lights are supported. They are identified by symbolic names of the form GL_LIGHT where ranges from 0 to the value of GL_MAX_LIGHTS - 1. - /// - /// - /// - /// - /// Specifies a light source parameter for light. Accepted symbolic names are GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_POSITION, GL_SPOT_DIRECTION, GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION, and GL_QUADRATIC_ATTENUATION. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetLightfv")] - public static - unsafe void GetLight([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetLightfv((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetLightxv")] - public static - unsafe void GetLightx([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetLightxv((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (int*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetLightxv")] - public static - void GetLightx([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] ref int @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = &@params) - { - Delegates.glGetLightxv((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetLightxv")] - public static - void GetLightx([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = @params) - { - Delegates.glGetLightxv((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return material parameters - /// - /// - /// - /// Specifies which of the two materials is being queried. GL_FRONT or GL_BACK are accepted, representing the front and back materials, respectively. - /// - /// - /// - /// - /// Specifies the material parameter to return. GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_EMISSION, GL_SHININESS, and GL_COLOR_INDEXES are accepted. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetMaterialfv")] - public static - void GetMaterial([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glGetMaterialfv((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return material parameters - /// - /// - /// - /// Specifies which of the two materials is being queried. GL_FRONT or GL_BACK are accepted, representing the front and back materials, respectively. - /// - /// - /// - /// - /// Specifies the material parameter to return. GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_EMISSION, GL_SHININESS, and GL_COLOR_INDEXES are accepted. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetMaterialfv")] - public static - void GetMaterial([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] ref Single @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = &@params) - { - Delegates.glGetMaterialfv((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return material parameters - /// - /// - /// - /// Specifies which of the two materials is being queried. GL_FRONT or GL_BACK are accepted, representing the front and back materials, respectively. - /// - /// - /// - /// - /// Specifies the material parameter to return. GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_EMISSION, GL_SHININESS, and GL_COLOR_INDEXES are accepted. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetMaterialfv")] - public static - unsafe void GetMaterial([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetMaterialfv((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetMaterialxv")] - public static - unsafe void GetMaterialx([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetMaterialxv((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (int*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetMaterialxv")] - public static - void GetMaterialx([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] ref int @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = &@params) - { - Delegates.glGetMaterialxv((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetMaterialxv")] - public static - void GetMaterialx([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = @params) - { - Delegates.glGetMaterialxv((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return the address of the specified pointer - /// - /// - /// - /// Specifies the array or buffer pointer to be returned. Symbolic constants GL_COLOR_ARRAY_POINTER, GL_EDGE_FLAG_ARRAY_POINTER, GL_FOG_COORD_ARRAY_POINTER, GL_FEEDBACK_BUFFER_POINTER, GL_INDEX_ARRAY_POINTER, GL_NORMAL_ARRAY_POINTER, GL_SECONDARY_COLOR_ARRAY_POINTER, GL_SELECTION_BUFFER_POINTER, GL_TEXTURE_COORD_ARRAY_POINTER, or GL_VERTEX_ARRAY_POINTER are accepted. - /// - /// - /// - /// - /// Returns the pointer value specified by pname. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetPointerv")] - public static - void GetPointer([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] IntPtr @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetPointerv((OpenTK.Graphics.ES11.All)pname, (IntPtr)@params); - #if DEBUG - } - #endif - } - - - /// - /// Return the address of the specified pointer - /// - /// - /// - /// Specifies the array or buffer pointer to be returned. Symbolic constants GL_COLOR_ARRAY_POINTER, GL_EDGE_FLAG_ARRAY_POINTER, GL_FOG_COORD_ARRAY_POINTER, GL_FEEDBACK_BUFFER_POINTER, GL_INDEX_ARRAY_POINTER, GL_NORMAL_ARRAY_POINTER, GL_SECONDARY_COLOR_ARRAY_POINTER, GL_SELECTION_BUFFER_POINTER, GL_TEXTURE_COORD_ARRAY_POINTER, or GL_VERTEX_ARRAY_POINTER are accepted. - /// - /// - /// - /// - /// Returns the pointer value specified by pname. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetPointerv")] - public static - void GetPointer([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] ref T1 @params) - where T1 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetPointerv((OpenTK.Graphics.ES11.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Return the address of the specified pointer - /// - /// - /// - /// Specifies the array or buffer pointer to be returned. Symbolic constants GL_COLOR_ARRAY_POINTER, GL_EDGE_FLAG_ARRAY_POINTER, GL_FOG_COORD_ARRAY_POINTER, GL_FEEDBACK_BUFFER_POINTER, GL_INDEX_ARRAY_POINTER, GL_NORMAL_ARRAY_POINTER, GL_SECONDARY_COLOR_ARRAY_POINTER, GL_SELECTION_BUFFER_POINTER, GL_TEXTURE_COORD_ARRAY_POINTER, or GL_VERTEX_ARRAY_POINTER are accepted. - /// - /// - /// - /// - /// Returns the pointer value specified by pname. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetPointerv")] - public static - void GetPointer([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] T1[] @params) - where T1 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetPointerv((OpenTK.Graphics.ES11.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Return the address of the specified pointer - /// - /// - /// - /// Specifies the array or buffer pointer to be returned. Symbolic constants GL_COLOR_ARRAY_POINTER, GL_EDGE_FLAG_ARRAY_POINTER, GL_FOG_COORD_ARRAY_POINTER, GL_FEEDBACK_BUFFER_POINTER, GL_INDEX_ARRAY_POINTER, GL_NORMAL_ARRAY_POINTER, GL_SECONDARY_COLOR_ARRAY_POINTER, GL_SELECTION_BUFFER_POINTER, GL_TEXTURE_COORD_ARRAY_POINTER, or GL_VERTEX_ARRAY_POINTER are accepted. - /// - /// - /// - /// - /// Returns the pointer value specified by pname. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetPointerv")] - public static - void GetPointer([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] T1[,,] @params) - where T1 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetPointerv((OpenTK.Graphics.ES11.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Return the address of the specified pointer - /// - /// - /// - /// Specifies the array or buffer pointer to be returned. Symbolic constants GL_COLOR_ARRAY_POINTER, GL_EDGE_FLAG_ARRAY_POINTER, GL_FOG_COORD_ARRAY_POINTER, GL_FEEDBACK_BUFFER_POINTER, GL_INDEX_ARRAY_POINTER, GL_NORMAL_ARRAY_POINTER, GL_SECONDARY_COLOR_ARRAY_POINTER, GL_SELECTION_BUFFER_POINTER, GL_TEXTURE_COORD_ARRAY_POINTER, or GL_VERTEX_ARRAY_POINTER are accepted. - /// - /// - /// - /// - /// Returns the pointer value specified by pname. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetPointerv")] - public static - void GetPointer([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] T1[,] @params) - where T1 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); - try - { - Delegates.glGetPointerv((OpenTK.Graphics.ES11.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); - } - finally - { - @params_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Return a string describing the current GL connection - /// - /// - /// - /// Specifies a symbolic constant, one of GL_VENDOR, GL_RENDERER, GL_VERSION, GL_SHADING_LANGUAGE_VERSION, or GL_EXTENSIONS. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetString")] - public static - Byte GetString([In, Out] OpenTK.Graphics.ES11.All name) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glGetString((OpenTK.Graphics.ES11.All)name); - #if DEBUG - } - #endif - } - - - /// - /// Return texture environment parameters - /// - /// - /// - /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL, or GL_POINT_SPRITE. - /// - /// - /// - /// - /// Specifies the symbolic name of a texture environment parameter. Accepted values are GL_TEXTURE_ENV_MODE, GL_TEXTURE_ENV_COLOR, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetTexEnvfv")] - public static - void GetTexEnv([In, Out] OpenTK.Graphics.ES11.All env, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glGetTexEnvfv((OpenTK.Graphics.ES11.All)env, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return texture environment parameters - /// - /// - /// - /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL, or GL_POINT_SPRITE. - /// - /// - /// - /// - /// Specifies the symbolic name of a texture environment parameter. Accepted values are GL_TEXTURE_ENV_MODE, GL_TEXTURE_ENV_COLOR, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetTexEnvfv")] - public static - unsafe void GetTexEnv([In, Out] OpenTK.Graphics.ES11.All env, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetTexEnvfv((OpenTK.Graphics.ES11.All)env, (OpenTK.Graphics.ES11.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Return texture environment parameters - /// - /// - /// - /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL, or GL_POINT_SPRITE. - /// - /// - /// - /// - /// Specifies the symbolic name of a texture environment parameter. Accepted values are GL_TEXTURE_ENV_MODE, GL_TEXTURE_ENV_COLOR, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetTexEnvfv")] - public static - void GetTexEnv([In, Out] OpenTK.Graphics.ES11.All env, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] ref Single @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = &@params) - { - Delegates.glGetTexEnvfv((OpenTK.Graphics.ES11.All)env, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return texture environment parameters - /// - /// - /// - /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL, or GL_POINT_SPRITE. - /// - /// - /// - /// - /// Specifies the symbolic name of a texture environment parameter. Accepted values are GL_TEXTURE_ENV_MODE, GL_TEXTURE_ENV_COLOR, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetTexEnviv")] - public static - void GetTexEnv([In, Out] OpenTK.Graphics.ES11.All env, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = @params) - { - Delegates.glGetTexEnviv((OpenTK.Graphics.ES11.All)env, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return texture environment parameters - /// - /// - /// - /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL, or GL_POINT_SPRITE. - /// - /// - /// - /// - /// Specifies the symbolic name of a texture environment parameter. Accepted values are GL_TEXTURE_ENV_MODE, GL_TEXTURE_ENV_COLOR, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetTexEnviv")] - public static - void GetTexEnv([In, Out] OpenTK.Graphics.ES11.All env, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] ref Int32 @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = &@params) - { - Delegates.glGetTexEnviv((OpenTK.Graphics.ES11.All)env, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return texture environment parameters - /// - /// - /// - /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL, or GL_POINT_SPRITE. - /// - /// - /// - /// - /// Specifies the symbolic name of a texture environment parameter. Accepted values are GL_TEXTURE_ENV_MODE, GL_TEXTURE_ENV_COLOR, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetTexEnviv")] - public static - unsafe void GetTexEnv([In, Out] OpenTK.Graphics.ES11.All env, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetTexEnviv((OpenTK.Graphics.ES11.All)env, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetTexEnvxv")] - public static - void GetTexEnvx([In, Out] OpenTK.Graphics.ES11.All env, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = @params) - { - Delegates.glGetTexEnvxv((OpenTK.Graphics.ES11.All)env, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetTexEnvxv")] - public static - void GetTexEnvx([In, Out] OpenTK.Graphics.ES11.All env, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] ref int @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = &@params) - { - Delegates.glGetTexEnvxv((OpenTK.Graphics.ES11.All)env, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetTexEnvxv")] - public static - unsafe void GetTexEnvx([In, Out] OpenTK.Graphics.ES11.All env, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetTexEnvxv((OpenTK.Graphics.ES11.All)env, (OpenTK.Graphics.ES11.All)pname, (int*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Return texture parameter values - /// - /// - /// - /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. - /// - /// - /// - /// - /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. - /// - /// - /// - /// - /// Returns the texture parameters. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetTexParameterfv")] - public static - unsafe void GetTexParameter([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetTexParameterfv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Return texture parameter values - /// - /// - /// - /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. - /// - /// - /// - /// - /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. - /// - /// - /// - /// - /// Returns the texture parameters. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetTexParameterfv")] - public static - void GetTexParameter([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] ref Single @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = &@params) - { - Delegates.glGetTexParameterfv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return texture parameter values - /// - /// - /// - /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. - /// - /// - /// - /// - /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. - /// - /// - /// - /// - /// Returns the texture parameters. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetTexParameterfv")] - public static - void GetTexParameter([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glGetTexParameterfv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return texture parameter values - /// - /// - /// - /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. - /// - /// - /// - /// - /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. - /// - /// - /// - /// - /// Returns the texture parameters. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetTexParameteriv")] - public static - unsafe void GetTexParameter([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetTexParameteriv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Return texture parameter values - /// - /// - /// - /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. - /// - /// - /// - /// - /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. - /// - /// - /// - /// - /// Returns the texture parameters. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetTexParameteriv")] - public static - void GetTexParameter([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = @params) - { - Delegates.glGetTexParameteriv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return texture parameter values - /// - /// - /// - /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. - /// - /// - /// - /// - /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. - /// - /// - /// - /// - /// Returns the texture parameters. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetTexParameteriv")] - public static - void GetTexParameter([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] ref Int32 @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = &@params) - { - Delegates.glGetTexParameteriv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetTexParameterxv")] - public static - unsafe void GetTexParameterx([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetTexParameterxv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetTexParameterxv")] - public static - void GetTexParameterx([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] ref int @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = &@params) - { - Delegates.glGetTexParameterxv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glGetTexParameterxv")] - public static - void GetTexParameterx([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = @params) - { - Delegates.glGetTexParameterxv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify implementation-specific hints - /// - /// - /// - /// Specifies a symbolic constant indicating the behavior to be controlled. GL_FOG_HINT, GL_GENERATE_MIPMAP_HINT, GL_LINE_SMOOTH_HINT, GL_PERSPECTIVE_CORRECTION_HINT, GL_POINT_SMOOTH_HINT, GL_POLYGON_SMOOTH_HINT, GL_TEXTURE_COMPRESSION_HINT, and GL_FRAGMENT_SHADER_DERIVATIVE_HINT are accepted. - /// - /// - /// - /// - /// Specifies a symbolic constant indicating the desired behavior. GL_FASTEST, GL_NICEST, and GL_DONT_CARE are accepted. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glHint")] - public static - void Hint([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All mode) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glHint((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)mode); - #if DEBUG - } - #endif - } - - - /// - /// Determine if a name corresponds to a buffer object - /// - /// - /// - /// Specifies a value that may be the name of a buffer object. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glIsBuffer")] - public static - bool IsBuffer([In, Out] Int32 buffer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glIsBuffer((UInt32)buffer); - #if DEBUG - } - #endif - } - - - /// - /// Determine if a name corresponds to a buffer object - /// - /// - /// - /// Specifies a value that may be the name of a buffer object. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glIsBuffer")] - public static - bool IsBuffer([In, Out] UInt32 buffer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glIsBuffer((UInt32)buffer); - #if DEBUG - } - #endif - } - - - /// - /// Test whether a capability is enabled - /// - /// - /// - /// Specifies a symbolic constant indicating a GL capability. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glIsEnabled")] - public static - bool IsEnabled([In, Out] OpenTK.Graphics.ES11.All cap) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glIsEnabled((OpenTK.Graphics.ES11.All)cap); - #if DEBUG - } - #endif - } - - - /// - /// Determine if a name corresponds to a texture - /// - /// - /// - /// Specifies a value that may be the name of a texture. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glIsTexture")] - public static - bool IsTexture([In, Out] UInt32 texture) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glIsTexture((UInt32)texture); - #if DEBUG - } - #endif - } - - - /// - /// Determine if a name corresponds to a texture - /// - /// - /// - /// Specifies a value that may be the name of a texture. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glIsTexture")] - public static - bool IsTexture([In, Out] Int32 texture) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glIsTexture((UInt32)texture); - #if DEBUG - } - #endif - } - - - /// - /// Set light source parameters - /// - /// - /// - /// Specifies a light. The number of lights depends on the implementation, but at least eight lights are supported. They are identified by symbolic names of the form GL_LIGHT , where i ranges from 0 to the value of GL_MAX_LIGHTS - 1. - /// - /// - /// - /// - /// Specifies a single-valued light source parameter for light. GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION, and GL_QUADRATIC_ATTENUATION are accepted. - /// - /// - /// - /// - /// Specifies the value that parameter pname of light source light will be set to. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLightf")] - public static - void Light([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLightf((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (Single)param); - #if DEBUG - } - #endif - } - - - /// - /// Set light source parameters - /// - /// - /// - /// Specifies a light. The number of lights depends on the implementation, but at least eight lights are supported. They are identified by symbolic names of the form GL_LIGHT , where i ranges from 0 to the value of GL_MAX_LIGHTS - 1. - /// - /// - /// - /// - /// Specifies a single-valued light source parameter for light. GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION, and GL_QUADRATIC_ATTENUATION are accepted. - /// - /// - /// - /// - /// Specifies the value that parameter pname of light source light will be set to. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLightfv")] - public static - unsafe void Light([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLightfv((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Set light source parameters - /// - /// - /// - /// Specifies a light. The number of lights depends on the implementation, but at least eight lights are supported. They are identified by symbolic names of the form GL_LIGHT , where i ranges from 0 to the value of GL_MAX_LIGHTS - 1. - /// - /// - /// - /// - /// Specifies a single-valued light source parameter for light. GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION, and GL_QUADRATIC_ATTENUATION are accepted. - /// - /// - /// - /// - /// Specifies the value that parameter pname of light source light will be set to. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLightfv")] - public static - void Light([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glLightfv((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Set the lighting model parameters - /// - /// - /// - /// Specifies a single-valued lighting model parameter. GL_LIGHT_MODEL_LOCAL_VIEWER, GL_LIGHT_MODEL_COLOR_CONTROL, and GL_LIGHT_MODEL_TWO_SIDE are accepted. - /// - /// - /// - /// - /// Specifies the value that param will be set to. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLightModelf")] - public static - void LightModel([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLightModelf((OpenTK.Graphics.ES11.All)pname, (Single)param); - #if DEBUG - } - #endif - } - - - /// - /// Set the lighting model parameters - /// - /// - /// - /// Specifies a single-valued lighting model parameter. GL_LIGHT_MODEL_LOCAL_VIEWER, GL_LIGHT_MODEL_COLOR_CONTROL, and GL_LIGHT_MODEL_TWO_SIDE are accepted. - /// - /// - /// - /// - /// Specifies the value that param will be set to. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLightModelfv")] - public static - void LightModel([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glLightModelfv((OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Set the lighting model parameters - /// - /// - /// - /// Specifies a single-valued lighting model parameter. GL_LIGHT_MODEL_LOCAL_VIEWER, GL_LIGHT_MODEL_COLOR_CONTROL, and GL_LIGHT_MODEL_TWO_SIDE are accepted. - /// - /// - /// - /// - /// Specifies the value that param will be set to. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLightModelfv")] - public static - unsafe void LightModel([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLightModelfv((OpenTK.Graphics.ES11.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLightModelx")] - public static - void LightModelx([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLightModelx((OpenTK.Graphics.ES11.All)pname, (int)param); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLightModelxv")] - public static - unsafe void LightModelx([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLightModelxv((OpenTK.Graphics.ES11.All)pname, (int*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLightModelxv")] - public static - void LightModelx([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = @params) - { - Delegates.glLightModelxv((OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLightx")] - public static - void Lightx([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLightx((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (int)param); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLightxv")] - public static - unsafe void Lightx([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLightxv((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (int*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLightxv")] - public static - void Lightx([In, Out] OpenTK.Graphics.ES11.All light, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = @params) - { - Delegates.glLightxv((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify the width of rasterized lines - /// - /// - /// - /// Specifies the width of rasterized lines. The initial value is 1. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLineWidth")] - public static - void LineWidth([In, Out] Single width) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLineWidth((Single)width); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLineWidthx")] - public static - void LineWidthx([In, Out] int width) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLineWidthx((int)width); - #if DEBUG - } - #endif - } - - - /// - /// Replace the current matrix with the identity matrix - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLoadIdentity")] - public static - void LoadIdentity() - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLoadIdentity(); - #if DEBUG - } - #endif - } - - - /// - /// Replace the current matrix with the specified matrix - /// - /// - /// - /// Specifies a pointer to 16 consecutive values, which are used as the elements of a 4 times 4 column-major matrix. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLoadMatrixf")] - public static - void LoadMatrix([In, Out] Single[] m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* m_ptr = m) - { - Delegates.glLoadMatrixf((Single*)m_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Replace the current matrix with the specified matrix - /// - /// - /// - /// Specifies a pointer to 16 consecutive values, which are used as the elements of a 4 times 4 column-major matrix. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLoadMatrixf")] - public static - void LoadMatrix([In, Out] ref Single m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* m_ptr = &m) - { - Delegates.glLoadMatrixf((Single*)m_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Replace the current matrix with the specified matrix - /// - /// - /// - /// Specifies a pointer to 16 consecutive values, which are used as the elements of a 4 times 4 column-major matrix. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLoadMatrixf")] - public static - unsafe void LoadMatrix([In, Out] Single* m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLoadMatrixf((Single*)m); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLoadMatrixx")] - public static - void LoadMatrixx([In, Out] ref int m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* m_ptr = &m) - { - Delegates.glLoadMatrixx((int*)m_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLoadMatrixx")] - public static - unsafe void LoadMatrixx([In, Out] int* m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLoadMatrixx((int*)m); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLoadMatrixx")] - public static - void LoadMatrixx([In, Out] int[] m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* m_ptr = m) - { - Delegates.glLoadMatrixx((int*)m_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a logical pixel operation for color index rendering - /// - /// - /// - /// Specifies a symbolic constant that selects a logical operation. The following symbols are accepted: GL_CLEAR, GL_SET, GL_COPY, GL_COPY_INVERTED, GL_NOOP, GL_INVERT, GL_AND, GL_NAND, GL_OR, GL_NOR, GL_XOR, GL_EQUIV, GL_AND_REVERSE, GL_AND_INVERTED, GL_OR_REVERSE, and GL_OR_INVERTED. The initial value is GL_COPY. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glLogicOp")] - public static - void LogicOp([In, Out] OpenTK.Graphics.ES11.All opcode) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLogicOp((OpenTK.Graphics.ES11.All)opcode); - #if DEBUG - } - #endif - } - - - /// - /// Specify material parameters for the lighting model - /// - /// - /// - /// Specifies which face or faces are being updated. Must be one of GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK. - /// - /// - /// - /// - /// Specifies the single-valued material parameter of the face or faces that is being updated. Must be GL_SHININESS. - /// - /// - /// - /// - /// Specifies the value that parameter GL_SHININESS will be set to. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glMaterialf")] - public static - void Material([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glMaterialf((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (Single)param); - #if DEBUG - } - #endif - } - - - /// - /// Specify material parameters for the lighting model - /// - /// - /// - /// Specifies which face or faces are being updated. Must be one of GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK. - /// - /// - /// - /// - /// Specifies the single-valued material parameter of the face or faces that is being updated. Must be GL_SHININESS. - /// - /// - /// - /// - /// Specifies the value that parameter GL_SHININESS will be set to. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glMaterialfv")] - public static - void Material([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glMaterialfv((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify material parameters for the lighting model - /// - /// - /// - /// Specifies which face or faces are being updated. Must be one of GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK. - /// - /// - /// - /// - /// Specifies the single-valued material parameter of the face or faces that is being updated. Must be GL_SHININESS. - /// - /// - /// - /// - /// Specifies the value that parameter GL_SHININESS will be set to. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glMaterialfv")] - public static - unsafe void Material([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glMaterialfv((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glMaterialx")] - public static - void Materialx([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glMaterialx((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (int)param); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glMaterialxv")] - public static - unsafe void Materialx([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glMaterialxv((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (int*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glMaterialxv")] - public static - void Materialx([In, Out] OpenTK.Graphics.ES11.All face, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = @params) - { - Delegates.glMaterialxv((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify which matrix is the current matrix - /// - /// - /// - /// Specifies which matrix stack is the target for subsequent matrix operations. Three values are accepted: GL_MODELVIEW, GL_PROJECTION, and GL_TEXTURE. The initial value is GL_MODELVIEW. Additionally, if the ARB_imaging extension is supported, GL_COLOR is also accepted. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glMatrixMode")] - public static - void MatrixMode([In, Out] OpenTK.Graphics.ES11.All mode) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glMatrixMode((OpenTK.Graphics.ES11.All)mode); - #if DEBUG - } - #endif - } - - - /// - /// Set the current texture coordinates - /// - /// - /// - /// Specifies the texture unit whose coordinates should be modified. The number of texture units is implementation dependent, but must be at least two. Symbolic constant must be one of GL_TEXTURE, where i ranges from 0 to GL_MAX_TEXTURE_COORDS - 1, which is an implementation-dependent value. - /// - /// - /// - /// - /// Specify s, t, r, and q texture coordinates for target texture unit. Not all parameters are present in all forms of the command. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glMultiTexCoord4f")] - public static - void MultiTexCoord4([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Single s, [In, Out] Single t, [In, Out] Single r, [In, Out] Single q) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glMultiTexCoord4f((OpenTK.Graphics.ES11.All)target, (Single)s, (Single)t, (Single)r, (Single)q); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glMultiTexCoord4x")] - public static - void MultiTexCoord4x([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] int s, [In, Out] int t, [In, Out] int r, [In, Out] int q) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glMultiTexCoord4x((OpenTK.Graphics.ES11.All)target, (int)s, (int)t, (int)r, (int)q); - #if DEBUG - } - #endif - } - - - /// - /// Multiply the current matrix with the specified matrix - /// - /// - /// - /// Points to 16 consecutive values that are used as the elements of a 4 times 4 column-major matrix. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glMultMatrixf")] - public static - void MultMatrix([In, Out] ref Single m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* m_ptr = &m) - { - Delegates.glMultMatrixf((Single*)m_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Multiply the current matrix with the specified matrix - /// - /// - /// - /// Points to 16 consecutive values that are used as the elements of a 4 times 4 column-major matrix. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glMultMatrixf")] - public static - void MultMatrix([In, Out] Single[] m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* m_ptr = m) - { - Delegates.glMultMatrixf((Single*)m_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Multiply the current matrix with the specified matrix - /// - /// - /// - /// Points to 16 consecutive values that are used as the elements of a 4 times 4 column-major matrix. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glMultMatrixf")] - public static - unsafe void MultMatrix([In, Out] Single* m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glMultMatrixf((Single*)m); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glMultMatrixx")] - public static - unsafe void MultMatrixx([In, Out] int* m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glMultMatrixx((int*)m); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glMultMatrixx")] - public static - void MultMatrixx([In, Out] int[] m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* m_ptr = m) - { - Delegates.glMultMatrixx((int*)m_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glMultMatrixx")] - public static - void MultMatrixx([In, Out] ref int m) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* m_ptr = &m) - { - Delegates.glMultMatrixx((int*)m_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Set the current normal vector - /// - /// - /// - /// Specify the , , and coordinates of the new current normal. The initial value of the current normal is the unit vector, (0, 0, 1). - /// - /// - /// - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glNormal3f")] - public static - void Normal3([In, Out] Single nx, [In, Out] Single ny, [In, Out] Single nz) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glNormal3f((Single)nx, (Single)ny, (Single)nz); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glNormal3x")] - public static - void Normal3x([In, Out] int nx, [In, Out] int ny, [In, Out] int nz) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glNormal3x((int)nx, (int)ny, (int)nz); - #if DEBUG - } - #endif - } - - - /// - /// Define an array of normals - /// - /// - /// - /// Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first normal in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glNormalPointer")] - public static - void NormalPointer([In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] T2[,] pointer) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointer((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of normals - /// - /// - /// - /// Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first normal in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glNormalPointer")] - public static - void NormalPointer([In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] T2[,,] pointer) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointer((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of normals - /// - /// - /// - /// Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first normal in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glNormalPointer")] - public static - void NormalPointer([In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] T2[] pointer) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointer((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of normals - /// - /// - /// - /// Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first normal in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glNormalPointer")] - public static - void NormalPointer([In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glNormalPointer((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer); - #if DEBUG - } - #endif - } - - - /// - /// Define an array of normals - /// - /// - /// - /// Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first normal in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glNormalPointer")] - public static - void NormalPointer([In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] ref T2 pointer) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glNormalPointer((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Multiply the current matrix with an orthographic matrix - /// - /// - /// - /// Specify the coordinates for the left and right vertical clipping planes. - /// - /// - /// - /// - /// Specify the coordinates for the bottom and top horizontal clipping planes. - /// - /// - /// - /// - /// Specify the distances to the nearer and farther depth clipping planes. These values are negative if the plane is to be behind the viewer. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glOrthof")] - public static - void Ortho([In, Out] Single left, [In, Out] Single right, [In, Out] Single bottom, [In, Out] Single top, [In, Out] Single zNear, [In, Out] Single zFar) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glOrthof((Single)left, (Single)right, (Single)bottom, (Single)top, (Single)zNear, (Single)zFar); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glOrthox")] - public static - void Orthox([In, Out] int left, [In, Out] int right, [In, Out] int bottom, [In, Out] int top, [In, Out] int zNear, [In, Out] int zFar) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glOrthox((int)left, (int)right, (int)bottom, (int)top, (int)zNear, (int)zFar); - #if DEBUG - } - #endif - } - - - /// - /// Set pixel storage modes - /// - /// - /// - /// Specifies the symbolic name of the parameter to be set. Six values affect the packing of pixel data into memory: GL_PACK_SWAP_BYTES, GL_PACK_LSB_FIRST, GL_PACK_ROW_LENGTH, GL_PACK_IMAGE_HEIGHT, GL_PACK_SKIP_PIXELS, GL_PACK_SKIP_ROWS, GL_PACK_SKIP_IMAGES, and GL_PACK_ALIGNMENT. Six more affect the unpacking of pixel data from memory: GL_UNPACK_SWAP_BYTES, GL_UNPACK_LSB_FIRST, GL_UNPACK_ROW_LENGTH, GL_UNPACK_IMAGE_HEIGHT, GL_UNPACK_SKIP_PIXELS, GL_UNPACK_SKIP_ROWS, GL_UNPACK_SKIP_IMAGES, and GL_UNPACK_ALIGNMENT. - /// - /// - /// - /// - /// Specifies the value that pname is set to. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glPixelStorei")] - public static - void PixelStore([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32 param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glPixelStorei((OpenTK.Graphics.ES11.All)pname, (Int32)param); - #if DEBUG - } - #endif - } - - - /// - /// Specify point parameters - /// - /// - /// - /// Specifies a single-valued point parameter. GL_POINT_SIZE_MIN, GL_POINT_SIZE_MAX, GL_POINT_FADE_THRESHOLD_SIZE, and GL_POINT_SPRITE_COORD_ORIGIN are accepted. - /// - /// - /// - /// - /// Specifies the value that pname will be set to. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glPointParameterf")] - public static - void PointParameter([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glPointParameterf((OpenTK.Graphics.ES11.All)pname, (Single)param); - #if DEBUG - } - #endif - } - - - /// - /// Specify point parameters - /// - /// - /// - /// Specifies a single-valued point parameter. GL_POINT_SIZE_MIN, GL_POINT_SIZE_MAX, GL_POINT_FADE_THRESHOLD_SIZE, and GL_POINT_SPRITE_COORD_ORIGIN are accepted. - /// - /// - /// - /// - /// Specifies the value that pname will be set to. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glPointParameterfv")] - public static - unsafe void PointParameter([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glPointParameterfv((OpenTK.Graphics.ES11.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Specify point parameters - /// - /// - /// - /// Specifies a single-valued point parameter. GL_POINT_SIZE_MIN, GL_POINT_SIZE_MAX, GL_POINT_FADE_THRESHOLD_SIZE, and GL_POINT_SPRITE_COORD_ORIGIN are accepted. - /// - /// - /// - /// - /// Specifies the value that pname will be set to. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glPointParameterfv")] - public static - void PointParameter([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glPointParameterfv((OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glPointParameterx")] - public static - void PointParameterx([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glPointParameterx((OpenTK.Graphics.ES11.All)pname, (int)param); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glPointParameterxv")] - public static - unsafe void PointParameterx([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glPointParameterxv((OpenTK.Graphics.ES11.All)pname, (int*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glPointParameterxv")] - public static - void PointParameterx([In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = @params) - { - Delegates.glPointParameterxv((OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify the diameter of rasterized points - /// - /// - /// - /// Specifies the diameter of rasterized points. The initial value is 1. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glPointSize")] - public static - void PointSize([In, Out] Single size) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glPointSize((Single)size); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glPointSizePointerOES")] - public static - void PointSizePointerOES([In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] T2[] pointer) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glPointSizePointerOES((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glPointSizePointerOES")] - public static - void PointSizePointerOES([In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] ref T2 pointer) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glPointSizePointerOES((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glPointSizePointerOES")] - public static - void PointSizePointerOES([In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] T2[,] pointer) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glPointSizePointerOES((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glPointSizePointerOES")] - public static - void PointSizePointerOES([In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] T2[,,] pointer) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glPointSizePointerOES((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glPointSizePointerOES")] - public static - void PointSizePointerOES([In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glPointSizePointerOES((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glPointSizex")] - public static - void PointSizex([In, Out] int size) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glPointSizex((int)size); - #if DEBUG - } - #endif - } - - - /// - /// Set the scale and units used to calculate depth values - /// - /// - /// - /// Specifies a scale factor that is used to create a variable depth offset for each polygon. The initial value is 0. - /// - /// - /// - /// - /// Is multiplied by an implementation-specific value to create a constant depth offset. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glPolygonOffset")] - public static - void PolygonOffset([In, Out] Single factor, [In, Out] Single units) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glPolygonOffset((Single)factor, (Single)units); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glPolygonOffsetx")] - public static - void PolygonOffsetx([In, Out] int factor, [In, Out] int units) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glPolygonOffsetx((int)factor, (int)units); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glPopMatrix")] - public static - void PopMatrix() - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glPopMatrix(); - #if DEBUG - } - #endif - } - - - /// - /// Push and pop the current matrix stack - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glPushMatrix")] - public static - void PushMatrix() - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glPushMatrix(); - #if DEBUG - } - #endif - } - - - /// - /// Read a block of pixels from the frame buffer - /// - /// - /// - /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. - /// - /// - /// - /// - /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Returns the pixel data. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glReadPixels")] - public static - void ReadPixels([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] ref T6 pixels) - where T6 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Read a block of pixels from the frame buffer - /// - /// - /// - /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. - /// - /// - /// - /// - /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Returns the pixel data. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glReadPixels")] - public static - void ReadPixels([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] IntPtr pixels) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels); - #if DEBUG - } - #endif - } - - - /// - /// Read a block of pixels from the frame buffer - /// - /// - /// - /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. - /// - /// - /// - /// - /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Returns the pixel data. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glReadPixels")] - public static - void ReadPixels([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] T6[] pixels) - where T6 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Read a block of pixels from the frame buffer - /// - /// - /// - /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. - /// - /// - /// - /// - /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Returns the pixel data. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glReadPixels")] - public static - void ReadPixels([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] T6[,,] pixels) - where T6 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Read a block of pixels from the frame buffer - /// - /// - /// - /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. - /// - /// - /// - /// - /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Returns the pixel data. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glReadPixels")] - public static - void ReadPixels([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] T6[,] pixels) - where T6 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Multiply the current matrix by a rotation matrix - /// - /// - /// - /// Specifies the angle of rotation, in degrees. - /// - /// - /// - /// - /// Specify the x, y, and z coordinates of a vector, respectively. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glRotatef")] - public static - void Rotate([In, Out] Single angle, [In, Out] Single x, [In, Out] Single y, [In, Out] Single z) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glRotatef((Single)angle, (Single)x, (Single)y, (Single)z); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glRotatex")] - public static - void Rotatex([In, Out] int angle, [In, Out] int x, [In, Out] int y, [In, Out] int z) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glRotatex((int)angle, (int)x, (int)y, (int)z); - #if DEBUG - } - #endif - } - - - /// - /// Specify multisample coverage parameters - /// - /// - /// - /// Specify a single floating-point sample coverage value. The value is clamped to the range [0 ,1]. The initial value is 1.0. - /// - /// - /// - /// - /// Specify a single boolean value representing if the coverage masks should be inverted. GL_TRUE and GL_FALSE are accepted. The initial value is GL_FALSE. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glSampleCoverage")] - public static - void SampleCoverage([In, Out] Single value, [In, Out] bool invert) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glSampleCoverage((Single)value, (bool)invert); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glSampleCoveragex")] - public static - void SampleCoveragex([In, Out] int value, [In, Out] bool invert) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glSampleCoveragex((int)value, (bool)invert); - #if DEBUG - } - #endif - } - - - /// - /// Multiply the current matrix by a general scaling matrix - /// - /// - /// - /// Specify scale factors along the x, y, and z axes, respectively. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glScalef")] - public static - void Scale([In, Out] Single x, [In, Out] Single y, [In, Out] Single z) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glScalef((Single)x, (Single)y, (Single)z); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glScalex")] - public static - void Scalex([In, Out] int x, [In, Out] int y, [In, Out] int z) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glScalex((int)x, (int)y, (int)z); - #if DEBUG - } - #endif - } - - - /// - /// Define the scissor box - /// - /// - /// - /// Specify the lower left corner of the scissor box. Initially (0, 0). - /// - /// - /// - /// - /// Specify the width and height of the scissor box. When a GL context is first attached to a window, width and height are set to the dimensions of that window. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glScissor")] - public static - void Scissor([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glScissor((Int32)x, (Int32)y, (Int32)width, (Int32)height); - #if DEBUG - } - #endif - } - - - /// - /// Select flat or smooth shading - /// - /// - /// - /// Specifies a symbolic value representing a shading technique. Accepted values are GL_FLAT and GL_SMOOTH. The initial value is GL_SMOOTH. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glShadeModel")] - public static - void ShadeModel([In, Out] OpenTK.Graphics.ES11.All mode) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glShadeModel((OpenTK.Graphics.ES11.All)mode); - #if DEBUG - } - #endif - } - - - /// - /// Set front and back function and reference value for stencil testing - /// - /// - /// - /// Specifies the test function. Eight symbolic constants are valid: GL_NEVER, GL_LESS, GL_LEQUAL, GL_GREATER, GL_GEQUAL, GL_EQUAL, GL_NOTEQUAL, and GL_ALWAYS. The initial value is GL_ALWAYS. - /// - /// - /// - /// - /// Specifies the reference value for the stencil test. ref is clamped to the range [0, 2 sup n - 1], where is the number of bitplanes in the stencil buffer. The initial value is 0. - /// - /// - /// - /// - /// Specifies a mask that is ANDed with both the reference value and the stored stencil value when the test is done. The initial value is all 1's. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glStencilFunc")] - public static - void StencilFunc([In, Out] OpenTK.Graphics.ES11.All func, [In, Out] Int32 @ref, [In, Out] UInt32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glStencilFunc((OpenTK.Graphics.ES11.All)func, (Int32)@ref, (UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Set front and back function and reference value for stencil testing - /// - /// - /// - /// Specifies the test function. Eight symbolic constants are valid: GL_NEVER, GL_LESS, GL_LEQUAL, GL_GREATER, GL_GEQUAL, GL_EQUAL, GL_NOTEQUAL, and GL_ALWAYS. The initial value is GL_ALWAYS. - /// - /// - /// - /// - /// Specifies the reference value for the stencil test. ref is clamped to the range [0, 2 sup n - 1], where is the number of bitplanes in the stencil buffer. The initial value is 0. - /// - /// - /// - /// - /// Specifies a mask that is ANDed with both the reference value and the stored stencil value when the test is done. The initial value is all 1's. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glStencilFunc")] - public static - void StencilFunc([In, Out] OpenTK.Graphics.ES11.All func, [In, Out] Int32 @ref, [In, Out] Int32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glStencilFunc((OpenTK.Graphics.ES11.All)func, (Int32)@ref, (UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Control the front and back writing of individual bits in the stencil planes - /// - /// - /// - /// Specifies a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, the mask is all 1's. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glStencilMask")] - public static - void StencilMask([In, Out] UInt32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glStencilMask((UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Control the front and back writing of individual bits in the stencil planes - /// - /// - /// - /// Specifies a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, the mask is all 1's. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glStencilMask")] - public static - void StencilMask([In, Out] Int32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glStencilMask((UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Set front and back stencil test actions - /// - /// - /// - /// Specifies the action to take when the stencil test fails. Eight symbolic constants are accepted: GL_KEEP, GL_ZERO, GL_REPLACE, GL_INCR, GL_INCR_WRAP, GL_DECR, GL_DECR_WRAP, and GL_INVERT. The initial value is GL_KEEP. - /// - /// - /// - /// - /// Specifies the stencil action when the stencil test passes, but the depth test fails. dpfail accepts the same symbolic constants as sfail. The initial value is GL_KEEP. - /// - /// - /// - /// - /// Specifies the stencil action when both the stencil test and the depth test pass, or when the stencil test passes and either there is no depth buffer or depth testing is not enabled. dppass accepts the same symbolic constants as sfail. The initial value is GL_KEEP. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glStencilOp")] - public static - void StencilOp([In, Out] OpenTK.Graphics.ES11.All fail, [In, Out] OpenTK.Graphics.ES11.All zfail, [In, Out] OpenTK.Graphics.ES11.All zpass) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glStencilOp((OpenTK.Graphics.ES11.All)fail, (OpenTK.Graphics.ES11.All)zfail, (OpenTK.Graphics.ES11.All)zpass); - #if DEBUG - } - #endif - } - - - /// - /// Define an array of texture coordinates - /// - /// - /// - /// Specifies the number of coordinates per array element. Must be 1, 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each texture coordinate. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive texture coordinate sets. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first texture coordinate set in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexCoordPointer")] - public static - void TexCoordPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] T3[] pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of texture coordinates - /// - /// - /// - /// Specifies the number of coordinates per array element. Must be 1, 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each texture coordinate. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive texture coordinate sets. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first texture coordinate set in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexCoordPointer")] - public static - void TexCoordPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] T3[,] pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of texture coordinates - /// - /// - /// - /// Specifies the number of coordinates per array element. Must be 1, 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each texture coordinate. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive texture coordinate sets. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first texture coordinate set in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexCoordPointer")] - public static - void TexCoordPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] T3[,,] pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of texture coordinates - /// - /// - /// - /// Specifies the number of coordinates per array element. Must be 1, 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each texture coordinate. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive texture coordinate sets. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first texture coordinate set in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexCoordPointer")] - public static - void TexCoordPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] ref T3 pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of texture coordinates - /// - /// - /// - /// Specifies the number of coordinates per array element. Must be 1, 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each texture coordinate. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive texture coordinate sets. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first texture coordinate set in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexCoordPointer")] - public static - void TexCoordPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer); - #if DEBUG - } - #endif - } - - - /// - /// Set texture environment parameters - /// - /// - /// - /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL or GL_POINT_SPRITE. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture environment parameter. May be either GL_TEXTURE_ENV_MODE, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. - /// - /// - /// - /// - /// Specifies a single symbolic constant, one of GL_ADD, GL_ADD_SIGNED, GL_INTERPOLATE, GL_MODULATE, GL_DECAL, GL_BLEND, GL_REPLACE, GL_SUBTRACT, GL_COMBINE, GL_TEXTURE, GL_CONSTANT, GL_PRIMARY_COLOR, GL_PREVIOUS, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, a single boolean value for the point sprite texture coordinate replacement, a single floating-point value for the texture level-of-detail bias, or 1.0, 2.0, or 4.0 when specifying the GL_RGB_SCALE or GL_ALPHA_SCALE. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexEnvf")] - public static - void TexEnv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexEnvf((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Single)param); - #if DEBUG - } - #endif - } - - - /// - /// Set texture environment parameters - /// - /// - /// - /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL or GL_POINT_SPRITE. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture environment parameter. May be either GL_TEXTURE_ENV_MODE, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. - /// - /// - /// - /// - /// Specifies a single symbolic constant, one of GL_ADD, GL_ADD_SIGNED, GL_INTERPOLATE, GL_MODULATE, GL_DECAL, GL_BLEND, GL_REPLACE, GL_SUBTRACT, GL_COMBINE, GL_TEXTURE, GL_CONSTANT, GL_PRIMARY_COLOR, GL_PREVIOUS, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, a single boolean value for the point sprite texture coordinate replacement, a single floating-point value for the texture level-of-detail bias, or 1.0, 2.0, or 4.0 when specifying the GL_RGB_SCALE or GL_ALPHA_SCALE. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexEnvfv")] - public static - unsafe void TexEnv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexEnvfv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Set texture environment parameters - /// - /// - /// - /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL or GL_POINT_SPRITE. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture environment parameter. May be either GL_TEXTURE_ENV_MODE, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. - /// - /// - /// - /// - /// Specifies a single symbolic constant, one of GL_ADD, GL_ADD_SIGNED, GL_INTERPOLATE, GL_MODULATE, GL_DECAL, GL_BLEND, GL_REPLACE, GL_SUBTRACT, GL_COMBINE, GL_TEXTURE, GL_CONSTANT, GL_PRIMARY_COLOR, GL_PREVIOUS, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, a single boolean value for the point sprite texture coordinate replacement, a single floating-point value for the texture level-of-detail bias, or 1.0, 2.0, or 4.0 when specifying the GL_RGB_SCALE or GL_ALPHA_SCALE. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexEnvfv")] - public static - void TexEnv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glTexEnvfv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Set texture environment parameters - /// - /// - /// - /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL or GL_POINT_SPRITE. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture environment parameter. May be either GL_TEXTURE_ENV_MODE, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. - /// - /// - /// - /// - /// Specifies a single symbolic constant, one of GL_ADD, GL_ADD_SIGNED, GL_INTERPOLATE, GL_MODULATE, GL_DECAL, GL_BLEND, GL_REPLACE, GL_SUBTRACT, GL_COMBINE, GL_TEXTURE, GL_CONSTANT, GL_PRIMARY_COLOR, GL_PREVIOUS, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, a single boolean value for the point sprite texture coordinate replacement, a single floating-point value for the texture level-of-detail bias, or 1.0, 2.0, or 4.0 when specifying the GL_RGB_SCALE or GL_ALPHA_SCALE. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexEnvi")] - public static - void TexEnv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32 param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexEnvi((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32)param); - #if DEBUG - } - #endif - } - - - /// - /// Set texture environment parameters - /// - /// - /// - /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL or GL_POINT_SPRITE. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture environment parameter. May be either GL_TEXTURE_ENV_MODE, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. - /// - /// - /// - /// - /// Specifies a single symbolic constant, one of GL_ADD, GL_ADD_SIGNED, GL_INTERPOLATE, GL_MODULATE, GL_DECAL, GL_BLEND, GL_REPLACE, GL_SUBTRACT, GL_COMBINE, GL_TEXTURE, GL_CONSTANT, GL_PRIMARY_COLOR, GL_PREVIOUS, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, a single boolean value for the point sprite texture coordinate replacement, a single floating-point value for the texture level-of-detail bias, or 1.0, 2.0, or 4.0 when specifying the GL_RGB_SCALE or GL_ALPHA_SCALE. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexEnviv")] - public static - unsafe void TexEnv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexEnviv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Set texture environment parameters - /// - /// - /// - /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL or GL_POINT_SPRITE. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture environment parameter. May be either GL_TEXTURE_ENV_MODE, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. - /// - /// - /// - /// - /// Specifies a single symbolic constant, one of GL_ADD, GL_ADD_SIGNED, GL_INTERPOLATE, GL_MODULATE, GL_DECAL, GL_BLEND, GL_REPLACE, GL_SUBTRACT, GL_COMBINE, GL_TEXTURE, GL_CONSTANT, GL_PRIMARY_COLOR, GL_PREVIOUS, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, a single boolean value for the point sprite texture coordinate replacement, a single floating-point value for the texture level-of-detail bias, or 1.0, 2.0, or 4.0 when specifying the GL_RGB_SCALE or GL_ALPHA_SCALE. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexEnviv")] - public static - void TexEnv([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = @params) - { - Delegates.glTexEnviv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexEnvx")] - public static - void TexEnvx([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexEnvx((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int)param); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexEnvxv")] - public static - unsafe void TexEnvx([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexEnvxv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexEnvxv")] - public static - void TexEnvx([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = @params) - { - Delegates.glTexEnvxv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexImage2D")] - public static - void TexImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] T8[,] pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexImage2D")] - public static - void TexImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] T8[,,] pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexImage2D")] - public static - void TexImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] IntPtr pixels) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels); - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexImage2D")] - public static - void TexImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] ref T8 pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexImage2D")] - public static - void TexImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] T8[] pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Set texture parameters - /// - /// - /// - /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. - /// - /// - /// - /// - /// Specifies the value of pname. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexParameterf")] - public static - void TexParameter([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexParameterf((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Single)param); - #if DEBUG - } - #endif - } - - - /// - /// Set texture parameters - /// - /// - /// - /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. - /// - /// - /// - /// - /// Specifies the value of pname. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexParameterfv")] - public static - unsafe void TexParameter([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexParameterfv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Set texture parameters - /// - /// - /// - /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. - /// - /// - /// - /// - /// Specifies the value of pname. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexParameterfv")] - public static - void TexParameter([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glTexParameterfv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Set texture parameters - /// - /// - /// - /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. - /// - /// - /// - /// - /// Specifies the value of pname. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexParameteri")] - public static - void TexParameter([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32 param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexParameteri((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32)param); - #if DEBUG - } - #endif - } - - - /// - /// Set texture parameters - /// - /// - /// - /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. - /// - /// - /// - /// - /// Specifies the value of pname. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexParameteriv")] - public static - void TexParameter([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = @params) - { - Delegates.glTexParameteriv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Set texture parameters - /// - /// - /// - /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. - /// - /// - /// - /// - /// Specifies the value of pname. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexParameteriv")] - public static - unsafe void TexParameter([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] Int32* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexParameteriv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexParameterx")] - public static - void TexParameterx([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexParameterx((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int)param); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexParameterxv")] - public static - void TexParameterx([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (int* @params_ptr = @params) - { - Delegates.glTexParameterxv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexParameterxv")] - public static - unsafe void TexParameterx([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] OpenTK.Graphics.ES11.All pname, [In, Out] int* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexParameterxv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexSubImage2D")] - public static - void TexSubImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] IntPtr pixels) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels); - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexSubImage2D")] - public static - void TexSubImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] ref T8 pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexSubImage2D")] - public static - void TexSubImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] T8[] pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexSubImage2D")] - public static - void TexSubImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] T8[,] pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTexSubImage2D")] - public static - void TexSubImage2D([In, Out] OpenTK.Graphics.ES11.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES11.All format, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] T8[,,] pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Multiply the current matrix by a translation matrix - /// - /// - /// - /// Specify the x, y, and z coordinates of a translation vector. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTranslatef")] - public static - void Translate([In, Out] Single x, [In, Out] Single y, [In, Out] Single z) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTranslatef((Single)x, (Single)y, (Single)z); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glTranslatex")] - public static - void Translatex([In, Out] int x, [In, Out] int y, [In, Out] int z) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTranslatex((int)x, (int)y, (int)z); - #if DEBUG - } - #endif - } - - - /// - /// Define an array of vertex data - /// - /// - /// - /// Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first vertex in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glVertexPointer")] - public static - void VertexPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] T3[] pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of vertex data - /// - /// - /// - /// Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first vertex in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glVertexPointer")] - public static - void VertexPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] ref T3 pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of vertex data - /// - /// - /// - /// Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first vertex in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glVertexPointer")] - public static - void VertexPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] IntPtr pointer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer); - #if DEBUG - } - #endif - } - - - /// - /// Define an array of vertex data - /// - /// - /// - /// Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first vertex in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glVertexPointer")] - public static - void VertexPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] T3[,,] pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of vertex data - /// - /// - /// - /// Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first coordinate of the first vertex in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glVertexPointer")] - public static - void VertexPointer([In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES11.All type, [In, Out] Int32 stride, [In, Out] T3[,] pointer) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Set the viewport - /// - /// - /// - /// Specify the lower left corner of the viewport rectangle, in pixels. The initial value is (0,0). - /// - /// - /// - /// - /// Specify the width and height of the viewport. When a GL context is first attached to a window, width and height are set to the dimensions of that window. - /// - /// - - [AutoGenerated(Category = "1.1", Version = "", EntryPoint = "glViewport")] - public static - void Viewport([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glViewport((Int32)x, (Int32)y, (Int32)width, (Int32)height); - #if DEBUG - } - #endif - } - - } -} +#region License +// +// The Open Toolkit Library License +// +// Copyright (c) 2006 - 2009 the Open Toolkit library. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do +// so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// +#endregion + +namespace OpenTK.Graphics.ES11 +{ + using System; + using System.Runtime.InteropServices; + #pragma warning disable 3019 + #pragma warning disable 1591 + #pragma warning disable 1572 + #pragma warning disable 1573 + + static partial class GL + { + + + /// + /// Select active texture unit + /// + /// + /// + /// Specifies which texture unit to make active. The number of texture units is implementation dependent, but must be at least two. texture must be one of GL_TEXTURE, where i ranges from 0 to the larger of (GL_MAX_TEXTURE_COORDS - 1) and (GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS - 1). The initial value is GL_TEXTURE0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glActiveTexture")] + public static + void ActiveTexture(OpenTK.Graphics.ES11.All texture) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glActiveTexture((OpenTK.Graphics.ES11.All)texture); + #if DEBUG + } + #endif + } + + + /// + /// Specify the alpha test function + /// + /// + /// + /// Specifies the alpha comparison function. Symbolic constants GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL, GL_GREATER, GL_NOTEQUAL, GL_GEQUAL, and GL_ALWAYS are accepted. The initial value is GL_ALWAYS. + /// + /// + /// + /// + /// Specifies the reference value that incoming alpha values are compared to. This value is clamped to the range [0,1], where 0 represents the lowest possible alpha value and 1 the highest possible value. The initial reference value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glAlphaFunc")] + public static + void AlphaFunc(OpenTK.Graphics.ES11.All func, Single @ref) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glAlphaFunc((OpenTK.Graphics.ES11.All)func, (Single)@ref); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glAlphaFuncx")] + public static + void AlphaFuncx(OpenTK.Graphics.ES11.All func, int @ref) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glAlphaFuncx((OpenTK.Graphics.ES11.All)func, (int)@ref); + #if DEBUG + } + #endif + } + + + /// + /// Bind a named buffer object + /// + /// + /// + /// Specifies the target to which the buffer object is bound. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the name of a buffer object. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glBindBuffer")] + public static + void BindBuffer(OpenTK.Graphics.ES11.All target, UInt32 buffer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBindBuffer((OpenTK.Graphics.ES11.All)target, (UInt32)buffer); + #if DEBUG + } + #endif + } + + + /// + /// Bind a named texture to a texturing target + /// + /// + /// + /// Specifies the target to which the texture is bound. Must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the name of a texture. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glBindTexture")] + public static + void BindTexture(OpenTK.Graphics.ES11.All target, UInt32 texture) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBindTexture((OpenTK.Graphics.ES11.All)target, (UInt32)texture); + #if DEBUG + } + #endif + } + + + /// + /// Specify pixel arithmetic + /// + /// + /// + /// Specifies how the red, green, blue, and alpha source blending factors are computed. The following symbolic constants are accepted: GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA, GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, GL_ONE_MINUS_CONSTANT_ALPHA, and GL_SRC_ALPHA_SATURATE. The initial value is GL_ONE. + /// + /// + /// + /// + /// Specifies how the red, green, blue, and alpha destination blending factors are computed. The following symbolic constants are accepted: GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA. GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, and GL_ONE_MINUS_CONSTANT_ALPHA. The initial value is GL_ZERO. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glBlendFunc")] + public static + void BlendFunc(OpenTK.Graphics.ES11.All sfactor, OpenTK.Graphics.ES11.All dfactor) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBlendFunc((OpenTK.Graphics.ES11.All)sfactor, (OpenTK.Graphics.ES11.All)dfactor); + #if DEBUG + } + #endif + } + + + /// + /// Creates and initializes a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the size in bytes of the buffer object's new data store. + /// + /// + /// + /// + /// Specifies a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied. + /// + /// + /// + /// + /// Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glBufferData")] + public static + void BufferData(OpenTK.Graphics.ES11.All target, IntPtr size, [InAttribute, OutAttribute] ref T2 data, OpenTK.Graphics.ES11.All usage) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferData((OpenTK.Graphics.ES11.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES11.All)usage); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Creates and initializes a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the size in bytes of the buffer object's new data store. + /// + /// + /// + /// + /// Specifies a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied. + /// + /// + /// + /// + /// Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glBufferData")] + public static + void BufferData(OpenTK.Graphics.ES11.All target, IntPtr size, [InAttribute, OutAttribute] T2[,,] data, OpenTK.Graphics.ES11.All usage) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferData((OpenTK.Graphics.ES11.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES11.All)usage); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Creates and initializes a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the size in bytes of the buffer object's new data store. + /// + /// + /// + /// + /// Specifies a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied. + /// + /// + /// + /// + /// Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glBufferData")] + public static + void BufferData(OpenTK.Graphics.ES11.All target, IntPtr size, [InAttribute, OutAttribute] T2[,] data, OpenTK.Graphics.ES11.All usage) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferData((OpenTK.Graphics.ES11.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES11.All)usage); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Creates and initializes a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the size in bytes of the buffer object's new data store. + /// + /// + /// + /// + /// Specifies a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied. + /// + /// + /// + /// + /// Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glBufferData")] + public static + void BufferData(OpenTK.Graphics.ES11.All target, IntPtr size, [InAttribute, OutAttribute] T2[] data, OpenTK.Graphics.ES11.All usage) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferData((OpenTK.Graphics.ES11.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES11.All)usage); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Creates and initializes a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the size in bytes of the buffer object's new data store. + /// + /// + /// + /// + /// Specifies a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied. + /// + /// + /// + /// + /// Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glBufferData")] + public static + void BufferData(OpenTK.Graphics.ES11.All target, IntPtr size, IntPtr data, OpenTK.Graphics.ES11.All usage) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBufferData((OpenTK.Graphics.ES11.All)target, (IntPtr)size, (IntPtr)data, (OpenTK.Graphics.ES11.All)usage); + #if DEBUG + } + #endif + } + + + /// + /// Updates a subset of a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. + /// + /// + /// + /// + /// Specifies the size in bytes of the data store region being replaced. + /// + /// + /// + /// + /// Specifies a pointer to the new data that will be copied into the data store. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glBufferSubData")] + public static + void BufferSubData(OpenTK.Graphics.ES11.All target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] ref T3 data) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferSubData((OpenTK.Graphics.ES11.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Updates a subset of a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. + /// + /// + /// + /// + /// Specifies the size in bytes of the data store region being replaced. + /// + /// + /// + /// + /// Specifies a pointer to the new data that will be copied into the data store. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glBufferSubData")] + public static + void BufferSubData(OpenTK.Graphics.ES11.All target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] T3[,,] data) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferSubData((OpenTK.Graphics.ES11.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Updates a subset of a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. + /// + /// + /// + /// + /// Specifies the size in bytes of the data store region being replaced. + /// + /// + /// + /// + /// Specifies a pointer to the new data that will be copied into the data store. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glBufferSubData")] + public static + void BufferSubData(OpenTK.Graphics.ES11.All target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] T3[,] data) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferSubData((OpenTK.Graphics.ES11.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Updates a subset of a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. + /// + /// + /// + /// + /// Specifies the size in bytes of the data store region being replaced. + /// + /// + /// + /// + /// Specifies a pointer to the new data that will be copied into the data store. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glBufferSubData")] + public static + void BufferSubData(OpenTK.Graphics.ES11.All target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] T3[] data) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferSubData((OpenTK.Graphics.ES11.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Updates a subset of a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. + /// + /// + /// + /// + /// Specifies the size in bytes of the data store region being replaced. + /// + /// + /// + /// + /// Specifies a pointer to the new data that will be copied into the data store. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glBufferSubData")] + public static + void BufferSubData(OpenTK.Graphics.ES11.All target, IntPtr offset, IntPtr size, IntPtr data) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBufferSubData((OpenTK.Graphics.ES11.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data); + #if DEBUG + } + #endif + } + + + /// + /// Clear buffers to preset values + /// + /// + /// + /// Bitwise OR of masks that indicate the buffers to be cleared. The four masks are GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_ACCUM_BUFFER_BIT, and GL_STENCIL_BUFFER_BIT. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClear")] + public static + void Clear(UInt32 mask) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClear((UInt32)mask); + #if DEBUG + } + #endif + } + + + /// + /// Specify clear values for the color buffers + /// + /// + /// + /// Specify the red, green, blue, and alpha values used when the color buffers are cleared. The initial values are all 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClearColor")] + public static + void ClearColor(Single red, Single green, Single blue, Single alpha) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClearColor((Single)red, (Single)green, (Single)blue, (Single)alpha); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClearColorx")] + public static + void ClearColorx(int red, int green, int blue, int alpha) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClearColorx((int)red, (int)green, (int)blue, (int)alpha); + #if DEBUG + } + #endif + } + + + /// + /// Specify the clear value for the depth buffer + /// + /// + /// + /// Specifies the depth value used when the depth buffer is cleared. The initial value is 1. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClearDepthf")] + public static + void ClearDepth(Single depth) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClearDepthf((Single)depth); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClearDepthx")] + public static + void ClearDepthx(int depth) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClearDepthx((int)depth); + #if DEBUG + } + #endif + } + + + /// + /// Specify the clear value for the stencil buffer + /// + /// + /// + /// Specifies the index used when the stencil buffer is cleared. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClearStencil")] + public static + void ClearStencil(Int32 s) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClearStencil((Int32)s); + #if DEBUG + } + #endif + } + + + /// + /// Select active texture unit + /// + /// + /// + /// Specifies which texture unit to make active. The number of texture units is implementation dependent, but must be at least two. texture must be one of GL_TEXTURE, where i ranges from 0 to the value of GL_MAX_TEXTURE_COORDS - 1, which is an implementation-dependent value. The initial value is GL_TEXTURE0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClientActiveTexture")] + public static + void ClientActiveTexture(OpenTK.Graphics.ES11.All texture) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClientActiveTexture((OpenTK.Graphics.ES11.All)texture); + #if DEBUG + } + #endif + } + + + /// + /// Specify a plane against which all geometry is clipped + /// + /// + /// + /// Specifies which clipping plane is being positioned. Symbolic names of the form GL_CLIP_PLANEi, where i is an integer between 0 and GL_MAX_CLIP_PLANES - 1, are accepted. + /// + /// + /// + /// + /// Specifies the address of an array of four double-precision floating-point values. These values are interpreted as a plane equation. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClipPlanef")] + public static + void ClipPlane(OpenTK.Graphics.ES11.All plane, ref Single equation) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* equation_ptr = &equation) + { + Delegates.glClipPlanef((OpenTK.Graphics.ES11.All)plane, (Single*)equation_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a plane against which all geometry is clipped + /// + /// + /// + /// Specifies which clipping plane is being positioned. Symbolic names of the form GL_CLIP_PLANEi, where i is an integer between 0 and GL_MAX_CLIP_PLANES - 1, are accepted. + /// + /// + /// + /// + /// Specifies the address of an array of four double-precision floating-point values. These values are interpreted as a plane equation. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClipPlanef")] + public static + unsafe void ClipPlane(OpenTK.Graphics.ES11.All plane, Single* equation) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClipPlanef((OpenTK.Graphics.ES11.All)plane, (Single*)equation); + #if DEBUG + } + #endif + } + + + /// + /// Specify a plane against which all geometry is clipped + /// + /// + /// + /// Specifies which clipping plane is being positioned. Symbolic names of the form GL_CLIP_PLANEi, where i is an integer between 0 and GL_MAX_CLIP_PLANES - 1, are accepted. + /// + /// + /// + /// + /// Specifies the address of an array of four double-precision floating-point values. These values are interpreted as a plane equation. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClipPlanef")] + public static + void ClipPlane(OpenTK.Graphics.ES11.All plane, Single[] equation) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* equation_ptr = equation) + { + Delegates.glClipPlanef((OpenTK.Graphics.ES11.All)plane, (Single*)equation_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClipPlanefIMG")] + public static + void ClipPlanefIMG(OpenTK.Graphics.ES11.All p, ref Single eqn) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* eqn_ptr = &eqn) + { + Delegates.glClipPlanefIMG((OpenTK.Graphics.ES11.All)p, (Single*)eqn_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClipPlanefIMG")] + public static + unsafe void ClipPlanefIMG(OpenTK.Graphics.ES11.All p, Single* eqn) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClipPlanefIMG((OpenTK.Graphics.ES11.All)p, (Single*)eqn); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClipPlanefIMG")] + public static + void ClipPlanefIMG(OpenTK.Graphics.ES11.All p, Single[] eqn) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* eqn_ptr = eqn) + { + Delegates.glClipPlanefIMG((OpenTK.Graphics.ES11.All)p, (Single*)eqn_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClipPlanex")] + public static + unsafe void ClipPlanex(OpenTK.Graphics.ES11.All plane, int* equation) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClipPlanex((OpenTK.Graphics.ES11.All)plane, (int*)equation); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClipPlanex")] + public static + void ClipPlanex(OpenTK.Graphics.ES11.All plane, int[] equation) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* equation_ptr = equation) + { + Delegates.glClipPlanex((OpenTK.Graphics.ES11.All)plane, (int*)equation_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClipPlanex")] + public static + void ClipPlanex(OpenTK.Graphics.ES11.All plane, ref int equation) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* equation_ptr = &equation) + { + Delegates.glClipPlanex((OpenTK.Graphics.ES11.All)plane, (int*)equation_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClipPlanexIMG")] + public static + unsafe void ClipPlanexIMG(OpenTK.Graphics.ES11.All p, int* eqn) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClipPlanexIMG((OpenTK.Graphics.ES11.All)p, (int*)eqn); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClipPlanexIMG")] + public static + void ClipPlanexIMG(OpenTK.Graphics.ES11.All p, int[] eqn) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* eqn_ptr = eqn) + { + Delegates.glClipPlanexIMG((OpenTK.Graphics.ES11.All)p, (int*)eqn_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClipPlanexIMG")] + public static + void ClipPlanexIMG(OpenTK.Graphics.ES11.All p, ref int eqn) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* eqn_ptr = &eqn) + { + Delegates.glClipPlanexIMG((OpenTK.Graphics.ES11.All)p, (int*)eqn_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Set the current color + /// + /// + /// + /// Specify new red, green, and blue values for the current color. + /// + /// + /// + /// + /// Specifies a new alpha value for the current color. Included only in the four-argument glColor4 commands. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glColor4f")] + public static + void Color4(Single red, Single green, Single blue, Single alpha) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glColor4f((Single)red, (Single)green, (Single)blue, (Single)alpha); + #if DEBUG + } + #endif + } + + + /// + /// Set the current color + /// + /// + /// + /// Specify new red, green, and blue values for the current color. + /// + /// + /// + /// + /// Specifies a new alpha value for the current color. Included only in the four-argument glColor4 commands. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glColor4ub")] + public static + void Color4(Byte red, Byte green, Byte blue, Byte alpha) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glColor4ub((Byte)red, (Byte)green, (Byte)blue, (Byte)alpha); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glColor4x")] + public static + void Color4x(int red, int green, int blue, int alpha) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glColor4x((int)red, (int)green, (int)blue, (int)alpha); + #if DEBUG + } + #endif + } + + + /// + /// Enable and disable writing of frame buffer color components + /// + /// + /// + /// Specify whether red, green, blue, and alpha can or cannot be written into the frame buffer. The initial values are all GL_TRUE, indicating that the color components can be written. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glColorMask")] + public static + void ColorMask(bool red, bool green, bool blue, bool alpha) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glColorMask((bool)red, (bool)green, (bool)blue, (bool)alpha); + #if DEBUG + } + #endif + } + + + /// + /// Define an array of colors + /// + /// + /// + /// Specifies the number of components per color. Must be 3 or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first component of the first color element in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glColorPointer")] + public static + void ColorPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] ref T3 pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of colors + /// + /// + /// + /// Specifies the number of components per color. Must be 3 or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first component of the first color element in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glColorPointer")] + public static + void ColorPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] T3[,,] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of colors + /// + /// + /// + /// Specifies the number of components per color. Must be 3 or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first component of the first color element in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glColorPointer")] + public static + void ColorPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] T3[,] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of colors + /// + /// + /// + /// Specifies the number of components per color. Must be 3 or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first component of the first color element in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glColorPointer")] + public static + void ColorPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] T3[] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of colors + /// + /// + /// + /// Specifies the number of components per color. Must be 3 or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each color component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive colors. If stride is 0, the colors are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first component of the first color element in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glColorPointer")] + public static + void ColorPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glColorPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glCompressedTexImage2D")] + public static + void CompressedTexImage2D(OpenTK.Graphics.ES11.All target, Int32 level, OpenTK.Graphics.ES11.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] ref T7 data) + where T7 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (OpenTK.Graphics.ES11.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glCompressedTexImage2D")] + public static + void CompressedTexImage2D(OpenTK.Graphics.ES11.All target, Int32 level, OpenTK.Graphics.ES11.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T7[,,] data) + where T7 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (OpenTK.Graphics.ES11.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glCompressedTexImage2D")] + public static + void CompressedTexImage2D(OpenTK.Graphics.ES11.All target, Int32 level, OpenTK.Graphics.ES11.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T7[,] data) + where T7 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (OpenTK.Graphics.ES11.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glCompressedTexImage2D")] + public static + void CompressedTexImage2D(OpenTK.Graphics.ES11.All target, Int32 level, OpenTK.Graphics.ES11.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T7[] data) + where T7 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (OpenTK.Graphics.ES11.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glCompressedTexImage2D")] + public static + void CompressedTexImage2D(OpenTK.Graphics.ES11.All target, Int32 level, OpenTK.Graphics.ES11.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (OpenTK.Graphics.ES11.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data); + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glCompressedTexSubImage2D")] + public static + void CompressedTexSubImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES11.All format, Int32 imageSize, [InAttribute, OutAttribute] ref T8 data) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glCompressedTexSubImage2D")] + public static + void CompressedTexSubImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES11.All format, Int32 imageSize, [InAttribute, OutAttribute] T8[,,] data) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glCompressedTexSubImage2D")] + public static + void CompressedTexSubImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES11.All format, Int32 imageSize, [InAttribute, OutAttribute] T8[,] data) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glCompressedTexSubImage2D")] + public static + void CompressedTexSubImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES11.All format, Int32 imageSize, [InAttribute, OutAttribute] T8[] data) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glCompressedTexSubImage2D")] + public static + void CompressedTexSubImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES11.All format, Int32 imageSize, IntPtr data) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (Int32)imageSize, (IntPtr)data); + #if DEBUG + } + #endif + } + + + /// + /// Copy pixels into a 2D texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the internal format of the texture. Must be one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_RGB, GL_R3_G3_B2, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specify the window coordinates of the lower left corner of the rectangular region of pixels to be copied. + /// + /// + /// + /// + /// Specifies the width of the texture image. Must be 0 or 2 sup n + 2 ( border ) for some integer . + /// + /// + /// + /// + /// Specifies the height of the texture image. Must be 0 or 2 sup m + 2 ( border ) for some integer . + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glCopyTexImage2D")] + public static + void CopyTexImage2D(OpenTK.Graphics.ES11.All target, Int32 level, OpenTK.Graphics.ES11.All internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glCopyTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (OpenTK.Graphics.ES11.All)internalformat, (Int32)x, (Int32)y, (Int32)width, (Int32)height, (Int32)border); + #if DEBUG + } + #endif + } + + + /// + /// Copy a two-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specify the window coordinates of the lower left corner of the rectangular region of pixels to be copied. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glCopyTexSubImage2D")] + public static + void CopyTexSubImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glCopyTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif + } + + + /// + /// Specify whether front- or back-facing facets can be culled + /// + /// + /// + /// Specifies whether front- or back-facing facets are candidates for culling. Symbolic constants GL_FRONT, GL_BACK, and GL_FRONT_AND_BACK are accepted. The initial value is GL_BACK. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glCullFace")] + public static + void CullFace(OpenTK.Graphics.ES11.All mode) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glCullFace((OpenTK.Graphics.ES11.All)mode); + #if DEBUG + } + #endif + } + + + /// + /// Delete named buffer objects + /// + /// + /// + /// Specifies the number of buffer objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of buffer objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDeleteBuffers")] + public static + unsafe void DeleteBuffers(Int32 n, Int32* buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers); + #if DEBUG + } + #endif + } + + + /// + /// Delete named buffer objects + /// + /// + /// + /// Specifies the number of buffer objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of buffer objects to be deleted. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDeleteBuffers")] + public static + void DeleteBuffers(Int32 n, ref UInt32 buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* buffers_ptr = &buffers) + { + Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Delete named buffer objects + /// + /// + /// + /// Specifies the number of buffer objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of buffer objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDeleteBuffers")] + public static + unsafe void DeleteBuffers(Int32 n, UInt32* buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers); + #if DEBUG + } + #endif + } + + + /// + /// Delete named buffer objects + /// + /// + /// + /// Specifies the number of buffer objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of buffer objects to be deleted. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDeleteBuffers")] + public static + void DeleteBuffers(Int32 n, UInt32[] buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* buffers_ptr = buffers) + { + Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDeleteTextures")] + public static + unsafe void DeleteTextures(Int32 n, Int32* textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures); + #if DEBUG + } + #endif + } + + + /// + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDeleteTextures")] + public static + void DeleteTextures(Int32 n, ref UInt32 textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* textures_ptr = &textures) + { + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDeleteTextures")] + public static + unsafe void DeleteTextures(Int32 n, UInt32* textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures); + #if DEBUG + } + #endif + } + + + /// + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDeleteTextures")] + public static + void DeleteTextures(Int32 n, UInt32[] textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* textures_ptr = textures) + { + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify the value used for depth buffer comparisons + /// + /// + /// + /// Specifies the depth comparison function. Symbolic constants GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL, GL_GREATER, GL_NOTEQUAL, GL_GEQUAL, and GL_ALWAYS are accepted. The initial value is GL_LESS. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDepthFunc")] + public static + void DepthFunc(OpenTK.Graphics.ES11.All func) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDepthFunc((OpenTK.Graphics.ES11.All)func); + #if DEBUG + } + #endif + } + + + /// + /// Enable or disable writing into the depth buffer + /// + /// + /// + /// Specifies whether the depth buffer is enabled for writing. If flag is GL_FALSE, depth buffer writing is disabled. Otherwise, it is enabled. Initially, depth buffer writing is enabled. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDepthMask")] + public static + void DepthMask(bool flag) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDepthMask((bool)flag); + #if DEBUG + } + #endif + } + + + /// + /// Specify mapping of depth values from normalized device coordinates to window coordinates + /// + /// + /// + /// Specifies the mapping of the near clipping plane to window coordinates. The initial value is 0. + /// + /// + /// + /// + /// Specifies the mapping of the far clipping plane to window coordinates. The initial value is 1. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDepthRangef")] + public static + void DepthRange(Single zNear, Single zFar) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDepthRangef((Single)zNear, (Single)zFar); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDepthRangex")] + public static + void DepthRangex(int zNear, int zFar) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDepthRangex((int)zNear, (int)zFar); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDisable")] + public static + void Disable(OpenTK.Graphics.ES11.All cap) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDisable((OpenTK.Graphics.ES11.All)cap); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDisableClientState")] + public static + void DisableClientState(OpenTK.Graphics.ES11.All array) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDisableClientState((OpenTK.Graphics.ES11.All)array); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDisableDriverControlQCOM")] + public static + void DisableDriverControlQCOM(UInt32 driverControl) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDisableDriverControlQCOM((UInt32)driverControl); + #if DEBUG + } + #endif + } + + + /// + /// Render primitives from array data + /// + /// + /// + /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. + /// + /// + /// + /// + /// Specifies the starting index in the enabled arrays. + /// + /// + /// + /// + /// Specifies the number of indices to be rendered. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawArrays")] + public static + void DrawArrays(OpenTK.Graphics.ES11.All mode, Int32 first, Int32 count) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDrawArrays((OpenTK.Graphics.ES11.All)mode, (Int32)first, (Int32)count); + #if DEBUG + } + #endif + } + + + /// + /// Render primitives from array data + /// + /// + /// + /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. + /// + /// + /// + /// + /// Specifies the number of elements to be rendered. + /// + /// + /// + /// + /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. + /// + /// + /// + /// + /// Specifies a pointer to the location where the indices are stored. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawElements")] + public static + void DrawElements(OpenTK.Graphics.ES11.All mode, Int32 count, OpenTK.Graphics.ES11.All type, [InAttribute, OutAttribute] ref T3 indices) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElements((OpenTK.Graphics.ES11.All)mode, (Int32)count, (OpenTK.Graphics.ES11.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Render primitives from array data + /// + /// + /// + /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. + /// + /// + /// + /// + /// Specifies the number of elements to be rendered. + /// + /// + /// + /// + /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. + /// + /// + /// + /// + /// Specifies a pointer to the location where the indices are stored. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawElements")] + public static + void DrawElements(OpenTK.Graphics.ES11.All mode, Int32 count, OpenTK.Graphics.ES11.All type, [InAttribute, OutAttribute] T3[,,] indices) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElements((OpenTK.Graphics.ES11.All)mode, (Int32)count, (OpenTK.Graphics.ES11.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Render primitives from array data + /// + /// + /// + /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. + /// + /// + /// + /// + /// Specifies the number of elements to be rendered. + /// + /// + /// + /// + /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. + /// + /// + /// + /// + /// Specifies a pointer to the location where the indices are stored. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawElements")] + public static + void DrawElements(OpenTK.Graphics.ES11.All mode, Int32 count, OpenTK.Graphics.ES11.All type, [InAttribute, OutAttribute] T3[,] indices) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElements((OpenTK.Graphics.ES11.All)mode, (Int32)count, (OpenTK.Graphics.ES11.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Render primitives from array data + /// + /// + /// + /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. + /// + /// + /// + /// + /// Specifies the number of elements to be rendered. + /// + /// + /// + /// + /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. + /// + /// + /// + /// + /// Specifies a pointer to the location where the indices are stored. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawElements")] + public static + void DrawElements(OpenTK.Graphics.ES11.All mode, Int32 count, OpenTK.Graphics.ES11.All type, [InAttribute, OutAttribute] T3[] indices) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElements((OpenTK.Graphics.ES11.All)mode, (Int32)count, (OpenTK.Graphics.ES11.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Render primitives from array data + /// + /// + /// + /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. + /// + /// + /// + /// + /// Specifies the number of elements to be rendered. + /// + /// + /// + /// + /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. + /// + /// + /// + /// + /// Specifies a pointer to the location where the indices are stored. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawElements")] + public static + void DrawElements(OpenTK.Graphics.ES11.All mode, Int32 count, OpenTK.Graphics.ES11.All type, IntPtr indices) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDrawElements((OpenTK.Graphics.ES11.All)mode, (Int32)count, (OpenTK.Graphics.ES11.All)type, (IntPtr)indices); + #if DEBUG + } + #endif + } + + + /// + /// Enable or disable server-side GL capabilities + /// + /// + /// + /// Specifies a symbolic constant indicating a GL capability. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glEnable")] + public static + void Enable(OpenTK.Graphics.ES11.All cap) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glEnable((OpenTK.Graphics.ES11.All)cap); + #if DEBUG + } + #endif + } + + + /// + /// Enable or disable client-side capability + /// + /// + /// + /// Specifies the capability to enable. Symbolic constants GL_COLOR_ARRAY, GL_EDGE_FLAG_ARRAY, GL_FOG_COORD_ARRAY, GL_INDEX_ARRAY, GL_NORMAL_ARRAY, GL_SECONDARY_COLOR_ARRAY, GL_TEXTURE_COORD_ARRAY, and GL_VERTEX_ARRAY are accepted. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glEnableClientState")] + public static + void EnableClientState(OpenTK.Graphics.ES11.All array) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glEnableClientState((OpenTK.Graphics.ES11.All)array); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glEnableDriverControlQCOM")] + public static + void EnableDriverControlQCOM(UInt32 driverControl) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glEnableDriverControlQCOM((UInt32)driverControl); + #if DEBUG + } + #endif + } + + + /// + /// Block until all GL execution is complete + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glFinish")] + public static + void Finish() + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFinish(); + #if DEBUG + } + #endif + } + + + /// + /// Force execution of GL commands in finite time + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glFlush")] + public static + void Flush() + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFlush(); + #if DEBUG + } + #endif + } + + + /// + /// Specify fog parameters + /// + /// + /// + /// Specifies a single-valued fog parameter. GL_FOG_MODE, GL_FOG_DENSITY, GL_FOG_START, GL_FOG_END, GL_FOG_INDEX, and GL_FOG_COORD_SRC are accepted. + /// + /// + /// + /// + /// Specifies the value that pname will be set to. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glFogf")] + public static + void Fog(OpenTK.Graphics.ES11.All pname, Single param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFogf((OpenTK.Graphics.ES11.All)pname, (Single)param); + #if DEBUG + } + #endif + } + + + /// + /// Specify fog parameters + /// + /// + /// + /// Specifies a single-valued fog parameter. GL_FOG_MODE, GL_FOG_DENSITY, GL_FOG_START, GL_FOG_END, GL_FOG_INDEX, and GL_FOG_COORD_SRC are accepted. + /// + /// + /// + /// + /// Specifies the value that pname will be set to. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glFogfv")] + public static + unsafe void Fog(OpenTK.Graphics.ES11.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFogfv((OpenTK.Graphics.ES11.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Specify fog parameters + /// + /// + /// + /// Specifies a single-valued fog parameter. GL_FOG_MODE, GL_FOG_DENSITY, GL_FOG_START, GL_FOG_END, GL_FOG_INDEX, and GL_FOG_COORD_SRC are accepted. + /// + /// + /// + /// + /// Specifies the value that pname will be set to. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glFogfv")] + public static + void Fog(OpenTK.Graphics.ES11.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glFogfv((OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glFogx")] + public static + void Fogx(OpenTK.Graphics.ES11.All pname, int param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFogx((OpenTK.Graphics.ES11.All)pname, (int)param); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glFogxv")] + public static + unsafe void Fogx(OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFogxv((OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glFogxv")] + public static + void Fogx(OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glFogxv((OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Define front- and back-facing polygons + /// + /// + /// + /// Specifies the orientation of front-facing polygons. GL_CW and GL_CCW are accepted. The initial value is GL_CCW. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glFrontFace")] + public static + void FrontFace(OpenTK.Graphics.ES11.All mode) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFrontFace((OpenTK.Graphics.ES11.All)mode); + #if DEBUG + } + #endif + } + + + /// + /// Multiply the current matrix by a perspective matrix + /// + /// + /// + /// Specify the coordinates for the left and right vertical clipping planes. + /// + /// + /// + /// + /// Specify the coordinates for the bottom and top horizontal clipping planes. + /// + /// + /// + /// + /// Specify the distances to the near and far depth clipping planes. Both distances must be positive. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glFrustumf")] + public static + void Frustum(Single left, Single right, Single bottom, Single top, Single zNear, Single zFar) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFrustumf((Single)left, (Single)right, (Single)bottom, (Single)top, (Single)zNear, (Single)zFar); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glFrustumx")] + public static + void Frustumx(int left, int right, int bottom, int top, int zNear, int zFar) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFrustumx((int)left, (int)right, (int)bottom, (int)top, (int)zNear, (int)zFar); + #if DEBUG + } + #endif + } + + + /// + /// Generate buffer object names + /// + /// + /// + /// Specifies the number of buffer object names to be generated. + /// + /// + /// + /// + /// Specifies an array in which the generated buffer object names are stored. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGenBuffers")] + public static + unsafe void GenBuffers(Int32 n, Int32* buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenBuffers((Int32)n, (UInt32*)buffers); + #if DEBUG + } + #endif + } + + + /// + /// Generate buffer object names + /// + /// + /// + /// Specifies the number of buffer object names to be generated. + /// + /// + /// + /// + /// Specifies an array in which the generated buffer object names are stored. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGenBuffers")] + public static + void GenBuffers(Int32 n, ref UInt32 buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* buffers_ptr = &buffers) + { + Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Generate buffer object names + /// + /// + /// + /// Specifies the number of buffer object names to be generated. + /// + /// + /// + /// + /// Specifies an array in which the generated buffer object names are stored. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGenBuffers")] + public static + unsafe void GenBuffers(Int32 n, UInt32* buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenBuffers((Int32)n, (UInt32*)buffers); + #if DEBUG + } + #endif + } + + + /// + /// Generate buffer object names + /// + /// + /// + /// Specifies the number of buffer object names to be generated. + /// + /// + /// + /// + /// Specifies an array in which the generated buffer object names are stored. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGenBuffers")] + public static + void GenBuffers(Int32 n, UInt32[] buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* buffers_ptr = buffers) + { + Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Generate texture names + /// + /// + /// + /// Specifies the number of texture names to be generated. + /// + /// + /// + /// + /// Specifies an array in which the generated texture names are stored. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGenTextures")] + public static + unsafe void GenTextures(Int32 n, Int32* textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenTextures((Int32)n, (UInt32*)textures); + #if DEBUG + } + #endif + } + + + /// + /// Generate texture names + /// + /// + /// + /// Specifies the number of texture names to be generated. + /// + /// + /// + /// + /// Specifies an array in which the generated texture names are stored. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGenTextures")] + public static + void GenTextures(Int32 n, ref UInt32 textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* textures_ptr = &textures) + { + Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Generate texture names + /// + /// + /// + /// Specifies the number of texture names to be generated. + /// + /// + /// + /// + /// Specifies an array in which the generated texture names are stored. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGenTextures")] + public static + unsafe void GenTextures(Int32 n, UInt32* textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenTextures((Int32)n, (UInt32*)textures); + #if DEBUG + } + #endif + } + + + /// + /// Generate texture names + /// + /// + /// + /// Specifies the number of texture names to be generated. + /// + /// + /// + /// + /// Specifies an array in which the generated texture names are stored. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGenTextures")] + public static + void GenTextures(Int32 n, UInt32[] textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* textures_ptr = textures) + { + Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetBooleanv")] + public static + unsafe void GetBoolean(OpenTK.Graphics.ES11.All pname, bool* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetBooleanv((OpenTK.Graphics.ES11.All)pname, (bool*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetBooleanv")] + public static + void GetBoolean(OpenTK.Graphics.ES11.All pname, bool[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (bool* @params_ptr = @params) + { + Delegates.glGetBooleanv((OpenTK.Graphics.ES11.All)pname, (bool*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetBooleanv")] + public static + void GetBoolean(OpenTK.Graphics.ES11.All pname, ref bool @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (bool* @params_ptr = &@params) + { + Delegates.glGetBooleanv((OpenTK.Graphics.ES11.All)pname, (bool*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return parameters of a buffer object + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the symbolic name of a buffer object parameter. Accepted values are GL_BUFFER_ACCESS, GL_BUFFER_MAPPED, GL_BUFFER_SIZE, or GL_BUFFER_USAGE. + /// + /// + /// + /// + /// Returns the requested parameter. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetBufferParameteriv")] + public static + unsafe void GetBufferParameter(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Return parameters of a buffer object + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the symbolic name of a buffer object parameter. Accepted values are GL_BUFFER_ACCESS, GL_BUFFER_MAPPED, GL_BUFFER_SIZE, or GL_BUFFER_USAGE. + /// + /// + /// + /// + /// Returns the requested parameter. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetBufferParameteriv")] + public static + void GetBufferParameter(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return parameters of a buffer object + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the symbolic name of a buffer object parameter. Accepted values are GL_BUFFER_ACCESS, GL_BUFFER_MAPPED, GL_BUFFER_SIZE, or GL_BUFFER_USAGE. + /// + /// + /// + /// + /// Returns the requested parameter. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetBufferParameteriv")] + public static + void GetBufferParameter(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, ref Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return the coefficients of the specified clipping plane + /// + /// + /// + /// Specifies a clipping plane. The number of clipping planes depends on the implementation, but at least six clipping planes are supported. They are identified by symbolic names of the form GL_CLIP_PLANE where i ranges from 0 to the value of GL_MAX_CLIP_PLANES - 1. + /// + /// + /// + /// + /// Returns four double-precision values that are the coefficients of the plane equation of plane in eye coordinates. The initial value is (0, 0, 0, 0). + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetClipPlanef")] + public static + void GetClipPlane(OpenTK.Graphics.ES11.All pname, ref Single eqn) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* eqn_ptr = &eqn) + { + Delegates.glGetClipPlanef((OpenTK.Graphics.ES11.All)pname, (Single*)eqn_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return the coefficients of the specified clipping plane + /// + /// + /// + /// Specifies a clipping plane. The number of clipping planes depends on the implementation, but at least six clipping planes are supported. They are identified by symbolic names of the form GL_CLIP_PLANE where i ranges from 0 to the value of GL_MAX_CLIP_PLANES - 1. + /// + /// + /// + /// + /// Returns four double-precision values that are the coefficients of the plane equation of plane in eye coordinates. The initial value is (0, 0, 0, 0). + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetClipPlanef")] + public static + unsafe void GetClipPlane(OpenTK.Graphics.ES11.All pname, Single* eqn) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetClipPlanef((OpenTK.Graphics.ES11.All)pname, (Single*)eqn); + #if DEBUG + } + #endif + } + + + /// + /// Return the coefficients of the specified clipping plane + /// + /// + /// + /// Specifies a clipping plane. The number of clipping planes depends on the implementation, but at least six clipping planes are supported. They are identified by symbolic names of the form GL_CLIP_PLANE where i ranges from 0 to the value of GL_MAX_CLIP_PLANES - 1. + /// + /// + /// + /// + /// Returns four double-precision values that are the coefficients of the plane equation of plane in eye coordinates. The initial value is (0, 0, 0, 0). + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetClipPlanef")] + public static + void GetClipPlane(OpenTK.Graphics.ES11.All pname, Single[] eqn) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* eqn_ptr = eqn) + { + Delegates.glGetClipPlanef((OpenTK.Graphics.ES11.All)pname, (Single*)eqn_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetClipPlanex")] + public static + unsafe void GetClipPlanex(OpenTK.Graphics.ES11.All pname, int* eqn) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetClipPlanex((OpenTK.Graphics.ES11.All)pname, (int*)eqn); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetClipPlanex")] + public static + void GetClipPlanex(OpenTK.Graphics.ES11.All pname, int[] eqn) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* eqn_ptr = eqn) + { + Delegates.glGetClipPlanex((OpenTK.Graphics.ES11.All)pname, (int*)eqn_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetClipPlanex")] + public static + void GetClipPlanex(OpenTK.Graphics.ES11.All pname, ref int eqn) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* eqn_ptr = &eqn) + { + Delegates.glGetClipPlanex((OpenTK.Graphics.ES11.All)pname, (int*)eqn_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetDriverControlsQCOM")] + public static + unsafe void GetDriverControlsQCOM(Int32* num, Int32 size, Int32* driverControls) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetDriverControlsQCOM((Int32*)num, (Int32)size, (UInt32*)driverControls); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetDriverControlsQCOM")] + public static + unsafe void GetDriverControlsQCOM(Int32* num, Int32 size, UInt32* driverControls) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetDriverControlsQCOM((Int32*)num, (Int32)size, (UInt32*)driverControls); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetDriverControlsQCOM")] + public static + void GetDriverControlsQCOM(Int32[] num, Int32 size, UInt32[] driverControls) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* num_ptr = num) + fixed (UInt32* driverControls_ptr = driverControls) + { + Delegates.glGetDriverControlsQCOM((Int32*)num_ptr, (Int32)size, (UInt32*)driverControls_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetDriverControlsQCOM")] + public static + void GetDriverControlsQCOM(ref Int32 num, Int32 size, ref UInt32 driverControls) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* num_ptr = &num) + fixed (UInt32* driverControls_ptr = &driverControls) + { + Delegates.glGetDriverControlsQCOM((Int32*)num_ptr, (Int32)size, (UInt32*)driverControls_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetDriverControlStringQCOM")] + public static + unsafe void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, Int32* length, String driverControlString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length, (String)driverControlString); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetDriverControlStringQCOM")] + public static + void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, Int32[] length, String driverControlString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = length) + { + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (String)driverControlString); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetDriverControlStringQCOM")] + public static + void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, ref Int32 length, String driverControlString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = &length) + { + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (String)driverControlString); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return error information + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetError")] + public static + OpenTK.Graphics.ES11.All GetError() + { + return Delegates.glGetError(); + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetFixedv")] + public static + unsafe void GetFixed(OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetFixedv((OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetFixedv")] + public static + void GetFixed(OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glGetFixedv((OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetFixedv")] + public static + void GetFixed(OpenTK.Graphics.ES11.All pname, ref int @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = &@params) + { + Delegates.glGetFixedv((OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetFloatv")] + public static + void GetFloat(OpenTK.Graphics.ES11.All pname, ref Single @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = &@params) + { + Delegates.glGetFloatv((OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetFloatv")] + public static + unsafe void GetFloat(OpenTK.Graphics.ES11.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetFloatv((OpenTK.Graphics.ES11.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetFloatv")] + public static + void GetFloat(OpenTK.Graphics.ES11.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glGetFloatv((OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetIntegerv")] + public static + unsafe void GetInteger(OpenTK.Graphics.ES11.All pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetIntegerv((OpenTK.Graphics.ES11.All)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetIntegerv")] + public static + void GetInteger(OpenTK.Graphics.ES11.All pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glGetIntegerv((OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetIntegerv")] + public static + void GetInteger(OpenTK.Graphics.ES11.All pname, ref Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glGetIntegerv((OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return light source parameter values + /// + /// + /// + /// Specifies a light source. The number of possible lights depends on the implementation, but at least eight lights are supported. They are identified by symbolic names of the form GL_LIGHT where ranges from 0 to the value of GL_MAX_LIGHTS - 1. + /// + /// + /// + /// + /// Specifies a light source parameter for light. Accepted symbolic names are GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_POSITION, GL_SPOT_DIRECTION, GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION, and GL_QUADRATIC_ATTENUATION. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetLightfv")] + public static + void GetLight(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, ref Single @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = &@params) + { + Delegates.glGetLightfv((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return light source parameter values + /// + /// + /// + /// Specifies a light source. The number of possible lights depends on the implementation, but at least eight lights are supported. They are identified by symbolic names of the form GL_LIGHT where ranges from 0 to the value of GL_MAX_LIGHTS - 1. + /// + /// + /// + /// + /// Specifies a light source parameter for light. Accepted symbolic names are GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_POSITION, GL_SPOT_DIRECTION, GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION, and GL_QUADRATIC_ATTENUATION. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetLightfv")] + public static + unsafe void GetLight(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetLightfv((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Return light source parameter values + /// + /// + /// + /// Specifies a light source. The number of possible lights depends on the implementation, but at least eight lights are supported. They are identified by symbolic names of the form GL_LIGHT where ranges from 0 to the value of GL_MAX_LIGHTS - 1. + /// + /// + /// + /// + /// Specifies a light source parameter for light. Accepted symbolic names are GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_POSITION, GL_SPOT_DIRECTION, GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION, and GL_QUADRATIC_ATTENUATION. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetLightfv")] + public static + void GetLight(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glGetLightfv((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetLightxv")] + public static + unsafe void GetLightx(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetLightxv((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetLightxv")] + public static + void GetLightx(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glGetLightxv((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetLightxv")] + public static + void GetLightx(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, ref int @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = &@params) + { + Delegates.glGetLightxv((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return material parameters + /// + /// + /// + /// Specifies which of the two materials is being queried. GL_FRONT or GL_BACK are accepted, representing the front and back materials, respectively. + /// + /// + /// + /// + /// Specifies the material parameter to return. GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_EMISSION, GL_SHININESS, and GL_COLOR_INDEXES are accepted. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetMaterialfv")] + public static + void GetMaterial(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, ref Single @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = &@params) + { + Delegates.glGetMaterialfv((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return material parameters + /// + /// + /// + /// Specifies which of the two materials is being queried. GL_FRONT or GL_BACK are accepted, representing the front and back materials, respectively. + /// + /// + /// + /// + /// Specifies the material parameter to return. GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_EMISSION, GL_SHININESS, and GL_COLOR_INDEXES are accepted. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetMaterialfv")] + public static + unsafe void GetMaterial(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetMaterialfv((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Return material parameters + /// + /// + /// + /// Specifies which of the two materials is being queried. GL_FRONT or GL_BACK are accepted, representing the front and back materials, respectively. + /// + /// + /// + /// + /// Specifies the material parameter to return. GL_AMBIENT, GL_DIFFUSE, GL_SPECULAR, GL_EMISSION, GL_SHININESS, and GL_COLOR_INDEXES are accepted. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetMaterialfv")] + public static + void GetMaterial(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glGetMaterialfv((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetMaterialxv")] + public static + unsafe void GetMaterialx(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetMaterialxv((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetMaterialxv")] + public static + void GetMaterialx(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glGetMaterialxv((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetMaterialxv")] + public static + void GetMaterialx(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, ref int @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = &@params) + { + Delegates.glGetMaterialxv((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return the address of the specified pointer + /// + /// + /// + /// Specifies the array or buffer pointer to be returned. Symbolic constants GL_COLOR_ARRAY_POINTER, GL_EDGE_FLAG_ARRAY_POINTER, GL_FOG_COORD_ARRAY_POINTER, GL_FEEDBACK_BUFFER_POINTER, GL_INDEX_ARRAY_POINTER, GL_NORMAL_ARRAY_POINTER, GL_SECONDARY_COLOR_ARRAY_POINTER, GL_SELECTION_BUFFER_POINTER, GL_TEXTURE_COORD_ARRAY_POINTER, or GL_VERTEX_ARRAY_POINTER are accepted. + /// + /// + /// + /// + /// Returns the pointer value specified by pname. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetPointerv")] + public static + void GetPointer(OpenTK.Graphics.ES11.All pname, [InAttribute, OutAttribute] ref T1 @params) + where T1 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetPointerv((OpenTK.Graphics.ES11.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Return the address of the specified pointer + /// + /// + /// + /// Specifies the array or buffer pointer to be returned. Symbolic constants GL_COLOR_ARRAY_POINTER, GL_EDGE_FLAG_ARRAY_POINTER, GL_FOG_COORD_ARRAY_POINTER, GL_FEEDBACK_BUFFER_POINTER, GL_INDEX_ARRAY_POINTER, GL_NORMAL_ARRAY_POINTER, GL_SECONDARY_COLOR_ARRAY_POINTER, GL_SELECTION_BUFFER_POINTER, GL_TEXTURE_COORD_ARRAY_POINTER, or GL_VERTEX_ARRAY_POINTER are accepted. + /// + /// + /// + /// + /// Returns the pointer value specified by pname. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetPointerv")] + public static + void GetPointer(OpenTK.Graphics.ES11.All pname, [InAttribute, OutAttribute] T1[,,] @params) + where T1 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetPointerv((OpenTK.Graphics.ES11.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Return the address of the specified pointer + /// + /// + /// + /// Specifies the array or buffer pointer to be returned. Symbolic constants GL_COLOR_ARRAY_POINTER, GL_EDGE_FLAG_ARRAY_POINTER, GL_FOG_COORD_ARRAY_POINTER, GL_FEEDBACK_BUFFER_POINTER, GL_INDEX_ARRAY_POINTER, GL_NORMAL_ARRAY_POINTER, GL_SECONDARY_COLOR_ARRAY_POINTER, GL_SELECTION_BUFFER_POINTER, GL_TEXTURE_COORD_ARRAY_POINTER, or GL_VERTEX_ARRAY_POINTER are accepted. + /// + /// + /// + /// + /// Returns the pointer value specified by pname. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetPointerv")] + public static + void GetPointer(OpenTK.Graphics.ES11.All pname, [InAttribute, OutAttribute] T1[,] @params) + where T1 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetPointerv((OpenTK.Graphics.ES11.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Return the address of the specified pointer + /// + /// + /// + /// Specifies the array or buffer pointer to be returned. Symbolic constants GL_COLOR_ARRAY_POINTER, GL_EDGE_FLAG_ARRAY_POINTER, GL_FOG_COORD_ARRAY_POINTER, GL_FEEDBACK_BUFFER_POINTER, GL_INDEX_ARRAY_POINTER, GL_NORMAL_ARRAY_POINTER, GL_SECONDARY_COLOR_ARRAY_POINTER, GL_SELECTION_BUFFER_POINTER, GL_TEXTURE_COORD_ARRAY_POINTER, or GL_VERTEX_ARRAY_POINTER are accepted. + /// + /// + /// + /// + /// Returns the pointer value specified by pname. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetPointerv")] + public static + void GetPointer(OpenTK.Graphics.ES11.All pname, [InAttribute, OutAttribute] T1[] @params) + where T1 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetPointerv((OpenTK.Graphics.ES11.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Return the address of the specified pointer + /// + /// + /// + /// Specifies the array or buffer pointer to be returned. Symbolic constants GL_COLOR_ARRAY_POINTER, GL_EDGE_FLAG_ARRAY_POINTER, GL_FOG_COORD_ARRAY_POINTER, GL_FEEDBACK_BUFFER_POINTER, GL_INDEX_ARRAY_POINTER, GL_NORMAL_ARRAY_POINTER, GL_SECONDARY_COLOR_ARRAY_POINTER, GL_SELECTION_BUFFER_POINTER, GL_TEXTURE_COORD_ARRAY_POINTER, or GL_VERTEX_ARRAY_POINTER are accepted. + /// + /// + /// + /// + /// Returns the pointer value specified by pname. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetPointerv")] + public static + void GetPointer(OpenTK.Graphics.ES11.All pname, IntPtr @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPointerv((OpenTK.Graphics.ES11.All)pname, (IntPtr)@params); + #if DEBUG + } + #endif + } + + + /// + /// Return a string describing the current GL connection + /// + /// + /// + /// Specifies a symbolic constant, one of GL_VENDOR, GL_RENDERER, GL_VERSION, GL_SHADING_LANGUAGE_VERSION, or GL_EXTENSIONS. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetString")] + public static + unsafe string GetString(OpenTK.Graphics.ES11.All name) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.glGetString((OpenTK.Graphics.ES11.All)name)); + #if DEBUG + } + #endif + } + + + /// + /// Return texture environment parameters + /// + /// + /// + /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL, or GL_POINT_SPRITE. + /// + /// + /// + /// + /// Specifies the symbolic name of a texture environment parameter. Accepted values are GL_TEXTURE_ENV_MODE, GL_TEXTURE_ENV_COLOR, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexEnvfv")] + public static + void GetTexEnv(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, ref Single @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = &@params) + { + Delegates.glGetTexEnvfv((OpenTK.Graphics.ES11.All)env, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return texture environment parameters + /// + /// + /// + /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL, or GL_POINT_SPRITE. + /// + /// + /// + /// + /// Specifies the symbolic name of a texture environment parameter. Accepted values are GL_TEXTURE_ENV_MODE, GL_TEXTURE_ENV_COLOR, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexEnvfv")] + public static + unsafe void GetTexEnv(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetTexEnvfv((OpenTK.Graphics.ES11.All)env, (OpenTK.Graphics.ES11.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Return texture environment parameters + /// + /// + /// + /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL, or GL_POINT_SPRITE. + /// + /// + /// + /// + /// Specifies the symbolic name of a texture environment parameter. Accepted values are GL_TEXTURE_ENV_MODE, GL_TEXTURE_ENV_COLOR, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexEnvfv")] + public static + void GetTexEnv(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glGetTexEnvfv((OpenTK.Graphics.ES11.All)env, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return texture environment parameters + /// + /// + /// + /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL, or GL_POINT_SPRITE. + /// + /// + /// + /// + /// Specifies the symbolic name of a texture environment parameter. Accepted values are GL_TEXTURE_ENV_MODE, GL_TEXTURE_ENV_COLOR, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexEnviv")] + public static + unsafe void GetTexEnv(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetTexEnviv((OpenTK.Graphics.ES11.All)env, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Return texture environment parameters + /// + /// + /// + /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL, or GL_POINT_SPRITE. + /// + /// + /// + /// + /// Specifies the symbolic name of a texture environment parameter. Accepted values are GL_TEXTURE_ENV_MODE, GL_TEXTURE_ENV_COLOR, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexEnviv")] + public static + void GetTexEnv(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glGetTexEnviv((OpenTK.Graphics.ES11.All)env, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return texture environment parameters + /// + /// + /// + /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL, or GL_POINT_SPRITE. + /// + /// + /// + /// + /// Specifies the symbolic name of a texture environment parameter. Accepted values are GL_TEXTURE_ENV_MODE, GL_TEXTURE_ENV_COLOR, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexEnviv")] + public static + void GetTexEnv(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, ref Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glGetTexEnviv((OpenTK.Graphics.ES11.All)env, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexEnvxv")] + public static + unsafe void GetTexEnvx(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetTexEnvxv((OpenTK.Graphics.ES11.All)env, (OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexEnvxv")] + public static + void GetTexEnvx(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glGetTexEnvxv((OpenTK.Graphics.ES11.All)env, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexEnvxv")] + public static + void GetTexEnvx(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, ref int @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = &@params) + { + Delegates.glGetTexEnvxv((OpenTK.Graphics.ES11.All)env, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return texture parameter values + /// + /// + /// + /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. + /// + /// + /// + /// + /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. + /// + /// + /// + /// + /// Returns the texture parameters. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexParameterfv")] + public static + void GetTexParameter(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, ref Single @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = &@params) + { + Delegates.glGetTexParameterfv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return texture parameter values + /// + /// + /// + /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. + /// + /// + /// + /// + /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. + /// + /// + /// + /// + /// Returns the texture parameters. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexParameterfv")] + public static + unsafe void GetTexParameter(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetTexParameterfv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Return texture parameter values + /// + /// + /// + /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. + /// + /// + /// + /// + /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. + /// + /// + /// + /// + /// Returns the texture parameters. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexParameterfv")] + public static + void GetTexParameter(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glGetTexParameterfv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return texture parameter values + /// + /// + /// + /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. + /// + /// + /// + /// + /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. + /// + /// + /// + /// + /// Returns the texture parameters. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexParameteriv")] + public static + unsafe void GetTexParameter(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetTexParameteriv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Return texture parameter values + /// + /// + /// + /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. + /// + /// + /// + /// + /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. + /// + /// + /// + /// + /// Returns the texture parameters. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexParameteriv")] + public static + void GetTexParameter(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glGetTexParameteriv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return texture parameter values + /// + /// + /// + /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. + /// + /// + /// + /// + /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. + /// + /// + /// + /// + /// Returns the texture parameters. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexParameteriv")] + public static + void GetTexParameter(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, ref Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glGetTexParameteriv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexParameterxv")] + public static + unsafe void GetTexParameterx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetTexParameterxv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexParameterxv")] + public static + void GetTexParameterx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glGetTexParameterxv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexParameterxv")] + public static + void GetTexParameterx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, ref int @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = &@params) + { + Delegates.glGetTexParameterxv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify implementation-specific hints + /// + /// + /// + /// Specifies a symbolic constant indicating the behavior to be controlled. GL_FOG_HINT, GL_GENERATE_MIPMAP_HINT, GL_LINE_SMOOTH_HINT, GL_PERSPECTIVE_CORRECTION_HINT, GL_POINT_SMOOTH_HINT, GL_POLYGON_SMOOTH_HINT, GL_TEXTURE_COMPRESSION_HINT, and GL_FRAGMENT_SHADER_DERIVATIVE_HINT are accepted. + /// + /// + /// + /// + /// Specifies a symbolic constant indicating the desired behavior. GL_FASTEST, GL_NICEST, and GL_DONT_CARE are accepted. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glHint")] + public static + void Hint(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All mode) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glHint((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)mode); + #if DEBUG + } + #endif + } + + + /// + /// Determine if a name corresponds to a buffer object + /// + /// + /// + /// Specifies a value that may be the name of a buffer object. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glIsBuffer")] + public static + bool IsBuffer(UInt32 buffer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glIsBuffer((UInt32)buffer); + #if DEBUG + } + #endif + } + + + /// + /// Test whether a capability is enabled + /// + /// + /// + /// Specifies a symbolic constant indicating a GL capability. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glIsEnabled")] + public static + bool IsEnabled(OpenTK.Graphics.ES11.All cap) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glIsEnabled((OpenTK.Graphics.ES11.All)cap); + #if DEBUG + } + #endif + } + + + /// + /// Determine if a name corresponds to a texture + /// + /// + /// + /// Specifies a value that may be the name of a texture. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glIsTexture")] + public static + bool IsTexture(UInt32 texture) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glIsTexture((UInt32)texture); + #if DEBUG + } + #endif + } + + + /// + /// Set light source parameters + /// + /// + /// + /// Specifies a light. The number of lights depends on the implementation, but at least eight lights are supported. They are identified by symbolic names of the form GL_LIGHT , where i ranges from 0 to the value of GL_MAX_LIGHTS - 1. + /// + /// + /// + /// + /// Specifies a single-valued light source parameter for light. GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION, and GL_QUADRATIC_ATTENUATION are accepted. + /// + /// + /// + /// + /// Specifies the value that parameter pname of light source light will be set to. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLightf")] + public static + void Light(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, Single param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLightf((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (Single)param); + #if DEBUG + } + #endif + } + + + /// + /// Set light source parameters + /// + /// + /// + /// Specifies a light. The number of lights depends on the implementation, but at least eight lights are supported. They are identified by symbolic names of the form GL_LIGHT , where i ranges from 0 to the value of GL_MAX_LIGHTS - 1. + /// + /// + /// + /// + /// Specifies a single-valued light source parameter for light. GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION, and GL_QUADRATIC_ATTENUATION are accepted. + /// + /// + /// + /// + /// Specifies the value that parameter pname of light source light will be set to. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLightfv")] + public static + unsafe void Light(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLightfv((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Set light source parameters + /// + /// + /// + /// Specifies a light. The number of lights depends on the implementation, but at least eight lights are supported. They are identified by symbolic names of the form GL_LIGHT , where i ranges from 0 to the value of GL_MAX_LIGHTS - 1. + /// + /// + /// + /// + /// Specifies a single-valued light source parameter for light. GL_SPOT_EXPONENT, GL_SPOT_CUTOFF, GL_CONSTANT_ATTENUATION, GL_LINEAR_ATTENUATION, and GL_QUADRATIC_ATTENUATION are accepted. + /// + /// + /// + /// + /// Specifies the value that parameter pname of light source light will be set to. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLightfv")] + public static + void Light(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glLightfv((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Set the lighting model parameters + /// + /// + /// + /// Specifies a single-valued lighting model parameter. GL_LIGHT_MODEL_LOCAL_VIEWER, GL_LIGHT_MODEL_COLOR_CONTROL, and GL_LIGHT_MODEL_TWO_SIDE are accepted. + /// + /// + /// + /// + /// Specifies the value that param will be set to. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLightModelf")] + public static + void LightModel(OpenTK.Graphics.ES11.All pname, Single param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLightModelf((OpenTK.Graphics.ES11.All)pname, (Single)param); + #if DEBUG + } + #endif + } + + + /// + /// Set the lighting model parameters + /// + /// + /// + /// Specifies a single-valued lighting model parameter. GL_LIGHT_MODEL_LOCAL_VIEWER, GL_LIGHT_MODEL_COLOR_CONTROL, and GL_LIGHT_MODEL_TWO_SIDE are accepted. + /// + /// + /// + /// + /// Specifies the value that param will be set to. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLightModelfv")] + public static + unsafe void LightModel(OpenTK.Graphics.ES11.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLightModelfv((OpenTK.Graphics.ES11.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Set the lighting model parameters + /// + /// + /// + /// Specifies a single-valued lighting model parameter. GL_LIGHT_MODEL_LOCAL_VIEWER, GL_LIGHT_MODEL_COLOR_CONTROL, and GL_LIGHT_MODEL_TWO_SIDE are accepted. + /// + /// + /// + /// + /// Specifies the value that param will be set to. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLightModelfv")] + public static + void LightModel(OpenTK.Graphics.ES11.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glLightModelfv((OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLightModelx")] + public static + void LightModelx(OpenTK.Graphics.ES11.All pname, int param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLightModelx((OpenTK.Graphics.ES11.All)pname, (int)param); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLightModelxv")] + public static + unsafe void LightModelx(OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLightModelxv((OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLightModelxv")] + public static + void LightModelx(OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glLightModelxv((OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLightx")] + public static + void Lightx(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLightx((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (int)param); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLightxv")] + public static + unsafe void Lightx(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLightxv((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLightxv")] + public static + void Lightx(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glLightxv((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify the width of rasterized lines + /// + /// + /// + /// Specifies the width of rasterized lines. The initial value is 1. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLineWidth")] + public static + void LineWidth(Single width) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLineWidth((Single)width); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLineWidthx")] + public static + void LineWidthx(int width) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLineWidthx((int)width); + #if DEBUG + } + #endif + } + + + /// + /// Replace the current matrix with the identity matrix + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLoadIdentity")] + public static + void LoadIdentity() + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLoadIdentity(); + #if DEBUG + } + #endif + } + + + /// + /// Replace the current matrix with the specified matrix + /// + /// + /// + /// Specifies a pointer to 16 consecutive values, which are used as the elements of a 4 times 4 column-major matrix. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLoadMatrixf")] + public static + void LoadMatrix(ref Single m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* m_ptr = &m) + { + Delegates.glLoadMatrixf((Single*)m_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Replace the current matrix with the specified matrix + /// + /// + /// + /// Specifies a pointer to 16 consecutive values, which are used as the elements of a 4 times 4 column-major matrix. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLoadMatrixf")] + public static + unsafe void LoadMatrix(Single* m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLoadMatrixf((Single*)m); + #if DEBUG + } + #endif + } + + + /// + /// Replace the current matrix with the specified matrix + /// + /// + /// + /// Specifies a pointer to 16 consecutive values, which are used as the elements of a 4 times 4 column-major matrix. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLoadMatrixf")] + public static + void LoadMatrix(Single[] m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* m_ptr = m) + { + Delegates.glLoadMatrixf((Single*)m_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLoadMatrixx")] + public static + unsafe void LoadMatrixx(int* m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLoadMatrixx((int*)m); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLoadMatrixx")] + public static + void LoadMatrixx(int[] m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* m_ptr = m) + { + Delegates.glLoadMatrixx((int*)m_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLoadMatrixx")] + public static + void LoadMatrixx(ref int m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* m_ptr = &m) + { + Delegates.glLoadMatrixx((int*)m_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a logical pixel operation for color index rendering + /// + /// + /// + /// Specifies a symbolic constant that selects a logical operation. The following symbols are accepted: GL_CLEAR, GL_SET, GL_COPY, GL_COPY_INVERTED, GL_NOOP, GL_INVERT, GL_AND, GL_NAND, GL_OR, GL_NOR, GL_XOR, GL_EQUIV, GL_AND_REVERSE, GL_AND_INVERTED, GL_OR_REVERSE, and GL_OR_INVERTED. The initial value is GL_COPY. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLogicOp")] + public static + void LogicOp(OpenTK.Graphics.ES11.All opcode) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLogicOp((OpenTK.Graphics.ES11.All)opcode); + #if DEBUG + } + #endif + } + + + /// + /// Specify material parameters for the lighting model + /// + /// + /// + /// Specifies which face or faces are being updated. Must be one of GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK. + /// + /// + /// + /// + /// Specifies the single-valued material parameter of the face or faces that is being updated. Must be GL_SHININESS. + /// + /// + /// + /// + /// Specifies the value that parameter GL_SHININESS will be set to. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMaterialf")] + public static + void Material(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, Single param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMaterialf((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (Single)param); + #if DEBUG + } + #endif + } + + + /// + /// Specify material parameters for the lighting model + /// + /// + /// + /// Specifies which face or faces are being updated. Must be one of GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK. + /// + /// + /// + /// + /// Specifies the single-valued material parameter of the face or faces that is being updated. Must be GL_SHININESS. + /// + /// + /// + /// + /// Specifies the value that parameter GL_SHININESS will be set to. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMaterialfv")] + public static + unsafe void Material(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMaterialfv((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Specify material parameters for the lighting model + /// + /// + /// + /// Specifies which face or faces are being updated. Must be one of GL_FRONT, GL_BACK, or GL_FRONT_AND_BACK. + /// + /// + /// + /// + /// Specifies the single-valued material parameter of the face or faces that is being updated. Must be GL_SHININESS. + /// + /// + /// + /// + /// Specifies the value that parameter GL_SHININESS will be set to. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMaterialfv")] + public static + void Material(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glMaterialfv((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMaterialx")] + public static + void Materialx(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMaterialx((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (int)param); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMaterialxv")] + public static + unsafe void Materialx(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMaterialxv((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMaterialxv")] + public static + void Materialx(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glMaterialxv((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify which matrix is the current matrix + /// + /// + /// + /// Specifies which matrix stack is the target for subsequent matrix operations. Three values are accepted: GL_MODELVIEW, GL_PROJECTION, and GL_TEXTURE. The initial value is GL_MODELVIEW. Additionally, if the ARB_imaging extension is supported, GL_COLOR is also accepted. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMatrixMode")] + public static + void MatrixMode(OpenTK.Graphics.ES11.All mode) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMatrixMode((OpenTK.Graphics.ES11.All)mode); + #if DEBUG + } + #endif + } + + + /// + /// Set the current texture coordinates + /// + /// + /// + /// Specifies the texture unit whose coordinates should be modified. The number of texture units is implementation dependent, but must be at least two. Symbolic constant must be one of GL_TEXTURE, where i ranges from 0 to GL_MAX_TEXTURE_COORDS - 1, which is an implementation-dependent value. + /// + /// + /// + /// + /// Specify s, t, r, and q texture coordinates for target texture unit. Not all parameters are present in all forms of the command. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMultiTexCoord4f")] + public static + void MultiTexCoord4(OpenTK.Graphics.ES11.All target, Single s, Single t, Single r, Single q) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMultiTexCoord4f((OpenTK.Graphics.ES11.All)target, (Single)s, (Single)t, (Single)r, (Single)q); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMultiTexCoord4x")] + public static + void MultiTexCoord4x(OpenTK.Graphics.ES11.All target, int s, int t, int r, int q) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMultiTexCoord4x((OpenTK.Graphics.ES11.All)target, (int)s, (int)t, (int)r, (int)q); + #if DEBUG + } + #endif + } + + + /// + /// Multiply the current matrix with the specified matrix + /// + /// + /// + /// Points to 16 consecutive values that are used as the elements of a 4 times 4 column-major matrix. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMultMatrixf")] + public static + void MultMatrix(ref Single m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* m_ptr = &m) + { + Delegates.glMultMatrixf((Single*)m_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Multiply the current matrix with the specified matrix + /// + /// + /// + /// Points to 16 consecutive values that are used as the elements of a 4 times 4 column-major matrix. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMultMatrixf")] + public static + unsafe void MultMatrix(Single* m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMultMatrixf((Single*)m); + #if DEBUG + } + #endif + } + + + /// + /// Multiply the current matrix with the specified matrix + /// + /// + /// + /// Points to 16 consecutive values that are used as the elements of a 4 times 4 column-major matrix. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMultMatrixf")] + public static + void MultMatrix(Single[] m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* m_ptr = m) + { + Delegates.glMultMatrixf((Single*)m_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMultMatrixx")] + public static + unsafe void MultMatrixx(int* m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMultMatrixx((int*)m); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMultMatrixx")] + public static + void MultMatrixx(int[] m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* m_ptr = m) + { + Delegates.glMultMatrixx((int*)m_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMultMatrixx")] + public static + void MultMatrixx(ref int m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* m_ptr = &m) + { + Delegates.glMultMatrixx((int*)m_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Set the current normal vector + /// + /// + /// + /// Specify the , , and coordinates of the new current normal. The initial value of the current normal is the unit vector, (0, 0, 1). + /// + /// + /// + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glNormal3f")] + public static + void Normal3(Single nx, Single ny, Single nz) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glNormal3f((Single)nx, (Single)ny, (Single)nz); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glNormal3x")] + public static + void Normal3x(int nx, int ny, int nz) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glNormal3x((int)nx, (int)ny, (int)nz); + #if DEBUG + } + #endif + } + + + /// + /// Define an array of normals + /// + /// + /// + /// Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first normal in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glNormalPointer")] + public static + void NormalPointer(OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] ref T2 pointer) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointer((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of normals + /// + /// + /// + /// Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first normal in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glNormalPointer")] + public static + void NormalPointer(OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] T2[,,] pointer) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointer((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of normals + /// + /// + /// + /// Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first normal in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glNormalPointer")] + public static + void NormalPointer(OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] T2[,] pointer) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointer((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of normals + /// + /// + /// + /// Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first normal in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glNormalPointer")] + public static + void NormalPointer(OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] T2[] pointer) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glNormalPointer((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of normals + /// + /// + /// + /// Specifies the data type of each coordinate in the array. Symbolic constants GL_BYTE, GL_SHORT, GL_INT, GL_FLOAT, and GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive normals. If stride is 0, the normals are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first normal in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glNormalPointer")] + public static + void NormalPointer(OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glNormalPointer((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG + } + #endif + } + + + /// + /// Multiply the current matrix with an orthographic matrix + /// + /// + /// + /// Specify the coordinates for the left and right vertical clipping planes. + /// + /// + /// + /// + /// Specify the coordinates for the bottom and top horizontal clipping planes. + /// + /// + /// + /// + /// Specify the distances to the nearer and farther depth clipping planes. These values are negative if the plane is to be behind the viewer. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glOrthof")] + public static + void Ortho(Single left, Single right, Single bottom, Single top, Single zNear, Single zFar) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glOrthof((Single)left, (Single)right, (Single)bottom, (Single)top, (Single)zNear, (Single)zFar); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glOrthox")] + public static + void Orthox(int left, int right, int bottom, int top, int zNear, int zFar) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glOrthox((int)left, (int)right, (int)bottom, (int)top, (int)zNear, (int)zFar); + #if DEBUG + } + #endif + } + + + /// + /// Set pixel storage modes + /// + /// + /// + /// Specifies the symbolic name of the parameter to be set. Six values affect the packing of pixel data into memory: GL_PACK_SWAP_BYTES, GL_PACK_LSB_FIRST, GL_PACK_ROW_LENGTH, GL_PACK_IMAGE_HEIGHT, GL_PACK_SKIP_PIXELS, GL_PACK_SKIP_ROWS, GL_PACK_SKIP_IMAGES, and GL_PACK_ALIGNMENT. Six more affect the unpacking of pixel data from memory: GL_UNPACK_SWAP_BYTES, GL_UNPACK_LSB_FIRST, GL_UNPACK_ROW_LENGTH, GL_UNPACK_IMAGE_HEIGHT, GL_UNPACK_SKIP_PIXELS, GL_UNPACK_SKIP_ROWS, GL_UNPACK_SKIP_IMAGES, and GL_UNPACK_ALIGNMENT. + /// + /// + /// + /// + /// Specifies the value that pname is set to. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPixelStorei")] + public static + void PixelStore(OpenTK.Graphics.ES11.All pname, Int32 param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPixelStorei((OpenTK.Graphics.ES11.All)pname, (Int32)param); + #if DEBUG + } + #endif + } + + + /// + /// Specify point parameters + /// + /// + /// + /// Specifies a single-valued point parameter. GL_POINT_SIZE_MIN, GL_POINT_SIZE_MAX, GL_POINT_FADE_THRESHOLD_SIZE, and GL_POINT_SPRITE_COORD_ORIGIN are accepted. + /// + /// + /// + /// + /// Specifies the value that pname will be set to. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPointParameterf")] + public static + void PointParameter(OpenTK.Graphics.ES11.All pname, Single param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPointParameterf((OpenTK.Graphics.ES11.All)pname, (Single)param); + #if DEBUG + } + #endif + } + + + /// + /// Specify point parameters + /// + /// + /// + /// Specifies a single-valued point parameter. GL_POINT_SIZE_MIN, GL_POINT_SIZE_MAX, GL_POINT_FADE_THRESHOLD_SIZE, and GL_POINT_SPRITE_COORD_ORIGIN are accepted. + /// + /// + /// + /// + /// Specifies the value that pname will be set to. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPointParameterfv")] + public static + unsafe void PointParameter(OpenTK.Graphics.ES11.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPointParameterfv((OpenTK.Graphics.ES11.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Specify point parameters + /// + /// + /// + /// Specifies a single-valued point parameter. GL_POINT_SIZE_MIN, GL_POINT_SIZE_MAX, GL_POINT_FADE_THRESHOLD_SIZE, and GL_POINT_SPRITE_COORD_ORIGIN are accepted. + /// + /// + /// + /// + /// Specifies the value that pname will be set to. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPointParameterfv")] + public static + void PointParameter(OpenTK.Graphics.ES11.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glPointParameterfv((OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPointParameterx")] + public static + void PointParameterx(OpenTK.Graphics.ES11.All pname, int param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPointParameterx((OpenTK.Graphics.ES11.All)pname, (int)param); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPointParameterxv")] + public static + unsafe void PointParameterx(OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPointParameterxv((OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPointParameterxv")] + public static + void PointParameterx(OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glPointParameterxv((OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify the diameter of rasterized points + /// + /// + /// + /// Specifies the diameter of rasterized points. The initial value is 1. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPointSize")] + public static + void PointSize(Single size) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPointSize((Single)size); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPointSizex")] + public static + void PointSizex(int size) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPointSizex((int)size); + #if DEBUG + } + #endif + } + + + /// + /// Set the scale and units used to calculate depth values + /// + /// + /// + /// Specifies a scale factor that is used to create a variable depth offset for each polygon. The initial value is 0. + /// + /// + /// + /// + /// Is multiplied by an implementation-specific value to create a constant depth offset. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPolygonOffset")] + public static + void PolygonOffset(Single factor, Single units) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPolygonOffset((Single)factor, (Single)units); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPolygonOffsetx")] + public static + void PolygonOffsetx(int factor, int units) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPolygonOffsetx((int)factor, (int)units); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPopMatrix")] + public static + void PopMatrix() + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPopMatrix(); + #if DEBUG + } + #endif + } + + + /// + /// Push and pop the current matrix stack + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPushMatrix")] + public static + void PushMatrix() + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPushMatrix(); + #if DEBUG + } + #endif + } + + + /// + /// Read a block of pixels from the frame buffer + /// + /// + /// + /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. + /// + /// + /// + /// + /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Returns the pixel data. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glReadPixels")] + public static + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES11.All format, OpenTK.Graphics.ES11.All type, [InAttribute, OutAttribute] ref T6 pixels) + where T6 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Read a block of pixels from the frame buffer + /// + /// + /// + /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. + /// + /// + /// + /// + /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Returns the pixel data. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glReadPixels")] + public static + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES11.All format, OpenTK.Graphics.ES11.All type, [InAttribute, OutAttribute] T6[,,] pixels) + where T6 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Read a block of pixels from the frame buffer + /// + /// + /// + /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. + /// + /// + /// + /// + /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Returns the pixel data. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glReadPixels")] + public static + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES11.All format, OpenTK.Graphics.ES11.All type, [InAttribute, OutAttribute] T6[,] pixels) + where T6 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Read a block of pixels from the frame buffer + /// + /// + /// + /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. + /// + /// + /// + /// + /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Returns the pixel data. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glReadPixels")] + public static + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES11.All format, OpenTK.Graphics.ES11.All type, [InAttribute, OutAttribute] T6[] pixels) + where T6 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Read a block of pixels from the frame buffer + /// + /// + /// + /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. + /// + /// + /// + /// + /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Returns the pixel data. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glReadPixels")] + public static + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES11.All format, OpenTK.Graphics.ES11.All type, IntPtr pixels) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels); + #if DEBUG + } + #endif + } + + + /// + /// Multiply the current matrix by a rotation matrix + /// + /// + /// + /// Specifies the angle of rotation, in degrees. + /// + /// + /// + /// + /// Specify the x, y, and z coordinates of a vector, respectively. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glRotatef")] + public static + void Rotate(Single angle, Single x, Single y, Single z) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glRotatef((Single)angle, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glRotatex")] + public static + void Rotatex(int angle, int x, int y, int z) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glRotatex((int)angle, (int)x, (int)y, (int)z); + #if DEBUG + } + #endif + } + + + /// + /// Specify multisample coverage parameters + /// + /// + /// + /// Specify a single floating-point sample coverage value. The value is clamped to the range [0 ,1]. The initial value is 1.0. + /// + /// + /// + /// + /// Specify a single boolean value representing if the coverage masks should be inverted. GL_TRUE and GL_FALSE are accepted. The initial value is GL_FALSE. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glSampleCoverage")] + public static + void SampleCoverage(Single value, bool invert) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glSampleCoverage((Single)value, (bool)invert); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glSampleCoveragex")] + public static + void SampleCoveragex(int value, bool invert) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glSampleCoveragex((int)value, (bool)invert); + #if DEBUG + } + #endif + } + + + /// + /// Multiply the current matrix by a general scaling matrix + /// + /// + /// + /// Specify scale factors along the x, y, and z axes, respectively. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glScalef")] + public static + void Scale(Single x, Single y, Single z) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glScalef((Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glScalex")] + public static + void Scalex(int x, int y, int z) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glScalex((int)x, (int)y, (int)z); + #if DEBUG + } + #endif + } + + + /// + /// Define the scissor box + /// + /// + /// + /// Specify the lower left corner of the scissor box. Initially (0, 0). + /// + /// + /// + /// + /// Specify the width and height of the scissor box. When a GL context is first attached to a window, width and height are set to the dimensions of that window. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glScissor")] + public static + void Scissor(Int32 x, Int32 y, Int32 width, Int32 height) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glScissor((Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif + } + + + /// + /// Select flat or smooth shading + /// + /// + /// + /// Specifies a symbolic value representing a shading technique. Accepted values are GL_FLAT and GL_SMOOTH. The initial value is GL_SMOOTH. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glShadeModel")] + public static + void ShadeModel(OpenTK.Graphics.ES11.All mode) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glShadeModel((OpenTK.Graphics.ES11.All)mode); + #if DEBUG + } + #endif + } + + + /// + /// Set front and back function and reference value for stencil testing + /// + /// + /// + /// Specifies the test function. Eight symbolic constants are valid: GL_NEVER, GL_LESS, GL_LEQUAL, GL_GREATER, GL_GEQUAL, GL_EQUAL, GL_NOTEQUAL, and GL_ALWAYS. The initial value is GL_ALWAYS. + /// + /// + /// + /// + /// Specifies the reference value for the stencil test. ref is clamped to the range [0, 2 sup n - 1], where is the number of bitplanes in the stencil buffer. The initial value is 0. + /// + /// + /// + /// + /// Specifies a mask that is ANDed with both the reference value and the stored stencil value when the test is done. The initial value is all 1's. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glStencilFunc")] + public static + void StencilFunc(OpenTK.Graphics.ES11.All func, Int32 @ref, UInt32 mask) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glStencilFunc((OpenTK.Graphics.ES11.All)func, (Int32)@ref, (UInt32)mask); + #if DEBUG + } + #endif + } + + + /// + /// Control the front and back writing of individual bits in the stencil planes + /// + /// + /// + /// Specifies a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, the mask is all 1's. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glStencilMask")] + public static + void StencilMask(UInt32 mask) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glStencilMask((UInt32)mask); + #if DEBUG + } + #endif + } + + + /// + /// Set front and back stencil test actions + /// + /// + /// + /// Specifies the action to take when the stencil test fails. Eight symbolic constants are accepted: GL_KEEP, GL_ZERO, GL_REPLACE, GL_INCR, GL_INCR_WRAP, GL_DECR, GL_DECR_WRAP, and GL_INVERT. The initial value is GL_KEEP. + /// + /// + /// + /// + /// Specifies the stencil action when the stencil test passes, but the depth test fails. dpfail accepts the same symbolic constants as sfail. The initial value is GL_KEEP. + /// + /// + /// + /// + /// Specifies the stencil action when both the stencil test and the depth test pass, or when the stencil test passes and either there is no depth buffer or depth testing is not enabled. dppass accepts the same symbolic constants as sfail. The initial value is GL_KEEP. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glStencilOp")] + public static + void StencilOp(OpenTK.Graphics.ES11.All fail, OpenTK.Graphics.ES11.All zfail, OpenTK.Graphics.ES11.All zpass) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glStencilOp((OpenTK.Graphics.ES11.All)fail, (OpenTK.Graphics.ES11.All)zfail, (OpenTK.Graphics.ES11.All)zpass); + #if DEBUG + } + #endif + } + + + /// + /// Define an array of texture coordinates + /// + /// + /// + /// Specifies the number of coordinates per array element. Must be 1, 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each texture coordinate. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive texture coordinate sets. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first texture coordinate set in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexCoordPointer")] + public static + void TexCoordPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] ref T3 pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of texture coordinates + /// + /// + /// + /// Specifies the number of coordinates per array element. Must be 1, 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each texture coordinate. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive texture coordinate sets. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first texture coordinate set in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexCoordPointer")] + public static + void TexCoordPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] T3[,,] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of texture coordinates + /// + /// + /// + /// Specifies the number of coordinates per array element. Must be 1, 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each texture coordinate. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive texture coordinate sets. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first texture coordinate set in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexCoordPointer")] + public static + void TexCoordPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] T3[,] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of texture coordinates + /// + /// + /// + /// Specifies the number of coordinates per array element. Must be 1, 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each texture coordinate. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive texture coordinate sets. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first texture coordinate set in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexCoordPointer")] + public static + void TexCoordPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] T3[] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of texture coordinates + /// + /// + /// + /// Specifies the number of coordinates per array element. Must be 1, 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each texture coordinate. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive texture coordinate sets. If stride is 0, the array elements are understood to be tightly packed. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first texture coordinate set in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexCoordPointer")] + public static + void TexCoordPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexCoordPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG + } + #endif + } + + + /// + /// Set texture environment parameters + /// + /// + /// + /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL or GL_POINT_SPRITE. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture environment parameter. May be either GL_TEXTURE_ENV_MODE, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. + /// + /// + /// + /// + /// Specifies a single symbolic constant, one of GL_ADD, GL_ADD_SIGNED, GL_INTERPOLATE, GL_MODULATE, GL_DECAL, GL_BLEND, GL_REPLACE, GL_SUBTRACT, GL_COMBINE, GL_TEXTURE, GL_CONSTANT, GL_PRIMARY_COLOR, GL_PREVIOUS, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, a single boolean value for the point sprite texture coordinate replacement, a single floating-point value for the texture level-of-detail bias, or 1.0, 2.0, or 4.0 when specifying the GL_RGB_SCALE or GL_ALPHA_SCALE. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexEnvf")] + public static + void TexEnv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Single param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexEnvf((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Single)param); + #if DEBUG + } + #endif + } + + + /// + /// Set texture environment parameters + /// + /// + /// + /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL or GL_POINT_SPRITE. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture environment parameter. May be either GL_TEXTURE_ENV_MODE, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. + /// + /// + /// + /// + /// Specifies a single symbolic constant, one of GL_ADD, GL_ADD_SIGNED, GL_INTERPOLATE, GL_MODULATE, GL_DECAL, GL_BLEND, GL_REPLACE, GL_SUBTRACT, GL_COMBINE, GL_TEXTURE, GL_CONSTANT, GL_PRIMARY_COLOR, GL_PREVIOUS, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, a single boolean value for the point sprite texture coordinate replacement, a single floating-point value for the texture level-of-detail bias, or 1.0, 2.0, or 4.0 when specifying the GL_RGB_SCALE or GL_ALPHA_SCALE. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexEnvfv")] + public static + unsafe void TexEnv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexEnvfv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Set texture environment parameters + /// + /// + /// + /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL or GL_POINT_SPRITE. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture environment parameter. May be either GL_TEXTURE_ENV_MODE, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. + /// + /// + /// + /// + /// Specifies a single symbolic constant, one of GL_ADD, GL_ADD_SIGNED, GL_INTERPOLATE, GL_MODULATE, GL_DECAL, GL_BLEND, GL_REPLACE, GL_SUBTRACT, GL_COMBINE, GL_TEXTURE, GL_CONSTANT, GL_PRIMARY_COLOR, GL_PREVIOUS, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, a single boolean value for the point sprite texture coordinate replacement, a single floating-point value for the texture level-of-detail bias, or 1.0, 2.0, or 4.0 when specifying the GL_RGB_SCALE or GL_ALPHA_SCALE. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexEnvfv")] + public static + void TexEnv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glTexEnvfv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Set texture environment parameters + /// + /// + /// + /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL or GL_POINT_SPRITE. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture environment parameter. May be either GL_TEXTURE_ENV_MODE, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. + /// + /// + /// + /// + /// Specifies a single symbolic constant, one of GL_ADD, GL_ADD_SIGNED, GL_INTERPOLATE, GL_MODULATE, GL_DECAL, GL_BLEND, GL_REPLACE, GL_SUBTRACT, GL_COMBINE, GL_TEXTURE, GL_CONSTANT, GL_PRIMARY_COLOR, GL_PREVIOUS, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, a single boolean value for the point sprite texture coordinate replacement, a single floating-point value for the texture level-of-detail bias, or 1.0, 2.0, or 4.0 when specifying the GL_RGB_SCALE or GL_ALPHA_SCALE. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexEnvi")] + public static + void TexEnv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32 param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexEnvi((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32)param); + #if DEBUG + } + #endif + } + + + /// + /// Set texture environment parameters + /// + /// + /// + /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL or GL_POINT_SPRITE. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture environment parameter. May be either GL_TEXTURE_ENV_MODE, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. + /// + /// + /// + /// + /// Specifies a single symbolic constant, one of GL_ADD, GL_ADD_SIGNED, GL_INTERPOLATE, GL_MODULATE, GL_DECAL, GL_BLEND, GL_REPLACE, GL_SUBTRACT, GL_COMBINE, GL_TEXTURE, GL_CONSTANT, GL_PRIMARY_COLOR, GL_PREVIOUS, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, a single boolean value for the point sprite texture coordinate replacement, a single floating-point value for the texture level-of-detail bias, or 1.0, 2.0, or 4.0 when specifying the GL_RGB_SCALE or GL_ALPHA_SCALE. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexEnviv")] + public static + unsafe void TexEnv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexEnviv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Set texture environment parameters + /// + /// + /// + /// Specifies a texture environment. May be GL_TEXTURE_ENV, GL_TEXTURE_FILTER_CONTROL or GL_POINT_SPRITE. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture environment parameter. May be either GL_TEXTURE_ENV_MODE, GL_TEXTURE_LOD_BIAS, GL_COMBINE_RGB, GL_COMBINE_ALPHA, GL_SRC0_RGB, GL_SRC1_RGB, GL_SRC2_RGB, GL_SRC0_ALPHA, GL_SRC1_ALPHA, GL_SRC2_ALPHA, GL_OPERAND0_RGB, GL_OPERAND1_RGB, GL_OPERAND2_RGB, GL_OPERAND0_ALPHA, GL_OPERAND1_ALPHA, GL_OPERAND2_ALPHA, GL_RGB_SCALE, GL_ALPHA_SCALE, or GL_COORD_REPLACE. + /// + /// + /// + /// + /// Specifies a single symbolic constant, one of GL_ADD, GL_ADD_SIGNED, GL_INTERPOLATE, GL_MODULATE, GL_DECAL, GL_BLEND, GL_REPLACE, GL_SUBTRACT, GL_COMBINE, GL_TEXTURE, GL_CONSTANT, GL_PRIMARY_COLOR, GL_PREVIOUS, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, a single boolean value for the point sprite texture coordinate replacement, a single floating-point value for the texture level-of-detail bias, or 1.0, 2.0, or 4.0 when specifying the GL_RGB_SCALE or GL_ALPHA_SCALE. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexEnviv")] + public static + void TexEnv(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glTexEnviv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexEnvx")] + public static + void TexEnvx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexEnvx((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int)param); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexEnvxv")] + public static + unsafe void TexEnvx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexEnvxv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexEnvxv")] + public static + void TexEnvx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glTexEnvxv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexImage2D")] + public static + void TexImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES11.All format, OpenTK.Graphics.ES11.All type, [InAttribute, OutAttribute] ref T8 pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexImage2D")] + public static + void TexImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES11.All format, OpenTK.Graphics.ES11.All type, [InAttribute, OutAttribute] T8[,,] pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexImage2D")] + public static + void TexImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES11.All format, OpenTK.Graphics.ES11.All type, [InAttribute, OutAttribute] T8[,] pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexImage2D")] + public static + void TexImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES11.All format, OpenTK.Graphics.ES11.All type, [InAttribute, OutAttribute] T8[] pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexImage2D")] + public static + void TexImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES11.All format, OpenTK.Graphics.ES11.All type, IntPtr pixels) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels); + #if DEBUG + } + #endif + } + + + /// + /// Set texture parameters + /// + /// + /// + /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. + /// + /// + /// + /// + /// Specifies the value of pname. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexParameterf")] + public static + void TexParameter(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Single param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexParameterf((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Single)param); + #if DEBUG + } + #endif + } + + + /// + /// Set texture parameters + /// + /// + /// + /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. + /// + /// + /// + /// + /// Specifies the value of pname. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexParameterfv")] + public static + unsafe void TexParameter(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexParameterfv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Set texture parameters + /// + /// + /// + /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. + /// + /// + /// + /// + /// Specifies the value of pname. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexParameterfv")] + public static + void TexParameter(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glTexParameterfv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Set texture parameters + /// + /// + /// + /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. + /// + /// + /// + /// + /// Specifies the value of pname. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexParameteri")] + public static + void TexParameter(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32 param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexParameteri((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32)param); + #if DEBUG + } + #endif + } + + + /// + /// Set texture parameters + /// + /// + /// + /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. + /// + /// + /// + /// + /// Specifies the value of pname. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexParameteriv")] + public static + unsafe void TexParameter(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexParameteriv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Set texture parameters + /// + /// + /// + /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. + /// + /// + /// + /// + /// Specifies the value of pname. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexParameteriv")] + public static + void TexParameter(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glTexParameteriv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexParameterx")] + public static + void TexParameterx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexParameterx((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int)param); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexParameterxv")] + public static + unsafe void TexParameterx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexParameterxv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexParameterxv")] + public static + void TexParameterx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glTexParameterxv((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexSubImage2D")] + public static + void TexSubImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES11.All format, OpenTK.Graphics.ES11.All type, [InAttribute, OutAttribute] ref T8 pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexSubImage2D")] + public static + void TexSubImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES11.All format, OpenTK.Graphics.ES11.All type, [InAttribute, OutAttribute] T8[,,] pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexSubImage2D")] + public static + void TexSubImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES11.All format, OpenTK.Graphics.ES11.All type, [InAttribute, OutAttribute] T8[,] pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexSubImage2D")] + public static + void TexSubImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES11.All format, OpenTK.Graphics.ES11.All type, [InAttribute, OutAttribute] T8[] pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexSubImage2D")] + public static + void TexSubImage2D(OpenTK.Graphics.ES11.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES11.All format, OpenTK.Graphics.ES11.All type, IntPtr pixels) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexSubImage2D((OpenTK.Graphics.ES11.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES11.All)format, (OpenTK.Graphics.ES11.All)type, (IntPtr)pixels); + #if DEBUG + } + #endif + } + + + /// + /// Multiply the current matrix by a translation matrix + /// + /// + /// + /// Specify the x, y, and z coordinates of a translation vector. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTranslatef")] + public static + void Translate(Single x, Single y, Single z) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTranslatef((Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTranslatex")] + public static + void Translatex(int x, int y, int z) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTranslatex((int)x, (int)y, (int)z); + #if DEBUG + } + #endif + } + + + /// + /// Define an array of vertex data + /// + /// + /// + /// Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first vertex in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glVertexPointer")] + public static + void VertexPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] ref T3 pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of vertex data + /// + /// + /// + /// Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first vertex in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glVertexPointer")] + public static + void VertexPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] T3[,,] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of vertex data + /// + /// + /// + /// Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first vertex in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glVertexPointer")] + public static + void VertexPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] T3[,] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of vertex data + /// + /// + /// + /// Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first vertex in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glVertexPointer")] + public static + void VertexPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] T3[] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of vertex data + /// + /// + /// + /// Specifies the number of coordinates per vertex. Must be 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each coordinate in the array. Symbolic constants GL_SHORT, GL_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive vertices. If stride is 0, the vertices are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first coordinate of the first vertex in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glVertexPointer")] + public static + void VertexPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glVertexPointer((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG + } + #endif + } + + + /// + /// Set the viewport + /// + /// + /// + /// Specify the lower left corner of the viewport rectangle, in pixels. The initial value is (0,0). + /// + /// + /// + /// + /// Specify the width and height of the viewport. When a GL context is first attached to a window, width and height are set to the dimensions of that window. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glViewport")] + public static + void Viewport(Int32 x, Int32 y, Int32 width, Int32 height) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glViewport((Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif + } + + public static partial class NV + { + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDeleteFencesNV")] + public static + unsafe void DeleteFences(Int32 n, Int32* fences) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDeleteFencesNV")] + public static + void DeleteFences(Int32 n, ref UInt32 fences) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* fences_ptr = &fences) + { + Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDeleteFencesNV")] + public static + unsafe void DeleteFences(Int32 n, UInt32* fences) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDeleteFencesNV")] + public static + void DeleteFences(Int32 n, UInt32[] fences) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* fences_ptr = fences) + { + Delegates.glDeleteFencesNV((Int32)n, (UInt32*)fences_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glFinishFenceNV")] + public static + void FinishFence(UInt32 fence) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFinishFenceNV((UInt32)fence); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGenFencesNV")] + public static + unsafe void GenFences(Int32 n, Int32* fences) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenFencesNV((Int32)n, (UInt32*)fences); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGenFencesNV")] + public static + void GenFences(Int32 n, ref UInt32 fences) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* fences_ptr = &fences) + { + Delegates.glGenFencesNV((Int32)n, (UInt32*)fences_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGenFencesNV")] + public static + unsafe void GenFences(Int32 n, UInt32* fences) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenFencesNV((Int32)n, (UInt32*)fences); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGenFencesNV")] + public static + void GenFences(Int32 n, UInt32[] fences) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* fences_ptr = fences) + { + Delegates.glGenFencesNV((Int32)n, (UInt32*)fences_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetFenceivNV")] + public static + unsafe void GetFence(UInt32 fence, OpenTK.Graphics.ES11.All pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetFenceivNV((UInt32)fence, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetFenceivNV")] + public static + void GetFence(UInt32 fence, OpenTK.Graphics.ES11.All pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glGetFenceivNV((UInt32)fence, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetFenceivNV")] + public static + void GetFence(UInt32 fence, OpenTK.Graphics.ES11.All pname, ref Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glGetFenceivNV((UInt32)fence, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glIsFenceNV")] + public static + bool IsFence(UInt32 fence) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glIsFenceNV((UInt32)fence); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glSetFenceNV")] + public static + void SetFence(UInt32 fence, OpenTK.Graphics.ES11.All condition) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glSetFenceNV((UInt32)fence, (OpenTK.Graphics.ES11.All)condition); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTestFenceNV")] + public static + bool TestFence(UInt32 fence) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glTestFenceNV((UInt32)fence); + #if DEBUG + } + #endif + } + + } + + public static partial class Oes + { + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glAlphaFuncxOES")] + public static + void AlphaFuncx(OpenTK.Graphics.ES11.All func, int @ref) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glAlphaFuncxOES((OpenTK.Graphics.ES11.All)func, (int)@ref); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glBindFramebufferOES")] + public static + void BindFramebuffer(OpenTK.Graphics.ES11.All target, UInt32 framebuffer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBindFramebufferOES((OpenTK.Graphics.ES11.All)target, (UInt32)framebuffer); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glBindRenderbufferOES")] + public static + void BindRenderbuffer(OpenTK.Graphics.ES11.All target, UInt32 renderbuffer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBindRenderbufferOES((OpenTK.Graphics.ES11.All)target, (UInt32)renderbuffer); + #if DEBUG + } + #endif + } + + + /// + /// Specify the equation used for both the RGB blend equation and the Alpha blend equation + /// + /// + /// + /// specifies how source and destination colors are combined. It must be GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT, GL_MIN, GL_MAX. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glBlendEquationOES")] + public static + void BlendEquation(OpenTK.Graphics.ES11.All mode) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBlendEquationOES((OpenTK.Graphics.ES11.All)mode); + #if DEBUG + } + #endif + } + + + /// + /// Set the RGB blend equation and the alpha blend equation separately + /// + /// + /// + /// specifies the RGB blend equation, how the red, green, and blue components of the source and destination colors are combined. It must be GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT, GL_MIN, GL_MAX. + /// + /// + /// + /// + /// specifies the alpha blend equation, how the alpha component of the source and destination colors are combined. It must be GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT, GL_MIN, GL_MAX. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glBlendEquationSeparateOES")] + public static + void BlendEquationSeparate(OpenTK.Graphics.ES11.All modeRGB, OpenTK.Graphics.ES11.All modeAlpha) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBlendEquationSeparateOES((OpenTK.Graphics.ES11.All)modeRGB, (OpenTK.Graphics.ES11.All)modeAlpha); + #if DEBUG + } + #endif + } + + + /// + /// Specify pixel arithmetic for RGB and alpha components separately + /// + /// + /// + /// Specifies how the red, green, and blue blending factors are computed. The following symbolic constants are accepted: GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA, GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, GL_ONE_MINUS_CONSTANT_ALPHA, and GL_SRC_ALPHA_SATURATE. The initial value is GL_ONE. + /// + /// + /// + /// + /// Specifies how the red, green, and blue destination blending factors are computed. The following symbolic constants are accepted: GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA. GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, and GL_ONE_MINUS_CONSTANT_ALPHA. The initial value is GL_ZERO. + /// + /// + /// + /// + /// Specified how the alpha source blending factor is computed. The same symbolic constants are accepted as for srcRGB. The initial value is GL_ONE. + /// + /// + /// + /// + /// Specified how the alpha destination blending factor is computed. The same symbolic constants are accepted as for dstRGB. The initial value is GL_ZERO. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glBlendFuncSeparateOES")] + public static + void BlendFuncSeparate(OpenTK.Graphics.ES11.All srcRGB, OpenTK.Graphics.ES11.All dstRGB, OpenTK.Graphics.ES11.All srcAlpha, OpenTK.Graphics.ES11.All dstAlpha) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBlendFuncSeparateOES((OpenTK.Graphics.ES11.All)srcRGB, (OpenTK.Graphics.ES11.All)dstRGB, (OpenTK.Graphics.ES11.All)srcAlpha, (OpenTK.Graphics.ES11.All)dstAlpha); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glCheckFramebufferStatusOES")] + public static + OpenTK.Graphics.ES11.All CheckFramebufferStatus(OpenTK.Graphics.ES11.All target) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glCheckFramebufferStatusOES((OpenTK.Graphics.ES11.All)target); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClearColorxOES")] + public static + void ClearColorx(int red, int green, int blue, int alpha) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClearColorxOES((int)red, (int)green, (int)blue, (int)alpha); + #if DEBUG + } + #endif + } + + + /// + /// Specify the clear value for the depth buffer + /// + /// + /// + /// Specifies the depth value used when the depth buffer is cleared. The initial value is 1. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClearDepthfOES")] + public static + void ClearDepth(Single depth) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClearDepthfOES((Single)depth); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClearDepthxOES")] + public static + void ClearDepthx(int depth) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClearDepthxOES((int)depth); + #if DEBUG + } + #endif + } + + + /// + /// Specify a plane against which all geometry is clipped + /// + /// + /// + /// Specifies which clipping plane is being positioned. Symbolic names of the form GL_CLIP_PLANEi, where i is an integer between 0 and GL_MAX_CLIP_PLANES - 1, are accepted. + /// + /// + /// + /// + /// Specifies the address of an array of four double-precision floating-point values. These values are interpreted as a plane equation. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClipPlanefOES")] + public static + void ClipPlane(OpenTK.Graphics.ES11.All plane, ref Single equation) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* equation_ptr = &equation) + { + Delegates.glClipPlanefOES((OpenTK.Graphics.ES11.All)plane, (Single*)equation_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a plane against which all geometry is clipped + /// + /// + /// + /// Specifies which clipping plane is being positioned. Symbolic names of the form GL_CLIP_PLANEi, where i is an integer between 0 and GL_MAX_CLIP_PLANES - 1, are accepted. + /// + /// + /// + /// + /// Specifies the address of an array of four double-precision floating-point values. These values are interpreted as a plane equation. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClipPlanefOES")] + public static + unsafe void ClipPlane(OpenTK.Graphics.ES11.All plane, Single* equation) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClipPlanefOES((OpenTK.Graphics.ES11.All)plane, (Single*)equation); + #if DEBUG + } + #endif + } + + + /// + /// Specify a plane against which all geometry is clipped + /// + /// + /// + /// Specifies which clipping plane is being positioned. Symbolic names of the form GL_CLIP_PLANEi, where i is an integer between 0 and GL_MAX_CLIP_PLANES - 1, are accepted. + /// + /// + /// + /// + /// Specifies the address of an array of four double-precision floating-point values. These values are interpreted as a plane equation. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClipPlanefOES")] + public static + void ClipPlane(OpenTK.Graphics.ES11.All plane, Single[] equation) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* equation_ptr = equation) + { + Delegates.glClipPlanefOES((OpenTK.Graphics.ES11.All)plane, (Single*)equation_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClipPlanexOES")] + public static + unsafe void ClipPlanex(OpenTK.Graphics.ES11.All plane, int* equation) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClipPlanexOES((OpenTK.Graphics.ES11.All)plane, (int*)equation); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClipPlanexOES")] + public static + void ClipPlanex(OpenTK.Graphics.ES11.All plane, int[] equation) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* equation_ptr = equation) + { + Delegates.glClipPlanexOES((OpenTK.Graphics.ES11.All)plane, (int*)equation_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glClipPlanexOES")] + public static + void ClipPlanex(OpenTK.Graphics.ES11.All plane, ref int equation) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* equation_ptr = &equation) + { + Delegates.glClipPlanexOES((OpenTK.Graphics.ES11.All)plane, (int*)equation_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glColor4xOES")] + public static + void Color4x(int red, int green, int blue, int alpha) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glColor4xOES((int)red, (int)green, (int)blue, (int)alpha); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glCurrentPaletteMatrixOES")] + public static + void CurrentPaletteMatrix(UInt32 matrixpaletteindex) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glCurrentPaletteMatrixOES((UInt32)matrixpaletteindex); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDeleteFramebuffersOES")] + public static + unsafe void DeleteFramebuffers(Int32 n, Int32* framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteFramebuffersOES((Int32)n, (UInt32*)framebuffers); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDeleteFramebuffersOES")] + public static + void DeleteFramebuffers(Int32 n, ref UInt32 framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* framebuffers_ptr = &framebuffers) + { + Delegates.glDeleteFramebuffersOES((Int32)n, (UInt32*)framebuffers_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDeleteFramebuffersOES")] + public static + unsafe void DeleteFramebuffers(Int32 n, UInt32* framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteFramebuffersOES((Int32)n, (UInt32*)framebuffers); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDeleteFramebuffersOES")] + public static + void DeleteFramebuffers(Int32 n, UInt32[] framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* framebuffers_ptr = framebuffers) + { + Delegates.glDeleteFramebuffersOES((Int32)n, (UInt32*)framebuffers_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDeleteRenderbuffersOES")] + public static + unsafe void DeleteRenderbuffers(Int32 n, Int32* renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteRenderbuffersOES((Int32)n, (UInt32*)renderbuffers); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDeleteRenderbuffersOES")] + public static + void DeleteRenderbuffers(Int32 n, ref UInt32 renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* renderbuffers_ptr = &renderbuffers) + { + Delegates.glDeleteRenderbuffersOES((Int32)n, (UInt32*)renderbuffers_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDeleteRenderbuffersOES")] + public static + unsafe void DeleteRenderbuffers(Int32 n, UInt32* renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteRenderbuffersOES((Int32)n, (UInt32*)renderbuffers); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDeleteRenderbuffersOES")] + public static + void DeleteRenderbuffers(Int32 n, UInt32[] renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* renderbuffers_ptr = renderbuffers) + { + Delegates.glDeleteRenderbuffersOES((Int32)n, (UInt32*)renderbuffers_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify mapping of depth values from normalized device coordinates to window coordinates + /// + /// + /// + /// Specifies the mapping of the near clipping plane to window coordinates. The initial value is 0. + /// + /// + /// + /// + /// Specifies the mapping of the far clipping plane to window coordinates. The initial value is 1. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDepthRangefOES")] + public static + void DepthRange(Single zNear, Single zFar) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDepthRangefOES((Single)zNear, (Single)zFar); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDepthRangexOES")] + public static + void DepthRangex(int zNear, int zFar) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDepthRangexOES((int)zNear, (int)zFar); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawTexfOES")] + public static + void DrawTex(Single x, Single y, Single z, Single width, Single height) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDrawTexfOES((Single)x, (Single)y, (Single)z, (Single)width, (Single)height); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawTexfvOES")] + public static + void DrawTex(ref Single coords) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* coords_ptr = &coords) + { + Delegates.glDrawTexfvOES((Single*)coords_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawTexfvOES")] + public static + unsafe void DrawTex(Single* coords) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDrawTexfvOES((Single*)coords); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawTexfvOES")] + public static + void DrawTex(Single[] coords) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* coords_ptr = coords) + { + Delegates.glDrawTexfvOES((Single*)coords_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawTexiOES")] + public static + void DrawTex(Int32 x, Int32 y, Int32 z, Int32 width, Int32 height) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDrawTexiOES((Int32)x, (Int32)y, (Int32)z, (Int32)width, (Int32)height); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawTexivOES")] + public static + unsafe void DrawTex(Int32* coords) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDrawTexivOES((Int32*)coords); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawTexivOES")] + public static + void DrawTex(Int32[] coords) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* coords_ptr = coords) + { + Delegates.glDrawTexivOES((Int32*)coords_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawTexivOES")] + public static + void DrawTex(ref Int32 coords) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* coords_ptr = &coords) + { + Delegates.glDrawTexivOES((Int32*)coords_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawTexsOES")] + public static + void DrawTex(Int16 x, Int16 y, Int16 z, Int16 width, Int16 height) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDrawTexsOES((Int16)x, (Int16)y, (Int16)z, (Int16)width, (Int16)height); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawTexsvOES")] + public static + unsafe void DrawTex(Int16* coords) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDrawTexsvOES((Int16*)coords); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawTexsvOES")] + public static + void DrawTex(Int16[] coords) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int16* coords_ptr = coords) + { + Delegates.glDrawTexsvOES((Int16*)coords_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawTexsvOES")] + public static + void DrawTex(ref Int16 coords) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int16* coords_ptr = &coords) + { + Delegates.glDrawTexsvOES((Int16*)coords_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawTexxOES")] + public static + void DrawTexx(int x, int y, int z, int width, int height) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDrawTexxOES((int)x, (int)y, (int)z, (int)width, (int)height); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawTexxvOES")] + public static + unsafe void DrawTexx(int* coords) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDrawTexxvOES((int*)coords); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawTexxvOES")] + public static + void DrawTexx(int[] coords) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* coords_ptr = coords) + { + Delegates.glDrawTexxvOES((int*)coords_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glDrawTexxvOES")] + public static + void DrawTexx(ref int coords) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* coords_ptr = &coords) + { + Delegates.glDrawTexxvOES((int*)coords_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glEGLImageTargetRenderbufferStorageOES")] + public static + void EGLImageTargetRenderbufferStorage(OpenTK.Graphics.ES11.All target, GLeglImageOES image) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glEGLImageTargetRenderbufferStorageOES((OpenTK.Graphics.ES11.All)target, (GLeglImageOES)image); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glEGLImageTargetTexture2DOES")] + public static + void EGLImageTargetTexture2D(OpenTK.Graphics.ES11.All target, GLeglImageOES image) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glEGLImageTargetTexture2DOES((OpenTK.Graphics.ES11.All)target, (GLeglImageOES)image); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glFogxOES")] + public static + void Fogx(OpenTK.Graphics.ES11.All pname, int param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFogxOES((OpenTK.Graphics.ES11.All)pname, (int)param); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glFogxvOES")] + public static + unsafe void Fogx(OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFogxvOES((OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glFogxvOES")] + public static + void Fogx(OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glFogxvOES((OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glFramebufferRenderbufferOES")] + public static + void FramebufferRenderbuffer(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All attachment, OpenTK.Graphics.ES11.All renderbuffertarget, UInt32 renderbuffer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFramebufferRenderbufferOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)attachment, (OpenTK.Graphics.ES11.All)renderbuffertarget, (UInt32)renderbuffer); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glFramebufferTexture2DOES")] + public static + void FramebufferTexture2D(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All attachment, OpenTK.Graphics.ES11.All textarget, UInt32 texture, Int32 level) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFramebufferTexture2DOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)attachment, (OpenTK.Graphics.ES11.All)textarget, (UInt32)texture, (Int32)level); + #if DEBUG + } + #endif + } + + + /// + /// Multiply the current matrix by a perspective matrix + /// + /// + /// + /// Specify the coordinates for the left and right vertical clipping planes. + /// + /// + /// + /// + /// Specify the coordinates for the bottom and top horizontal clipping planes. + /// + /// + /// + /// + /// Specify the distances to the near and far depth clipping planes. Both distances must be positive. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glFrustumfOES")] + public static + void Frustum(Single left, Single right, Single bottom, Single top, Single zNear, Single zFar) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFrustumfOES((Single)left, (Single)right, (Single)bottom, (Single)top, (Single)zNear, (Single)zFar); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glFrustumxOES")] + public static + void Frustumx(int left, int right, int bottom, int top, int zNear, int zFar) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFrustumxOES((int)left, (int)right, (int)bottom, (int)top, (int)zNear, (int)zFar); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGenerateMipmapOES")] + public static + void GenerateMipmap(OpenTK.Graphics.ES11.All target) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenerateMipmapOES((OpenTK.Graphics.ES11.All)target); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGenFramebuffersOES")] + public static + unsafe void GenFramebuffers(Int32 n, Int32* framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenFramebuffersOES((Int32)n, (UInt32*)framebuffers); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGenFramebuffersOES")] + public static + void GenFramebuffers(Int32 n, ref UInt32 framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* framebuffers_ptr = &framebuffers) + { + Delegates.glGenFramebuffersOES((Int32)n, (UInt32*)framebuffers_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGenFramebuffersOES")] + public static + unsafe void GenFramebuffers(Int32 n, UInt32* framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenFramebuffersOES((Int32)n, (UInt32*)framebuffers); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGenFramebuffersOES")] + public static + void GenFramebuffers(Int32 n, UInt32[] framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* framebuffers_ptr = framebuffers) + { + Delegates.glGenFramebuffersOES((Int32)n, (UInt32*)framebuffers_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGenRenderbuffersOES")] + public static + unsafe void GenRenderbuffers(Int32 n, Int32* renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenRenderbuffersOES((Int32)n, (UInt32*)renderbuffers); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGenRenderbuffersOES")] + public static + void GenRenderbuffers(Int32 n, ref UInt32 renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* renderbuffers_ptr = &renderbuffers) + { + Delegates.glGenRenderbuffersOES((Int32)n, (UInt32*)renderbuffers_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGenRenderbuffersOES")] + public static + unsafe void GenRenderbuffers(Int32 n, UInt32* renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenRenderbuffersOES((Int32)n, (UInt32*)renderbuffers); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGenRenderbuffersOES")] + public static + void GenRenderbuffers(Int32 n, UInt32[] renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* renderbuffers_ptr = renderbuffers) + { + Delegates.glGenRenderbuffersOES((Int32)n, (UInt32*)renderbuffers_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetBufferPointervOES")] + public static + void GetBufferPointer(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, [InAttribute, OutAttribute] ref T2 @params) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetBufferPointervOES")] + public static + void GetBufferPointer(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, [InAttribute, OutAttribute] T2[,,] @params) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetBufferPointervOES")] + public static + void GetBufferPointer(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, [InAttribute, OutAttribute] T2[,] @params) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetBufferPointervOES")] + public static + void GetBufferPointer(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, [InAttribute, OutAttribute] T2[] @params) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetBufferPointervOES")] + public static + void GetBufferPointer(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, IntPtr @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (IntPtr)@params); + #if DEBUG + } + #endif + } + + + /// + /// Return the coefficients of the specified clipping plane + /// + /// + /// + /// Specifies a clipping plane. The number of clipping planes depends on the implementation, but at least six clipping planes are supported. They are identified by symbolic names of the form GL_CLIP_PLANE where i ranges from 0 to the value of GL_MAX_CLIP_PLANES - 1. + /// + /// + /// + /// + /// Returns four double-precision values that are the coefficients of the plane equation of plane in eye coordinates. The initial value is (0, 0, 0, 0). + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetClipPlanefOES")] + public static + void GetClipPlane(OpenTK.Graphics.ES11.All pname, ref Single eqn) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* eqn_ptr = &eqn) + { + Delegates.glGetClipPlanefOES((OpenTK.Graphics.ES11.All)pname, (Single*)eqn_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return the coefficients of the specified clipping plane + /// + /// + /// + /// Specifies a clipping plane. The number of clipping planes depends on the implementation, but at least six clipping planes are supported. They are identified by symbolic names of the form GL_CLIP_PLANE where i ranges from 0 to the value of GL_MAX_CLIP_PLANES - 1. + /// + /// + /// + /// + /// Returns four double-precision values that are the coefficients of the plane equation of plane in eye coordinates. The initial value is (0, 0, 0, 0). + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetClipPlanefOES")] + public static + unsafe void GetClipPlane(OpenTK.Graphics.ES11.All pname, Single* eqn) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetClipPlanefOES((OpenTK.Graphics.ES11.All)pname, (Single*)eqn); + #if DEBUG + } + #endif + } + + + /// + /// Return the coefficients of the specified clipping plane + /// + /// + /// + /// Specifies a clipping plane. The number of clipping planes depends on the implementation, but at least six clipping planes are supported. They are identified by symbolic names of the form GL_CLIP_PLANE where i ranges from 0 to the value of GL_MAX_CLIP_PLANES - 1. + /// + /// + /// + /// + /// Returns four double-precision values that are the coefficients of the plane equation of plane in eye coordinates. The initial value is (0, 0, 0, 0). + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetClipPlanefOES")] + public static + void GetClipPlane(OpenTK.Graphics.ES11.All pname, Single[] eqn) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* eqn_ptr = eqn) + { + Delegates.glGetClipPlanefOES((OpenTK.Graphics.ES11.All)pname, (Single*)eqn_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetClipPlanexOES")] + public static + unsafe void GetClipPlanex(OpenTK.Graphics.ES11.All pname, int* eqn) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetClipPlanexOES((OpenTK.Graphics.ES11.All)pname, (int*)eqn); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetClipPlanexOES")] + public static + void GetClipPlanex(OpenTK.Graphics.ES11.All pname, int[] eqn) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* eqn_ptr = eqn) + { + Delegates.glGetClipPlanexOES((OpenTK.Graphics.ES11.All)pname, (int*)eqn_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetClipPlanexOES")] + public static + void GetClipPlanex(OpenTK.Graphics.ES11.All pname, ref int eqn) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* eqn_ptr = &eqn) + { + Delegates.glGetClipPlanexOES((OpenTK.Graphics.ES11.All)pname, (int*)eqn_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetFixedvOES")] + public static + unsafe void GetFixed(OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetFixedvOES((OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetFixedvOES")] + public static + void GetFixed(OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glGetFixedvOES((OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetFixedvOES")] + public static + void GetFixed(OpenTK.Graphics.ES11.All pname, ref int @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = &@params) + { + Delegates.glGetFixedvOES((OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetFramebufferAttachmentParameterivOES")] + public static + unsafe void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All attachment, OpenTK.Graphics.ES11.All pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetFramebufferAttachmentParameterivOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)attachment, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetFramebufferAttachmentParameterivOES")] + public static + void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All attachment, OpenTK.Graphics.ES11.All pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glGetFramebufferAttachmentParameterivOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)attachment, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetFramebufferAttachmentParameterivOES")] + public static + void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All attachment, OpenTK.Graphics.ES11.All pname, ref Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glGetFramebufferAttachmentParameterivOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)attachment, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetLightxvOES")] + public static + unsafe void GetLightx(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetLightxvOES((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetLightxvOES")] + public static + void GetLightx(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glGetLightxvOES((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetLightxvOES")] + public static + void GetLightx(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, ref int @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = &@params) + { + Delegates.glGetLightxvOES((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetMaterialxvOES")] + public static + unsafe void GetMaterialx(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetMaterialxvOES((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetMaterialxvOES")] + public static + void GetMaterialx(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glGetMaterialxvOES((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetMaterialxvOES")] + public static + void GetMaterialx(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, ref int @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = &@params) + { + Delegates.glGetMaterialxvOES((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetRenderbufferParameterivOES")] + public static + unsafe void GetRenderbufferParameter(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetRenderbufferParameterivOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetRenderbufferParameterivOES")] + public static + void GetRenderbufferParameter(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glGetRenderbufferParameterivOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetRenderbufferParameterivOES")] + public static + void GetRenderbufferParameter(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, ref Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glGetRenderbufferParameterivOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexEnvxvOES")] + public static + unsafe void GetTexEnvx(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetTexEnvxvOES((OpenTK.Graphics.ES11.All)env, (OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexEnvxvOES")] + public static + void GetTexEnvx(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glGetTexEnvxvOES((OpenTK.Graphics.ES11.All)env, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexEnvxvOES")] + public static + void GetTexEnvx(OpenTK.Graphics.ES11.All env, OpenTK.Graphics.ES11.All pname, ref int @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = &@params) + { + Delegates.glGetTexEnvxvOES((OpenTK.Graphics.ES11.All)env, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return texture coordinate generation parameters + /// + /// + /// + /// Specifies a texture coordinate. Must be GL_S, GL_T, GL_R, or GL_Q. + /// + /// + /// + /// + /// Specifies the symbolic name of the value(s) to be returned. Must be either GL_TEXTURE_GEN_MODE or the name of one of the texture generation plane equations: GL_OBJECT_PLANE or GL_EYE_PLANE. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexGenfvOES")] + public static + void GetTexGen(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, ref Single @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = &@params) + { + Delegates.glGetTexGenfvOES((OpenTK.Graphics.ES11.All)coord, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return texture coordinate generation parameters + /// + /// + /// + /// Specifies a texture coordinate. Must be GL_S, GL_T, GL_R, or GL_Q. + /// + /// + /// + /// + /// Specifies the symbolic name of the value(s) to be returned. Must be either GL_TEXTURE_GEN_MODE or the name of one of the texture generation plane equations: GL_OBJECT_PLANE or GL_EYE_PLANE. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexGenfvOES")] + public static + unsafe void GetTexGen(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetTexGenfvOES((OpenTK.Graphics.ES11.All)coord, (OpenTK.Graphics.ES11.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Return texture coordinate generation parameters + /// + /// + /// + /// Specifies a texture coordinate. Must be GL_S, GL_T, GL_R, or GL_Q. + /// + /// + /// + /// + /// Specifies the symbolic name of the value(s) to be returned. Must be either GL_TEXTURE_GEN_MODE or the name of one of the texture generation plane equations: GL_OBJECT_PLANE or GL_EYE_PLANE. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexGenfvOES")] + public static + void GetTexGen(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glGetTexGenfvOES((OpenTK.Graphics.ES11.All)coord, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return texture coordinate generation parameters + /// + /// + /// + /// Specifies a texture coordinate. Must be GL_S, GL_T, GL_R, or GL_Q. + /// + /// + /// + /// + /// Specifies the symbolic name of the value(s) to be returned. Must be either GL_TEXTURE_GEN_MODE or the name of one of the texture generation plane equations: GL_OBJECT_PLANE or GL_EYE_PLANE. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexGenivOES")] + public static + unsafe void GetTexGen(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetTexGenivOES((OpenTK.Graphics.ES11.All)coord, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Return texture coordinate generation parameters + /// + /// + /// + /// Specifies a texture coordinate. Must be GL_S, GL_T, GL_R, or GL_Q. + /// + /// + /// + /// + /// Specifies the symbolic name of the value(s) to be returned. Must be either GL_TEXTURE_GEN_MODE or the name of one of the texture generation plane equations: GL_OBJECT_PLANE or GL_EYE_PLANE. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexGenivOES")] + public static + void GetTexGen(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glGetTexGenivOES((OpenTK.Graphics.ES11.All)coord, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return texture coordinate generation parameters + /// + /// + /// + /// Specifies a texture coordinate. Must be GL_S, GL_T, GL_R, or GL_Q. + /// + /// + /// + /// + /// Specifies the symbolic name of the value(s) to be returned. Must be either GL_TEXTURE_GEN_MODE or the name of one of the texture generation plane equations: GL_OBJECT_PLANE or GL_EYE_PLANE. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexGenivOES")] + public static + void GetTexGen(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, ref Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glGetTexGenivOES((OpenTK.Graphics.ES11.All)coord, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexGenxvOES")] + public static + unsafe void GetTexGenx(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetTexGenxvOES((OpenTK.Graphics.ES11.All)coord, (OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexGenxvOES")] + public static + void GetTexGenx(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glGetTexGenxvOES((OpenTK.Graphics.ES11.All)coord, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexGenxvOES")] + public static + void GetTexGenx(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, ref int @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = &@params) + { + Delegates.glGetTexGenxvOES((OpenTK.Graphics.ES11.All)coord, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexParameterxvOES")] + public static + unsafe void GetTexParameterx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetTexParameterxvOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexParameterxvOES")] + public static + void GetTexParameterx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glGetTexParameterxvOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glGetTexParameterxvOES")] + public static + void GetTexParameterx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, ref int @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = &@params) + { + Delegates.glGetTexParameterxvOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glIsFramebufferOES")] + public static + bool IsFramebuffer(UInt32 framebuffer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glIsFramebufferOES((UInt32)framebuffer); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glIsRenderbufferOES")] + public static + bool IsRenderbuffer(UInt32 renderbuffer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glIsRenderbufferOES((UInt32)renderbuffer); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLightModelxOES")] + public static + void LightModelx(OpenTK.Graphics.ES11.All pname, int param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLightModelxOES((OpenTK.Graphics.ES11.All)pname, (int)param); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLightModelxvOES")] + public static + unsafe void LightModelx(OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLightModelxvOES((OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLightModelxvOES")] + public static + void LightModelx(OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glLightModelxvOES((OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLightxOES")] + public static + void Lightx(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLightxOES((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (int)param); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLightxvOES")] + public static + unsafe void Lightx(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLightxvOES((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLightxvOES")] + public static + void Lightx(OpenTK.Graphics.ES11.All light, OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glLightxvOES((OpenTK.Graphics.ES11.All)light, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLineWidthxOES")] + public static + void LineWidthx(int width) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLineWidthxOES((int)width); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLoadMatrixxOES")] + public static + unsafe void LoadMatrixx(int* m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLoadMatrixxOES((int*)m); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLoadMatrixxOES")] + public static + void LoadMatrixx(int[] m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* m_ptr = m) + { + Delegates.glLoadMatrixxOES((int*)m_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLoadMatrixxOES")] + public static + void LoadMatrixx(ref int m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* m_ptr = &m) + { + Delegates.glLoadMatrixxOES((int*)m_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glLoadPaletteFromModelViewMatrixOES")] + public static + void LoadPaletteFromModelViewMatrix() + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLoadPaletteFromModelViewMatrixOES(); + #if DEBUG + } + #endif + } + + + /// + /// Map a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object being mapped. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the access policy, indicating whether it will be possible to read from, write to, or both read from and write to the buffer object's mapped data store. The symbolic constant must be GL_READ_ONLY, GL_WRITE_ONLY, or GL_READ_WRITE. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMapBufferOES")] + public static + unsafe IntPtr MapBuffer(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All access) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glMapBufferOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)access); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMaterialxOES")] + public static + void Materialx(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMaterialxOES((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (int)param); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMaterialxvOES")] + public static + unsafe void Materialx(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMaterialxvOES((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMaterialxvOES")] + public static + void Materialx(OpenTK.Graphics.ES11.All face, OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glMaterialxvOES((OpenTK.Graphics.ES11.All)face, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMatrixIndexPointerOES")] + public static + void MatrixIndexPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] ref T3 pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glMatrixIndexPointerOES((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMatrixIndexPointerOES")] + public static + void MatrixIndexPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] T3[,,] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glMatrixIndexPointerOES((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMatrixIndexPointerOES")] + public static + void MatrixIndexPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] T3[,] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glMatrixIndexPointerOES((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMatrixIndexPointerOES")] + public static + void MatrixIndexPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] T3[] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glMatrixIndexPointerOES((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMatrixIndexPointerOES")] + public static + void MatrixIndexPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMatrixIndexPointerOES((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMultiTexCoord4xOES")] + public static + void MultiTexCoord4x(OpenTK.Graphics.ES11.All target, int s, int t, int r, int q) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMultiTexCoord4xOES((OpenTK.Graphics.ES11.All)target, (int)s, (int)t, (int)r, (int)q); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMultMatrixxOES")] + public static + unsafe void MultMatrixx(int* m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glMultMatrixxOES((int*)m); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMultMatrixxOES")] + public static + void MultMatrixx(int[] m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* m_ptr = m) + { + Delegates.glMultMatrixxOES((int*)m_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glMultMatrixxOES")] + public static + void MultMatrixx(ref int m) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* m_ptr = &m) + { + Delegates.glMultMatrixxOES((int*)m_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glNormal3xOES")] + public static + void Normal3x(int nx, int ny, int nz) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glNormal3xOES((int)nx, (int)ny, (int)nz); + #if DEBUG + } + #endif + } + + + /// + /// Multiply the current matrix with an orthographic matrix + /// + /// + /// + /// Specify the coordinates for the left and right vertical clipping planes. + /// + /// + /// + /// + /// Specify the coordinates for the bottom and top horizontal clipping planes. + /// + /// + /// + /// + /// Specify the distances to the nearer and farther depth clipping planes. These values are negative if the plane is to be behind the viewer. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glOrthofOES")] + public static + void Ortho(Single left, Single right, Single bottom, Single top, Single zNear, Single zFar) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glOrthofOES((Single)left, (Single)right, (Single)bottom, (Single)top, (Single)zNear, (Single)zFar); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glOrthoxOES")] + public static + void Orthox(int left, int right, int bottom, int top, int zNear, int zFar) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glOrthoxOES((int)left, (int)right, (int)bottom, (int)top, (int)zNear, (int)zFar); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPointParameterxOES")] + public static + void PointParameterx(OpenTK.Graphics.ES11.All pname, int param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPointParameterxOES((OpenTK.Graphics.ES11.All)pname, (int)param); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPointParameterxvOES")] + public static + unsafe void PointParameterx(OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPointParameterxvOES((OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPointParameterxvOES")] + public static + void PointParameterx(OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glPointParameterxvOES((OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPointSizePointerOES")] + public static + void PointSizePointer(OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] ref T2 pointer) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glPointSizePointerOES((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPointSizePointerOES")] + public static + void PointSizePointer(OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] T2[,,] pointer) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glPointSizePointerOES((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPointSizePointerOES")] + public static + void PointSizePointer(OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] T2[,] pointer) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glPointSizePointerOES((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPointSizePointerOES")] + public static + void PointSizePointer(OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] T2[] pointer) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glPointSizePointerOES((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPointSizePointerOES")] + public static + void PointSizePointer(OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPointSizePointerOES((OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPointSizexOES")] + public static + void PointSizex(int size) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPointSizexOES((int)size); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glPolygonOffsetxOES")] + public static + void PolygonOffsetx(int factor, int units) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPolygonOffsetxOES((int)factor, (int)units); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glQueryMatrixxOES")] + public static + unsafe UInt32 QueryMatrixx(int* mantissa, Int32* exponent) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glQueryMatrixxOES((int*)mantissa, (Int32*)exponent); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glQueryMatrixxOES")] + public static + UInt32 QueryMatrixx(int[] mantissa, Int32[] exponent) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* mantissa_ptr = mantissa) + fixed (Int32* exponent_ptr = exponent) + { + return Delegates.glQueryMatrixxOES((int*)mantissa_ptr, (Int32*)exponent_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glQueryMatrixxOES")] + public static + UInt32 QueryMatrixx(ref int mantissa, ref Int32 exponent) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* mantissa_ptr = &mantissa) + fixed (Int32* exponent_ptr = &exponent) + { + return Delegates.glQueryMatrixxOES((int*)mantissa_ptr, (Int32*)exponent_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glRenderbufferStorageOES")] + public static + void RenderbufferStorage(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All internalformat, Int32 width, Int32 height) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glRenderbufferStorageOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)internalformat, (Int32)width, (Int32)height); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glRotatexOES")] + public static + void Rotatex(int angle, int x, int y, int z) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glRotatexOES((int)angle, (int)x, (int)y, (int)z); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glSampleCoveragexOES")] + public static + void SampleCoveragex(int value, bool invert) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glSampleCoveragexOES((int)value, (bool)invert); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glScalexOES")] + public static + void Scalex(int x, int y, int z) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glScalexOES((int)x, (int)y, (int)z); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexEnvxOES")] + public static + void TexEnvx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexEnvxOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int)param); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexEnvxvOES")] + public static + unsafe void TexEnvx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexEnvxvOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexEnvxvOES")] + public static + void TexEnvx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glTexEnvxvOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Control the generation of texture coordinates + /// + /// + /// + /// Specifies a texture coordinate. Must be one of GL_S, GL_T, GL_R, or GL_Q. + /// + /// + /// + /// + /// Specifies the symbolic name of the texture-coordinate generation function. Must be GL_TEXTURE_GEN_MODE. + /// + /// + /// + /// + /// Specifies a single-valued texture generation parameter, one of GL_OBJECT_LINEAR, GL_EYE_LINEAR, GL_SPHERE_MAP, GL_NORMAL_MAP, or GL_REFLECTION_MAP. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexGenfOES")] + public static + void TexGen(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Single param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexGenfOES((OpenTK.Graphics.ES11.All)coord, (OpenTK.Graphics.ES11.All)pname, (Single)param); + #if DEBUG + } + #endif + } + + + /// + /// Control the generation of texture coordinates + /// + /// + /// + /// Specifies a texture coordinate. Must be one of GL_S, GL_T, GL_R, or GL_Q. + /// + /// + /// + /// + /// Specifies the symbolic name of the texture-coordinate generation function. Must be GL_TEXTURE_GEN_MODE. + /// + /// + /// + /// + /// Specifies a single-valued texture generation parameter, one of GL_OBJECT_LINEAR, GL_EYE_LINEAR, GL_SPHERE_MAP, GL_NORMAL_MAP, or GL_REFLECTION_MAP. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexGenfvOES")] + public static + unsafe void TexGen(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexGenfvOES((OpenTK.Graphics.ES11.All)coord, (OpenTK.Graphics.ES11.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Control the generation of texture coordinates + /// + /// + /// + /// Specifies a texture coordinate. Must be one of GL_S, GL_T, GL_R, or GL_Q. + /// + /// + /// + /// + /// Specifies the symbolic name of the texture-coordinate generation function. Must be GL_TEXTURE_GEN_MODE. + /// + /// + /// + /// + /// Specifies a single-valued texture generation parameter, one of GL_OBJECT_LINEAR, GL_EYE_LINEAR, GL_SPHERE_MAP, GL_NORMAL_MAP, or GL_REFLECTION_MAP. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexGenfvOES")] + public static + void TexGen(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glTexGenfvOES((OpenTK.Graphics.ES11.All)coord, (OpenTK.Graphics.ES11.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Control the generation of texture coordinates + /// + /// + /// + /// Specifies a texture coordinate. Must be one of GL_S, GL_T, GL_R, or GL_Q. + /// + /// + /// + /// + /// Specifies the symbolic name of the texture-coordinate generation function. Must be GL_TEXTURE_GEN_MODE. + /// + /// + /// + /// + /// Specifies a single-valued texture generation parameter, one of GL_OBJECT_LINEAR, GL_EYE_LINEAR, GL_SPHERE_MAP, GL_NORMAL_MAP, or GL_REFLECTION_MAP. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexGeniOES")] + public static + void TexGen(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Int32 param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexGeniOES((OpenTK.Graphics.ES11.All)coord, (OpenTK.Graphics.ES11.All)pname, (Int32)param); + #if DEBUG + } + #endif + } + + + /// + /// Control the generation of texture coordinates + /// + /// + /// + /// Specifies a texture coordinate. Must be one of GL_S, GL_T, GL_R, or GL_Q. + /// + /// + /// + /// + /// Specifies the symbolic name of the texture-coordinate generation function. Must be GL_TEXTURE_GEN_MODE. + /// + /// + /// + /// + /// Specifies a single-valued texture generation parameter, one of GL_OBJECT_LINEAR, GL_EYE_LINEAR, GL_SPHERE_MAP, GL_NORMAL_MAP, or GL_REFLECTION_MAP. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexGenivOES")] + public static + unsafe void TexGen(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexGenivOES((OpenTK.Graphics.ES11.All)coord, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Control the generation of texture coordinates + /// + /// + /// + /// Specifies a texture coordinate. Must be one of GL_S, GL_T, GL_R, or GL_Q. + /// + /// + /// + /// + /// Specifies the symbolic name of the texture-coordinate generation function. Must be GL_TEXTURE_GEN_MODE. + /// + /// + /// + /// + /// Specifies a single-valued texture generation parameter, one of GL_OBJECT_LINEAR, GL_EYE_LINEAR, GL_SPHERE_MAP, GL_NORMAL_MAP, or GL_REFLECTION_MAP. + /// + /// + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexGenivOES")] + public static + void TexGen(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glTexGenivOES((OpenTK.Graphics.ES11.All)coord, (OpenTK.Graphics.ES11.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexGenxOES")] + public static + void TexGenx(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, int param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexGenxOES((OpenTK.Graphics.ES11.All)coord, (OpenTK.Graphics.ES11.All)pname, (int)param); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexGenxvOES")] + public static + unsafe void TexGenx(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexGenxvOES((OpenTK.Graphics.ES11.All)coord, (OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexGenxvOES")] + public static + void TexGenx(OpenTK.Graphics.ES11.All coord, OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glTexGenxvOES((OpenTK.Graphics.ES11.All)coord, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexParameterxOES")] + public static + void TexParameterx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexParameterxOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int)param); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexParameterxvOES")] + public static + unsafe void TexParameterx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexParameterxvOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTexParameterxvOES")] + public static + void TexParameterx(OpenTK.Graphics.ES11.All target, OpenTK.Graphics.ES11.All pname, int[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (int* @params_ptr = @params) + { + Delegates.glTexParameterxvOES((OpenTK.Graphics.ES11.All)target, (OpenTK.Graphics.ES11.All)pname, (int*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glTranslatexOES")] + public static + void Translatex(int x, int y, int z) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTranslatexOES((int)x, (int)y, (int)z); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glUnmapBufferOES")] + public static + bool UnmapBuffer(OpenTK.Graphics.ES11.All target) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glUnmapBufferOES((OpenTK.Graphics.ES11.All)target); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glWeightPointerOES")] + public static + void WeightPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] ref T3 pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glWeightPointerOES((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glWeightPointerOES")] + public static + void WeightPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] T3[,,] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glWeightPointerOES((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glWeightPointerOES")] + public static + void WeightPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] T3[,] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glWeightPointerOES((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glWeightPointerOES")] + public static + void WeightPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, [InAttribute, OutAttribute] T3[] pointer) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glWeightPointerOES((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "1.1", Version = "1.1", EntryPoint = "glWeightPointerOES")] + public static + void WeightPointer(Int32 size, OpenTK.Graphics.ES11.All type, Int32 stride, IntPtr pointer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glWeightPointerOES((Int32)size, (OpenTK.Graphics.ES11.All)type, (Int32)stride, (IntPtr)pointer); + #if DEBUG + } + #endif + } + + } + + } +} diff --git a/Source/OpenTK/Graphics/ES11/Enums.cs b/Source/OpenTK/Graphics/ES11/Enums.cs index a2d0b2e2..6bf16999 100644 --- a/Source/OpenTK/Graphics/ES11/Enums.cs +++ b/Source/OpenTK/Graphics/ES11/Enums.cs @@ -1,921 +1,1426 @@ -#region License -// -// The Open Toolkit Library License -// -// Copyright (c) 2006 - 2009 the Open Toolkit library. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -// the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -// OTHER DEALINGS IN THE SOFTWARE. -// -#endregion - -using System; - -namespace OpenTK.Graphics.ES11 -{ - #pragma warning disable 1591 - - public enum All - { - False = ((int)0), - NoError = ((int)0), - Zero = ((int)0), - Points = ((int)0X0000), - DepthBufferBit = ((int)0X00000100), - StencilBufferBit = ((int)0X00000400), - ColorBufferBit = ((int)0X00004000), - Lines = ((int)0X0001), - LineLoop = ((int)0X0002), - LineStrip = ((int)0X0003), - Triangles = ((int)0X0004), - TriangleStrip = ((int)0X0005), - TriangleFan = ((int)0X0006), - Add = ((int)0X0104), - Never = ((int)0X0200), - Less = ((int)0X0201), - Equal = ((int)0X0202), - Lequal = ((int)0X0203), - Greater = ((int)0X0204), - Notequal = ((int)0X0205), - Gequal = ((int)0X0206), - Always = ((int)0X0207), - SrcColor = ((int)0X0300), - OneMinusSrcColor = ((int)0X0301), - SrcAlpha = ((int)0X0302), - OneMinusSrcAlpha = ((int)0X0303), - DstAlpha = ((int)0X0304), - OneMinusDstAlpha = ((int)0X0305), - DstColor = ((int)0X0306), - OneMinusDstColor = ((int)0X0307), - SrcAlphaSaturate = ((int)0X0308), - Front = ((int)0X0404), - Back = ((int)0X0405), - FrontAndBack = ((int)0X0408), - InvalidEnum = ((int)0X0500), - InvalidValue = ((int)0X0501), - InvalidOperation = ((int)0X0502), - StackOverflow = ((int)0X0503), - StackUnderflow = ((int)0X0504), - OutOfMemory = ((int)0X0505), - Exp = ((int)0X0800), - Exp2 = ((int)0X0801), - Cw = ((int)0X0900), - Ccw = ((int)0X0901), - CurrentColor = ((int)0X0b00), - CurrentNormal = ((int)0X0b02), - CurrentTextureCoords = ((int)0X0b03), - PointSmooth = ((int)0X0b10), - PointSize = ((int)0X0b11), - SmoothPointSizeRange = ((int)0X0b12), - LineSmooth = ((int)0X0b20), - LineWidth = ((int)0X0b21), - SmoothLineWidthRange = ((int)0X0b22), - CullFace = ((int)0X0b44), - CullFaceMode = ((int)0X0b45), - FrontFace = ((int)0X0b46), - Lighting = ((int)0X0b50), - LightModelTwoSide = ((int)0X0b52), - LightModelAmbient = ((int)0X0b53), - ShadeModel = ((int)0X0b54), - ColorMaterial = ((int)0X0b57), - Fog = ((int)0X0b60), - FogDensity = ((int)0X0b62), - FogStart = ((int)0X0b63), - FogEnd = ((int)0X0b64), - FogMode = ((int)0X0b65), - FogColor = ((int)0X0b66), - DepthRange = ((int)0X0b70), - DepthTest = ((int)0X0b71), - DepthWritemask = ((int)0X0b72), - DepthClearValue = ((int)0X0b73), - DepthFunc = ((int)0X0b74), - StencilTest = ((int)0X0b90), - StencilClearValue = ((int)0X0b91), - StencilFunc = ((int)0X0b92), - StencilValueMask = ((int)0X0b93), - StencilFail = ((int)0X0b94), - StencilPassDepthFail = ((int)0X0b95), - StencilPassDepthPass = ((int)0X0b96), - StencilRef = ((int)0X0b97), - StencilWritemask = ((int)0X0b98), - MatrixMode = ((int)0X0ba0), - Normalize = ((int)0X0ba1), - Viewport = ((int)0X0ba2), - ModelviewStackDepth = ((int)0X0ba3), - ProjectionStackDepth = ((int)0X0ba4), - TextureStackDepth = ((int)0X0ba5), - ModelviewMatrix = ((int)0X0ba6), - ProjectionMatrix = ((int)0X0ba7), - TextureMatrix = ((int)0X0ba8), - AlphaTest = ((int)0X0bc0), - AlphaTestFunc = ((int)0X0bc1), - AlphaTestRef = ((int)0X0bc2), - Dither = ((int)0X0bd0), - BlendDst = ((int)0X0be0), - BlendSrc = ((int)0X0be1), - Blend = ((int)0X0be2), - LogicOpMode = ((int)0X0bf0), - ColorLogicOp = ((int)0X0bf2), - ScissorBox = ((int)0X0c10), - ScissorTest = ((int)0X0c11), - ColorClearValue = ((int)0X0c22), - ColorWritemask = ((int)0X0c23), - PerspectiveCorrectionHint = ((int)0X0c50), - PointSmoothHint = ((int)0X0c51), - LineSmoothHint = ((int)0X0c52), - FogHint = ((int)0X0c54), - UnpackAlignment = ((int)0X0cf5), - PackAlignment = ((int)0X0d05), - AlphaScale = ((int)0X0d1c), - MaxLights = ((int)0X0d31), - MaxClipPlanes = ((int)0X0d32), - MaxTextureSize = ((int)0X0d33), - MaxModelviewStackDepth = ((int)0X0d36), - MaxProjectionStackDepth = ((int)0X0d38), - MaxTextureStackDepth = ((int)0X0d39), - MaxViewportDims = ((int)0X0d3a), - SubpixelBits = ((int)0X0d50), - RedBits = ((int)0X0d52), - GreenBits = ((int)0X0d53), - BlueBits = ((int)0X0d54), - AlphaBits = ((int)0X0d55), - DepthBits = ((int)0X0d56), - StencilBits = ((int)0X0d57), - Texture2D = ((int)0X0de1), - DontCare = ((int)0X1100), - Fastest = ((int)0X1101), - Nicest = ((int)0X1102), - Ambient = ((int)0X1200), - Diffuse = ((int)0X1201), - Specular = ((int)0X1202), - Position = ((int)0X1203), - SpotDirection = ((int)0X1204), - SpotExponent = ((int)0X1205), - SpotCutoff = ((int)0X1206), - ConstantAttenuation = ((int)0X1207), - LinearAttenuation = ((int)0X1208), - QuadraticAttenuation = ((int)0X1209), - Byte = ((int)0X1400), - UnsignedByte = ((int)0X1401), - Short = ((int)0X1402), - UnsignedShort = ((int)0X1403), - Float = ((int)0X1406), - Fixed = ((int)0X140c), - Clear = ((int)0X1500), - And = ((int)0X1501), - AndReverse = ((int)0X1502), - Copy = ((int)0X1503), - AndInverted = ((int)0X1504), - Noop = ((int)0X1505), - Xor = ((int)0X1506), - Or = ((int)0X1507), - Nor = ((int)0X1508), - Equiv = ((int)0X1509), - Invert = ((int)0X150a), - OrReverse = ((int)0X150b), - CopyInverted = ((int)0X150c), - OrInverted = ((int)0X150d), - Nand = ((int)0X150e), - Set = ((int)0X150f), - Emission = ((int)0X1600), - Shininess = ((int)0X1601), - AmbientAndDiffuse = ((int)0X1602), - Modelview = ((int)0X1700), - Projection = ((int)0X1701), - Texture = ((int)0X1702), - Alpha = ((int)0X1906), - Rgb = ((int)0X1907), - Rgba = ((int)0X1908), - Luminance = ((int)0X1909), - LuminanceAlpha = ((int)0X190a), - Flat = ((int)0X1d00), - Smooth = ((int)0X1d01), - Keep = ((int)0X1e00), - Replace = ((int)0X1e01), - Incr = ((int)0X1e02), - Decr = ((int)0X1e03), - Vendor = ((int)0X1f00), - Renderer = ((int)0X1f01), - Version = ((int)0X1f02), - Extensions = ((int)0X1f03), - Modulate = ((int)0X2100), - Decal = ((int)0X2101), - TextureEnvMode = ((int)0X2200), - TextureEnvColor = ((int)0X2201), - TextureEnv = ((int)0X2300), - Nearest = ((int)0X2600), - Linear = ((int)0X2601), - NearestMipmapNearest = ((int)0X2700), - LinearMipmapNearest = ((int)0X2701), - NearestMipmapLinear = ((int)0X2702), - LinearMipmapLinear = ((int)0X2703), - TextureMagFilter = ((int)0X2800), - TextureMinFilter = ((int)0X2801), - TextureWrapS = ((int)0X2802), - TextureWrapT = ((int)0X2803), - Repeat = ((int)0X2901), - PolygonOffsetUnits = ((int)0X2a00), - ClipPlane0 = ((int)0X3000), - ClipPlane1 = ((int)0X3001), - ClipPlane2 = ((int)0X3002), - ClipPlane3 = ((int)0X3003), - ClipPlane4 = ((int)0X3004), - ClipPlane5 = ((int)0X3005), - Light0 = ((int)0X4000), - Light1 = ((int)0X4001), - Light2 = ((int)0X4002), - Light3 = ((int)0X4003), - Light4 = ((int)0X4004), - Light5 = ((int)0X4005), - Light6 = ((int)0X4006), - Light7 = ((int)0X4007), - UnsignedShort4444 = ((int)0X8033), - UnsignedShort5551 = ((int)0X8034), - PolygonOffsetFill = ((int)0X8037), - PolygonOffsetFactor = ((int)0X8038), - RescaleNormal = ((int)0X803a), - TextureBinding2D = ((int)0X8069), - VertexArray = ((int)0X8074), - NormalArray = ((int)0X8075), - ColorArray = ((int)0X8076), - TextureCoordArray = ((int)0X8078), - VertexArraySize = ((int)0X807a), - VertexArrayType = ((int)0X807b), - VertexArrayStride = ((int)0X807c), - NormalArrayType = ((int)0X807e), - NormalArrayStride = ((int)0X807f), - ColorArraySize = ((int)0X8081), - ColorArrayType = ((int)0X8082), - ColorArrayStride = ((int)0X8083), - TextureCoordArraySize = ((int)0X8088), - TextureCoordArrayType = ((int)0X8089), - TextureCoordArrayStride = ((int)0X808a), - VertexArrayPointer = ((int)0X808e), - NormalArrayPointer = ((int)0X808f), - ColorArrayPointer = ((int)0X8090), - TextureCoordArrayPointer = ((int)0X8092), - Multisample = ((int)0X809d), - SampleAlphaToCoverage = ((int)0X809e), - SampleAlphaToOne = ((int)0X809f), - SampleCoverage = ((int)0X80a0), - SampleBuffers = ((int)0X80a8), - Samples = ((int)0X80a9), - SampleCoverageValue = ((int)0X80aa), - SampleCoverageInvert = ((int)0X80ab), - PointSizeMin = ((int)0X8126), - PointSizeMax = ((int)0X8127), - PointFadeThresholdSize = ((int)0X8128), - PointDistanceAttenuation = ((int)0X8129), - ClampToEdge = ((int)0X812f), - GenerateMipmap = ((int)0X8191), - GenerateMipmapHint = ((int)0X8192), - UnsignedShort565 = ((int)0X8363), - AliasedPointSizeRange = ((int)0X846d), - AliasedLineWidthRange = ((int)0X846e), - Texture0 = ((int)0X84c0), - Texture1 = ((int)0X84c1), - Texture2 = ((int)0X84c2), - Texture3 = ((int)0X84c3), - Texture4 = ((int)0X84c4), - Texture5 = ((int)0X84c5), - Texture6 = ((int)0X84c6), - Texture7 = ((int)0X84c7), - Texture8 = ((int)0X84c8), - Texture9 = ((int)0X84c9), - Texture10 = ((int)0X84ca), - Texture11 = ((int)0X84cb), - Texture12 = ((int)0X84cc), - Texture13 = ((int)0X84cd), - Texture14 = ((int)0X84ce), - Texture15 = ((int)0X84cf), - Texture16 = ((int)0X84d0), - Texture17 = ((int)0X84d1), - Texture18 = ((int)0X84d2), - Texture19 = ((int)0X84d3), - Texture20 = ((int)0X84d4), - Texture21 = ((int)0X84d5), - Texture22 = ((int)0X84d6), - Texture23 = ((int)0X84d7), - Texture24 = ((int)0X84d8), - Texture25 = ((int)0X84d9), - Texture26 = ((int)0X84da), - Texture27 = ((int)0X84db), - Texture28 = ((int)0X84dc), - Texture29 = ((int)0X84dd), - Texture30 = ((int)0X84de), - Texture31 = ((int)0X84df), - ActiveTexture = ((int)0X84e0), - ClientActiveTexture = ((int)0X84e1), - MaxTextureUnits = ((int)0X84e2), - Subtract = ((int)0X84e7), - Combine = ((int)0X8570), - CombineRgb = ((int)0X8571), - CombineAlpha = ((int)0X8572), - RgbScale = ((int)0X8573), - AddSigned = ((int)0X8574), - Interpolate = ((int)0X8575), - Constant = ((int)0X8576), - PrimaryColor = ((int)0X8577), - Previous = ((int)0X8578), - Src0Rgb = ((int)0X8580), - Src1Rgb = ((int)0X8581), - Src2Rgb = ((int)0X8582), - Src0Alpha = ((int)0X8588), - Src1Alpha = ((int)0X8589), - Src2Alpha = ((int)0X858a), - Operand0Rgb = ((int)0X8590), - Operand1Rgb = ((int)0X8591), - Operand2Rgb = ((int)0X8592), - Operand0Alpha = ((int)0X8598), - Operand1Alpha = ((int)0X8599), - Operand2Alpha = ((int)0X859a), - NumCompressedTextureFormats = ((int)0X86a2), - CompressedTextureFormats = ((int)0X86a3), - Dot3Rgb = ((int)0X86ae), - Dot3Rgba = ((int)0X86af), - BufferSize = ((int)0X8764), - BufferUsage = ((int)0X8765), - PointSpriteOes = ((int)0X8861), - CoordReplaceOes = ((int)0X8862), - ArrayBuffer = ((int)0X8892), - ElementArrayBuffer = ((int)0X8893), - ArrayBufferBinding = ((int)0X8894), - ElementArrayBufferBinding = ((int)0X8895), - VertexArrayBufferBinding = ((int)0X8896), - NormalArrayBufferBinding = ((int)0X8897), - ColorArrayBufferBinding = ((int)0X8898), - TextureCoordArrayBufferBinding = ((int)0X889a), - StaticDraw = ((int)0X88e4), - DynamicDraw = ((int)0X88e8), - PointSizeArrayTypeOes = ((int)0X898a), - PointSizeArrayStrideOes = ((int)0X898b), - PointSizeArrayPointerOes = ((int)0X898c), - Palette4Rgb8Oes = ((int)0X8b90), - Palette4Rgba8Oes = ((int)0X8b91), - Palette4R5G6B5Oes = ((int)0X8b92), - Palette4Rgba4Oes = ((int)0X8b93), - Palette4Rgb5A1Oes = ((int)0X8b94), - Palette8Rgb8Oes = ((int)0X8b95), - Palette8Rgba8Oes = ((int)0X8b96), - Palette8R5G6B5Oes = ((int)0X8b97), - Palette8Rgba4Oes = ((int)0X8b98), - Palette8Rgb5A1Oes = ((int)0X8b99), - ImplementationColorReadTypeOes = ((int)0X8b9a), - ImplementationColorReadFormatOes = ((int)0X8b9b), - PointSizeArrayOes = ((int)0X8b9c), - PointSizeArrayBufferBindingOes = ((int)0X8b9f), - One = ((int)1), - True = ((int)1), - VersionEsCl10 = ((int)1), - VersionEsCl11 = ((int)1), - VersionEsCm10 = ((int)1), - VersionEsCm11 = ((int)1), - } - - public enum AlphaFunction - { - Never = ((int)0X0200), - Less = ((int)0X0201), - Equal = ((int)0X0202), - Lequal = ((int)0X0203), - Greater = ((int)0X0204), - Notequal = ((int)0X0205), - Gequal = ((int)0X0206), - Always = ((int)0X0207), - } - - public enum BeginMode - { - Points = ((int)0X0000), - Lines = ((int)0X0001), - LineLoop = ((int)0X0002), - LineStrip = ((int)0X0003), - Triangles = ((int)0X0004), - TriangleStrip = ((int)0X0005), - TriangleFan = ((int)0X0006), - } - - public enum BlendingFactorDest - { - Zero = ((int)0), - SrcColor = ((int)0X0300), - OneMinusSrcColor = ((int)0X0301), - SrcAlpha = ((int)0X0302), - OneMinusSrcAlpha = ((int)0X0303), - DstAlpha = ((int)0X0304), - OneMinusDstAlpha = ((int)0X0305), - One = ((int)1), - } - - public enum BlendingFactorSrc - { - DstColor = ((int)0X0306), - OneMinusDstColor = ((int)0X0307), - SrcAlphaSaturate = ((int)0X0308), - } - - public enum Boolean - { - False = ((int)0), - True = ((int)1), - } - - public enum BufferObjects - { - BufferSize = ((int)0X8764), - BufferUsage = ((int)0X8765), - ArrayBuffer = ((int)0X8892), - ElementArrayBuffer = ((int)0X8893), - ArrayBufferBinding = ((int)0X8894), - ElementArrayBufferBinding = ((int)0X8895), - VertexArrayBufferBinding = ((int)0X8896), - NormalArrayBufferBinding = ((int)0X8897), - ColorArrayBufferBinding = ((int)0X8898), - TextureCoordArrayBufferBinding = ((int)0X889a), - StaticDraw = ((int)0X88e4), - DynamicDraw = ((int)0X88e8), - } - - [Flags] - public enum ClearBufferMask - { - DepthBufferBit = ((int)0X00000100), - StencilBufferBit = ((int)0X00000400), - ColorBufferBit = ((int)0X00004000), - } - - public enum ClipPlaneName - { - ClipPlane0 = ((int)0X3000), - ClipPlane1 = ((int)0X3001), - ClipPlane2 = ((int)0X3002), - ClipPlane3 = ((int)0X3003), - ClipPlane4 = ((int)0X3004), - ClipPlane5 = ((int)0X3005), - } - - public enum CullFaceMode - { - Front = ((int)0X0404), - Back = ((int)0X0405), - FrontAndBack = ((int)0X0408), - } - - public enum DataType - { - Byte = ((int)0X1400), - UnsignedByte = ((int)0X1401), - Short = ((int)0X1402), - UnsignedShort = ((int)0X1403), - Float = ((int)0X1406), - Fixed = ((int)0X140c), - } - - public enum EnableCap - { - PointSmooth = ((int)0X0b10), - LineSmooth = ((int)0X0b20), - CullFace = ((int)0X0b44), - Lighting = ((int)0X0b50), - ColorMaterial = ((int)0X0b57), - Fog = ((int)0X0b60), - DepthTest = ((int)0X0b71), - StencilTest = ((int)0X0b90), - Normalize = ((int)0X0ba1), - AlphaTest = ((int)0X0bc0), - Dither = ((int)0X0bd0), - Blend = ((int)0X0be2), - ColorLogicOp = ((int)0X0bf2), - ScissorTest = ((int)0X0c11), - Texture2D = ((int)0X0de1), - PolygonOffsetFill = ((int)0X8037), - RescaleNormal = ((int)0X803a), - VertexArray = ((int)0X8074), - NormalArray = ((int)0X8075), - ColorArray = ((int)0X8076), - TextureCoordArray = ((int)0X8078), - Multisample = ((int)0X809d), - SampleAlphaToCoverage = ((int)0X809e), - SampleAlphaToOne = ((int)0X809f), - SampleCoverage = ((int)0X80a0), - } - - public enum ErrorCode - { - NoError = ((int)0), - InvalidEnum = ((int)0X0500), - InvalidValue = ((int)0X0501), - InvalidOperation = ((int)0X0502), - StackOverflow = ((int)0X0503), - StackUnderflow = ((int)0X0504), - OutOfMemory = ((int)0X0505), - } - - public enum FogMode - { - Exp = ((int)0X0800), - Exp2 = ((int)0X0801), - } - - public enum FogParameter - { - FogDensity = ((int)0X0b62), - FogStart = ((int)0X0b63), - FogEnd = ((int)0X0b64), - FogMode = ((int)0X0b65), - FogColor = ((int)0X0b66), - } - - public enum FrontFaceDirection - { - Cw = ((int)0X0900), - Ccw = ((int)0X0901), - } - - public enum GetPName - { - CurrentColor = ((int)0X0b00), - CurrentNormal = ((int)0X0b02), - CurrentTextureCoords = ((int)0X0b03), - PointSize = ((int)0X0b11), - SmoothPointSizeRange = ((int)0X0b12), - LineWidth = ((int)0X0b21), - SmoothLineWidthRange = ((int)0X0b22), - CullFaceMode = ((int)0X0b45), - FrontFace = ((int)0X0b46), - ShadeModel = ((int)0X0b54), - DepthRange = ((int)0X0b70), - DepthWritemask = ((int)0X0b72), - DepthClearValue = ((int)0X0b73), - DepthFunc = ((int)0X0b74), - StencilClearValue = ((int)0X0b91), - StencilFunc = ((int)0X0b92), - StencilValueMask = ((int)0X0b93), - StencilFail = ((int)0X0b94), - StencilPassDepthFail = ((int)0X0b95), - StencilPassDepthPass = ((int)0X0b96), - StencilRef = ((int)0X0b97), - StencilWritemask = ((int)0X0b98), - MatrixMode = ((int)0X0ba0), - Viewport = ((int)0X0ba2), - ModelviewStackDepth = ((int)0X0ba3), - ProjectionStackDepth = ((int)0X0ba4), - TextureStackDepth = ((int)0X0ba5), - ModelviewMatrix = ((int)0X0ba6), - ProjectionMatrix = ((int)0X0ba7), - TextureMatrix = ((int)0X0ba8), - AlphaTestFunc = ((int)0X0bc1), - AlphaTestRef = ((int)0X0bc2), - BlendDst = ((int)0X0be0), - BlendSrc = ((int)0X0be1), - LogicOpMode = ((int)0X0bf0), - ScissorBox = ((int)0X0c10), - ScissorTest = ((int)0X0c11), - ColorClearValue = ((int)0X0c22), - ColorWritemask = ((int)0X0c23), - UnpackAlignment = ((int)0X0cf5), - PackAlignment = ((int)0X0d05), - MaxLights = ((int)0X0d31), - MaxClipPlanes = ((int)0X0d32), - MaxTextureSize = ((int)0X0d33), - MaxModelviewStackDepth = ((int)0X0d36), - MaxProjectionStackDepth = ((int)0X0d38), - MaxTextureStackDepth = ((int)0X0d39), - MaxViewportDims = ((int)0X0d3a), - SubpixelBits = ((int)0X0d50), - RedBits = ((int)0X0d52), - GreenBits = ((int)0X0d53), - BlueBits = ((int)0X0d54), - AlphaBits = ((int)0X0d55), - DepthBits = ((int)0X0d56), - StencilBits = ((int)0X0d57), - PolygonOffsetUnits = ((int)0X2a00), - PolygonOffsetFill = ((int)0X8037), - PolygonOffsetFactor = ((int)0X8038), - TextureBinding2D = ((int)0X8069), - VertexArraySize = ((int)0X807a), - VertexArrayType = ((int)0X807b), - VertexArrayStride = ((int)0X807c), - NormalArrayType = ((int)0X807e), - NormalArrayStride = ((int)0X807f), - ColorArraySize = ((int)0X8081), - ColorArrayType = ((int)0X8082), - ColorArrayStride = ((int)0X8083), - TextureCoordArraySize = ((int)0X8088), - TextureCoordArrayType = ((int)0X8089), - TextureCoordArrayStride = ((int)0X808a), - VertexArrayPointer = ((int)0X808e), - NormalArrayPointer = ((int)0X808f), - ColorArrayPointer = ((int)0X8090), - TextureCoordArrayPointer = ((int)0X8092), - SampleBuffers = ((int)0X80a8), - Samples = ((int)0X80a9), - SampleCoverageValue = ((int)0X80aa), - SampleCoverageInvert = ((int)0X80ab), - PointSizeMin = ((int)0X8126), - PointSizeMax = ((int)0X8127), - PointFadeThresholdSize = ((int)0X8128), - PointDistanceAttenuation = ((int)0X8129), - AliasedPointSizeRange = ((int)0X846d), - AliasedLineWidthRange = ((int)0X846e), - MaxTextureUnits = ((int)0X84e2), - } - - public enum GetTextureParameter - { - NumCompressedTextureFormats = ((int)0X86a2), - CompressedTextureFormats = ((int)0X86a3), - } - - public enum HintMode - { - DontCare = ((int)0X1100), - Fastest = ((int)0X1101), - Nicest = ((int)0X1102), - } - - public enum HintTarget - { - PerspectiveCorrectionHint = ((int)0X0c50), - PointSmoothHint = ((int)0X0c51), - LineSmoothHint = ((int)0X0c52), - FogHint = ((int)0X0c54), - GenerateMipmapHint = ((int)0X8192), - } - - public enum LightModelParameter - { - LightModelTwoSide = ((int)0X0b52), - LightModelAmbient = ((int)0X0b53), - } - - public enum LightName - { - Light0 = ((int)0X4000), - Light1 = ((int)0X4001), - Light2 = ((int)0X4002), - Light3 = ((int)0X4003), - Light4 = ((int)0X4004), - Light5 = ((int)0X4005), - Light6 = ((int)0X4006), - Light7 = ((int)0X4007), - } - - public enum LightParameter - { - Ambient = ((int)0X1200), - Diffuse = ((int)0X1201), - Specular = ((int)0X1202), - Position = ((int)0X1203), - SpotDirection = ((int)0X1204), - SpotExponent = ((int)0X1205), - SpotCutoff = ((int)0X1206), - ConstantAttenuation = ((int)0X1207), - LinearAttenuation = ((int)0X1208), - QuadraticAttenuation = ((int)0X1209), - } - - public enum LogicOp - { - Clear = ((int)0X1500), - And = ((int)0X1501), - AndReverse = ((int)0X1502), - Copy = ((int)0X1503), - AndInverted = ((int)0X1504), - Noop = ((int)0X1505), - Xor = ((int)0X1506), - Or = ((int)0X1507), - Nor = ((int)0X1508), - Equiv = ((int)0X1509), - Invert = ((int)0X150a), - OrReverse = ((int)0X150b), - CopyInverted = ((int)0X150c), - OrInverted = ((int)0X150d), - Nand = ((int)0X150e), - Set = ((int)0X150f), - } - - public enum MaterialParameter - { - Emission = ((int)0X1600), - Shininess = ((int)0X1601), - AmbientAndDiffuse = ((int)0X1602), - } - - public enum MatrixMode - { - Modelview = ((int)0X1700), - Projection = ((int)0X1701), - Texture = ((int)0X1702), - } - - public enum OesPointSizeArray - { - PointSpriteOes = ((int)0X8861), - CoordReplaceOes = ((int)0X8862), - PointSizeArrayTypeOes = ((int)0X898a), - PointSizeArrayStrideOes = ((int)0X898b), - PointSizeArrayPointerOes = ((int)0X898c), - PointSizeArrayOes = ((int)0X8b9c), - PointSizeArrayBufferBindingOes = ((int)0X8b9f), - } - - public enum OesReadFormat - { - Palette4Rgb8Oes = ((int)0X8b90), - Palette4Rgba8Oes = ((int)0X8b91), - Palette4R5G6B5Oes = ((int)0X8b92), - Palette4Rgba4Oes = ((int)0X8b93), - Palette4Rgb5A1Oes = ((int)0X8b94), - Palette8Rgb8Oes = ((int)0X8b95), - Palette8Rgba8Oes = ((int)0X8b96), - Palette8R5G6B5Oes = ((int)0X8b97), - Palette8Rgba4Oes = ((int)0X8b98), - Palette8Rgb5A1Oes = ((int)0X8b99), - ImplementationColorReadTypeOes = ((int)0X8b9a), - ImplementationColorReadFormatOes = ((int)0X8b9b), - } - - public enum PixelFormat - { - Alpha = ((int)0X1906), - Rgb = ((int)0X1907), - Rgba = ((int)0X1908), - Luminance = ((int)0X1909), - LuminanceAlpha = ((int)0X190a), - } - - public enum PixelStoreParameter - { - UnpackAlignment = ((int)0X0cf5), - PackAlignment = ((int)0X0d05), - } - - public enum PixelType - { - UnsignedShort4444 = ((int)0X8033), - UnsignedShort5551 = ((int)0X8034), - UnsignedShort565 = ((int)0X8363), - } - - public enum ShadingModel - { - Flat = ((int)0X1d00), - Smooth = ((int)0X1d01), - } - - public enum StencilOp - { - Keep = ((int)0X1e00), - Replace = ((int)0X1e01), - Incr = ((int)0X1e02), - Decr = ((int)0X1e03), - } - - public enum StringName - { - Vendor = ((int)0X1f00), - Renderer = ((int)0X1f01), - Version = ((int)0X1f02), - Extensions = ((int)0X1f03), - } - - public enum TextureCombine - { - AlphaScale = ((int)0X0d1c), - Subtract = ((int)0X84e7), - Combine = ((int)0X8570), - CombineRgb = ((int)0X8571), - CombineAlpha = ((int)0X8572), - RgbScale = ((int)0X8573), - AddSigned = ((int)0X8574), - Interpolate = ((int)0X8575), - Constant = ((int)0X8576), - PrimaryColor = ((int)0X8577), - Previous = ((int)0X8578), - Src0Rgb = ((int)0X8580), - Src1Rgb = ((int)0X8581), - Src2Rgb = ((int)0X8582), - Src0Alpha = ((int)0X8588), - Src1Alpha = ((int)0X8589), - Src2Alpha = ((int)0X858a), - Operand0Rgb = ((int)0X8590), - Operand1Rgb = ((int)0X8591), - Operand2Rgb = ((int)0X8592), - Operand0Alpha = ((int)0X8598), - Operand1Alpha = ((int)0X8599), - Operand2Alpha = ((int)0X859a), - Dot3Rgb = ((int)0X86ae), - Dot3Rgba = ((int)0X86af), - } - - public enum TextureEnvMode - { - Add = ((int)0X0104), - Modulate = ((int)0X2100), - Decal = ((int)0X2101), - } - - public enum TextureEnvParameter - { - TextureEnvMode = ((int)0X2200), - TextureEnvColor = ((int)0X2201), - } - - public enum TextureEnvTarget - { - TextureEnv = ((int)0X2300), - } - - public enum TextureMagFilter - { - Nearest = ((int)0X2600), - Linear = ((int)0X2601), - } - - public enum TextureMinFilter - { - NearestMipmapNearest = ((int)0X2700), - LinearMipmapNearest = ((int)0X2701), - NearestMipmapLinear = ((int)0X2702), - LinearMipmapLinear = ((int)0X2703), - } - - public enum TextureParameterName - { - TextureMagFilter = ((int)0X2800), - TextureMinFilter = ((int)0X2801), - TextureWrapS = ((int)0X2802), - TextureWrapT = ((int)0X2803), - GenerateMipmap = ((int)0X8191), - } - - public enum TextureUnit - { - Texture0 = ((int)0X84c0), - Texture1 = ((int)0X84c1), - Texture2 = ((int)0X84c2), - Texture3 = ((int)0X84c3), - Texture4 = ((int)0X84c4), - Texture5 = ((int)0X84c5), - Texture6 = ((int)0X84c6), - Texture7 = ((int)0X84c7), - Texture8 = ((int)0X84c8), - Texture9 = ((int)0X84c9), - Texture10 = ((int)0X84ca), - Texture11 = ((int)0X84cb), - Texture12 = ((int)0X84cc), - Texture13 = ((int)0X84cd), - Texture14 = ((int)0X84ce), - Texture15 = ((int)0X84cf), - Texture16 = ((int)0X84d0), - Texture17 = ((int)0X84d1), - Texture18 = ((int)0X84d2), - Texture19 = ((int)0X84d3), - Texture20 = ((int)0X84d4), - Texture21 = ((int)0X84d5), - Texture22 = ((int)0X84d6), - Texture23 = ((int)0X84d7), - Texture24 = ((int)0X84d8), - Texture25 = ((int)0X84d9), - Texture26 = ((int)0X84da), - Texture27 = ((int)0X84db), - Texture28 = ((int)0X84dc), - Texture29 = ((int)0X84dd), - Texture30 = ((int)0X84de), - Texture31 = ((int)0X84df), - ActiveTexture = ((int)0X84e0), - ClientActiveTexture = ((int)0X84e1), - } - - public enum TextureWrapMode - { - Repeat = ((int)0X2901), - ClampToEdge = ((int)0X812f), - } - - public enum Version - { - VersionEsCl10 = ((int)1), - VersionEsCl11 = ((int)1), - VersionEsCm10 = ((int)1), - VersionEsCm11 = ((int)1), - } - -} +#region License +// +// The Open Toolkit Library License +// +// Copyright (c) 2006 - 2009 the Open Toolkit library. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do +// so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// +#endregion + +using System; + +namespace OpenTK.Graphics.ES11 +{ + #pragma warning disable 1591 + + public enum All + { + False = ((int)0), + NoError = ((int)0), + NoneOes = ((int)0), + Zero = ((int)0), + Points = ((int)0X0000), + DepthBufferBit = ((int)0X00000100), + StencilBufferBit = ((int)0X00000400), + ColorBufferBit = ((int)0X00004000), + Lines = ((int)0X0001), + LineLoop = ((int)0X0002), + LineStrip = ((int)0X0003), + Triangles = ((int)0X0004), + TriangleStrip = ((int)0X0005), + TriangleFan = ((int)0X0006), + Add = ((int)0X0104), + Never = ((int)0X0200), + Less = ((int)0X0201), + Equal = ((int)0X0202), + Lequal = ((int)0X0203), + Greater = ((int)0X0204), + Notequal = ((int)0X0205), + Gequal = ((int)0X0206), + Always = ((int)0X0207), + SrcColor = ((int)0X0300), + OneMinusSrcColor = ((int)0X0301), + SrcAlpha = ((int)0X0302), + OneMinusSrcAlpha = ((int)0X0303), + DstAlpha = ((int)0X0304), + OneMinusDstAlpha = ((int)0X0305), + DstColor = ((int)0X0306), + OneMinusDstColor = ((int)0X0307), + SrcAlphaSaturate = ((int)0X0308), + Front = ((int)0X0404), + Back = ((int)0X0405), + FrontAndBack = ((int)0X0408), + InvalidEnum = ((int)0X0500), + InvalidValue = ((int)0X0501), + InvalidOperation = ((int)0X0502), + StackOverflow = ((int)0X0503), + StackUnderflow = ((int)0X0504), + OutOfMemory = ((int)0X0505), + InvalidFramebufferOperationOes = ((int)0X0506), + Exp = ((int)0X0800), + Exp2 = ((int)0X0801), + Cw = ((int)0X0900), + Ccw = ((int)0X0901), + CurrentColor = ((int)0X0b00), + CurrentNormal = ((int)0X0b02), + CurrentTextureCoords = ((int)0X0b03), + PointSmooth = ((int)0X0b10), + PointSize = ((int)0X0b11), + SmoothPointSizeRange = ((int)0X0b12), + LineSmooth = ((int)0X0b20), + LineWidth = ((int)0X0b21), + SmoothLineWidthRange = ((int)0X0b22), + CullFace = ((int)0X0b44), + CullFaceMode = ((int)0X0b45), + FrontFace = ((int)0X0b46), + Lighting = ((int)0X0b50), + LightModelTwoSide = ((int)0X0b52), + LightModelAmbient = ((int)0X0b53), + ShadeModel = ((int)0X0b54), + ColorMaterial = ((int)0X0b57), + Fog = ((int)0X0b60), + FogDensity = ((int)0X0b62), + FogStart = ((int)0X0b63), + FogEnd = ((int)0X0b64), + FogMode = ((int)0X0b65), + FogColor = ((int)0X0b66), + DepthRange = ((int)0X0b70), + DepthTest = ((int)0X0b71), + DepthWritemask = ((int)0X0b72), + DepthClearValue = ((int)0X0b73), + DepthFunc = ((int)0X0b74), + StencilTest = ((int)0X0b90), + StencilClearValue = ((int)0X0b91), + StencilFunc = ((int)0X0b92), + StencilValueMask = ((int)0X0b93), + StencilFail = ((int)0X0b94), + StencilPassDepthFail = ((int)0X0b95), + StencilPassDepthPass = ((int)0X0b96), + StencilRef = ((int)0X0b97), + StencilWritemask = ((int)0X0b98), + MatrixMode = ((int)0X0ba0), + Normalize = ((int)0X0ba1), + Viewport = ((int)0X0ba2), + ModelviewStackDepth = ((int)0X0ba3), + ProjectionStackDepth = ((int)0X0ba4), + TextureStackDepth = ((int)0X0ba5), + ModelviewMatrix = ((int)0X0ba6), + ProjectionMatrix = ((int)0X0ba7), + TextureMatrix = ((int)0X0ba8), + AlphaTest = ((int)0X0bc0), + AlphaTestFunc = ((int)0X0bc1), + AlphaTestRef = ((int)0X0bc2), + Dither = ((int)0X0bd0), + BlendDst = ((int)0X0be0), + BlendSrc = ((int)0X0be1), + Blend = ((int)0X0be2), + LogicOpMode = ((int)0X0bf0), + ColorLogicOp = ((int)0X0bf2), + ScissorBox = ((int)0X0c10), + ScissorTest = ((int)0X0c11), + ColorClearValue = ((int)0X0c22), + ColorWritemask = ((int)0X0c23), + PerspectiveCorrectionHint = ((int)0X0c50), + PointSmoothHint = ((int)0X0c51), + LineSmoothHint = ((int)0X0c52), + FogHint = ((int)0X0c54), + UnpackAlignment = ((int)0X0cf5), + PackAlignment = ((int)0X0d05), + AlphaScale = ((int)0X0d1c), + MaxLights = ((int)0X0d31), + MaxClipPlanes = ((int)0X0d32), + MaxClipPlanesImg = ((int)0X0d32), + MaxTextureSize = ((int)0X0d33), + MaxModelviewStackDepth = ((int)0X0d36), + MaxProjectionStackDepth = ((int)0X0d38), + MaxTextureStackDepth = ((int)0X0d39), + MaxViewportDims = ((int)0X0d3a), + SubpixelBits = ((int)0X0d50), + RedBits = ((int)0X0d52), + GreenBits = ((int)0X0d53), + BlueBits = ((int)0X0d54), + AlphaBits = ((int)0X0d55), + DepthBits = ((int)0X0d56), + StencilBits = ((int)0X0d57), + Texture2D = ((int)0X0de1), + DontCare = ((int)0X1100), + Fastest = ((int)0X1101), + Nicest = ((int)0X1102), + Ambient = ((int)0X1200), + Diffuse = ((int)0X1201), + Specular = ((int)0X1202), + Position = ((int)0X1203), + SpotDirection = ((int)0X1204), + SpotExponent = ((int)0X1205), + SpotCutoff = ((int)0X1206), + ConstantAttenuation = ((int)0X1207), + LinearAttenuation = ((int)0X1208), + QuadraticAttenuation = ((int)0X1209), + Byte = ((int)0X1400), + UnsignedByte = ((int)0X1401), + Short = ((int)0X1402), + UnsignedShort = ((int)0X1403), + Float = ((int)0X1406), + Fixed = ((int)0X140c), + FixedOes = ((int)0X140c), + Clear = ((int)0X1500), + And = ((int)0X1501), + AndReverse = ((int)0X1502), + Copy = ((int)0X1503), + AndInverted = ((int)0X1504), + Noop = ((int)0X1505), + Xor = ((int)0X1506), + Or = ((int)0X1507), + Nor = ((int)0X1508), + Equiv = ((int)0X1509), + Invert = ((int)0X150a), + OrReverse = ((int)0X150b), + CopyInverted = ((int)0X150c), + OrInverted = ((int)0X150d), + Nand = ((int)0X150e), + Set = ((int)0X150f), + Emission = ((int)0X1600), + Shininess = ((int)0X1601), + AmbientAndDiffuse = ((int)0X1602), + Modelview = ((int)0X1700), + Projection = ((int)0X1701), + Texture = ((int)0X1702), + Alpha = ((int)0X1906), + Rgb = ((int)0X1907), + Rgba = ((int)0X1908), + Luminance = ((int)0X1909), + LuminanceAlpha = ((int)0X190a), + Flat = ((int)0X1d00), + Smooth = ((int)0X1d01), + Keep = ((int)0X1e00), + Replace = ((int)0X1e01), + Incr = ((int)0X1e02), + Decr = ((int)0X1e03), + Vendor = ((int)0X1f00), + Renderer = ((int)0X1f01), + Version = ((int)0X1f02), + Extensions = ((int)0X1f03), + Modulate = ((int)0X2100), + Decal = ((int)0X2101), + TextureEnvMode = ((int)0X2200), + TextureEnvColor = ((int)0X2201), + TextureEnv = ((int)0X2300), + TextureGenModeOes = ((int)0X2500), + Nearest = ((int)0X2600), + Linear = ((int)0X2601), + NearestMipmapNearest = ((int)0X2700), + LinearMipmapNearest = ((int)0X2701), + NearestMipmapLinear = ((int)0X2702), + LinearMipmapLinear = ((int)0X2703), + TextureMagFilter = ((int)0X2800), + TextureMinFilter = ((int)0X2801), + TextureWrapS = ((int)0X2802), + TextureWrapT = ((int)0X2803), + Repeat = ((int)0X2901), + PolygonOffsetUnits = ((int)0X2a00), + ClipPlane0 = ((int)0X3000), + ClipPlane0Img = ((int)0X3000), + ClipPlane1 = ((int)0X3001), + ClipPlane1Img = ((int)0X3001), + ClipPlane2 = ((int)0X3002), + ClipPlane2Img = ((int)0X3002), + ClipPlane3 = ((int)0X3003), + ClipPlane3Img = ((int)0X3003), + ClipPlane4 = ((int)0X3004), + ClipPlane4Img = ((int)0X3004), + ClipPlane5 = ((int)0X3005), + ClipPlane5Img = ((int)0X3005), + Light0 = ((int)0X4000), + Light1 = ((int)0X4001), + Light2 = ((int)0X4002), + Light3 = ((int)0X4003), + Light4 = ((int)0X4004), + Light5 = ((int)0X4005), + Light6 = ((int)0X4006), + Light7 = ((int)0X4007), + FuncAddOes = ((int)0X8006), + BlendEquationOes = ((int)0X8009), + BlendEquationRgbOes = ((int)0X8009), + FuncSubtractOes = ((int)0X800a), + FuncReverseSubtractOes = ((int)0X800b), + UnsignedShort4444 = ((int)0X8033), + UnsignedShort5551 = ((int)0X8034), + PolygonOffsetFill = ((int)0X8037), + PolygonOffsetFactor = ((int)0X8038), + RescaleNormal = ((int)0X803a), + Rgb8Oes = ((int)0X8051), + Rgba4Oes = ((int)0X8056), + Rgb5A1Oes = ((int)0X8057), + Rgba8Oes = ((int)0X8058), + TextureBinding2D = ((int)0X8069), + VertexArray = ((int)0X8074), + NormalArray = ((int)0X8075), + ColorArray = ((int)0X8076), + TextureCoordArray = ((int)0X8078), + VertexArraySize = ((int)0X807a), + VertexArrayType = ((int)0X807b), + VertexArrayStride = ((int)0X807c), + NormalArrayType = ((int)0X807e), + NormalArrayStride = ((int)0X807f), + ColorArraySize = ((int)0X8081), + ColorArrayType = ((int)0X8082), + ColorArrayStride = ((int)0X8083), + TextureCoordArraySize = ((int)0X8088), + TextureCoordArrayType = ((int)0X8089), + TextureCoordArrayStride = ((int)0X808a), + VertexArrayPointer = ((int)0X808e), + NormalArrayPointer = ((int)0X808f), + ColorArrayPointer = ((int)0X8090), + TextureCoordArrayPointer = ((int)0X8092), + Multisample = ((int)0X809d), + SampleAlphaToCoverage = ((int)0X809e), + SampleAlphaToOne = ((int)0X809f), + SampleCoverage = ((int)0X80a0), + SampleBuffers = ((int)0X80a8), + Samples = ((int)0X80a9), + SampleCoverageValue = ((int)0X80aa), + SampleCoverageInvert = ((int)0X80ab), + BlendDstRgbOes = ((int)0X80c8), + BlendSrcRgbOes = ((int)0X80c9), + BlendDstAlphaOes = ((int)0X80ca), + BlendSrcAlphaOes = ((int)0X80cb), + Bgra = ((int)0X80e1), + PointSizeMin = ((int)0X8126), + PointSizeMax = ((int)0X8127), + PointFadeThresholdSize = ((int)0X8128), + PointDistanceAttenuation = ((int)0X8129), + ClampToEdge = ((int)0X812f), + GenerateMipmap = ((int)0X8191), + GenerateMipmapHint = ((int)0X8192), + DepthComponent16Oes = ((int)0X81a5), + DepthComponent24Oes = ((int)0X81a6), + DepthComponent32Oes = ((int)0X81a7), + UnsignedShort565 = ((int)0X8363), + UnsignedShort4444Rev = ((int)0X8365), + UnsignedShort1555Rev = ((int)0X8366), + MirroredRepeatOes = ((int)0X8370), + AliasedPointSizeRange = ((int)0X846d), + AliasedLineWidthRange = ((int)0X846e), + Texture0 = ((int)0X84c0), + Texture1 = ((int)0X84c1), + Texture2 = ((int)0X84c2), + Texture3 = ((int)0X84c3), + Texture4 = ((int)0X84c4), + Texture5 = ((int)0X84c5), + Texture6 = ((int)0X84c6), + Texture7 = ((int)0X84c7), + Texture8 = ((int)0X84c8), + Texture9 = ((int)0X84c9), + Texture10 = ((int)0X84ca), + Texture11 = ((int)0X84cb), + Texture12 = ((int)0X84cc), + Texture13 = ((int)0X84cd), + Texture14 = ((int)0X84ce), + Texture15 = ((int)0X84cf), + Texture16 = ((int)0X84d0), + Texture17 = ((int)0X84d1), + Texture18 = ((int)0X84d2), + Texture19 = ((int)0X84d3), + Texture20 = ((int)0X84d4), + Texture21 = ((int)0X84d5), + Texture22 = ((int)0X84d6), + Texture23 = ((int)0X84d7), + Texture24 = ((int)0X84d8), + Texture25 = ((int)0X84d9), + Texture26 = ((int)0X84da), + Texture27 = ((int)0X84db), + Texture28 = ((int)0X84dc), + Texture29 = ((int)0X84dd), + Texture30 = ((int)0X84de), + Texture31 = ((int)0X84df), + ActiveTexture = ((int)0X84e0), + ClientActiveTexture = ((int)0X84e1), + MaxTextureUnits = ((int)0X84e2), + Subtract = ((int)0X84e7), + MaxRenderbufferSizeOes = ((int)0X84e8), + AllCompletedNv = ((int)0X84f2), + FenceStatusNv = ((int)0X84f3), + FenceConditionNv = ((int)0X84f4), + DepthStencilOes = ((int)0X84f9), + UnsignedInt248Oes = ((int)0X84fa), + TextureMaxAnisotropyExt = ((int)0X84fe), + MaxTextureMaxAnisotropyExt = ((int)0X84ff), + IncrWrapOes = ((int)0X8507), + DecrWrapOes = ((int)0X8508), + NormalMapOes = ((int)0X8511), + ReflectionMapOes = ((int)0X8512), + TextureCubeMapOes = ((int)0X8513), + TextureBindingCubeMapOes = ((int)0X8514), + TextureCubeMapPositiveXOes = ((int)0X8515), + TextureCubeMapNegativeXOes = ((int)0X8516), + TextureCubeMapPositiveYOes = ((int)0X8517), + TextureCubeMapNegativeYOes = ((int)0X8518), + TextureCubeMapPositiveZOes = ((int)0X8519), + TextureCubeMapNegativeZOes = ((int)0X851a), + MaxCubeMapTextureSizeOes = ((int)0X851c), + Combine = ((int)0X8570), + CombineRgb = ((int)0X8571), + CombineAlpha = ((int)0X8572), + RgbScale = ((int)0X8573), + AddSigned = ((int)0X8574), + Interpolate = ((int)0X8575), + Constant = ((int)0X8576), + PrimaryColor = ((int)0X8577), + Previous = ((int)0X8578), + Src0Rgb = ((int)0X8580), + Src1Rgb = ((int)0X8581), + Src2Rgb = ((int)0X8582), + Src0Alpha = ((int)0X8588), + Src1Alpha = ((int)0X8589), + Src2Alpha = ((int)0X858a), + Operand0Rgb = ((int)0X8590), + Operand1Rgb = ((int)0X8591), + Operand2Rgb = ((int)0X8592), + Operand0Alpha = ((int)0X8598), + Operand1Alpha = ((int)0X8599), + Operand2Alpha = ((int)0X859a), + NumCompressedTextureFormats = ((int)0X86a2), + CompressedTextureFormats = ((int)0X86a3), + MaxVertexUnitsOes = ((int)0X86a4), + WeightArrayTypeOes = ((int)0X86a9), + WeightArrayStrideOes = ((int)0X86aa), + WeightArraySizeOes = ((int)0X86ab), + WeightArrayPointerOes = ((int)0X86ac), + WeightArrayOes = ((int)0X86ad), + Dot3Rgb = ((int)0X86ae), + Dot3Rgba = ((int)0X86af), + Dot3RgbaImg = ((int)0X86af), + BufferSize = ((int)0X8764), + BufferUsage = ((int)0X8765), + AtcRgbaInterpolatedAlphaAmd = ((int)0X87ee), + 3DcXAmd = ((int)0X87f9), + 3DcXyAmd = ((int)0X87fa), + BlendEquationAlphaOes = ((int)0X883d), + MatrixPaletteOes = ((int)0X8840), + MaxPaletteMatricesOes = ((int)0X8842), + CurrentPaletteMatrixOes = ((int)0X8843), + MatrixIndexArrayOes = ((int)0X8844), + MatrixIndexArraySizeOes = ((int)0X8846), + MatrixIndexArrayTypeOes = ((int)0X8847), + MatrixIndexArrayStrideOes = ((int)0X8848), + MatrixIndexArrayPointerOes = ((int)0X8849), + PointSpriteOes = ((int)0X8861), + CoordReplaceOes = ((int)0X8862), + ArrayBuffer = ((int)0X8892), + ElementArrayBuffer = ((int)0X8893), + ArrayBufferBinding = ((int)0X8894), + ElementArrayBufferBinding = ((int)0X8895), + VertexArrayBufferBinding = ((int)0X8896), + NormalArrayBufferBinding = ((int)0X8897), + ColorArrayBufferBinding = ((int)0X8898), + TextureCoordArrayBufferBinding = ((int)0X889a), + WeightArrayBufferBindingOes = ((int)0X889e), + WriteOnlyOes = ((int)0X88b9), + BufferAccessOes = ((int)0X88bb), + BufferMappedOes = ((int)0X88bc), + BufferMapPointerOes = ((int)0X88bd), + StaticDraw = ((int)0X88e4), + DynamicDraw = ((int)0X88e8), + Depth24Stencil8Oes = ((int)0X88f0), + PointSizeArrayTypeOes = ((int)0X898a), + PointSizeArrayStrideOes = ((int)0X898b), + PointSizeArrayPointerOes = ((int)0X898c), + ModelviewMatrixFloatAsIntBitsOes = ((int)0X898d), + ProjectionMatrixFloatAsIntBitsOes = ((int)0X898e), + TextureMatrixFloatAsIntBitsOes = ((int)0X898f), + Palette4Rgb8Oes = ((int)0X8b90), + Palette4Rgba8Oes = ((int)0X8b91), + Palette4R5G6B5Oes = ((int)0X8b92), + Palette4Rgba4Oes = ((int)0X8b93), + Palette4Rgb5A1Oes = ((int)0X8b94), + Palette8Rgb8Oes = ((int)0X8b95), + Palette8Rgba8Oes = ((int)0X8b96), + Palette8R5G6B5Oes = ((int)0X8b97), + Palette8Rgba4Oes = ((int)0X8b98), + Palette8Rgb5A1Oes = ((int)0X8b99), + ImplementationColorReadTypeOes = ((int)0X8b9a), + ImplementationColorReadFormatOes = ((int)0X8b9b), + PointSizeArrayOes = ((int)0X8b9c), + TextureCropRectOes = ((int)0X8b9d), + MatrixIndexArrayBufferBindingOes = ((int)0X8b9e), + PointSizeArrayBufferBindingOes = ((int)0X8b9f), + CompressedRgbPvrtc4Bppv1Img = ((int)0X8c00), + CompressedRgbPvrtc2Bppv1Img = ((int)0X8c01), + CompressedRgbaPvrtc4Bppv1Img = ((int)0X8c02), + CompressedRgbaPvrtc2Bppv1Img = ((int)0X8c03), + ModulateColorImg = ((int)0X8c04), + RecipAddSignedAlphaImg = ((int)0X8c05), + TextureAlphaModulateImg = ((int)0X8c06), + FactorAlphaModulateImg = ((int)0X8c07), + FragmentAlphaModulateImg = ((int)0X8c08), + AddBlendImg = ((int)0X8c09), + AtcRgbAmd = ((int)0X8c92), + AtcRgbaExplicitAlphaAmd = ((int)0X8c93), + FramebufferBindingOes = ((int)0X8ca6), + RenderbufferBindingOes = ((int)0X8ca7), + FramebufferAttachmentObjectTypeOes = ((int)0X8cd0), + FramebufferAttachmentObjectNameOes = ((int)0X8cd1), + FramebufferAttachmentTextureLevelOes = ((int)0X8cd2), + FramebufferAttachmentTextureCubeMapFaceOes = ((int)0X8cd3), + FramebufferCompleteOes = ((int)0X8cd5), + FramebufferIncompleteAttachmentOes = ((int)0X8cd6), + FramebufferIncompleteMissingAttachmentOes = ((int)0X8cd7), + FramebufferIncompleteDimensionsOes = ((int)0X8cd9), + FramebufferIncompleteFormatsOes = ((int)0X8cda), + FramebufferUnsupportedOes = ((int)0X8cdd), + ColorAttachment0Oes = ((int)0X8ce0), + DepthAttachmentOes = ((int)0X8d00), + StencilAttachmentOes = ((int)0X8d20), + FramebufferOes = ((int)0X8d40), + RenderbufferOes = ((int)0X8d41), + RenderbufferWidthOes = ((int)0X8d42), + RenderbufferHeightOes = ((int)0X8d43), + RenderbufferInternalFormatOes = ((int)0X8d44), + StencilIndex1Oes = ((int)0X8d46), + StencilIndex4Oes = ((int)0X8d47), + StencilIndex8Oes = ((int)0X8d48), + RenderbufferRedSizeOes = ((int)0X8d50), + RenderbufferGreenSizeOes = ((int)0X8d51), + RenderbufferBlueSizeOes = ((int)0X8d52), + RenderbufferAlphaSizeOes = ((int)0X8d53), + RenderbufferDepthSizeOes = ((int)0X8d54), + RenderbufferStencilSizeOes = ((int)0X8d55), + TextureGenStrOes = ((int)0X8d60), + Rgb565Oes = ((int)0X8d62), + Etc1Rgb8Oes = ((int)0X8d64), + PerfmonGlobalModeQcom = ((int)0X8fa0), + AmdCompressed3DcTexture = ((int)1), + AmdCompressedAtcTexture = ((int)1), + ExtTextureFilterAnisotropic = ((int)1), + ExtTextureFormatBgra8888 = ((int)1), + ImgReadFormat = ((int)1), + ImgTextureCompressionPvrtc = ((int)1), + ImgTextureEnvEnhancedFixedFunction = ((int)1), + ImgUserClipPlane = ((int)1), + NvFence = ((int)1), + OesBlendEquationSeparate = ((int)1), + OesBlendFuncSeparate = ((int)1), + OesBlendSubtract = ((int)1), + OesByteCoordinates = ((int)1), + OesCompressedEtc1Rgb8Texture = ((int)1), + OesCompressedPalettedTexture = ((int)1), + OesDepth24 = ((int)1), + OesDepth32 = ((int)1), + OesDrawTexture = ((int)1), + OesEglImage = ((int)1), + OesElementIndexUint = ((int)1), + OesExtendedMatrixPalette = ((int)1), + OesFboRenderMipmap = ((int)1), + OesFixedPoint = ((int)1), + OesFramebufferObject = ((int)1), + OesMapbuffer = ((int)1), + OesMatrixGet = ((int)1), + OesMatrixPalette = ((int)1), + OesPackedDepthStencil = ((int)1), + OesPointSizeArray = ((int)1), + OesPointSprite = ((int)1), + OesQueryMatrix = ((int)1), + OesReadFormat = ((int)1), + OesRgb8Rgba8 = ((int)1), + OesSinglePrecision = ((int)1), + OesStencil1 = ((int)1), + OesStencil4 = ((int)1), + OesStencil8 = ((int)1), + OesStencilWrap = ((int)1), + OesTextureCubeMap = ((int)1), + OesTextureEnvCrossbar = ((int)1), + OesTextureMirroredRepeat = ((int)1), + One = ((int)1), + QcomDriverControl = ((int)1), + QcomPerfmonGlobalMode = ((int)1), + True = ((int)1), + VersionEsCl10 = ((int)1), + VersionEsCl11 = ((int)1), + VersionEsCm10 = ((int)1), + VersionEsCm11 = ((int)1), + } + + public enum AlphaFunction + { + Never = ((int)0X0200), + Less = ((int)0X0201), + Equal = ((int)0X0202), + Lequal = ((int)0X0203), + Greater = ((int)0X0204), + Notequal = ((int)0X0205), + Gequal = ((int)0X0206), + Always = ((int)0X0207), + } + + public enum Amdcompressed3Dctexture + { + 3DcXAmd = ((int)0X87f9), + 3DcXyAmd = ((int)0X87fa), + AmdCompressed3DcTexture = ((int)1), + } + + public enum AmdcompressedAtctexture + { + AtcRgbaInterpolatedAlphaAmd = ((int)0X87ee), + AtcRgbAmd = ((int)0X8c92), + AtcRgbaExplicitAlphaAmd = ((int)0X8c93), + AmdCompressedAtcTexture = ((int)1), + } + + public enum BeginMode + { + Points = ((int)0X0000), + Lines = ((int)0X0001), + LineLoop = ((int)0X0002), + LineStrip = ((int)0X0003), + Triangles = ((int)0X0004), + TriangleStrip = ((int)0X0005), + TriangleFan = ((int)0X0006), + } + + public enum BlendingFactorDest + { + Zero = ((int)0), + SrcColor = ((int)0X0300), + OneMinusSrcColor = ((int)0X0301), + SrcAlpha = ((int)0X0302), + OneMinusSrcAlpha = ((int)0X0303), + DstAlpha = ((int)0X0304), + OneMinusDstAlpha = ((int)0X0305), + One = ((int)1), + } + + public enum BlendingFactorSrc + { + DstColor = ((int)0X0306), + OneMinusDstColor = ((int)0X0307), + SrcAlphaSaturate = ((int)0X0308), + } + + public enum Boolean + { + False = ((int)0), + True = ((int)1), + } + + public enum BufferObjects + { + BufferSize = ((int)0X8764), + BufferUsage = ((int)0X8765), + ArrayBuffer = ((int)0X8892), + ElementArrayBuffer = ((int)0X8893), + ArrayBufferBinding = ((int)0X8894), + ElementArrayBufferBinding = ((int)0X8895), + VertexArrayBufferBinding = ((int)0X8896), + NormalArrayBufferBinding = ((int)0X8897), + ColorArrayBufferBinding = ((int)0X8898), + TextureCoordArrayBufferBinding = ((int)0X889a), + StaticDraw = ((int)0X88e4), + DynamicDraw = ((int)0X88e8), + } + + [Flags] + public enum ClearBufferMask + { + DepthBufferBit = ((int)0X00000100), + StencilBufferBit = ((int)0X00000400), + ColorBufferBit = ((int)0X00004000), + } + + public enum ClipPlaneName + { + ClipPlane0 = ((int)0X3000), + ClipPlane1 = ((int)0X3001), + ClipPlane2 = ((int)0X3002), + ClipPlane3 = ((int)0X3003), + ClipPlane4 = ((int)0X3004), + ClipPlane5 = ((int)0X3005), + } + + public enum CullFaceMode + { + Front = ((int)0X0404), + Back = ((int)0X0405), + FrontAndBack = ((int)0X0408), + } + + public enum DataType + { + Byte = ((int)0X1400), + UnsignedByte = ((int)0X1401), + Short = ((int)0X1402), + UnsignedShort = ((int)0X1403), + Float = ((int)0X1406), + Fixed = ((int)0X140c), + } + + public enum EnableCap + { + PointSmooth = ((int)0X0b10), + LineSmooth = ((int)0X0b20), + CullFace = ((int)0X0b44), + Lighting = ((int)0X0b50), + ColorMaterial = ((int)0X0b57), + Fog = ((int)0X0b60), + DepthTest = ((int)0X0b71), + StencilTest = ((int)0X0b90), + Normalize = ((int)0X0ba1), + AlphaTest = ((int)0X0bc0), + Dither = ((int)0X0bd0), + Blend = ((int)0X0be2), + ColorLogicOp = ((int)0X0bf2), + ScissorTest = ((int)0X0c11), + Texture2D = ((int)0X0de1), + PolygonOffsetFill = ((int)0X8037), + RescaleNormal = ((int)0X803a), + VertexArray = ((int)0X8074), + NormalArray = ((int)0X8075), + ColorArray = ((int)0X8076), + TextureCoordArray = ((int)0X8078), + Multisample = ((int)0X809d), + SampleAlphaToCoverage = ((int)0X809e), + SampleAlphaToOne = ((int)0X809f), + SampleCoverage = ((int)0X80a0), + } + + public enum ErrorCode + { + NoError = ((int)0), + InvalidEnum = ((int)0X0500), + InvalidValue = ((int)0X0501), + InvalidOperation = ((int)0X0502), + StackOverflow = ((int)0X0503), + StackUnderflow = ((int)0X0504), + OutOfMemory = ((int)0X0505), + } + + public enum ExttextureFilterAnisotropic + { + TextureMaxAnisotropyExt = ((int)0X84fe), + MaxTextureMaxAnisotropyExt = ((int)0X84ff), + ExtTextureFilterAnisotropic = ((int)1), + } + + public enum ExttextureFormatBgra8888 + { + Bgra = ((int)0X80e1), + ExtTextureFormatBgra8888 = ((int)1), + } + + public enum FogMode + { + Exp = ((int)0X0800), + Exp2 = ((int)0X0801), + } + + public enum FogParameter + { + FogDensity = ((int)0X0b62), + FogStart = ((int)0X0b63), + FogEnd = ((int)0X0b64), + FogMode = ((int)0X0b65), + FogColor = ((int)0X0b66), + } + + public enum FrontFaceDirection + { + Cw = ((int)0X0900), + Ccw = ((int)0X0901), + } + + public enum GetPName + { + CurrentColor = ((int)0X0b00), + CurrentNormal = ((int)0X0b02), + CurrentTextureCoords = ((int)0X0b03), + PointSize = ((int)0X0b11), + SmoothPointSizeRange = ((int)0X0b12), + LineWidth = ((int)0X0b21), + SmoothLineWidthRange = ((int)0X0b22), + CullFaceMode = ((int)0X0b45), + FrontFace = ((int)0X0b46), + ShadeModel = ((int)0X0b54), + DepthRange = ((int)0X0b70), + DepthWritemask = ((int)0X0b72), + DepthClearValue = ((int)0X0b73), + DepthFunc = ((int)0X0b74), + StencilClearValue = ((int)0X0b91), + StencilFunc = ((int)0X0b92), + StencilValueMask = ((int)0X0b93), + StencilFail = ((int)0X0b94), + StencilPassDepthFail = ((int)0X0b95), + StencilPassDepthPass = ((int)0X0b96), + StencilRef = ((int)0X0b97), + StencilWritemask = ((int)0X0b98), + MatrixMode = ((int)0X0ba0), + Viewport = ((int)0X0ba2), + ModelviewStackDepth = ((int)0X0ba3), + ProjectionStackDepth = ((int)0X0ba4), + TextureStackDepth = ((int)0X0ba5), + ModelviewMatrix = ((int)0X0ba6), + ProjectionMatrix = ((int)0X0ba7), + TextureMatrix = ((int)0X0ba8), + AlphaTestFunc = ((int)0X0bc1), + AlphaTestRef = ((int)0X0bc2), + BlendDst = ((int)0X0be0), + BlendSrc = ((int)0X0be1), + LogicOpMode = ((int)0X0bf0), + ScissorBox = ((int)0X0c10), + ScissorTest = ((int)0X0c11), + ColorClearValue = ((int)0X0c22), + ColorWritemask = ((int)0X0c23), + UnpackAlignment = ((int)0X0cf5), + PackAlignment = ((int)0X0d05), + MaxLights = ((int)0X0d31), + MaxClipPlanes = ((int)0X0d32), + MaxTextureSize = ((int)0X0d33), + MaxModelviewStackDepth = ((int)0X0d36), + MaxProjectionStackDepth = ((int)0X0d38), + MaxTextureStackDepth = ((int)0X0d39), + MaxViewportDims = ((int)0X0d3a), + SubpixelBits = ((int)0X0d50), + RedBits = ((int)0X0d52), + GreenBits = ((int)0X0d53), + BlueBits = ((int)0X0d54), + AlphaBits = ((int)0X0d55), + DepthBits = ((int)0X0d56), + StencilBits = ((int)0X0d57), + PolygonOffsetUnits = ((int)0X2a00), + PolygonOffsetFill = ((int)0X8037), + PolygonOffsetFactor = ((int)0X8038), + TextureBinding2D = ((int)0X8069), + VertexArraySize = ((int)0X807a), + VertexArrayType = ((int)0X807b), + VertexArrayStride = ((int)0X807c), + NormalArrayType = ((int)0X807e), + NormalArrayStride = ((int)0X807f), + ColorArraySize = ((int)0X8081), + ColorArrayType = ((int)0X8082), + ColorArrayStride = ((int)0X8083), + TextureCoordArraySize = ((int)0X8088), + TextureCoordArrayType = ((int)0X8089), + TextureCoordArrayStride = ((int)0X808a), + VertexArrayPointer = ((int)0X808e), + NormalArrayPointer = ((int)0X808f), + ColorArrayPointer = ((int)0X8090), + TextureCoordArrayPointer = ((int)0X8092), + SampleBuffers = ((int)0X80a8), + Samples = ((int)0X80a9), + SampleCoverageValue = ((int)0X80aa), + SampleCoverageInvert = ((int)0X80ab), + PointSizeMin = ((int)0X8126), + PointSizeMax = ((int)0X8127), + PointFadeThresholdSize = ((int)0X8128), + PointDistanceAttenuation = ((int)0X8129), + AliasedPointSizeRange = ((int)0X846d), + AliasedLineWidthRange = ((int)0X846e), + MaxTextureUnits = ((int)0X84e2), + } + + public enum GetTextureParameter + { + NumCompressedTextureFormats = ((int)0X86a2), + CompressedTextureFormats = ((int)0X86a3), + } + + public enum HintMode + { + DontCare = ((int)0X1100), + Fastest = ((int)0X1101), + Nicest = ((int)0X1102), + } + + public enum HintTarget + { + PerspectiveCorrectionHint = ((int)0X0c50), + PointSmoothHint = ((int)0X0c51), + LineSmoothHint = ((int)0X0c52), + FogHint = ((int)0X0c54), + GenerateMipmapHint = ((int)0X8192), + } + + public enum ImgreadFormat + { + Bgra = ((int)0X80e1), + UnsignedShort4444Rev = ((int)0X8365), + UnsignedShort1555Rev = ((int)0X8366), + ImgReadFormat = ((int)1), + } + + public enum ImgtextureCompressionPvrtc + { + CompressedRgbPvrtc4Bppv1Img = ((int)0X8c00), + CompressedRgbPvrtc2Bppv1Img = ((int)0X8c01), + CompressedRgbaPvrtc4Bppv1Img = ((int)0X8c02), + CompressedRgbaPvrtc2Bppv1Img = ((int)0X8c03), + ImgTextureCompressionPvrtc = ((int)1), + } + + public enum ImgtextureEnvEnhancedFixedFunction + { + Dot3RgbaImg = ((int)0X86af), + ModulateColorImg = ((int)0X8c04), + RecipAddSignedAlphaImg = ((int)0X8c05), + TextureAlphaModulateImg = ((int)0X8c06), + FactorAlphaModulateImg = ((int)0X8c07), + FragmentAlphaModulateImg = ((int)0X8c08), + AddBlendImg = ((int)0X8c09), + ImgTextureEnvEnhancedFixedFunction = ((int)1), + } + + public enum ImguserClipPlane + { + MaxClipPlanesImg = ((int)0X0d32), + ClipPlane0Img = ((int)0X3000), + ClipPlane1Img = ((int)0X3001), + ClipPlane2Img = ((int)0X3002), + ClipPlane3Img = ((int)0X3003), + ClipPlane4Img = ((int)0X3004), + ClipPlane5Img = ((int)0X3005), + ImgUserClipPlane = ((int)1), + } + + public enum LightModelParameter + { + LightModelTwoSide = ((int)0X0b52), + LightModelAmbient = ((int)0X0b53), + } + + public enum LightName + { + Light0 = ((int)0X4000), + Light1 = ((int)0X4001), + Light2 = ((int)0X4002), + Light3 = ((int)0X4003), + Light4 = ((int)0X4004), + Light5 = ((int)0X4005), + Light6 = ((int)0X4006), + Light7 = ((int)0X4007), + } + + public enum LightParameter + { + Ambient = ((int)0X1200), + Diffuse = ((int)0X1201), + Specular = ((int)0X1202), + Position = ((int)0X1203), + SpotDirection = ((int)0X1204), + SpotExponent = ((int)0X1205), + SpotCutoff = ((int)0X1206), + ConstantAttenuation = ((int)0X1207), + LinearAttenuation = ((int)0X1208), + QuadraticAttenuation = ((int)0X1209), + } + + public enum LogicOp + { + Clear = ((int)0X1500), + And = ((int)0X1501), + AndReverse = ((int)0X1502), + Copy = ((int)0X1503), + AndInverted = ((int)0X1504), + Noop = ((int)0X1505), + Xor = ((int)0X1506), + Or = ((int)0X1507), + Nor = ((int)0X1508), + Equiv = ((int)0X1509), + Invert = ((int)0X150a), + OrReverse = ((int)0X150b), + CopyInverted = ((int)0X150c), + OrInverted = ((int)0X150d), + Nand = ((int)0X150e), + Set = ((int)0X150f), + } + + public enum MaterialParameter + { + Emission = ((int)0X1600), + Shininess = ((int)0X1601), + AmbientAndDiffuse = ((int)0X1602), + } + + public enum MatrixMode + { + Modelview = ((int)0X1700), + Projection = ((int)0X1701), + Texture = ((int)0X1702), + } + + public enum Nvfence + { + AllCompletedNv = ((int)0X84f2), + FenceStatusNv = ((int)0X84f3), + FenceConditionNv = ((int)0X84f4), + NvFence = ((int)1), + } + + public enum OesblendEquationSeparate + { + BlendEquationRgbOes = ((int)0X8009), + BlendEquationAlphaOes = ((int)0X883d), + OesBlendEquationSeparate = ((int)1), + } + + public enum OesblendFuncSeparate + { + BlendDstRgbOes = ((int)0X80c8), + BlendSrcRgbOes = ((int)0X80c9), + BlendDstAlphaOes = ((int)0X80ca), + BlendSrcAlphaOes = ((int)0X80cb), + OesBlendFuncSeparate = ((int)1), + } + + public enum OesblendSubtract + { + FuncAddOes = ((int)0X8006), + BlendEquationOes = ((int)0X8009), + FuncSubtractOes = ((int)0X800a), + FuncReverseSubtractOes = ((int)0X800b), + OesBlendSubtract = ((int)1), + } + + public enum OesbyteCoordinates + { + OesByteCoordinates = ((int)1), + } + + public enum OescompressedEtc1Rgb8Texture + { + Etc1Rgb8Oes = ((int)0X8d64), + OesCompressedEtc1Rgb8Texture = ((int)1), + } + + public enum OescompressedPalettedTexture + { + Palette4Rgb8Oes = ((int)0X8b90), + Palette4Rgba8Oes = ((int)0X8b91), + Palette4R5G6B5Oes = ((int)0X8b92), + Palette4Rgba4Oes = ((int)0X8b93), + Palette4Rgb5A1Oes = ((int)0X8b94), + Palette8Rgb8Oes = ((int)0X8b95), + Palette8Rgba8Oes = ((int)0X8b96), + Palette8R5G6B5Oes = ((int)0X8b97), + Palette8Rgba4Oes = ((int)0X8b98), + Palette8Rgb5A1Oes = ((int)0X8b99), + OesCompressedPalettedTexture = ((int)1), + } + + public enum Oesdepth24 + { + DepthComponent24Oes = ((int)0X81a6), + OesDepth24 = ((int)1), + } + + public enum Oesdepth32 + { + DepthComponent32Oes = ((int)0X81a7), + OesDepth32 = ((int)1), + } + + public enum OesdrawTexture + { + TextureCropRectOes = ((int)0X8b9d), + OesDrawTexture = ((int)1), + } + + public enum Oeseglimage + { + OesEglImage = ((int)1), + } + + public enum OeselementIndexUint + { + OesElementIndexUint = ((int)1), + } + + public enum OesextendedMatrixPalette + { + OesExtendedMatrixPalette = ((int)1), + } + + public enum OesfboRenderMipmap + { + OesFboRenderMipmap = ((int)1), + } + + public enum OesfixedPoint + { + FixedOes = ((int)0X140c), + OesFixedPoint = ((int)1), + } + + public enum OesframebufferObject + { + NoneOes = ((int)0), + InvalidFramebufferOperationOes = ((int)0X0506), + Rgba4Oes = ((int)0X8056), + Rgb5A1Oes = ((int)0X8057), + DepthComponent16Oes = ((int)0X81a5), + MaxRenderbufferSizeOes = ((int)0X84e8), + FramebufferBindingOes = ((int)0X8ca6), + RenderbufferBindingOes = ((int)0X8ca7), + FramebufferAttachmentObjectTypeOes = ((int)0X8cd0), + FramebufferAttachmentObjectNameOes = ((int)0X8cd1), + FramebufferAttachmentTextureLevelOes = ((int)0X8cd2), + FramebufferAttachmentTextureCubeMapFaceOes = ((int)0X8cd3), + FramebufferCompleteOes = ((int)0X8cd5), + FramebufferIncompleteAttachmentOes = ((int)0X8cd6), + FramebufferIncompleteMissingAttachmentOes = ((int)0X8cd7), + FramebufferIncompleteDimensionsOes = ((int)0X8cd9), + FramebufferIncompleteFormatsOes = ((int)0X8cda), + FramebufferUnsupportedOes = ((int)0X8cdd), + ColorAttachment0Oes = ((int)0X8ce0), + DepthAttachmentOes = ((int)0X8d00), + StencilAttachmentOes = ((int)0X8d20), + FramebufferOes = ((int)0X8d40), + RenderbufferOes = ((int)0X8d41), + RenderbufferWidthOes = ((int)0X8d42), + RenderbufferHeightOes = ((int)0X8d43), + RenderbufferInternalFormatOes = ((int)0X8d44), + RenderbufferRedSizeOes = ((int)0X8d50), + RenderbufferGreenSizeOes = ((int)0X8d51), + RenderbufferBlueSizeOes = ((int)0X8d52), + RenderbufferAlphaSizeOes = ((int)0X8d53), + RenderbufferDepthSizeOes = ((int)0X8d54), + RenderbufferStencilSizeOes = ((int)0X8d55), + Rgb565Oes = ((int)0X8d62), + OesFramebufferObject = ((int)1), + } + + public enum Oesmapbuffer + { + WriteOnlyOes = ((int)0X88b9), + BufferAccessOes = ((int)0X88bb), + BufferMappedOes = ((int)0X88bc), + BufferMapPointerOes = ((int)0X88bd), + OesMapbuffer = ((int)1), + } + + public enum OesmatrixGet + { + ModelviewMatrixFloatAsIntBitsOes = ((int)0X898d), + ProjectionMatrixFloatAsIntBitsOes = ((int)0X898e), + TextureMatrixFloatAsIntBitsOes = ((int)0X898f), + OesMatrixGet = ((int)1), + } + + public enum OesmatrixPalette + { + MaxVertexUnitsOes = ((int)0X86a4), + WeightArrayTypeOes = ((int)0X86a9), + WeightArrayStrideOes = ((int)0X86aa), + WeightArraySizeOes = ((int)0X86ab), + WeightArrayPointerOes = ((int)0X86ac), + WeightArrayOes = ((int)0X86ad), + MatrixPaletteOes = ((int)0X8840), + MaxPaletteMatricesOes = ((int)0X8842), + CurrentPaletteMatrixOes = ((int)0X8843), + MatrixIndexArrayOes = ((int)0X8844), + MatrixIndexArraySizeOes = ((int)0X8846), + MatrixIndexArrayTypeOes = ((int)0X8847), + MatrixIndexArrayStrideOes = ((int)0X8848), + MatrixIndexArrayPointerOes = ((int)0X8849), + WeightArrayBufferBindingOes = ((int)0X889e), + MatrixIndexArrayBufferBindingOes = ((int)0X8b9e), + OesMatrixPalette = ((int)1), + } + + public enum OespackedDepthStencil + { + DepthStencilOes = ((int)0X84f9), + UnsignedInt248Oes = ((int)0X84fa), + Depth24Stencil8Oes = ((int)0X88f0), + OesPackedDepthStencil = ((int)1), + } + + public enum OespointSizeArray + { + PointSizeArrayTypeOes = ((int)0X898a), + PointSizeArrayStrideOes = ((int)0X898b), + PointSizeArrayPointerOes = ((int)0X898c), + PointSizeArrayOes = ((int)0X8b9c), + PointSizeArrayBufferBindingOes = ((int)0X8b9f), + OesPointSizeArray = ((int)1), + } + + public enum OespointSprite + { + PointSpriteOes = ((int)0X8861), + CoordReplaceOes = ((int)0X8862), + OesPointSprite = ((int)1), + } + + public enum OesqueryMatrix + { + OesQueryMatrix = ((int)1), + } + + public enum OesreadFormat + { + ImplementationColorReadTypeOes = ((int)0X8b9a), + ImplementationColorReadFormatOes = ((int)0X8b9b), + OesReadFormat = ((int)1), + } + + public enum Oesrgb8Rgba8 + { + Rgb8Oes = ((int)0X8051), + Rgba8Oes = ((int)0X8058), + OesRgb8Rgba8 = ((int)1), + } + + public enum OessinglePrecision + { + OesSinglePrecision = ((int)1), + } + + public enum Oesstencil1 + { + StencilIndex1Oes = ((int)0X8d46), + OesStencil1 = ((int)1), + } + + public enum Oesstencil4 + { + StencilIndex4Oes = ((int)0X8d47), + OesStencil4 = ((int)1), + } + + public enum Oesstencil8 + { + StencilIndex8Oes = ((int)0X8d48), + OesStencil8 = ((int)1), + } + + public enum OesstencilWrap + { + IncrWrapOes = ((int)0X8507), + DecrWrapOes = ((int)0X8508), + OesStencilWrap = ((int)1), + } + + public enum OestextureCubeMap + { + TextureGenModeOes = ((int)0X2500), + NormalMapOes = ((int)0X8511), + ReflectionMapOes = ((int)0X8512), + TextureCubeMapOes = ((int)0X8513), + TextureBindingCubeMapOes = ((int)0X8514), + TextureCubeMapPositiveXOes = ((int)0X8515), + TextureCubeMapNegativeXOes = ((int)0X8516), + TextureCubeMapPositiveYOes = ((int)0X8517), + TextureCubeMapNegativeYOes = ((int)0X8518), + TextureCubeMapPositiveZOes = ((int)0X8519), + TextureCubeMapNegativeZOes = ((int)0X851a), + MaxCubeMapTextureSizeOes = ((int)0X851c), + TextureGenStrOes = ((int)0X8d60), + OesTextureCubeMap = ((int)1), + } + + public enum OestextureEnvCrossbar + { + OesTextureEnvCrossbar = ((int)1), + } + + public enum OestextureMirroredRepeat + { + MirroredRepeatOes = ((int)0X8370), + OesTextureMirroredRepeat = ((int)1), + } + + public enum OpenGlescoreVersions + { + VersionEsCl10 = ((int)1), + VersionEsCl11 = ((int)1), + VersionEsCm10 = ((int)1), + VersionEsCm11 = ((int)1), + } + + public enum PixelFormat + { + Alpha = ((int)0X1906), + Rgb = ((int)0X1907), + Rgba = ((int)0X1908), + Luminance = ((int)0X1909), + LuminanceAlpha = ((int)0X190a), + } + + public enum PixelStoreParameter + { + UnpackAlignment = ((int)0X0cf5), + PackAlignment = ((int)0X0d05), + } + + public enum PixelType + { + UnsignedShort4444 = ((int)0X8033), + UnsignedShort5551 = ((int)0X8034), + UnsignedShort565 = ((int)0X8363), + } + + public enum QcomdriverControl + { + QcomDriverControl = ((int)1), + } + + public enum QcomperfmonGlobalMode + { + PerfmonGlobalModeQcom = ((int)0X8fa0), + QcomPerfmonGlobalMode = ((int)1), + } + + public enum ShadingModel + { + Flat = ((int)0X1d00), + Smooth = ((int)0X1d01), + } + + public enum StencilOp + { + Keep = ((int)0X1e00), + Replace = ((int)0X1e01), + Incr = ((int)0X1e02), + Decr = ((int)0X1e03), + } + + public enum StringName + { + Vendor = ((int)0X1f00), + Renderer = ((int)0X1f01), + Version = ((int)0X1f02), + Extensions = ((int)0X1f03), + } + + public enum TextureCombineDot3 + { + AlphaScale = ((int)0X0d1c), + Subtract = ((int)0X84e7), + Combine = ((int)0X8570), + CombineRgb = ((int)0X8571), + CombineAlpha = ((int)0X8572), + RgbScale = ((int)0X8573), + AddSigned = ((int)0X8574), + Interpolate = ((int)0X8575), + Constant = ((int)0X8576), + PrimaryColor = ((int)0X8577), + Previous = ((int)0X8578), + Src0Rgb = ((int)0X8580), + Src1Rgb = ((int)0X8581), + Src2Rgb = ((int)0X8582), + Src0Alpha = ((int)0X8588), + Src1Alpha = ((int)0X8589), + Src2Alpha = ((int)0X858a), + Operand0Rgb = ((int)0X8590), + Operand1Rgb = ((int)0X8591), + Operand2Rgb = ((int)0X8592), + Operand0Alpha = ((int)0X8598), + Operand1Alpha = ((int)0X8599), + Operand2Alpha = ((int)0X859a), + Dot3Rgb = ((int)0X86ae), + Dot3Rgba = ((int)0X86af), + } + + public enum TextureEnvMode + { + Add = ((int)0X0104), + Modulate = ((int)0X2100), + Decal = ((int)0X2101), + } + + public enum TextureEnvParameter + { + TextureEnvMode = ((int)0X2200), + TextureEnvColor = ((int)0X2201), + } + + public enum TextureEnvTarget + { + TextureEnv = ((int)0X2300), + } + + public enum TextureMagFilter + { + Nearest = ((int)0X2600), + Linear = ((int)0X2601), + } + + public enum TextureMinFilter + { + NearestMipmapNearest = ((int)0X2700), + LinearMipmapNearest = ((int)0X2701), + NearestMipmapLinear = ((int)0X2702), + LinearMipmapLinear = ((int)0X2703), + } + + public enum TextureParameterName + { + TextureMagFilter = ((int)0X2800), + TextureMinFilter = ((int)0X2801), + TextureWrapS = ((int)0X2802), + TextureWrapT = ((int)0X2803), + GenerateMipmap = ((int)0X8191), + } + + public enum TextureUnit + { + Texture0 = ((int)0X84c0), + Texture1 = ((int)0X84c1), + Texture2 = ((int)0X84c2), + Texture3 = ((int)0X84c3), + Texture4 = ((int)0X84c4), + Texture5 = ((int)0X84c5), + Texture6 = ((int)0X84c6), + Texture7 = ((int)0X84c7), + Texture8 = ((int)0X84c8), + Texture9 = ((int)0X84c9), + Texture10 = ((int)0X84ca), + Texture11 = ((int)0X84cb), + Texture12 = ((int)0X84cc), + Texture13 = ((int)0X84cd), + Texture14 = ((int)0X84ce), + Texture15 = ((int)0X84cf), + Texture16 = ((int)0X84d0), + Texture17 = ((int)0X84d1), + Texture18 = ((int)0X84d2), + Texture19 = ((int)0X84d3), + Texture20 = ((int)0X84d4), + Texture21 = ((int)0X84d5), + Texture22 = ((int)0X84d6), + Texture23 = ((int)0X84d7), + Texture24 = ((int)0X84d8), + Texture25 = ((int)0X84d9), + Texture26 = ((int)0X84da), + Texture27 = ((int)0X84db), + Texture28 = ((int)0X84dc), + Texture29 = ((int)0X84dd), + Texture30 = ((int)0X84de), + Texture31 = ((int)0X84df), + ActiveTexture = ((int)0X84e0), + ClientActiveTexture = ((int)0X84e1), + } + + public enum TextureWrapMode + { + Repeat = ((int)0X2901), + ClampToEdge = ((int)0X812f), + } + +} diff --git a/Source/OpenTK/Graphics/ES11/ErrorHelper.cs b/Source/OpenTK/Graphics/ES11/ErrorHelper.cs index 26446a7a..dc7cfa4f 100644 --- a/Source/OpenTK/Graphics/ES11/ErrorHelper.cs +++ b/Source/OpenTK/Graphics/ES11/ErrorHelper.cs @@ -80,7 +80,7 @@ namespace OpenTK.Graphics.ES11 { if (Context.ErrorChecking) { - while ((ErrorCode)ES.GetError() != ErrorCode.NoError) + while ((ErrorCode)GL.GetError() != ErrorCode.NoError) { } } } @@ -96,7 +96,7 @@ namespace OpenTK.Graphics.ES11 ErrorCode error; do { - error = (ErrorCode)ES.GetError(); + error = (ErrorCode)GL.GetError(); error_list.Add(error); } while (error != ErrorCode.NoError); diff --git a/Source/OpenTK/Graphics/ES11/Helper.cs b/Source/OpenTK/Graphics/ES11/Helper.cs index bc1c252d..1ade9ba1 100644 --- a/Source/OpenTK/Graphics/ES11/Helper.cs +++ b/Source/OpenTK/Graphics/ES11/Helper.cs @@ -1,14 +1,126 @@ using System; using System.Collections.Generic; using System.Text; +using System.Reflection; +using System.Runtime.InteropServices; namespace OpenTK.Graphics.ES11 { /// /// Provides access to OpenGL ES 1.1 methods. /// - public static partial class ES + public partial class GL { + #region Fields + const string Library = "libGLES.dll"; + + readonly static Type delegatesClass = typeof(GL).GetNestedType("Delegates", BindingFlags.Static | BindingFlags.NonPublic); + readonly static Type importsClass = typeof(GL).GetNestedType("Core", BindingFlags.Static | BindingFlags.NonPublic); + + readonly static SortedList FunctionMap = new SortedList(); + + #endregion + + #region Constructors + + static GL() + { + MethodInfo[] methods = importsClass.GetMethods(BindingFlags.Static | BindingFlags.NonPublic); + FunctionMap = new SortedList(methods.Length); + foreach (MethodInfo m in methods) + { + FunctionMap.Add(m.Name, m); + } + } + + internal GL() + { + //if (GraphicsContext.CurrentContext == null) + // throw new GraphicsContextMissingException(); + + //FieldInfo[] delegates = this.GetType() + // .GetNestedType("Delegates", BindingFlags.Static | BindingFlags.NonPublic) + // .GetFields(BindingFlags.Static | BindingFlags.NonPublic); + + //if (delegates == null) + // throw new Exception("Internal OpenTK error: ES11 bindings not generated correctly. Please report to http://www.opentk.com/issues"); + + //for (int i = 0; i < delegates.Length; i++) + //{ + + //} + } + + #endregion + + #region Private Members + + #region LoadAll + + internal static void LoadAll() + { + if (GraphicsContext.CurrentContext == null) + throw new GraphicsContextMissingException(); + + OpenTK.Platform.Utilities.LoadExtensions(typeof(GL)); + } + + #endregion + + #region Load + + static bool Load(string function) + { + FieldInfo f = delegatesClass.GetField(function, BindingFlags.Static | BindingFlags.NonPublic); + if (f == null) + return false; + + Delegate old = f.GetValue(null) as Delegate; + Delegate @new = LoadDelegate(f.Name, f.FieldType); + if (old.Target != @new.Target) + { + f.SetValue(null, @new); + } + return @new != null; + } + + #endregion + + #region LoadDelegate + + static Delegate LoadDelegate(string name, Type signature) + { + MethodInfo m; + return + GetExtensionDelegate(name, signature) ?? + (FunctionMap.TryGetValue((name.Substring(2)), out m) ? + Delegate.CreateDelegate(signature, m) : null); + } + + #endregion + + #region GetExtensionDelegate + + // Creates a System.Delegate that can be used to call a dynamically exported OpenGL function. + internal static Delegate GetExtensionDelegate(string name, Type signature) + { + IntPtr address = (GraphicsContext.CurrentContext as IGraphicsContextInternal).GetAddress(name); + + if (address == IntPtr.Zero || + address == new IntPtr(1) || // Workaround for buggy nvidia drivers which return + address == new IntPtr(2)) // 1 or 2 instead of IntPtr.Zero for some extensions. + { + return null; + } + else + { + return Marshal.GetDelegateForFunctionPointer(address, signature); + } + } + + #endregion + + #endregion } } diff --git a/Source/OpenTK/Graphics/ES20/Core.cs b/Source/OpenTK/Graphics/ES20/Core.cs index 925a7fc1..8ca33ea8 100644 --- a/Source/OpenTK/Graphics/ES20/Core.cs +++ b/Source/OpenTK/Graphics/ES20/Core.cs @@ -1,469 +1,574 @@ -#region License -// -// The Open Toolkit Library License -// -// Copyright (c) 2006 - 2009 the Open Toolkit library. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -// the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -// OTHER DEALINGS IN THE SOFTWARE. -// -#endregion - -namespace OpenTK.Graphics.ES20 -{ - using System; - using System.Runtime.InteropServices; - #pragma warning disable 3019 - #pragma warning disable 1591 - - partial class ES - { - - internal static partial class Core - { - - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glActiveTexture", ExactSpelling = true)] - internal extern static void ActiveTexture([In, Out] OpenTK.Graphics.ES20.All texture); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glAttachShader", ExactSpelling = true)] - internal extern static void AttachShader([In, Out] UInt32 program, [In, Out] UInt32 shader); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glBindAttribLocation", ExactSpelling = true)] - internal extern static void BindAttribLocation([In, Out] UInt32 program, [In, Out] UInt32 index, [In, Out] String name); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glBindBuffer", ExactSpelling = true)] - internal extern static void BindBuffer([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] UInt32 buffer); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glBindFramebuffer", ExactSpelling = true)] - internal extern static void BindFramebuffer([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] UInt32 framebuffer); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glBindRenderbuffer", ExactSpelling = true)] - internal extern static void BindRenderbuffer([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] UInt32 renderbuffer); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glBindTexture", ExactSpelling = true)] - internal extern static void BindTexture([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] UInt32 texture); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glBlendColor", ExactSpelling = true)] - internal extern static void BlendColor([In, Out] Single red, [In, Out] Single green, [In, Out] Single blue, [In, Out] Single alpha); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glBlendEquation", ExactSpelling = true)] - internal extern static void BlendEquation([In, Out] OpenTK.Graphics.ES20.All mode); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glBlendEquationSeparate", ExactSpelling = true)] - internal extern static void BlendEquationSeparate([In, Out] OpenTK.Graphics.ES20.All modeRGB, [In, Out] OpenTK.Graphics.ES20.All modeAlpha); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glBlendFunc", ExactSpelling = true)] - internal extern static void BlendFunc([In, Out] OpenTK.Graphics.ES20.All sfactor, [In, Out] OpenTK.Graphics.ES20.All dfactor); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glBlendFuncSeparate", ExactSpelling = true)] - internal extern static void BlendFuncSeparate([In, Out] OpenTK.Graphics.ES20.All srcRGB, [In, Out] OpenTK.Graphics.ES20.All dstRGB, [In, Out] OpenTK.Graphics.ES20.All srcAlpha, [In, Out] OpenTK.Graphics.ES20.All dstAlpha); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glBufferData", ExactSpelling = true)] - internal extern static void BufferData([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] IntPtr size, [In, Out] IntPtr data, [In, Out] OpenTK.Graphics.ES20.All usage); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glBufferSubData", ExactSpelling = true)] - internal extern static void BufferSubData([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] IntPtr offset, [In, Out] IntPtr size, [In, Out] IntPtr data); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glCheckFramebufferStatus", ExactSpelling = true)] - internal extern static OpenTK.Graphics.ES20.All CheckFramebufferStatus([In, Out] OpenTK.Graphics.ES20.All target); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glClear", ExactSpelling = true)] - internal extern static void Clear([In, Out] UInt32 mask); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glClearColor", ExactSpelling = true)] - internal extern static void ClearColor([In, Out] Single red, [In, Out] Single green, [In, Out] Single blue, [In, Out] Single alpha); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glClearDepthf", ExactSpelling = true)] - internal extern static void ClearDepthf([In, Out] Single depth); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glClearStencil", ExactSpelling = true)] - internal extern static void ClearStencil([In, Out] Int32 s); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glColorMask", ExactSpelling = true)] - internal extern static void ColorMask([In, Out] bool red, [In, Out] bool green, [In, Out] bool blue, [In, Out] bool alpha); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glCompileShader", ExactSpelling = true)] - internal extern static void CompileShader([In, Out] UInt32 shader); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glCompressedTexImage2D", ExactSpelling = true)] - internal extern static void CompressedTexImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES20.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] Int32 imageSize, [In, Out] IntPtr data); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glCompressedTexSubImage2D", ExactSpelling = true)] - internal extern static void CompressedTexSubImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] Int32 imageSize, [In, Out] IntPtr data); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glCopyTexImage2D", ExactSpelling = true)] - internal extern static void CopyTexImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES20.All internalformat, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glCopyTexSubImage2D", ExactSpelling = true)] - internal extern static void CopyTexSubImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glCreateProgram", ExactSpelling = true)] - internal extern static Int32 CreateProgram(); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glCreateShader", ExactSpelling = true)] - internal extern static Int32 CreateShader([In, Out] OpenTK.Graphics.ES20.All type); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glCullFace", ExactSpelling = true)] - internal extern static void CullFace([In, Out] OpenTK.Graphics.ES20.All mode); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDeleteBuffers", ExactSpelling = true)] - internal extern static unsafe void DeleteBuffers([In, Out] Int32 n, [In, Out] UInt32* buffers); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDeleteFramebuffers", ExactSpelling = true)] - internal extern static unsafe void DeleteFramebuffers([In, Out] Int32 n, [In, Out] UInt32* framebuffers); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDeleteProgram", ExactSpelling = true)] - internal extern static void DeleteProgram([In, Out] UInt32 program); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDeleteRenderbuffers", ExactSpelling = true)] - internal extern static unsafe void DeleteRenderbuffers([In, Out] Int32 n, [In, Out] UInt32* renderbuffers); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDeleteShader", ExactSpelling = true)] - internal extern static void DeleteShader([In, Out] UInt32 shader); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDeleteTextures", ExactSpelling = true)] - internal extern static unsafe void DeleteTextures([In, Out] Int32 n, [In, Out] UInt32* textures); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDepthFunc", ExactSpelling = true)] - internal extern static void DepthFunc([In, Out] OpenTK.Graphics.ES20.All func); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDepthMask", ExactSpelling = true)] - internal extern static void DepthMask([In, Out] bool flag); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDepthRangef", ExactSpelling = true)] - internal extern static void DepthRangef([In, Out] Single zNear, [In, Out] Single zFar); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDetachShader", ExactSpelling = true)] - internal extern static void DetachShader([In, Out] UInt32 program, [In, Out] UInt32 shader); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDisable", ExactSpelling = true)] - internal extern static void Disable([In, Out] OpenTK.Graphics.ES20.All cap); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDisableVertexAttribArray", ExactSpelling = true)] - internal extern static void DisableVertexAttribArray([In, Out] UInt32 index); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDrawArrays", ExactSpelling = true)] - internal extern static void DrawArrays([In, Out] OpenTK.Graphics.ES20.All mode, [In, Out] Int32 first, [In, Out] Int32 count); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glDrawElements", ExactSpelling = true)] - internal extern static void DrawElements([In, Out] OpenTK.Graphics.ES20.All mode, [In, Out] Int32 count, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] IntPtr indices); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glEnable", ExactSpelling = true)] - internal extern static void Enable([In, Out] OpenTK.Graphics.ES20.All cap); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glEnableVertexAttribArray", ExactSpelling = true)] - internal extern static void EnableVertexAttribArray([In, Out] UInt32 index); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFinish", ExactSpelling = true)] - internal extern static void Finish(); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFlush", ExactSpelling = true)] - internal extern static void Flush(); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFramebufferRenderbuffer", ExactSpelling = true)] - internal extern static void FramebufferRenderbuffer([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All attachment, [In, Out] OpenTK.Graphics.ES20.All renderbuffertarget, [In, Out] UInt32 renderbuffer); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFramebufferTexture2D", ExactSpelling = true)] - internal extern static void FramebufferTexture2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All attachment, [In, Out] OpenTK.Graphics.ES20.All textarget, [In, Out] UInt32 texture, [In, Out] Int32 level); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glFrontFace", ExactSpelling = true)] - internal extern static void FrontFace([In, Out] OpenTK.Graphics.ES20.All mode); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGenBuffers", ExactSpelling = true)] - internal extern static unsafe void GenBuffers([In, Out] Int32 n, [In, Out] UInt32* buffers); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGenerateMipmap", ExactSpelling = true)] - internal extern static void GenerateMipmap([In, Out] OpenTK.Graphics.ES20.All target); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGenFramebuffers", ExactSpelling = true)] - internal extern static unsafe void GenFramebuffers([In, Out] Int32 n, [In, Out] UInt32* framebuffers); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGenRenderbuffers", ExactSpelling = true)] - internal extern static unsafe void GenRenderbuffers([In, Out] Int32 n, [In, Out] UInt32* renderbuffers); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGenTextures", ExactSpelling = true)] - internal extern static unsafe void GenTextures([In, Out] Int32 n, [In, Out] UInt32* textures); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetActiveAttrib", ExactSpelling = true)] - internal extern static unsafe void GetActiveAttrib([In, Out] UInt32 program, [In, Out] UInt32 index, [In, Out] Int32 bufsize, [In, Out] Int32* length, [In, Out] Int32* size, [In, Out] OpenTK.Graphics.ES20.All* type, [In, Out] String name); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetActiveUniform", ExactSpelling = true)] - internal extern static unsafe void GetActiveUniform([In, Out] UInt32 program, [In, Out] UInt32 index, [In, Out] Int32 bufsize, [In, Out] Int32* length, [In, Out] Int32* size, [In, Out] OpenTK.Graphics.ES20.All* type, [In, Out] String name); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetAttachedShaders", ExactSpelling = true)] - internal extern static unsafe void GetAttachedShaders([In, Out] UInt32 program, [In, Out] Int32 maxcount, [In, Out] Int32* count, [In, Out] UInt32* shaders); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetAttribLocation", ExactSpelling = true)] - internal extern static int GetAttribLocation([In, Out] UInt32 program, [In, Out] String name); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetBooleanv", ExactSpelling = true)] - internal extern static unsafe void GetBooleanv([In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] bool* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetBufferParameteriv", ExactSpelling = true)] - internal extern static unsafe void GetBufferParameteriv([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetError", ExactSpelling = true)] - internal extern static OpenTK.Graphics.ES20.All GetError(); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetFloatv", ExactSpelling = true)] - internal extern static unsafe void GetFloatv([In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetFramebufferAttachmentParameteriv", ExactSpelling = true)] - internal extern static unsafe void GetFramebufferAttachmentParameteriv([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All attachment, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetIntegerv", ExactSpelling = true)] - internal extern static unsafe void GetIntegerv([In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetProgramInfoLog", ExactSpelling = true)] - internal extern static unsafe void GetProgramInfoLog([In, Out] UInt32 program, [In, Out] Int32 bufsize, [In, Out] Int32* length, [In, Out] String infolog); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetProgramiv", ExactSpelling = true)] - internal extern static unsafe void GetProgramiv([In, Out] UInt32 program, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetRenderbufferParameteriv", ExactSpelling = true)] - internal extern static unsafe void GetRenderbufferParameteriv([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetShaderInfoLog", ExactSpelling = true)] - internal extern static unsafe void GetShaderInfoLog([In, Out] UInt32 shader, [In, Out] Int32 bufsize, [In, Out] Int32* length, [In, Out] String infolog); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetShaderiv", ExactSpelling = true)] - internal extern static unsafe void GetShaderiv([In, Out] UInt32 shader, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetShaderPrecisionFormat", ExactSpelling = true)] - internal extern static unsafe void GetShaderPrecisionFormat([In, Out] OpenTK.Graphics.ES20.All shadertype, [In, Out] OpenTK.Graphics.ES20.All precisiontype, [In, Out] Int32* range, [In, Out] Int32* precision); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetShaderSource", ExactSpelling = true)] - internal extern static unsafe void GetShaderSource([In, Out] UInt32 shader, [In, Out] Int32 bufsize, [In, Out] Int32* length, [Out] System.Text.StringBuilder source); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetString", ExactSpelling = true)] - internal extern static unsafe IntPtr GetString([In, Out] OpenTK.Graphics.ES20.All name); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetTexParameterfv", ExactSpelling = true)] - internal extern static unsafe void GetTexParameterfv([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetTexParameteriv", ExactSpelling = true)] - internal extern static unsafe void GetTexParameteriv([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetUniformfv", ExactSpelling = true)] - internal extern static unsafe void GetUniformfv([In, Out] UInt32 program, [In, Out] Int32 location, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetUniformiv", ExactSpelling = true)] - internal extern static unsafe void GetUniformiv([In, Out] UInt32 program, [In, Out] Int32 location, [In, Out] Int32* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetUniformLocation", ExactSpelling = true)] - internal extern static int GetUniformLocation([In, Out] UInt32 program, [In, Out] String name); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetVertexAttribfv", ExactSpelling = true)] - internal extern static unsafe void GetVertexAttribfv([In, Out] UInt32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetVertexAttribiv", ExactSpelling = true)] - internal extern static unsafe void GetVertexAttribiv([In, Out] UInt32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glGetVertexAttribPointerv", ExactSpelling = true)] - internal extern static void GetVertexAttribPointerv([In, Out] UInt32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] IntPtr pointer); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glHint", ExactSpelling = true)] - internal extern static void Hint([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All mode); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glIsBuffer", ExactSpelling = true)] - internal extern static bool IsBuffer([In, Out] UInt32 buffer); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glIsEnabled", ExactSpelling = true)] - internal extern static bool IsEnabled([In, Out] OpenTK.Graphics.ES20.All cap); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glIsFramebuffer", ExactSpelling = true)] - internal extern static bool IsFramebuffer([In, Out] UInt32 framebuffer); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glIsProgram", ExactSpelling = true)] - internal extern static bool IsProgram([In, Out] UInt32 program); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glIsRenderbuffer", ExactSpelling = true)] - internal extern static bool IsRenderbuffer([In, Out] UInt32 renderbuffer); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glIsShader", ExactSpelling = true)] - internal extern static bool IsShader([In, Out] UInt32 shader); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glIsTexture", ExactSpelling = true)] - internal extern static bool IsTexture([In, Out] UInt32 texture); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLineWidth", ExactSpelling = true)] - internal extern static void LineWidth([In, Out] Single width); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glLinkProgram", ExactSpelling = true)] - internal extern static void LinkProgram([In, Out] UInt32 program); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glPixelStorei", ExactSpelling = true)] - internal extern static void PixelStorei([In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32 param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glPolygonOffset", ExactSpelling = true)] - internal extern static void PolygonOffset([In, Out] Single factor, [In, Out] Single units); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glReadPixels", ExactSpelling = true)] - internal extern static void ReadPixels([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] IntPtr pixels); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glReleaseShaderCompiler", ExactSpelling = true)] - internal extern static void ReleaseShaderCompiler(); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glRenderbufferStorage", ExactSpelling = true)] - internal extern static void RenderbufferStorage([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glSampleCoverage", ExactSpelling = true)] - internal extern static void SampleCoverage([In, Out] Single value, [In, Out] bool invert); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glScissor", ExactSpelling = true)] - internal extern static void Scissor([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glShaderBinary", ExactSpelling = true)] - internal extern static unsafe void ShaderBinary([In, Out] Int32 n, [In, Out] UInt32* shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] IntPtr binary, [In, Out] Int32 length); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glShaderSource", ExactSpelling = true)] - internal extern static unsafe void ShaderSource([In, Out] UInt32 shader, [In, Out] Int32 count, [In, Out] String[] @string, [In, Out] Int32* length); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glStencilFunc", ExactSpelling = true)] - internal extern static void StencilFunc([In, Out] OpenTK.Graphics.ES20.All func, [In, Out] Int32 @ref, [In, Out] UInt32 mask); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glStencilFuncSeparate", ExactSpelling = true)] - internal extern static void StencilFuncSeparate([In, Out] OpenTK.Graphics.ES20.All face, [In, Out] OpenTK.Graphics.ES20.All func, [In, Out] Int32 @ref, [In, Out] UInt32 mask); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glStencilMask", ExactSpelling = true)] - internal extern static void StencilMask([In, Out] UInt32 mask); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glStencilMaskSeparate", ExactSpelling = true)] - internal extern static void StencilMaskSeparate([In, Out] OpenTK.Graphics.ES20.All face, [In, Out] UInt32 mask); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glStencilOp", ExactSpelling = true)] - internal extern static void StencilOp([In, Out] OpenTK.Graphics.ES20.All fail, [In, Out] OpenTK.Graphics.ES20.All zfail, [In, Out] OpenTK.Graphics.ES20.All zpass); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glStencilOpSeparate", ExactSpelling = true)] - internal extern static void StencilOpSeparate([In, Out] OpenTK.Graphics.ES20.All face, [In, Out] OpenTK.Graphics.ES20.All fail, [In, Out] OpenTK.Graphics.ES20.All zfail, [In, Out] OpenTK.Graphics.ES20.All zpass); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexImage2D", ExactSpelling = true)] - internal extern static void TexImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES20.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] IntPtr pixels); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexParameterf", ExactSpelling = true)] - internal extern static void TexParameterf([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Single param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexParameterfv", ExactSpelling = true)] - internal extern static unsafe void TexParameterfv([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Single* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexParameteri", ExactSpelling = true)] - internal extern static void TexParameteri([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32 param); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexParameteriv", ExactSpelling = true)] - internal extern static unsafe void TexParameteriv([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glTexSubImage2D", ExactSpelling = true)] - internal extern static void TexSubImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] IntPtr pixels); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glUniform1f", ExactSpelling = true)] - internal extern static void Uniform1f([In, Out] Int32 location, [In, Out] Single x); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glUniform1fv", ExactSpelling = true)] - internal extern static unsafe void Uniform1fv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Single* v); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glUniform1i", ExactSpelling = true)] - internal extern static void Uniform1i([In, Out] Int32 location, [In, Out] Int32 x); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glUniform1iv", ExactSpelling = true)] - internal extern static unsafe void Uniform1iv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Int32* v); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glUniform2f", ExactSpelling = true)] - internal extern static void Uniform2f([In, Out] Int32 location, [In, Out] Single x, [In, Out] Single y); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glUniform2fv", ExactSpelling = true)] - internal extern static unsafe void Uniform2fv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Single* v); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glUniform2i", ExactSpelling = true)] - internal extern static void Uniform2i([In, Out] Int32 location, [In, Out] Int32 x, [In, Out] Int32 y); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glUniform2iv", ExactSpelling = true)] - internal extern static unsafe void Uniform2iv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Int32* v); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glUniform3f", ExactSpelling = true)] - internal extern static void Uniform3f([In, Out] Int32 location, [In, Out] Single x, [In, Out] Single y, [In, Out] Single z); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glUniform3fv", ExactSpelling = true)] - internal extern static unsafe void Uniform3fv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Single* v); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glUniform3i", ExactSpelling = true)] - internal extern static void Uniform3i([In, Out] Int32 location, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 z); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glUniform3iv", ExactSpelling = true)] - internal extern static unsafe void Uniform3iv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Int32* v); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glUniform4f", ExactSpelling = true)] - internal extern static void Uniform4f([In, Out] Int32 location, [In, Out] Single x, [In, Out] Single y, [In, Out] Single z, [In, Out] Single w); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glUniform4fv", ExactSpelling = true)] - internal extern static unsafe void Uniform4fv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Single* v); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glUniform4i", ExactSpelling = true)] - internal extern static void Uniform4i([In, Out] Int32 location, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 z, [In, Out] Int32 w); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glUniform4iv", ExactSpelling = true)] - internal extern static unsafe void Uniform4iv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Int32* v); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glUniformMatrix2fv", ExactSpelling = true)] - internal extern static unsafe void UniformMatrix2fv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] bool transpose, [In, Out] Single* value); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glUniformMatrix3fv", ExactSpelling = true)] - internal extern static unsafe void UniformMatrix3fv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] bool transpose, [In, Out] Single* value); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glUniformMatrix4fv", ExactSpelling = true)] - internal extern static unsafe void UniformMatrix4fv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] bool transpose, [In, Out] Single* value); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glUseProgram", ExactSpelling = true)] - internal extern static void UseProgram([In, Out] UInt32 program); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glValidateProgram", ExactSpelling = true)] - internal extern static void ValidateProgram([In, Out] UInt32 program); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glVertexAttrib1f", ExactSpelling = true)] - internal extern static void VertexAttrib1f([In, Out] UInt32 indx, [In, Out] Single x); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glVertexAttrib1fv", ExactSpelling = true)] - internal extern static unsafe void VertexAttrib1fv([In, Out] UInt32 indx, [In, Out] Single* values); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glVertexAttrib2f", ExactSpelling = true)] - internal extern static void VertexAttrib2f([In, Out] UInt32 indx, [In, Out] Single x, [In, Out] Single y); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glVertexAttrib2fv", ExactSpelling = true)] - internal extern static unsafe void VertexAttrib2fv([In, Out] UInt32 indx, [In, Out] Single* values); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glVertexAttrib3f", ExactSpelling = true)] - internal extern static void VertexAttrib3f([In, Out] UInt32 indx, [In, Out] Single x, [In, Out] Single y, [In, Out] Single z); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glVertexAttrib3fv", ExactSpelling = true)] - internal extern static unsafe void VertexAttrib3fv([In, Out] UInt32 indx, [In, Out] Single* values); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glVertexAttrib4f", ExactSpelling = true)] - internal extern static void VertexAttrib4f([In, Out] UInt32 indx, [In, Out] Single x, [In, Out] Single y, [In, Out] Single z, [In, Out] Single w); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glVertexAttrib4fv", ExactSpelling = true)] - internal extern static unsafe void VertexAttrib4fv([In, Out] UInt32 indx, [In, Out] Single* values); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glVertexAttribPointer", ExactSpelling = true)] - internal extern static void VertexAttribPointer([In, Out] UInt32 indx, [In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] bool normalized, [In, Out] Int32 stride, [In, Out] IntPtr ptr); - [System.Security.SuppressUnmanagedCodeSecurity()] - [System.Runtime.InteropServices.DllImport(ES.Library, EntryPoint = "glViewport", ExactSpelling = true)] - internal extern static void Viewport([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height); - } - } -} +#region License +// +// The Open Toolkit Library License +// +// Copyright (c) 2006 - 2009 the Open Toolkit library. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do +// so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// +#endregion + +namespace OpenTK.Graphics.ES20 +{ + using System; + using System.Runtime.InteropServices; + #pragma warning disable 3019 + #pragma warning disable 1591 + + partial class GL + { + + internal static partial class Core + { + + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glActiveTexture", ExactSpelling = true)] + internal extern static void ActiveTexture(OpenTK.Graphics.ES20.All texture); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glAttachShader", ExactSpelling = true)] + internal extern static void AttachShader(UInt32 program, UInt32 shader); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBeginPerfMonitorAMD", ExactSpelling = true)] + internal extern static void BeginPerfMonitorAMD(UInt32 monitor); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindAttribLocation", ExactSpelling = true)] + internal extern static void BindAttribLocation(UInt32 program, UInt32 index, String name); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindBuffer", ExactSpelling = true)] + internal extern static void BindBuffer(OpenTK.Graphics.ES20.All target, UInt32 buffer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindFramebuffer", ExactSpelling = true)] + internal extern static void BindFramebuffer(OpenTK.Graphics.ES20.All target, UInt32 framebuffer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindRenderbuffer", ExactSpelling = true)] + internal extern static void BindRenderbuffer(OpenTK.Graphics.ES20.All target, UInt32 renderbuffer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBindTexture", ExactSpelling = true)] + internal extern static void BindTexture(OpenTK.Graphics.ES20.All target, UInt32 texture); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendColor", ExactSpelling = true)] + internal extern static void BlendColor(Single red, Single green, Single blue, Single alpha); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendEquation", ExactSpelling = true)] + internal extern static void BlendEquation(OpenTK.Graphics.ES20.All mode); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendEquationSeparate", ExactSpelling = true)] + internal extern static void BlendEquationSeparate(OpenTK.Graphics.ES20.All modeRGB, OpenTK.Graphics.ES20.All modeAlpha); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendFunc", ExactSpelling = true)] + internal extern static void BlendFunc(OpenTK.Graphics.ES20.All sfactor, OpenTK.Graphics.ES20.All dfactor); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBlendFuncSeparate", ExactSpelling = true)] + internal extern static void BlendFuncSeparate(OpenTK.Graphics.ES20.All srcRGB, OpenTK.Graphics.ES20.All dstRGB, OpenTK.Graphics.ES20.All srcAlpha, OpenTK.Graphics.ES20.All dstAlpha); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBufferData", ExactSpelling = true)] + internal extern static void BufferData(OpenTK.Graphics.ES20.All target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.All usage); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glBufferSubData", ExactSpelling = true)] + internal extern static void BufferSubData(OpenTK.Graphics.ES20.All target, IntPtr offset, IntPtr size, IntPtr data); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCheckFramebufferStatus", ExactSpelling = true)] + internal extern static OpenTK.Graphics.ES20.All CheckFramebufferStatus(OpenTK.Graphics.ES20.All target); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClear", ExactSpelling = true)] + internal extern static void Clear(UInt32 mask); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearColor", ExactSpelling = true)] + internal extern static void ClearColor(Single red, Single green, Single blue, Single alpha); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearDepthf", ExactSpelling = true)] + internal extern static void ClearDepthf(Single depth); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glClearStencil", ExactSpelling = true)] + internal extern static void ClearStencil(Int32 s); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glColorMask", ExactSpelling = true)] + internal extern static void ColorMask(bool red, bool green, bool blue, bool alpha); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCompileShader", ExactSpelling = true)] + internal extern static void CompileShader(UInt32 shader); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCompressedTexImage2D", ExactSpelling = true)] + internal extern static void CompressedTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCompressedTexImage3DOES", ExactSpelling = true)] + internal extern static void CompressedTexImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, IntPtr data); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCompressedTexSubImage2D", ExactSpelling = true)] + internal extern static void CompressedTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCompressedTexSubImage3DOES", ExactSpelling = true)] + internal extern static void CompressedTexSubImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCopyTexImage2D", ExactSpelling = true)] + internal extern static void CopyTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCopyTexSubImage2D", ExactSpelling = true)] + internal extern static void CopyTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCopyTexSubImage3DOES", ExactSpelling = true)] + internal extern static void CopyTexSubImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 x, Int32 y, Int32 width, Int32 height); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCreateProgram", ExactSpelling = true)] + internal extern static UInt32 CreateProgram(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCreateShader", ExactSpelling = true)] + internal extern static UInt32 CreateShader(OpenTK.Graphics.ES20.All type); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glCullFace", ExactSpelling = true)] + internal extern static void CullFace(OpenTK.Graphics.ES20.All mode); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteBuffers", ExactSpelling = true)] + internal extern static unsafe void DeleteBuffers(Int32 n, UInt32* buffers); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteFencesNV", ExactSpelling = true)] + internal extern static unsafe void DeleteFencesNV(UInt32**); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteFramebuffers", ExactSpelling = true)] + internal extern static unsafe void DeleteFramebuffers(Int32 n, UInt32* framebuffers); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeletePerfMonitorsAMD", ExactSpelling = true)] + internal extern static unsafe void DeletePerfMonitorsAMD(Int32 n, UInt32* monitors); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteProgram", ExactSpelling = true)] + internal extern static void DeleteProgram(UInt32 program); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteRenderbuffers", ExactSpelling = true)] + internal extern static unsafe void DeleteRenderbuffers(Int32 n, UInt32* renderbuffers); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteShader", ExactSpelling = true)] + internal extern static void DeleteShader(UInt32 shader); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDeleteTextures", ExactSpelling = true)] + internal extern static unsafe void DeleteTextures(Int32 n, UInt32* textures); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDepthFunc", ExactSpelling = true)] + internal extern static void DepthFunc(OpenTK.Graphics.ES20.All func); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDepthMask", ExactSpelling = true)] + internal extern static void DepthMask(bool flag); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDepthRangef", ExactSpelling = true)] + internal extern static void DepthRangef(Single zNear, Single zFar); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDetachShader", ExactSpelling = true)] + internal extern static void DetachShader(UInt32 program, UInt32 shader); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDisable", ExactSpelling = true)] + internal extern static void Disable(OpenTK.Graphics.ES20.All cap); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDisableDriverControlQCOM", ExactSpelling = true)] + internal extern static void DisableDriverControlQCOM(UInt32 driverControl); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDisableVertexAttribArray", ExactSpelling = true)] + internal extern static void DisableVertexAttribArray(UInt32 index); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawArrays", ExactSpelling = true)] + internal extern static void DrawArrays(OpenTK.Graphics.ES20.All mode, Int32 first, Int32 count); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glDrawElements", ExactSpelling = true)] + internal extern static void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, IntPtr indices); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEGLImageTargetRenderbufferStorageOES", ExactSpelling = true)] + internal extern static void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES20.All target, GLeglImageOES image); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEGLImageTargetTexture2DOES", ExactSpelling = true)] + internal extern static void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES20.All target, GLeglImageOES image); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEnable", ExactSpelling = true)] + internal extern static void Enable(OpenTK.Graphics.ES20.All cap); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEnableDriverControlQCOM", ExactSpelling = true)] + internal extern static void EnableDriverControlQCOM(UInt32 driverControl); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEnableVertexAttribArray", ExactSpelling = true)] + internal extern static void EnableVertexAttribArray(UInt32 index); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glEndPerfMonitorAMD", ExactSpelling = true)] + internal extern static void EndPerfMonitorAMD(UInt32 monitor); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFinish", ExactSpelling = true)] + internal extern static void Finish(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFinishFenceNV", ExactSpelling = true)] + internal extern static void FinishFenceNV(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFlush", ExactSpelling = true)] + internal extern static void Flush(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFramebufferRenderbuffer", ExactSpelling = true)] + internal extern static void FramebufferRenderbuffer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All renderbuffertarget, UInt32 renderbuffer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFramebufferTexture2D", ExactSpelling = true)] + internal extern static void FramebufferTexture2D(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All textarget, UInt32 texture, Int32 level); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFramebufferTexture3DOES", ExactSpelling = true)] + internal extern static void FramebufferTexture3DOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All textarget, UInt32 texture, Int32 level, Int32 zoffset); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glFrontFace", ExactSpelling = true)] + internal extern static void FrontFace(OpenTK.Graphics.ES20.All mode); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenBuffers", ExactSpelling = true)] + internal extern static unsafe void GenBuffers(Int32 n, UInt32* buffers); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenerateMipmap", ExactSpelling = true)] + internal extern static void GenerateMipmap(OpenTK.Graphics.ES20.All target); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenFencesNV", ExactSpelling = true)] + internal extern static unsafe void GenFencesNV(UInt32**); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenFramebuffers", ExactSpelling = true)] + internal extern static unsafe void GenFramebuffers(Int32 n, UInt32* framebuffers); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenPerfMonitorsAMD", ExactSpelling = true)] + internal extern static unsafe void GenPerfMonitorsAMD(Int32 n, UInt32* monitors); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenRenderbuffers", ExactSpelling = true)] + internal extern static unsafe void GenRenderbuffers(Int32 n, UInt32* renderbuffers); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGenTextures", ExactSpelling = true)] + internal extern static unsafe void GenTextures(Int32 n, UInt32* textures); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveAttrib", ExactSpelling = true)] + internal extern static unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetActiveUniform", ExactSpelling = true)] + internal extern static unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetAttachedShaders", ExactSpelling = true)] + internal extern static unsafe void GetAttachedShaders(UInt32 program, Int32 maxcount, Int32* count, UInt32* shaders); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetAttribLocation", ExactSpelling = true)] + internal extern static int GetAttribLocation(UInt32 program, String name); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetBooleanv", ExactSpelling = true)] + internal extern static unsafe void GetBooleanv(OpenTK.Graphics.ES20.All pname, bool* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetBufferParameteriv", ExactSpelling = true)] + internal extern static unsafe void GetBufferParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetBufferPointervOES", ExactSpelling = true)] + internal extern static void GetBufferPointervOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, IntPtr @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetDriverControlsQCOM", ExactSpelling = true)] + internal extern static unsafe void GetDriverControlsQCOM(Int32* num, Int32 size, UInt32* driverControls); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetDriverControlStringQCOM", ExactSpelling = true)] + internal extern static unsafe void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, Int32* length, String driverControlString); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetError", ExactSpelling = true)] + internal extern static OpenTK.Graphics.ES20.All GetError(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFenceivNV", ExactSpelling = true)] + internal extern static unsafe void GetFenceivNV(Int32**); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFloatv", ExactSpelling = true)] + internal extern static unsafe void GetFloatv(OpenTK.Graphics.ES20.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetFramebufferAttachmentParameteriv", ExactSpelling = true)] + internal extern static unsafe void GetFramebufferAttachmentParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All pname, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetIntegerv", ExactSpelling = true)] + internal extern static unsafe void GetIntegerv(OpenTK.Graphics.ES20.All pname, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorCounterDataAMD", ExactSpelling = true)] + internal extern static unsafe void GetPerfMonitorCounterDataAMD(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, UInt32* data, Int32* bytesWritten); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorCounterInfoAMD", ExactSpelling = true)] + internal extern static void GetPerfMonitorCounterInfoAMD(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, IntPtr data); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorCountersAMD", ExactSpelling = true)] + internal extern static unsafe void GetPerfMonitorCountersAMD(UInt32 group, Int32* numCounters, Int32* maxActiveCounters, Int32 counterSize, UInt32* counters); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorCounterStringAMD", ExactSpelling = true)] + internal extern static unsafe void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, Int32* length, String counterString); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorGroupsAMD", ExactSpelling = true)] + internal extern static unsafe void GetPerfMonitorGroupsAMD(Int32* numGroups, Int32 groupsSize, UInt32* groups); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetPerfMonitorGroupStringAMD", ExactSpelling = true)] + internal extern static unsafe void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, Int32* length, String groupString); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetProgramBinaryOES", ExactSpelling = true)] + internal extern static unsafe void GetProgramBinaryOES(UInt32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, IntPtr binary); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetProgramInfoLog", ExactSpelling = true)] + internal extern static unsafe void GetProgramInfoLog(UInt32 program, Int32 bufsize, Int32* length, String infolog); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetProgramiv", ExactSpelling = true)] + internal extern static unsafe void GetProgramiv(UInt32 program, OpenTK.Graphics.ES20.All pname, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetRenderbufferParameteriv", ExactSpelling = true)] + internal extern static unsafe void GetRenderbufferParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderInfoLog", ExactSpelling = true)] + internal extern static unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufsize, Int32* length, String infolog); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderiv", ExactSpelling = true)] + internal extern static unsafe void GetShaderiv(UInt32 shader, OpenTK.Graphics.ES20.All pname, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderPrecisionFormat", ExactSpelling = true)] + internal extern static unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.All shadertype, OpenTK.Graphics.ES20.All precisiontype, Int32* range, Int32* precision); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetShaderSource", ExactSpelling = true)] + internal extern static unsafe void GetShaderSource(UInt32 shader, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder source); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetString", ExactSpelling = true)] + internal extern static unsafe IntPtr GetString(OpenTK.Graphics.ES20.All name); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexParameterfv", ExactSpelling = true)] + internal extern static unsafe void GetTexParameterfv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetTexParameteriv", ExactSpelling = true)] + internal extern static unsafe void GetTexParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetUniformfv", ExactSpelling = true)] + internal extern static unsafe void GetUniformfv(UInt32 program, Int32 location, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetUniformiv", ExactSpelling = true)] + internal extern static unsafe void GetUniformiv(UInt32 program, Int32 location, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetUniformLocation", ExactSpelling = true)] + internal extern static int GetUniformLocation(UInt32 program, String name); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetVertexAttribfv", ExactSpelling = true)] + internal extern static unsafe void GetVertexAttribfv(UInt32 index, OpenTK.Graphics.ES20.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetVertexAttribiv", ExactSpelling = true)] + internal extern static unsafe void GetVertexAttribiv(UInt32 index, OpenTK.Graphics.ES20.All pname, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glGetVertexAttribPointerv", ExactSpelling = true)] + internal extern static void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.ES20.All pname, IntPtr pointer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glHint", ExactSpelling = true)] + internal extern static void Hint(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All mode); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsBuffer", ExactSpelling = true)] + internal extern static bool IsBuffer(UInt32 buffer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsEnabled", ExactSpelling = true)] + internal extern static bool IsEnabled(OpenTK.Graphics.ES20.All cap); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsFenceNV", ExactSpelling = true)] + internal extern static bool IsFenceNV(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsFramebuffer", ExactSpelling = true)] + internal extern static bool IsFramebuffer(UInt32 framebuffer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsProgram", ExactSpelling = true)] + internal extern static bool IsProgram(UInt32 program); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsRenderbuffer", ExactSpelling = true)] + internal extern static bool IsRenderbuffer(UInt32 renderbuffer); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsShader", ExactSpelling = true)] + internal extern static bool IsShader(UInt32 shader); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glIsTexture", ExactSpelling = true)] + internal extern static bool IsTexture(UInt32 texture); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLineWidth", ExactSpelling = true)] + internal extern static void LineWidth(Single width); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glLinkProgram", ExactSpelling = true)] + internal extern static void LinkProgram(UInt32 program); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glMapBufferOES", ExactSpelling = true)] + internal extern static unsafe IntPtr MapBufferOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All access); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPixelStorei", ExactSpelling = true)] + internal extern static void PixelStorei(OpenTK.Graphics.ES20.All pname, Int32 param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glPolygonOffset", ExactSpelling = true)] + internal extern static void PolygonOffset(Single factor, Single units); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glProgramBinaryOES", ExactSpelling = true)] + internal extern static void ProgramBinaryOES(UInt32 program, OpenTK.Graphics.ES20.All binaryFormat, IntPtr binary, Int32 length); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glReadPixels", ExactSpelling = true)] + internal extern static void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glReleaseShaderCompiler", ExactSpelling = true)] + internal extern static void ReleaseShaderCompiler(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glRenderbufferStorage", ExactSpelling = true)] + internal extern static void RenderbufferStorage(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glSampleCoverage", ExactSpelling = true)] + internal extern static void SampleCoverage(Single value, bool invert); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glScissor", ExactSpelling = true)] + internal extern static void Scissor(Int32 x, Int32 y, Int32 width, Int32 height); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glSelectPerfMonitorCountersAMD", ExactSpelling = true)] + internal extern static unsafe void SelectPerfMonitorCountersAMD(UInt32 monitor, bool enable, UInt32 group, Int32 numCounters, UInt32* countersList); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glSetFenceNV", ExactSpelling = true)] + internal extern static void SetFenceNV(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glShaderBinary", ExactSpelling = true)] + internal extern static unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glShaderSource", ExactSpelling = true)] + internal extern static unsafe void ShaderSource(UInt32 shader, Int32 count, String[] @string, Int32* length); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilFunc", ExactSpelling = true)] + internal extern static void StencilFunc(OpenTK.Graphics.ES20.All func, Int32 @ref, UInt32 mask); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilFuncSeparate", ExactSpelling = true)] + internal extern static void StencilFuncSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All func, Int32 @ref, UInt32 mask); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilMask", ExactSpelling = true)] + internal extern static void StencilMask(UInt32 mask); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilMaskSeparate", ExactSpelling = true)] + internal extern static void StencilMaskSeparate(OpenTK.Graphics.ES20.All face, UInt32 mask); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilOp", ExactSpelling = true)] + internal extern static void StencilOp(OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glStencilOpSeparate", ExactSpelling = true)] + internal extern static void StencilOpSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTestFenceNV", ExactSpelling = true)] + internal extern static bool TestFenceNV(); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexImage2D", ExactSpelling = true)] + internal extern static void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexImage3DOES", ExactSpelling = true)] + internal extern static void TexImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameterf", ExactSpelling = true)] + internal extern static void TexParameterf(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameterfv", ExactSpelling = true)] + internal extern static unsafe void TexParameterfv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameteri", ExactSpelling = true)] + internal extern static void TexParameteri(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32 param); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexParameteriv", ExactSpelling = true)] + internal extern static unsafe void TexParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexSubImage2D", ExactSpelling = true)] + internal extern static void TexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glTexSubImage3DOES", ExactSpelling = true)] + internal extern static void TexSubImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUniform1f", ExactSpelling = true)] + internal extern static void Uniform1f(Int32 location, Single x); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUniform1fv", ExactSpelling = true)] + internal extern static unsafe void Uniform1fv(Int32 location, Int32 count, Single* v); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUniform1i", ExactSpelling = true)] + internal extern static void Uniform1i(Int32 location, Int32 x); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUniform1iv", ExactSpelling = true)] + internal extern static unsafe void Uniform1iv(Int32 location, Int32 count, Int32* v); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUniform2f", ExactSpelling = true)] + internal extern static void Uniform2f(Int32 location, Single x, Single y); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUniform2fv", ExactSpelling = true)] + internal extern static unsafe void Uniform2fv(Int32 location, Int32 count, Single* v); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUniform2i", ExactSpelling = true)] + internal extern static void Uniform2i(Int32 location, Int32 x, Int32 y); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUniform2iv", ExactSpelling = true)] + internal extern static unsafe void Uniform2iv(Int32 location, Int32 count, Int32* v); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUniform3f", ExactSpelling = true)] + internal extern static void Uniform3f(Int32 location, Single x, Single y, Single z); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUniform3fv", ExactSpelling = true)] + internal extern static unsafe void Uniform3fv(Int32 location, Int32 count, Single* v); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUniform3i", ExactSpelling = true)] + internal extern static void Uniform3i(Int32 location, Int32 x, Int32 y, Int32 z); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUniform3iv", ExactSpelling = true)] + internal extern static unsafe void Uniform3iv(Int32 location, Int32 count, Int32* v); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUniform4f", ExactSpelling = true)] + internal extern static void Uniform4f(Int32 location, Single x, Single y, Single z, Single w); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUniform4fv", ExactSpelling = true)] + internal extern static unsafe void Uniform4fv(Int32 location, Int32 count, Single* v); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUniform4i", ExactSpelling = true)] + internal extern static void Uniform4i(Int32 location, Int32 x, Int32 y, Int32 z, Int32 w); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUniform4iv", ExactSpelling = true)] + internal extern static unsafe void Uniform4iv(Int32 location, Int32 count, Int32* v); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUniformMatrix2fv", ExactSpelling = true)] + internal extern static unsafe void UniformMatrix2fv(Int32 location, Int32 count, bool transpose, Single* value); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUniformMatrix3fv", ExactSpelling = true)] + internal extern static unsafe void UniformMatrix3fv(Int32 location, Int32 count, bool transpose, Single* value); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUniformMatrix4fv", ExactSpelling = true)] + internal extern static unsafe void UniformMatrix4fv(Int32 location, Int32 count, bool transpose, Single* value); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUnmapBufferOES", ExactSpelling = true)] + internal extern static bool UnmapBufferOES(OpenTK.Graphics.ES20.All target); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glUseProgram", ExactSpelling = true)] + internal extern static void UseProgram(UInt32 program); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glValidateProgram", ExactSpelling = true)] + internal extern static void ValidateProgram(UInt32 program); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glVertexAttrib1f", ExactSpelling = true)] + internal extern static void VertexAttrib1f(UInt32 indx, Single x); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glVertexAttrib1fv", ExactSpelling = true)] + internal extern static unsafe void VertexAttrib1fv(UInt32 indx, Single* values); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glVertexAttrib2f", ExactSpelling = true)] + internal extern static void VertexAttrib2f(UInt32 indx, Single x, Single y); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glVertexAttrib2fv", ExactSpelling = true)] + internal extern static unsafe void VertexAttrib2fv(UInt32 indx, Single* values); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glVertexAttrib3f", ExactSpelling = true)] + internal extern static void VertexAttrib3f(UInt32 indx, Single x, Single y, Single z); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glVertexAttrib3fv", ExactSpelling = true)] + internal extern static unsafe void VertexAttrib3fv(UInt32 indx, Single* values); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glVertexAttrib4f", ExactSpelling = true)] + internal extern static void VertexAttrib4f(UInt32 indx, Single x, Single y, Single z, Single w); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glVertexAttrib4fv", ExactSpelling = true)] + internal extern static unsafe void VertexAttrib4fv(UInt32 indx, Single* values); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glVertexAttribPointer", ExactSpelling = true)] + internal extern static void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, IntPtr ptr); + [System.Security.SuppressUnmanagedCodeSecurity()] + [System.Runtime.InteropServices.DllImport(GL.Library, EntryPoint = "glViewport", ExactSpelling = true)] + internal extern static void Viewport(Int32 x, Int32 y, Int32 width, Int32 height); + } + } +} diff --git a/Source/OpenTK/Graphics/ES20/Delegates.cs b/Source/OpenTK/Graphics/ES20/Delegates.cs index 1b499496..2a59fb5d 100644 --- a/Source/OpenTK/Graphics/ES20/Delegates.cs +++ b/Source/OpenTK/Graphics/ES20/Delegates.cs @@ -1,468 +1,573 @@ -#region License -// -// The Open Toolkit Library License -// -// Copyright (c) 2006 - 2009 the Open Toolkit library. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -// the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -// OTHER DEALINGS IN THE SOFTWARE. -// -#endregion - -namespace OpenTK.Graphics.ES20 -{ - using System; - using System.Runtime.InteropServices; - #pragma warning disable 0649 - #pragma warning disable 3019 - #pragma warning disable 1591 - - partial class ES - { - internal static partial class Delegates - { - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ActiveTexture([In, Out] OpenTK.Graphics.ES20.All texture); - internal static ActiveTexture glActiveTexture; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void AttachShader([In, Out] UInt32 program, [In, Out] UInt32 shader); - internal static AttachShader glAttachShader; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BindAttribLocation([In, Out] UInt32 program, [In, Out] UInt32 index, [In, Out] String name); - internal static BindAttribLocation glBindAttribLocation; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BindBuffer([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] UInt32 buffer); - internal static BindBuffer glBindBuffer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BindFramebuffer([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] UInt32 framebuffer); - internal static BindFramebuffer glBindFramebuffer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BindRenderbuffer([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] UInt32 renderbuffer); - internal static BindRenderbuffer glBindRenderbuffer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BindTexture([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] UInt32 texture); - internal static BindTexture glBindTexture; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BlendColor([In, Out] Single red, [In, Out] Single green, [In, Out] Single blue, [In, Out] Single alpha); - internal static BlendColor glBlendColor; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BlendEquation([In, Out] OpenTK.Graphics.ES20.All mode); - internal static BlendEquation glBlendEquation; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BlendEquationSeparate([In, Out] OpenTK.Graphics.ES20.All modeRGB, [In, Out] OpenTK.Graphics.ES20.All modeAlpha); - internal static BlendEquationSeparate glBlendEquationSeparate; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BlendFunc([In, Out] OpenTK.Graphics.ES20.All sfactor, [In, Out] OpenTK.Graphics.ES20.All dfactor); - internal static BlendFunc glBlendFunc; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BlendFuncSeparate([In, Out] OpenTK.Graphics.ES20.All srcRGB, [In, Out] OpenTK.Graphics.ES20.All dstRGB, [In, Out] OpenTK.Graphics.ES20.All srcAlpha, [In, Out] OpenTK.Graphics.ES20.All dstAlpha); - internal static BlendFuncSeparate glBlendFuncSeparate; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BufferData([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] IntPtr size, [In, Out] IntPtr data, [In, Out] OpenTK.Graphics.ES20.All usage); - internal static BufferData glBufferData; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void BufferSubData([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] IntPtr offset, [In, Out] IntPtr size, [In, Out] IntPtr data); - internal static BufferSubData glBufferSubData; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate OpenTK.Graphics.ES20.All CheckFramebufferStatus([In, Out] OpenTK.Graphics.ES20.All target); - internal static CheckFramebufferStatus glCheckFramebufferStatus; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Clear([In, Out] UInt32 mask); - internal static Clear glClear; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ClearColor([In, Out] Single red, [In, Out] Single green, [In, Out] Single blue, [In, Out] Single alpha); - internal static ClearColor glClearColor; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ClearDepthf([In, Out] Single depth); - internal static ClearDepthf glClearDepthf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ClearStencil([In, Out] Int32 s); - internal static ClearStencil glClearStencil; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ColorMask([In, Out] bool red, [In, Out] bool green, [In, Out] bool blue, [In, Out] bool alpha); - internal static ColorMask glColorMask; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CompileShader([In, Out] UInt32 shader); - internal static CompileShader glCompileShader; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CompressedTexImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES20.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] Int32 imageSize, [In, Out] IntPtr data); - internal static CompressedTexImage2D glCompressedTexImage2D; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CompressedTexSubImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] Int32 imageSize, [In, Out] IntPtr data); - internal static CompressedTexSubImage2D glCompressedTexSubImage2D; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CopyTexImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES20.All internalformat, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border); - internal static CopyTexImage2D glCopyTexImage2D; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CopyTexSubImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height); - internal static CopyTexSubImage2D glCopyTexSubImage2D; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate Int32 CreateProgram(); - internal static CreateProgram glCreateProgram; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate Int32 CreateShader([In, Out] OpenTK.Graphics.ES20.All type); - internal static CreateShader glCreateShader; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void CullFace([In, Out] OpenTK.Graphics.ES20.All mode); - internal static CullFace glCullFace; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void DeleteBuffers([In, Out] Int32 n, [In, Out] UInt32* buffers); - internal unsafe static DeleteBuffers glDeleteBuffers; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void DeleteFramebuffers([In, Out] Int32 n, [In, Out] UInt32* framebuffers); - internal unsafe static DeleteFramebuffers glDeleteFramebuffers; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DeleteProgram([In, Out] UInt32 program); - internal static DeleteProgram glDeleteProgram; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void DeleteRenderbuffers([In, Out] Int32 n, [In, Out] UInt32* renderbuffers); - internal unsafe static DeleteRenderbuffers glDeleteRenderbuffers; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DeleteShader([In, Out] UInt32 shader); - internal static DeleteShader glDeleteShader; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void DeleteTextures([In, Out] Int32 n, [In, Out] UInt32* textures); - internal unsafe static DeleteTextures glDeleteTextures; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DepthFunc([In, Out] OpenTK.Graphics.ES20.All func); - internal static DepthFunc glDepthFunc; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DepthMask([In, Out] bool flag); - internal static DepthMask glDepthMask; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DepthRangef([In, Out] Single zNear, [In, Out] Single zFar); - internal static DepthRangef glDepthRangef; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DetachShader([In, Out] UInt32 program, [In, Out] UInt32 shader); - internal static DetachShader glDetachShader; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Disable([In, Out] OpenTK.Graphics.ES20.All cap); - internal static Disable glDisable; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DisableVertexAttribArray([In, Out] UInt32 index); - internal static DisableVertexAttribArray glDisableVertexAttribArray; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DrawArrays([In, Out] OpenTK.Graphics.ES20.All mode, [In, Out] Int32 first, [In, Out] Int32 count); - internal static DrawArrays glDrawArrays; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void DrawElements([In, Out] OpenTK.Graphics.ES20.All mode, [In, Out] Int32 count, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] IntPtr indices); - internal static DrawElements glDrawElements; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Enable([In, Out] OpenTK.Graphics.ES20.All cap); - internal static Enable glEnable; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void EnableVertexAttribArray([In, Out] UInt32 index); - internal static EnableVertexAttribArray glEnableVertexAttribArray; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Finish(); - internal static Finish glFinish; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Flush(); - internal static Flush glFlush; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void FramebufferRenderbuffer([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All attachment, [In, Out] OpenTK.Graphics.ES20.All renderbuffertarget, [In, Out] UInt32 renderbuffer); - internal static FramebufferRenderbuffer glFramebufferRenderbuffer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void FramebufferTexture2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All attachment, [In, Out] OpenTK.Graphics.ES20.All textarget, [In, Out] UInt32 texture, [In, Out] Int32 level); - internal static FramebufferTexture2D glFramebufferTexture2D; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void FrontFace([In, Out] OpenTK.Graphics.ES20.All mode); - internal static FrontFace glFrontFace; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GenBuffers([In, Out] Int32 n, [In, Out] UInt32* buffers); - internal unsafe static GenBuffers glGenBuffers; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void GenerateMipmap([In, Out] OpenTK.Graphics.ES20.All target); - internal static GenerateMipmap glGenerateMipmap; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GenFramebuffers([In, Out] Int32 n, [In, Out] UInt32* framebuffers); - internal unsafe static GenFramebuffers glGenFramebuffers; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GenRenderbuffers([In, Out] Int32 n, [In, Out] UInt32* renderbuffers); - internal unsafe static GenRenderbuffers glGenRenderbuffers; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GenTextures([In, Out] Int32 n, [In, Out] UInt32* textures); - internal unsafe static GenTextures glGenTextures; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetActiveAttrib([In, Out] UInt32 program, [In, Out] UInt32 index, [In, Out] Int32 bufsize, [In, Out] Int32* length, [In, Out] Int32* size, [In, Out] OpenTK.Graphics.ES20.All* type, [In, Out] String name); - internal unsafe static GetActiveAttrib glGetActiveAttrib; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetActiveUniform([In, Out] UInt32 program, [In, Out] UInt32 index, [In, Out] Int32 bufsize, [In, Out] Int32* length, [In, Out] Int32* size, [In, Out] OpenTK.Graphics.ES20.All* type, [In, Out] String name); - internal unsafe static GetActiveUniform glGetActiveUniform; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetAttachedShaders([In, Out] UInt32 program, [In, Out] Int32 maxcount, [In, Out] Int32* count, [In, Out] UInt32* shaders); - internal unsafe static GetAttachedShaders glGetAttachedShaders; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int GetAttribLocation([In, Out] UInt32 program, [In, Out] String name); - internal static GetAttribLocation glGetAttribLocation; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetBooleanv([In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] bool* @params); - internal unsafe static GetBooleanv glGetBooleanv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetBufferParameteriv([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params); - internal unsafe static GetBufferParameteriv glGetBufferParameteriv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate OpenTK.Graphics.ES20.All GetError(); - internal static GetError glGetError; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetFloatv([In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Single* @params); - internal unsafe static GetFloatv glGetFloatv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetFramebufferAttachmentParameteriv([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All attachment, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params); - internal unsafe static GetFramebufferAttachmentParameteriv glGetFramebufferAttachmentParameteriv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetIntegerv([In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params); - internal unsafe static GetIntegerv glGetIntegerv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetProgramInfoLog([In, Out] UInt32 program, [In, Out] Int32 bufsize, [In, Out] Int32* length, [In, Out] String infolog); - internal unsafe static GetProgramInfoLog glGetProgramInfoLog; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetProgramiv([In, Out] UInt32 program, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params); - internal unsafe static GetProgramiv glGetProgramiv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetRenderbufferParameteriv([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params); - internal unsafe static GetRenderbufferParameteriv glGetRenderbufferParameteriv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetShaderInfoLog([In, Out] UInt32 shader, [In, Out] Int32 bufsize, [In, Out] Int32* length, [In, Out] String infolog); - internal unsafe static GetShaderInfoLog glGetShaderInfoLog; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetShaderiv([In, Out] UInt32 shader, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params); - internal unsafe static GetShaderiv glGetShaderiv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetShaderPrecisionFormat([In, Out] OpenTK.Graphics.ES20.All shadertype, [In, Out] OpenTK.Graphics.ES20.All precisiontype, [In, Out] Int32* range, [In, Out] Int32* precision); - internal unsafe static GetShaderPrecisionFormat glGetShaderPrecisionFormat; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetShaderSource([In, Out] UInt32 shader, [In, Out] Int32 bufsize, [In, Out] Int32* length, [Out] System.Text.StringBuilder source); - internal unsafe static GetShaderSource glGetShaderSource; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate IntPtr GetString([In, Out] OpenTK.Graphics.ES20.All name); - internal unsafe static GetString glGetString; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetTexParameterfv([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Single* @params); - internal unsafe static GetTexParameterfv glGetTexParameterfv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetTexParameteriv([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params); - internal unsafe static GetTexParameteriv glGetTexParameteriv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetUniformfv([In, Out] UInt32 program, [In, Out] Int32 location, [In, Out] Single* @params); - internal unsafe static GetUniformfv glGetUniformfv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetUniformiv([In, Out] UInt32 program, [In, Out] Int32 location, [In, Out] Int32* @params); - internal unsafe static GetUniformiv glGetUniformiv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate int GetUniformLocation([In, Out] UInt32 program, [In, Out] String name); - internal static GetUniformLocation glGetUniformLocation; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetVertexAttribfv([In, Out] UInt32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Single* @params); - internal unsafe static GetVertexAttribfv glGetVertexAttribfv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void GetVertexAttribiv([In, Out] UInt32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params); - internal unsafe static GetVertexAttribiv glGetVertexAttribiv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void GetVertexAttribPointerv([In, Out] UInt32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] IntPtr pointer); - internal static GetVertexAttribPointerv glGetVertexAttribPointerv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Hint([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All mode); - internal static Hint glHint; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate bool IsBuffer([In, Out] UInt32 buffer); - internal static IsBuffer glIsBuffer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate bool IsEnabled([In, Out] OpenTK.Graphics.ES20.All cap); - internal static IsEnabled glIsEnabled; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate bool IsFramebuffer([In, Out] UInt32 framebuffer); - internal static IsFramebuffer glIsFramebuffer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate bool IsProgram([In, Out] UInt32 program); - internal static IsProgram glIsProgram; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate bool IsRenderbuffer([In, Out] UInt32 renderbuffer); - internal static IsRenderbuffer glIsRenderbuffer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate bool IsShader([In, Out] UInt32 shader); - internal static IsShader glIsShader; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate bool IsTexture([In, Out] UInt32 texture); - internal static IsTexture glIsTexture; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void LineWidth([In, Out] Single width); - internal static LineWidth glLineWidth; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void LinkProgram([In, Out] UInt32 program); - internal static LinkProgram glLinkProgram; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PixelStorei([In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32 param); - internal static PixelStorei glPixelStorei; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void PolygonOffset([In, Out] Single factor, [In, Out] Single units); - internal static PolygonOffset glPolygonOffset; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ReadPixels([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] IntPtr pixels); - internal static ReadPixels glReadPixels; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ReleaseShaderCompiler(); - internal static ReleaseShaderCompiler glReleaseShaderCompiler; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void RenderbufferStorage([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height); - internal static RenderbufferStorage glRenderbufferStorage; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void SampleCoverage([In, Out] Single value, [In, Out] bool invert); - internal static SampleCoverage glSampleCoverage; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Scissor([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height); - internal static Scissor glScissor; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void ShaderBinary([In, Out] Int32 n, [In, Out] UInt32* shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] IntPtr binary, [In, Out] Int32 length); - internal unsafe static ShaderBinary glShaderBinary; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void ShaderSource([In, Out] UInt32 shader, [In, Out] Int32 count, [In, Out] String[] @string, [In, Out] Int32* length); - internal unsafe static ShaderSource glShaderSource; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilFunc([In, Out] OpenTK.Graphics.ES20.All func, [In, Out] Int32 @ref, [In, Out] UInt32 mask); - internal static StencilFunc glStencilFunc; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilFuncSeparate([In, Out] OpenTK.Graphics.ES20.All face, [In, Out] OpenTK.Graphics.ES20.All func, [In, Out] Int32 @ref, [In, Out] UInt32 mask); - internal static StencilFuncSeparate glStencilFuncSeparate; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilMask([In, Out] UInt32 mask); - internal static StencilMask glStencilMask; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilMaskSeparate([In, Out] OpenTK.Graphics.ES20.All face, [In, Out] UInt32 mask); - internal static StencilMaskSeparate glStencilMaskSeparate; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilOp([In, Out] OpenTK.Graphics.ES20.All fail, [In, Out] OpenTK.Graphics.ES20.All zfail, [In, Out] OpenTK.Graphics.ES20.All zpass); - internal static StencilOp glStencilOp; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void StencilOpSeparate([In, Out] OpenTK.Graphics.ES20.All face, [In, Out] OpenTK.Graphics.ES20.All fail, [In, Out] OpenTK.Graphics.ES20.All zfail, [In, Out] OpenTK.Graphics.ES20.All zpass); - internal static StencilOpSeparate glStencilOpSeparate; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES20.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] IntPtr pixels); - internal static TexImage2D glTexImage2D; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexParameterf([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Single param); - internal static TexParameterf glTexParameterf; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void TexParameterfv([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Single* @params); - internal unsafe static TexParameterfv glTexParameterfv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexParameteri([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32 param); - internal static TexParameteri glTexParameteri; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void TexParameteriv([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params); - internal unsafe static TexParameteriv glTexParameteriv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void TexSubImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] IntPtr pixels); - internal static TexSubImage2D glTexSubImage2D; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Uniform1f([In, Out] Int32 location, [In, Out] Single x); - internal static Uniform1f glUniform1f; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void Uniform1fv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Single* v); - internal unsafe static Uniform1fv glUniform1fv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Uniform1i([In, Out] Int32 location, [In, Out] Int32 x); - internal static Uniform1i glUniform1i; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void Uniform1iv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Int32* v); - internal unsafe static Uniform1iv glUniform1iv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Uniform2f([In, Out] Int32 location, [In, Out] Single x, [In, Out] Single y); - internal static Uniform2f glUniform2f; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void Uniform2fv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Single* v); - internal unsafe static Uniform2fv glUniform2fv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Uniform2i([In, Out] Int32 location, [In, Out] Int32 x, [In, Out] Int32 y); - internal static Uniform2i glUniform2i; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void Uniform2iv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Int32* v); - internal unsafe static Uniform2iv glUniform2iv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Uniform3f([In, Out] Int32 location, [In, Out] Single x, [In, Out] Single y, [In, Out] Single z); - internal static Uniform3f glUniform3f; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void Uniform3fv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Single* v); - internal unsafe static Uniform3fv glUniform3fv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Uniform3i([In, Out] Int32 location, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 z); - internal static Uniform3i glUniform3i; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void Uniform3iv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Int32* v); - internal unsafe static Uniform3iv glUniform3iv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Uniform4f([In, Out] Int32 location, [In, Out] Single x, [In, Out] Single y, [In, Out] Single z, [In, Out] Single w); - internal static Uniform4f glUniform4f; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void Uniform4fv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Single* v); - internal unsafe static Uniform4fv glUniform4fv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Uniform4i([In, Out] Int32 location, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 z, [In, Out] Int32 w); - internal static Uniform4i glUniform4i; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void Uniform4iv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Int32* v); - internal unsafe static Uniform4iv glUniform4iv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void UniformMatrix2fv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] bool transpose, [In, Out] Single* value); - internal unsafe static UniformMatrix2fv glUniformMatrix2fv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void UniformMatrix3fv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] bool transpose, [In, Out] Single* value); - internal unsafe static UniformMatrix3fv glUniformMatrix3fv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void UniformMatrix4fv([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] bool transpose, [In, Out] Single* value); - internal unsafe static UniformMatrix4fv glUniformMatrix4fv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void UseProgram([In, Out] UInt32 program); - internal static UseProgram glUseProgram; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void ValidateProgram([In, Out] UInt32 program); - internal static ValidateProgram glValidateProgram; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void VertexAttrib1f([In, Out] UInt32 indx, [In, Out] Single x); - internal static VertexAttrib1f glVertexAttrib1f; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void VertexAttrib1fv([In, Out] UInt32 indx, [In, Out] Single* values); - internal unsafe static VertexAttrib1fv glVertexAttrib1fv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void VertexAttrib2f([In, Out] UInt32 indx, [In, Out] Single x, [In, Out] Single y); - internal static VertexAttrib2f glVertexAttrib2f; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void VertexAttrib2fv([In, Out] UInt32 indx, [In, Out] Single* values); - internal unsafe static VertexAttrib2fv glVertexAttrib2fv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void VertexAttrib3f([In, Out] UInt32 indx, [In, Out] Single x, [In, Out] Single y, [In, Out] Single z); - internal static VertexAttrib3f glVertexAttrib3f; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void VertexAttrib3fv([In, Out] UInt32 indx, [In, Out] Single* values); - internal unsafe static VertexAttrib3fv glVertexAttrib3fv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void VertexAttrib4f([In, Out] UInt32 indx, [In, Out] Single x, [In, Out] Single y, [In, Out] Single z, [In, Out] Single w); - internal static VertexAttrib4f glVertexAttrib4f; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal unsafe delegate void VertexAttrib4fv([In, Out] UInt32 indx, [In, Out] Single* values); - internal unsafe static VertexAttrib4fv glVertexAttrib4fv; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void VertexAttribPointer([In, Out] UInt32 indx, [In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] bool normalized, [In, Out] Int32 stride, [In, Out] IntPtr ptr); - internal static VertexAttribPointer glVertexAttribPointer; - [System.Security.SuppressUnmanagedCodeSecurity()] - internal delegate void Viewport([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height); - internal static Viewport glViewport; - } - } -} +#region License +// +// The Open Toolkit Library License +// +// Copyright (c) 2006 - 2009 the Open Toolkit library. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do +// so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// +#endregion + +namespace OpenTK.Graphics.ES20 +{ + using System; + using System.Runtime.InteropServices; + #pragma warning disable 0649 + #pragma warning disable 3019 + #pragma warning disable 1591 + + partial class GL + { + internal static partial class Delegates + { + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ActiveTexture(OpenTK.Graphics.ES20.All texture); + internal static ActiveTexture glActiveTexture; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void AttachShader(UInt32 program, UInt32 shader); + internal static AttachShader glAttachShader; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BeginPerfMonitorAMD(UInt32 monitor); + internal static BeginPerfMonitorAMD glBeginPerfMonitorAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BindAttribLocation(UInt32 program, UInt32 index, String name); + internal static BindAttribLocation glBindAttribLocation; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BindBuffer(OpenTK.Graphics.ES20.All target, UInt32 buffer); + internal static BindBuffer glBindBuffer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BindFramebuffer(OpenTK.Graphics.ES20.All target, UInt32 framebuffer); + internal static BindFramebuffer glBindFramebuffer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BindRenderbuffer(OpenTK.Graphics.ES20.All target, UInt32 renderbuffer); + internal static BindRenderbuffer glBindRenderbuffer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BindTexture(OpenTK.Graphics.ES20.All target, UInt32 texture); + internal static BindTexture glBindTexture; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BlendColor(Single red, Single green, Single blue, Single alpha); + internal static BlendColor glBlendColor; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BlendEquation(OpenTK.Graphics.ES20.All mode); + internal static BlendEquation glBlendEquation; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BlendEquationSeparate(OpenTK.Graphics.ES20.All modeRGB, OpenTK.Graphics.ES20.All modeAlpha); + internal static BlendEquationSeparate glBlendEquationSeparate; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BlendFunc(OpenTK.Graphics.ES20.All sfactor, OpenTK.Graphics.ES20.All dfactor); + internal static BlendFunc glBlendFunc; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BlendFuncSeparate(OpenTK.Graphics.ES20.All srcRGB, OpenTK.Graphics.ES20.All dstRGB, OpenTK.Graphics.ES20.All srcAlpha, OpenTK.Graphics.ES20.All dstAlpha); + internal static BlendFuncSeparate glBlendFuncSeparate; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BufferData(OpenTK.Graphics.ES20.All target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.All usage); + internal static BufferData glBufferData; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void BufferSubData(OpenTK.Graphics.ES20.All target, IntPtr offset, IntPtr size, IntPtr data); + internal static BufferSubData glBufferSubData; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate OpenTK.Graphics.ES20.All CheckFramebufferStatus(OpenTK.Graphics.ES20.All target); + internal static CheckFramebufferStatus glCheckFramebufferStatus; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Clear(UInt32 mask); + internal static Clear glClear; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ClearColor(Single red, Single green, Single blue, Single alpha); + internal static ClearColor glClearColor; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ClearDepthf(Single depth); + internal static ClearDepthf glClearDepthf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ClearStencil(Int32 s); + internal static ClearStencil glClearStencil; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ColorMask(bool red, bool green, bool blue, bool alpha); + internal static ColorMask glColorMask; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void CompileShader(UInt32 shader); + internal static CompileShader glCompileShader; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void CompressedTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data); + internal static CompressedTexImage2D glCompressedTexImage2D; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void CompressedTexImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, IntPtr data); + internal static CompressedTexImage3DOES glCompressedTexImage3DOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void CompressedTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data); + internal static CompressedTexSubImage2D glCompressedTexSubImage2D; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void CompressedTexSubImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data); + internal static CompressedTexSubImage3DOES glCompressedTexSubImage3DOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void CopyTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border); + internal static CopyTexImage2D glCopyTexImage2D; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void CopyTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height); + internal static CopyTexSubImage2D glCopyTexSubImage2D; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void CopyTexSubImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 x, Int32 y, Int32 width, Int32 height); + internal static CopyTexSubImage3DOES glCopyTexSubImage3DOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate UInt32 CreateProgram(); + internal static CreateProgram glCreateProgram; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate UInt32 CreateShader(OpenTK.Graphics.ES20.All type); + internal static CreateShader glCreateShader; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void CullFace(OpenTK.Graphics.ES20.All mode); + internal static CullFace glCullFace; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void DeleteBuffers(Int32 n, UInt32* buffers); + internal unsafe static DeleteBuffers glDeleteBuffers; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void DeleteFencesNV(UInt32**); + internal unsafe static DeleteFencesNV glDeleteFencesNV; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void DeleteFramebuffers(Int32 n, UInt32* framebuffers); + internal unsafe static DeleteFramebuffers glDeleteFramebuffers; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void DeletePerfMonitorsAMD(Int32 n, UInt32* monitors); + internal unsafe static DeletePerfMonitorsAMD glDeletePerfMonitorsAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DeleteProgram(UInt32 program); + internal static DeleteProgram glDeleteProgram; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void DeleteRenderbuffers(Int32 n, UInt32* renderbuffers); + internal unsafe static DeleteRenderbuffers glDeleteRenderbuffers; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DeleteShader(UInt32 shader); + internal static DeleteShader glDeleteShader; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void DeleteTextures(Int32 n, UInt32* textures); + internal unsafe static DeleteTextures glDeleteTextures; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DepthFunc(OpenTK.Graphics.ES20.All func); + internal static DepthFunc glDepthFunc; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DepthMask(bool flag); + internal static DepthMask glDepthMask; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DepthRangef(Single zNear, Single zFar); + internal static DepthRangef glDepthRangef; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DetachShader(UInt32 program, UInt32 shader); + internal static DetachShader glDetachShader; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Disable(OpenTK.Graphics.ES20.All cap); + internal static Disable glDisable; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DisableDriverControlQCOM(UInt32 driverControl); + internal static DisableDriverControlQCOM glDisableDriverControlQCOM; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DisableVertexAttribArray(UInt32 index); + internal static DisableVertexAttribArray glDisableVertexAttribArray; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DrawArrays(OpenTK.Graphics.ES20.All mode, Int32 first, Int32 count); + internal static DrawArrays glDrawArrays; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, IntPtr indices); + internal static DrawElements glDrawElements; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void EGLImageTargetRenderbufferStorageOES(OpenTK.Graphics.ES20.All target, GLeglImageOES image); + internal static EGLImageTargetRenderbufferStorageOES glEGLImageTargetRenderbufferStorageOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void EGLImageTargetTexture2DOES(OpenTK.Graphics.ES20.All target, GLeglImageOES image); + internal static EGLImageTargetTexture2DOES glEGLImageTargetTexture2DOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Enable(OpenTK.Graphics.ES20.All cap); + internal static Enable glEnable; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void EnableDriverControlQCOM(UInt32 driverControl); + internal static EnableDriverControlQCOM glEnableDriverControlQCOM; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void EnableVertexAttribArray(UInt32 index); + internal static EnableVertexAttribArray glEnableVertexAttribArray; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void EndPerfMonitorAMD(UInt32 monitor); + internal static EndPerfMonitorAMD glEndPerfMonitorAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Finish(); + internal static Finish glFinish; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void FinishFenceNV(); + internal static FinishFenceNV glFinishFenceNV; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Flush(); + internal static Flush glFlush; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void FramebufferRenderbuffer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All renderbuffertarget, UInt32 renderbuffer); + internal static FramebufferRenderbuffer glFramebufferRenderbuffer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void FramebufferTexture2D(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All textarget, UInt32 texture, Int32 level); + internal static FramebufferTexture2D glFramebufferTexture2D; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void FramebufferTexture3DOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All textarget, UInt32 texture, Int32 level, Int32 zoffset); + internal static FramebufferTexture3DOES glFramebufferTexture3DOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void FrontFace(OpenTK.Graphics.ES20.All mode); + internal static FrontFace glFrontFace; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GenBuffers(Int32 n, UInt32* buffers); + internal unsafe static GenBuffers glGenBuffers; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void GenerateMipmap(OpenTK.Graphics.ES20.All target); + internal static GenerateMipmap glGenerateMipmap; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GenFencesNV(UInt32**); + internal unsafe static GenFencesNV glGenFencesNV; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GenFramebuffers(Int32 n, UInt32* framebuffers); + internal unsafe static GenFramebuffers glGenFramebuffers; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GenPerfMonitorsAMD(Int32 n, UInt32* monitors); + internal unsafe static GenPerfMonitorsAMD glGenPerfMonitorsAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GenRenderbuffers(Int32 n, UInt32* renderbuffers); + internal unsafe static GenRenderbuffers glGenRenderbuffers; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GenTextures(Int32 n, UInt32* textures); + internal unsafe static GenTextures glGenTextures; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name); + internal unsafe static GetActiveAttrib glGetActiveAttrib; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name); + internal unsafe static GetActiveUniform glGetActiveUniform; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetAttachedShaders(UInt32 program, Int32 maxcount, Int32* count, UInt32* shaders); + internal unsafe static GetAttachedShaders glGetAttachedShaders; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate int GetAttribLocation(UInt32 program, String name); + internal static GetAttribLocation glGetAttribLocation; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetBooleanv(OpenTK.Graphics.ES20.All pname, bool* @params); + internal unsafe static GetBooleanv glGetBooleanv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetBufferParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal unsafe static GetBufferParameteriv glGetBufferParameteriv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void GetBufferPointervOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, IntPtr @params); + internal static GetBufferPointervOES glGetBufferPointervOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetDriverControlsQCOM(Int32* num, Int32 size, UInt32* driverControls); + internal unsafe static GetDriverControlsQCOM glGetDriverControlsQCOM; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, Int32* length, String driverControlString); + internal unsafe static GetDriverControlStringQCOM glGetDriverControlStringQCOM; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate OpenTK.Graphics.ES20.All GetError(); + internal static GetError glGetError; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetFenceivNV(Int32**); + internal unsafe static GetFenceivNV glGetFenceivNV; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetFloatv(OpenTK.Graphics.ES20.All pname, Single* @params); + internal unsafe static GetFloatv glGetFloatv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetFramebufferAttachmentParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal unsafe static GetFramebufferAttachmentParameteriv glGetFramebufferAttachmentParameteriv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetIntegerv(OpenTK.Graphics.ES20.All pname, Int32* @params); + internal unsafe static GetIntegerv glGetIntegerv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetPerfMonitorCounterDataAMD(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, UInt32* data, Int32* bytesWritten); + internal unsafe static GetPerfMonitorCounterDataAMD glGetPerfMonitorCounterDataAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void GetPerfMonitorCounterInfoAMD(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, IntPtr data); + internal static GetPerfMonitorCounterInfoAMD glGetPerfMonitorCounterInfoAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetPerfMonitorCountersAMD(UInt32 group, Int32* numCounters, Int32* maxActiveCounters, Int32 counterSize, UInt32* counters); + internal unsafe static GetPerfMonitorCountersAMD glGetPerfMonitorCountersAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetPerfMonitorCounterStringAMD(UInt32 group, UInt32 counter, Int32 bufSize, Int32* length, String counterString); + internal unsafe static GetPerfMonitorCounterStringAMD glGetPerfMonitorCounterStringAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetPerfMonitorGroupsAMD(Int32* numGroups, Int32 groupsSize, UInt32* groups); + internal unsafe static GetPerfMonitorGroupsAMD glGetPerfMonitorGroupsAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetPerfMonitorGroupStringAMD(UInt32 group, Int32 bufSize, Int32* length, String groupString); + internal unsafe static GetPerfMonitorGroupStringAMD glGetPerfMonitorGroupStringAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetProgramBinaryOES(UInt32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, IntPtr binary); + internal unsafe static GetProgramBinaryOES glGetProgramBinaryOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetProgramInfoLog(UInt32 program, Int32 bufsize, Int32* length, String infolog); + internal unsafe static GetProgramInfoLog glGetProgramInfoLog; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetProgramiv(UInt32 program, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal unsafe static GetProgramiv glGetProgramiv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetRenderbufferParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal unsafe static GetRenderbufferParameteriv glGetRenderbufferParameteriv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetShaderInfoLog(UInt32 shader, Int32 bufsize, Int32* length, String infolog); + internal unsafe static GetShaderInfoLog glGetShaderInfoLog; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetShaderiv(UInt32 shader, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal unsafe static GetShaderiv glGetShaderiv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.All shadertype, OpenTK.Graphics.ES20.All precisiontype, Int32* range, Int32* precision); + internal unsafe static GetShaderPrecisionFormat glGetShaderPrecisionFormat; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetShaderSource(UInt32 shader, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder source); + internal unsafe static GetShaderSource glGetShaderSource; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate IntPtr GetString(OpenTK.Graphics.ES20.All name); + internal unsafe static GetString glGetString; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetTexParameterfv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single* @params); + internal unsafe static GetTexParameterfv glGetTexParameterfv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetTexParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal unsafe static GetTexParameteriv glGetTexParameteriv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetUniformfv(UInt32 program, Int32 location, Single* @params); + internal unsafe static GetUniformfv glGetUniformfv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetUniformiv(UInt32 program, Int32 location, Int32* @params); + internal unsafe static GetUniformiv glGetUniformiv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate int GetUniformLocation(UInt32 program, String name); + internal static GetUniformLocation glGetUniformLocation; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetVertexAttribfv(UInt32 index, OpenTK.Graphics.ES20.All pname, Single* @params); + internal unsafe static GetVertexAttribfv glGetVertexAttribfv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void GetVertexAttribiv(UInt32 index, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal unsafe static GetVertexAttribiv glGetVertexAttribiv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void GetVertexAttribPointerv(UInt32 index, OpenTK.Graphics.ES20.All pname, IntPtr pointer); + internal static GetVertexAttribPointerv glGetVertexAttribPointerv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Hint(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All mode); + internal static Hint glHint; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate bool IsBuffer(UInt32 buffer); + internal static IsBuffer glIsBuffer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate bool IsEnabled(OpenTK.Graphics.ES20.All cap); + internal static IsEnabled glIsEnabled; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate bool IsFenceNV(); + internal static IsFenceNV glIsFenceNV; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate bool IsFramebuffer(UInt32 framebuffer); + internal static IsFramebuffer glIsFramebuffer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate bool IsProgram(UInt32 program); + internal static IsProgram glIsProgram; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate bool IsRenderbuffer(UInt32 renderbuffer); + internal static IsRenderbuffer glIsRenderbuffer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate bool IsShader(UInt32 shader); + internal static IsShader glIsShader; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate bool IsTexture(UInt32 texture); + internal static IsTexture glIsTexture; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void LineWidth(Single width); + internal static LineWidth glLineWidth; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void LinkProgram(UInt32 program); + internal static LinkProgram glLinkProgram; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate IntPtr MapBufferOES(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All access); + internal unsafe static MapBufferOES glMapBufferOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PixelStorei(OpenTK.Graphics.ES20.All pname, Int32 param); + internal static PixelStorei glPixelStorei; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void PolygonOffset(Single factor, Single units); + internal static PolygonOffset glPolygonOffset; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ProgramBinaryOES(UInt32 program, OpenTK.Graphics.ES20.All binaryFormat, IntPtr binary, Int32 length); + internal static ProgramBinaryOES glProgramBinaryOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); + internal static ReadPixels glReadPixels; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ReleaseShaderCompiler(); + internal static ReleaseShaderCompiler glReleaseShaderCompiler; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void RenderbufferStorage(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height); + internal static RenderbufferStorage glRenderbufferStorage; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void SampleCoverage(Single value, bool invert); + internal static SampleCoverage glSampleCoverage; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Scissor(Int32 x, Int32 y, Int32 width, Int32 height); + internal static Scissor glScissor; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void SelectPerfMonitorCountersAMD(UInt32 monitor, bool enable, UInt32 group, Int32 numCounters, UInt32* countersList); + internal unsafe static SelectPerfMonitorCountersAMD glSelectPerfMonitorCountersAMD; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void SetFenceNV(); + internal static SetFenceNV glSetFenceNV; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length); + internal unsafe static ShaderBinary glShaderBinary; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void ShaderSource(UInt32 shader, Int32 count, String[] @string, Int32* length); + internal unsafe static ShaderSource glShaderSource; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void StencilFunc(OpenTK.Graphics.ES20.All func, Int32 @ref, UInt32 mask); + internal static StencilFunc glStencilFunc; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void StencilFuncSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All func, Int32 @ref, UInt32 mask); + internal static StencilFuncSeparate glStencilFuncSeparate; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void StencilMask(UInt32 mask); + internal static StencilMask glStencilMask; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void StencilMaskSeparate(OpenTK.Graphics.ES20.All face, UInt32 mask); + internal static StencilMaskSeparate glStencilMaskSeparate; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void StencilOp(OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass); + internal static StencilOp glStencilOp; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void StencilOpSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass); + internal static StencilOpSeparate glStencilOpSeparate; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate bool TestFenceNV(); + internal static TestFenceNV glTestFenceNV; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); + internal static TexImage2D glTexImage2D; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); + internal static TexImage3DOES glTexImage3DOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexParameterf(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single param); + internal static TexParameterf glTexParameterf; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void TexParameterfv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single* @params); + internal unsafe static TexParameterfv glTexParameterfv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexParameteri(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32 param); + internal static TexParameteri glTexParameteri; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void TexParameteriv(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params); + internal unsafe static TexParameteriv glTexParameteriv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); + internal static TexSubImage2D glTexSubImage2D; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void TexSubImage3DOES(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels); + internal static TexSubImage3DOES glTexSubImage3DOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Uniform1f(Int32 location, Single x); + internal static Uniform1f glUniform1f; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void Uniform1fv(Int32 location, Int32 count, Single* v); + internal unsafe static Uniform1fv glUniform1fv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Uniform1i(Int32 location, Int32 x); + internal static Uniform1i glUniform1i; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void Uniform1iv(Int32 location, Int32 count, Int32* v); + internal unsafe static Uniform1iv glUniform1iv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Uniform2f(Int32 location, Single x, Single y); + internal static Uniform2f glUniform2f; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void Uniform2fv(Int32 location, Int32 count, Single* v); + internal unsafe static Uniform2fv glUniform2fv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Uniform2i(Int32 location, Int32 x, Int32 y); + internal static Uniform2i glUniform2i; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void Uniform2iv(Int32 location, Int32 count, Int32* v); + internal unsafe static Uniform2iv glUniform2iv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Uniform3f(Int32 location, Single x, Single y, Single z); + internal static Uniform3f glUniform3f; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void Uniform3fv(Int32 location, Int32 count, Single* v); + internal unsafe static Uniform3fv glUniform3fv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Uniform3i(Int32 location, Int32 x, Int32 y, Int32 z); + internal static Uniform3i glUniform3i; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void Uniform3iv(Int32 location, Int32 count, Int32* v); + internal unsafe static Uniform3iv glUniform3iv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Uniform4f(Int32 location, Single x, Single y, Single z, Single w); + internal static Uniform4f glUniform4f; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void Uniform4fv(Int32 location, Int32 count, Single* v); + internal unsafe static Uniform4fv glUniform4fv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Uniform4i(Int32 location, Int32 x, Int32 y, Int32 z, Int32 w); + internal static Uniform4i glUniform4i; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void Uniform4iv(Int32 location, Int32 count, Int32* v); + internal unsafe static Uniform4iv glUniform4iv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void UniformMatrix2fv(Int32 location, Int32 count, bool transpose, Single* value); + internal unsafe static UniformMatrix2fv glUniformMatrix2fv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void UniformMatrix3fv(Int32 location, Int32 count, bool transpose, Single* value); + internal unsafe static UniformMatrix3fv glUniformMatrix3fv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void UniformMatrix4fv(Int32 location, Int32 count, bool transpose, Single* value); + internal unsafe static UniformMatrix4fv glUniformMatrix4fv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate bool UnmapBufferOES(OpenTK.Graphics.ES20.All target); + internal static UnmapBufferOES glUnmapBufferOES; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void UseProgram(UInt32 program); + internal static UseProgram glUseProgram; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void ValidateProgram(UInt32 program); + internal static ValidateProgram glValidateProgram; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void VertexAttrib1f(UInt32 indx, Single x); + internal static VertexAttrib1f glVertexAttrib1f; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void VertexAttrib1fv(UInt32 indx, Single* values); + internal unsafe static VertexAttrib1fv glVertexAttrib1fv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void VertexAttrib2f(UInt32 indx, Single x, Single y); + internal static VertexAttrib2f glVertexAttrib2f; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void VertexAttrib2fv(UInt32 indx, Single* values); + internal unsafe static VertexAttrib2fv glVertexAttrib2fv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void VertexAttrib3f(UInt32 indx, Single x, Single y, Single z); + internal static VertexAttrib3f glVertexAttrib3f; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void VertexAttrib3fv(UInt32 indx, Single* values); + internal unsafe static VertexAttrib3fv glVertexAttrib3fv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void VertexAttrib4f(UInt32 indx, Single x, Single y, Single z, Single w); + internal static VertexAttrib4f glVertexAttrib4f; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal unsafe delegate void VertexAttrib4fv(UInt32 indx, Single* values); + internal unsafe static VertexAttrib4fv glVertexAttrib4fv; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, IntPtr ptr); + internal static VertexAttribPointer glVertexAttribPointer; + [System.Security.SuppressUnmanagedCodeSecurity()] + internal delegate void Viewport(Int32 x, Int32 y, Int32 width, Int32 height); + internal static Viewport glViewport; + } + } +} diff --git a/Source/OpenTK/Graphics/ES20/ES.cs b/Source/OpenTK/Graphics/ES20/ES.cs index 824eb218..6f2eb3da 100644 --- a/Source/OpenTK/Graphics/ES20/ES.cs +++ b/Source/OpenTK/Graphics/ES20/ES.cs @@ -1,14370 +1,13384 @@ -#region License -// -// The Open Toolkit Library License -// -// Copyright (c) 2006 - 2009 the Open Toolkit library. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -// the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -// OTHER DEALINGS IN THE SOFTWARE. -// -#endregion - -namespace OpenTK.Graphics.ES20 -{ - using System; - using System.Runtime.InteropServices; - #pragma warning disable 3019 - #pragma warning disable 1591 - #pragma warning disable 1572 - #pragma warning disable 1573 - - static partial class ES - { - - - /// - /// Select active texture unit - /// - /// - /// - /// Specifies which texture unit to make active. The number of texture units is implementation dependent, but must be at least two. texture must be one of GL_TEXTURE, where i ranges from 0 to the larger of (GL_MAX_TEXTURE_COORDS - 1) and (GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS - 1). The initial value is GL_TEXTURE0. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glActiveTexture")] - public static - void ActiveTexture([In, Out] OpenTK.Graphics.ES20.All texture) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glActiveTexture((OpenTK.Graphics.ES20.All)texture); - #if DEBUG - } - #endif - } - - - /// - /// Attaches a shader object to a program object - /// - /// - /// - /// Specifies the program object to which a shader object will be attached. - /// - /// - /// - /// - /// Specifies the shader object that is to be attached. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glAttachShader")] - public static - void AttachShader([In, Out] Int32 program, [In, Out] Int32 shader) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glAttachShader((UInt32)program, (UInt32)shader); - #if DEBUG - } - #endif - } - - - /// - /// Attaches a shader object to a program object - /// - /// - /// - /// Specifies the program object to which a shader object will be attached. - /// - /// - /// - /// - /// Specifies the shader object that is to be attached. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glAttachShader")] - public static - void AttachShader([In, Out] UInt32 program, [In, Out] UInt32 shader) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glAttachShader((UInt32)program, (UInt32)shader); - #if DEBUG - } - #endif - } - - - /// - /// Associates a generic vertex attribute index with a named attribute variable - /// - /// - /// - /// Specifies the handle of the program object in which the association is to be made. - /// - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be bound. - /// - /// - /// - /// - /// Specifies a null terminated string containing the name of the vertex shader attribute variable to which index is to be bound. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBindAttribLocation")] - public static - void BindAttribLocation([In, Out] Int32 program, [In, Out] Int32 index, [In, Out] String name) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBindAttribLocation((UInt32)program, (UInt32)index, (String)name); - #if DEBUG - } - #endif - } - - - /// - /// Associates a generic vertex attribute index with a named attribute variable - /// - /// - /// - /// Specifies the handle of the program object in which the association is to be made. - /// - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be bound. - /// - /// - /// - /// - /// Specifies a null terminated string containing the name of the vertex shader attribute variable to which index is to be bound. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBindAttribLocation")] - public static - void BindAttribLocation([In, Out] UInt32 program, [In, Out] UInt32 index, [In, Out] String name) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBindAttribLocation((UInt32)program, (UInt32)index, (String)name); - #if DEBUG - } - #endif - } - - - /// - /// Bind a named buffer object - /// - /// - /// - /// Specifies the target to which the buffer object is bound. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the name of a buffer object. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBindBuffer")] - public static - void BindBuffer([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 buffer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBindBuffer((OpenTK.Graphics.ES20.All)target, (UInt32)buffer); - #if DEBUG - } - #endif - } - - - /// - /// Bind a named buffer object - /// - /// - /// - /// Specifies the target to which the buffer object is bound. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the name of a buffer object. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBindBuffer")] - public static - void BindBuffer([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] UInt32 buffer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBindBuffer((OpenTK.Graphics.ES20.All)target, (UInt32)buffer); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBindFramebuffer")] - public static - void BindFramebuffer([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 framebuffer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBindFramebuffer((OpenTK.Graphics.ES20.All)target, (UInt32)framebuffer); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBindFramebuffer")] - public static - void BindFramebuffer([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] UInt32 framebuffer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBindFramebuffer((OpenTK.Graphics.ES20.All)target, (UInt32)framebuffer); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBindRenderbuffer")] - public static - void BindRenderbuffer([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 renderbuffer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBindRenderbuffer((OpenTK.Graphics.ES20.All)target, (UInt32)renderbuffer); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBindRenderbuffer")] - public static - void BindRenderbuffer([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] UInt32 renderbuffer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBindRenderbuffer((OpenTK.Graphics.ES20.All)target, (UInt32)renderbuffer); - #if DEBUG - } - #endif - } - - - /// - /// Bind a named texture to a texturing target - /// - /// - /// - /// Specifies the target to which the texture is bound. Must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the name of a texture. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBindTexture")] - public static - void BindTexture([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 texture) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBindTexture((OpenTK.Graphics.ES20.All)target, (UInt32)texture); - #if DEBUG - } - #endif - } - - - /// - /// Bind a named texture to a texturing target - /// - /// - /// - /// Specifies the target to which the texture is bound. Must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the name of a texture. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBindTexture")] - public static - void BindTexture([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] UInt32 texture) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBindTexture((OpenTK.Graphics.ES20.All)target, (UInt32)texture); - #if DEBUG - } - #endif - } - - - /// - /// Set the blend color - /// - /// - /// - /// specify the components of GL_BLEND_COLOR - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBlendColor")] - public static - void BlendColor([In, Out] Single red, [In, Out] Single green, [In, Out] Single blue, [In, Out] Single alpha) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBlendColor((Single)red, (Single)green, (Single)blue, (Single)alpha); - #if DEBUG - } - #endif - } - - - /// - /// Specify the equation used for both the RGB blend equation and the Alpha blend equation - /// - /// - /// - /// specifies how source and destination colors are combined. It must be GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT, GL_MIN, GL_MAX. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBlendEquation")] - public static - void BlendEquation([In, Out] OpenTK.Graphics.ES20.All mode) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBlendEquation((OpenTK.Graphics.ES20.All)mode); - #if DEBUG - } - #endif - } - - - /// - /// Set the RGB blend equation and the alpha blend equation separately - /// - /// - /// - /// specifies the RGB blend equation, how the red, green, and blue components of the source and destination colors are combined. It must be GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT, GL_MIN, GL_MAX. - /// - /// - /// - /// - /// specifies the alpha blend equation, how the alpha component of the source and destination colors are combined. It must be GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT, GL_MIN, GL_MAX. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBlendEquationSeparate")] - public static - void BlendEquationSeparate([In, Out] OpenTK.Graphics.ES20.All modeRGB, [In, Out] OpenTK.Graphics.ES20.All modeAlpha) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBlendEquationSeparate((OpenTK.Graphics.ES20.All)modeRGB, (OpenTK.Graphics.ES20.All)modeAlpha); - #if DEBUG - } - #endif - } - - - /// - /// Specify pixel arithmetic - /// - /// - /// - /// Specifies how the red, green, blue, and alpha source blending factors are computed. The following symbolic constants are accepted: GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA, GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, GL_ONE_MINUS_CONSTANT_ALPHA, and GL_SRC_ALPHA_SATURATE. The initial value is GL_ONE. - /// - /// - /// - /// - /// Specifies how the red, green, blue, and alpha destination blending factors are computed. The following symbolic constants are accepted: GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA. GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, and GL_ONE_MINUS_CONSTANT_ALPHA. The initial value is GL_ZERO. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBlendFunc")] - public static - void BlendFunc([In, Out] OpenTK.Graphics.ES20.All sfactor, [In, Out] OpenTK.Graphics.ES20.All dfactor) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBlendFunc((OpenTK.Graphics.ES20.All)sfactor, (OpenTK.Graphics.ES20.All)dfactor); - #if DEBUG - } - #endif - } - - - /// - /// Specify pixel arithmetic for RGB and alpha components separately - /// - /// - /// - /// Specifies how the red, green, and blue blending factors are computed. The following symbolic constants are accepted: GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA, GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, GL_ONE_MINUS_CONSTANT_ALPHA, and GL_SRC_ALPHA_SATURATE. The initial value is GL_ONE. - /// - /// - /// - /// - /// Specifies how the red, green, and blue destination blending factors are computed. The following symbolic constants are accepted: GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA. GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, and GL_ONE_MINUS_CONSTANT_ALPHA. The initial value is GL_ZERO. - /// - /// - /// - /// - /// Specified how the alpha source blending factor is computed. The same symbolic constants are accepted as for srcRGB. The initial value is GL_ONE. - /// - /// - /// - /// - /// Specified how the alpha destination blending factor is computed. The same symbolic constants are accepted as for dstRGB. The initial value is GL_ZERO. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBlendFuncSeparate")] - public static - void BlendFuncSeparate([In, Out] OpenTK.Graphics.ES20.All srcRGB, [In, Out] OpenTK.Graphics.ES20.All dstRGB, [In, Out] OpenTK.Graphics.ES20.All srcAlpha, [In, Out] OpenTK.Graphics.ES20.All dstAlpha) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBlendFuncSeparate((OpenTK.Graphics.ES20.All)srcRGB, (OpenTK.Graphics.ES20.All)dstRGB, (OpenTK.Graphics.ES20.All)srcAlpha, (OpenTK.Graphics.ES20.All)dstAlpha); - #if DEBUG - } - #endif - } - - - /// - /// Creates and initializes a buffer object's data store - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the size in bytes of the buffer object's new data store. - /// - /// - /// - /// - /// Specifies a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied. - /// - /// - /// - /// - /// Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBufferData")] - public static - void BufferData([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] IntPtr size, [In, Out] T2[,] data, [In, Out] OpenTK.Graphics.ES20.All usage) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferData((OpenTK.Graphics.ES20.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.All)usage); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Creates and initializes a buffer object's data store - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the size in bytes of the buffer object's new data store. - /// - /// - /// - /// - /// Specifies a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied. - /// - /// - /// - /// - /// Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBufferData")] - public static - void BufferData([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] IntPtr size, [In, Out] T2[,,] data, [In, Out] OpenTK.Graphics.ES20.All usage) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferData((OpenTK.Graphics.ES20.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.All)usage); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Creates and initializes a buffer object's data store - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the size in bytes of the buffer object's new data store. - /// - /// - /// - /// - /// Specifies a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied. - /// - /// - /// - /// - /// Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBufferData")] - public static - void BufferData([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] IntPtr size, [In, Out] T2[] data, [In, Out] OpenTK.Graphics.ES20.All usage) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferData((OpenTK.Graphics.ES20.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.All)usage); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Creates and initializes a buffer object's data store - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the size in bytes of the buffer object's new data store. - /// - /// - /// - /// - /// Specifies a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied. - /// - /// - /// - /// - /// Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBufferData")] - public static - void BufferData([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] IntPtr size, [In, Out] IntPtr data, [In, Out] OpenTK.Graphics.ES20.All usage) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBufferData((OpenTK.Graphics.ES20.All)target, (IntPtr)size, (IntPtr)data, (OpenTK.Graphics.ES20.All)usage); - #if DEBUG - } - #endif - } - - - /// - /// Creates and initializes a buffer object's data store - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the size in bytes of the buffer object's new data store. - /// - /// - /// - /// - /// Specifies a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied. - /// - /// - /// - /// - /// Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBufferData")] - public static - void BufferData([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] IntPtr size, [In, Out] ref T2 data, [In, Out] OpenTK.Graphics.ES20.All usage) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferData((OpenTK.Graphics.ES20.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.All)usage); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Updates a subset of a buffer object's data store - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. - /// - /// - /// - /// - /// Specifies the size in bytes of the data store region being replaced. - /// - /// - /// - /// - /// Specifies a pointer to the new data that will be copied into the data store. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBufferSubData")] - public static - void BufferSubData([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] IntPtr offset, [In, Out] IntPtr size, [In, Out] T3[,] data) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferSubData((OpenTK.Graphics.ES20.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Updates a subset of a buffer object's data store - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. - /// - /// - /// - /// - /// Specifies the size in bytes of the data store region being replaced. - /// - /// - /// - /// - /// Specifies a pointer to the new data that will be copied into the data store. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBufferSubData")] - public static - void BufferSubData([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] IntPtr offset, [In, Out] IntPtr size, [In, Out] T3[,,] data) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferSubData((OpenTK.Graphics.ES20.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Updates a subset of a buffer object's data store - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. - /// - /// - /// - /// - /// Specifies the size in bytes of the data store region being replaced. - /// - /// - /// - /// - /// Specifies a pointer to the new data that will be copied into the data store. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBufferSubData")] - public static - void BufferSubData([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] IntPtr offset, [In, Out] IntPtr size, [In, Out] T3[] data) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferSubData((OpenTK.Graphics.ES20.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Updates a subset of a buffer object's data store - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. - /// - /// - /// - /// - /// Specifies the size in bytes of the data store region being replaced. - /// - /// - /// - /// - /// Specifies a pointer to the new data that will be copied into the data store. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBufferSubData")] - public static - void BufferSubData([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] IntPtr offset, [In, Out] IntPtr size, [In, Out] IntPtr data) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glBufferSubData((OpenTK.Graphics.ES20.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data); - #if DEBUG - } - #endif - } - - - /// - /// Updates a subset of a buffer object's data store - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. - /// - /// - /// - /// - /// Specifies the size in bytes of the data store region being replaced. - /// - /// - /// - /// - /// Specifies a pointer to the new data that will be copied into the data store. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glBufferSubData")] - public static - void BufferSubData([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] IntPtr offset, [In, Out] IntPtr size, [In, Out] ref T3 data) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glBufferSubData((OpenTK.Graphics.ES20.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glCheckFramebufferStatus")] - public static - OpenTK.Graphics.ES20.All CheckFramebufferStatus([In, Out] OpenTK.Graphics.ES20.All target) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glCheckFramebufferStatus((OpenTK.Graphics.ES20.All)target); - #if DEBUG - } - #endif - } - - - /// - /// Clear buffers to preset values - /// - /// - /// - /// Bitwise OR of masks that indicate the buffers to be cleared. The four masks are GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_ACCUM_BUFFER_BIT, and GL_STENCIL_BUFFER_BIT. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glClear")] - public static - void Clear([In, Out] Int32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClear((UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Clear buffers to preset values - /// - /// - /// - /// Bitwise OR of masks that indicate the buffers to be cleared. The four masks are GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_ACCUM_BUFFER_BIT, and GL_STENCIL_BUFFER_BIT. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glClear")] - public static - void Clear([In, Out] UInt32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClear((UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Specify clear values for the color buffers - /// - /// - /// - /// Specify the red, green, blue, and alpha values used when the color buffers are cleared. The initial values are all 0. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glClearColor")] - public static - void ClearColor([In, Out] Single red, [In, Out] Single green, [In, Out] Single blue, [In, Out] Single alpha) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClearColor((Single)red, (Single)green, (Single)blue, (Single)alpha); - #if DEBUG - } - #endif - } - - - /// - /// Specify the clear value for the depth buffer - /// - /// - /// - /// Specifies the depth value used when the depth buffer is cleared. The initial value is 1. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glClearDepthf")] - public static - void ClearDepth([In, Out] Single depth) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClearDepthf((Single)depth); - #if DEBUG - } - #endif - } - - - /// - /// Specify the clear value for the stencil buffer - /// - /// - /// - /// Specifies the index used when the stencil buffer is cleared. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glClearStencil")] - public static - void ClearStencil([In, Out] Int32 s) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glClearStencil((Int32)s); - #if DEBUG - } - #endif - } - - - /// - /// Enable and disable writing of frame buffer color components - /// - /// - /// - /// Specify whether red, green, blue, and alpha can or cannot be written into the frame buffer. The initial values are all GL_TRUE, indicating that the color components can be written. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glColorMask")] - public static - void ColorMask([In, Out] bool red, [In, Out] bool green, [In, Out] bool blue, [In, Out] bool alpha) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glColorMask((bool)red, (bool)green, (bool)blue, (bool)alpha); - #if DEBUG - } - #endif - } - - - /// - /// Compiles a shader object - /// - /// - /// - /// Specifies the shader object to be compiled. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glCompileShader")] - public static - void CompileShader([In, Out] Int32 shader) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glCompileShader((UInt32)shader); - #if DEBUG - } - #endif - } - - - /// - /// Compiles a shader object - /// - /// - /// - /// Specifies the shader object to be compiled. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glCompileShader")] - public static - void CompileShader([In, Out] UInt32 shader) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glCompileShader((UInt32)shader); - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glCompressedTexImage2D")] - public static - void CompressedTexImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES20.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] Int32 imageSize, [In, Out] T7[,] data) - where T7 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glCompressedTexImage2D")] - public static - void CompressedTexImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES20.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] Int32 imageSize, [In, Out] T7[,,] data) - where T7 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glCompressedTexImage2D")] - public static - void CompressedTexImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES20.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] Int32 imageSize, [In, Out] T7[] data) - where T7 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glCompressedTexImage2D")] - public static - void CompressedTexImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES20.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] Int32 imageSize, [In, Out] IntPtr data) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data); - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glCompressedTexImage2D")] - public static - void CompressedTexImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES20.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] Int32 imageSize, [In, Out] ref T7 data) - where T7 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glCompressedTexSubImage2D")] - public static - void CompressedTexSubImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] Int32 imageSize, [In, Out] T8[,] data) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glCompressedTexSubImage2D")] - public static - void CompressedTexSubImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] Int32 imageSize, [In, Out] T8[,,] data) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glCompressedTexSubImage2D")] - public static - void CompressedTexSubImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] Int32 imageSize, [In, Out] T8[] data) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glCompressedTexSubImage2D")] - public static - void CompressedTexSubImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] Int32 imageSize, [In, Out] IntPtr data) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data); - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage in a compressed format - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the compressed image data stored at address data. - /// - /// - /// - /// - /// Specifies the number of unsigned bytes of image data starting at the address specified by data. - /// - /// - /// - /// - /// Specifies a pointer to the compressed image data in memory. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glCompressedTexSubImage2D")] - public static - void CompressedTexSubImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] Int32 imageSize, [In, Out] ref T8 data) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); - try - { - Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); - } - finally - { - data_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Copy pixels into a 2D texture image - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the internal format of the texture. Must be one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_RGB, GL_R3_G3_B2, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. - /// - /// - /// - /// - /// Specify the window coordinates of the lower left corner of the rectangular region of pixels to be copied. - /// - /// - /// - /// - /// Specifies the width of the texture image. Must be 0 or 2 sup n + 2 ( border ) for some integer . - /// - /// - /// - /// - /// Specifies the height of the texture image. Must be 0 or 2 sup m + 2 ( border ) for some integer . - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glCopyTexImage2D")] - public static - void CopyTexImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES20.All internalformat, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glCopyTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)x, (Int32)y, (Int32)width, (Int32)height, (Int32)border); - #if DEBUG - } - #endif - } - - - /// - /// Copy a two-dimensional texture subimage - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specify the window coordinates of the lower left corner of the rectangular region of pixels to be copied. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glCopyTexSubImage2D")] - public static - void CopyTexSubImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glCopyTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)x, (Int32)y, (Int32)width, (Int32)height); - #if DEBUG - } - #endif - } - - - /// - /// Creates a program object - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glCreateProgram")] - public static - Int32 CreateProgram() - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glCreateProgram(); - #if DEBUG - } - #endif - } - - - /// - /// Creates a shader object - /// - /// - /// - /// Specifies the type of shader to be created. Must be either GL_VERTEX_SHADER or GL_FRAGMENT_SHADER. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glCreateShader")] - public static - Int32 CreateShader([In, Out] OpenTK.Graphics.ES20.All type) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glCreateShader((OpenTK.Graphics.ES20.All)type); - #if DEBUG - } - #endif - } - - - /// - /// Specify whether front- or back-facing facets can be culled - /// - /// - /// - /// Specifies whether front- or back-facing facets are candidates for culling. Symbolic constants GL_FRONT, GL_BACK, and GL_FRONT_AND_BACK are accepted. The initial value is GL_BACK. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glCullFace")] - public static - void CullFace([In, Out] OpenTK.Graphics.ES20.All mode) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glCullFace((OpenTK.Graphics.ES20.All)mode); - #if DEBUG - } - #endif - } - - - /// - /// Delete named buffer objects - /// - /// - /// - /// Specifies the number of buffer objects to be deleted. - /// - /// - /// - /// - /// Specifies an array of buffer objects to be deleted. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteBuffers")] - public static - void DeleteBuffers([In, Out] Int32 n, [In, Out] ref Int32 buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* buffers_ptr = &buffers) - { - Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Delete named buffer objects - /// - /// - /// - /// Specifies the number of buffer objects to be deleted. - /// - /// - /// - /// - /// Specifies an array of buffer objects to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteBuffers")] - public static - unsafe void DeleteBuffers([In, Out] Int32 n, [In, Out] UInt32* buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers); - #if DEBUG - } - #endif - } - - - /// - /// Delete named buffer objects - /// - /// - /// - /// Specifies the number of buffer objects to be deleted. - /// - /// - /// - /// - /// Specifies an array of buffer objects to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteBuffers")] - public static - unsafe void DeleteBuffers([In, Out] Int32 n, [In, Out] Int32* buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers); - #if DEBUG - } - #endif - } - - - /// - /// Delete named buffer objects - /// - /// - /// - /// Specifies the number of buffer objects to be deleted. - /// - /// - /// - /// - /// Specifies an array of buffer objects to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteBuffers")] - public static - void DeleteBuffers([In, Out] Int32 n, [In, Out] UInt32[] buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* buffers_ptr = buffers) - { - Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Delete named buffer objects - /// - /// - /// - /// Specifies the number of buffer objects to be deleted. - /// - /// - /// - /// - /// Specifies an array of buffer objects to be deleted. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteBuffers")] - public static - void DeleteBuffers([In, Out] Int32 n, [In, Out] Int32[] buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* buffers_ptr = buffers) - { - Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Delete named buffer objects - /// - /// - /// - /// Specifies the number of buffer objects to be deleted. - /// - /// - /// - /// - /// Specifies an array of buffer objects to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteBuffers")] - public static - void DeleteBuffers([In, Out] Int32 n, [In, Out] ref UInt32 buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* buffers_ptr = &buffers) - { - Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteFramebuffers")] - public static - void DeleteFramebuffers([In, Out] Int32 n, [In, Out] ref Int32 framebuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* framebuffers_ptr = &framebuffers) - { - Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteFramebuffers")] - public static - unsafe void DeleteFramebuffers([In, Out] Int32 n, [In, Out] UInt32* framebuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteFramebuffers")] - public static - unsafe void DeleteFramebuffers([In, Out] Int32 n, [In, Out] Int32* framebuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteFramebuffers")] - public static - void DeleteFramebuffers([In, Out] Int32 n, [In, Out] UInt32[] framebuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* framebuffers_ptr = framebuffers) - { - Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteFramebuffers")] - public static - void DeleteFramebuffers([In, Out] Int32 n, [In, Out] Int32[] framebuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* framebuffers_ptr = framebuffers) - { - Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteFramebuffers")] - public static - void DeleteFramebuffers([In, Out] Int32 n, [In, Out] ref UInt32 framebuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* framebuffers_ptr = &framebuffers) - { - Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Deletes a program object - /// - /// - /// - /// Specifies the program object to be deleted. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteProgram")] - public static - void DeleteProgram([In, Out] Int32 program) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDeleteProgram((UInt32)program); - #if DEBUG - } - #endif - } - - - /// - /// Deletes a program object - /// - /// - /// - /// Specifies the program object to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteProgram")] - public static - void DeleteProgram([In, Out] UInt32 program) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDeleteProgram((UInt32)program); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteRenderbuffers")] - public static - void DeleteRenderbuffers([In, Out] Int32 n, [In, Out] ref Int32 renderbuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* renderbuffers_ptr = &renderbuffers) - { - Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteRenderbuffers")] - public static - unsafe void DeleteRenderbuffers([In, Out] Int32 n, [In, Out] UInt32* renderbuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteRenderbuffers")] - public static - unsafe void DeleteRenderbuffers([In, Out] Int32 n, [In, Out] Int32* renderbuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteRenderbuffers")] - public static - void DeleteRenderbuffers([In, Out] Int32 n, [In, Out] UInt32[] renderbuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* renderbuffers_ptr = renderbuffers) - { - Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteRenderbuffers")] - public static - void DeleteRenderbuffers([In, Out] Int32 n, [In, Out] Int32[] renderbuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* renderbuffers_ptr = renderbuffers) - { - Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteRenderbuffers")] - public static - void DeleteRenderbuffers([In, Out] Int32 n, [In, Out] ref UInt32 renderbuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* renderbuffers_ptr = &renderbuffers) - { - Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Deletes a shader object - /// - /// - /// - /// Specifies the shader object to be deleted. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteShader")] - public static - void DeleteShader([In, Out] Int32 shader) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDeleteShader((UInt32)shader); - #if DEBUG - } - #endif - } - - - /// - /// Deletes a shader object - /// - /// - /// - /// Specifies the shader object to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteShader")] - public static - void DeleteShader([In, Out] UInt32 shader) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDeleteShader((UInt32)shader); - #if DEBUG - } - #endif - } - - - /// - /// Delete named textures - /// - /// - /// - /// Specifies the number of textures to be deleted. - /// - /// - /// - /// - /// Specifies an array of textures to be deleted. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteTextures")] - public static - void DeleteTextures([In, Out] Int32 n, [In, Out] ref Int32 textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* textures_ptr = &textures) - { - Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Delete named textures - /// - /// - /// - /// Specifies the number of textures to be deleted. - /// - /// - /// - /// - /// Specifies an array of textures to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteTextures")] - public static - unsafe void DeleteTextures([In, Out] Int32 n, [In, Out] UInt32* textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDeleteTextures((Int32)n, (UInt32*)textures); - #if DEBUG - } - #endif - } - - - /// - /// Delete named textures - /// - /// - /// - /// Specifies the number of textures to be deleted. - /// - /// - /// - /// - /// Specifies an array of textures to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteTextures")] - public static - unsafe void DeleteTextures([In, Out] Int32 n, [In, Out] Int32* textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDeleteTextures((Int32)n, (UInt32*)textures); - #if DEBUG - } - #endif - } - - - /// - /// Delete named textures - /// - /// - /// - /// Specifies the number of textures to be deleted. - /// - /// - /// - /// - /// Specifies an array of textures to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteTextures")] - public static - void DeleteTextures([In, Out] Int32 n, [In, Out] UInt32[] textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* textures_ptr = textures) - { - Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Delete named textures - /// - /// - /// - /// Specifies the number of textures to be deleted. - /// - /// - /// - /// - /// Specifies an array of textures to be deleted. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteTextures")] - public static - void DeleteTextures([In, Out] Int32 n, [In, Out] Int32[] textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* textures_ptr = textures) - { - Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Delete named textures - /// - /// - /// - /// Specifies the number of textures to be deleted. - /// - /// - /// - /// - /// Specifies an array of textures to be deleted. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDeleteTextures")] - public static - void DeleteTextures([In, Out] Int32 n, [In, Out] ref UInt32 textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* textures_ptr = &textures) - { - Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify the value used for depth buffer comparisons - /// - /// - /// - /// Specifies the depth comparison function. Symbolic constants GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL, GL_GREATER, GL_NOTEQUAL, GL_GEQUAL, and GL_ALWAYS are accepted. The initial value is GL_LESS. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDepthFunc")] - public static - void DepthFunc([In, Out] OpenTK.Graphics.ES20.All func) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDepthFunc((OpenTK.Graphics.ES20.All)func); - #if DEBUG - } - #endif - } - - - /// - /// Enable or disable writing into the depth buffer - /// - /// - /// - /// Specifies whether the depth buffer is enabled for writing. If flag is GL_FALSE, depth buffer writing is disabled. Otherwise, it is enabled. Initially, depth buffer writing is enabled. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDepthMask")] - public static - void DepthMask([In, Out] bool flag) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDepthMask((bool)flag); - #if DEBUG - } - #endif - } - - - /// - /// Specify mapping of depth values from normalized device coordinates to window coordinates - /// - /// - /// - /// Specifies the mapping of the near clipping plane to window coordinates. The initial value is 0. - /// - /// - /// - /// - /// Specifies the mapping of the far clipping plane to window coordinates. The initial value is 1. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDepthRangef")] - public static - void DepthRange([In, Out] Single zNear, [In, Out] Single zFar) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDepthRangef((Single)zNear, (Single)zFar); - #if DEBUG - } - #endif - } - - - /// - /// Detaches a shader object from a program object to which it is attached - /// - /// - /// - /// Specifies the program object from which to detach the shader object. - /// - /// - /// - /// - /// Specifies the shader object to be detached. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDetachShader")] - public static - void DetachShader([In, Out] Int32 program, [In, Out] Int32 shader) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDetachShader((UInt32)program, (UInt32)shader); - #if DEBUG - } - #endif - } - - - /// - /// Detaches a shader object from a program object to which it is attached - /// - /// - /// - /// Specifies the program object from which to detach the shader object. - /// - /// - /// - /// - /// Specifies the shader object to be detached. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDetachShader")] - public static - void DetachShader([In, Out] UInt32 program, [In, Out] UInt32 shader) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDetachShader((UInt32)program, (UInt32)shader); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDisable")] - public static - void Disable([In, Out] OpenTK.Graphics.ES20.All cap) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDisable((OpenTK.Graphics.ES20.All)cap); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDisableVertexAttribArray")] - public static - void DisableVertexAttribArray([In, Out] Int32 index) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDisableVertexAttribArray((UInt32)index); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDisableVertexAttribArray")] - public static - void DisableVertexAttribArray([In, Out] UInt32 index) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDisableVertexAttribArray((UInt32)index); - #if DEBUG - } - #endif - } - - - /// - /// Render primitives from array data - /// - /// - /// - /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. - /// - /// - /// - /// - /// Specifies the starting index in the enabled arrays. - /// - /// - /// - /// - /// Specifies the number of indices to be rendered. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDrawArrays")] - public static - void DrawArrays([In, Out] OpenTK.Graphics.ES20.All mode, [In, Out] Int32 first, [In, Out] Int32 count) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDrawArrays((OpenTK.Graphics.ES20.All)mode, (Int32)first, (Int32)count); - #if DEBUG - } - #endif - } - - - /// - /// Render primitives from array data - /// - /// - /// - /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. - /// - /// - /// - /// - /// Specifies the number of elements to be rendered. - /// - /// - /// - /// - /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. - /// - /// - /// - /// - /// Specifies a pointer to the location where the indices are stored. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDrawElements")] - public static - void DrawElements([In, Out] OpenTK.Graphics.ES20.All mode, [In, Out] Int32 count, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] T3[,] indices) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElements((OpenTK.Graphics.ES20.All)mode, (Int32)count, (OpenTK.Graphics.ES20.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Render primitives from array data - /// - /// - /// - /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. - /// - /// - /// - /// - /// Specifies the number of elements to be rendered. - /// - /// - /// - /// - /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. - /// - /// - /// - /// - /// Specifies a pointer to the location where the indices are stored. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDrawElements")] - public static - void DrawElements([In, Out] OpenTK.Graphics.ES20.All mode, [In, Out] Int32 count, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] T3[,,] indices) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElements((OpenTK.Graphics.ES20.All)mode, (Int32)count, (OpenTK.Graphics.ES20.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Render primitives from array data - /// - /// - /// - /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. - /// - /// - /// - /// - /// Specifies the number of elements to be rendered. - /// - /// - /// - /// - /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. - /// - /// - /// - /// - /// Specifies a pointer to the location where the indices are stored. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDrawElements")] - public static - void DrawElements([In, Out] OpenTK.Graphics.ES20.All mode, [In, Out] Int32 count, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] T3[] indices) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElements((OpenTK.Graphics.ES20.All)mode, (Int32)count, (OpenTK.Graphics.ES20.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Render primitives from array data - /// - /// - /// - /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. - /// - /// - /// - /// - /// Specifies the number of elements to be rendered. - /// - /// - /// - /// - /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. - /// - /// - /// - /// - /// Specifies a pointer to the location where the indices are stored. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDrawElements")] - public static - void DrawElements([In, Out] OpenTK.Graphics.ES20.All mode, [In, Out] Int32 count, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] IntPtr indices) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glDrawElements((OpenTK.Graphics.ES20.All)mode, (Int32)count, (OpenTK.Graphics.ES20.All)type, (IntPtr)indices); - #if DEBUG - } - #endif - } - - - /// - /// Render primitives from array data - /// - /// - /// - /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. - /// - /// - /// - /// - /// Specifies the number of elements to be rendered. - /// - /// - /// - /// - /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. - /// - /// - /// - /// - /// Specifies a pointer to the location where the indices are stored. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glDrawElements")] - public static - void DrawElements([In, Out] OpenTK.Graphics.ES20.All mode, [In, Out] Int32 count, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] ref T3 indices) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); - try - { - Delegates.glDrawElements((OpenTK.Graphics.ES20.All)mode, (Int32)count, (OpenTK.Graphics.ES20.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); - } - finally - { - indices_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Enable or disable server-side GL capabilities - /// - /// - /// - /// Specifies a symbolic constant indicating a GL capability. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glEnable")] - public static - void Enable([In, Out] OpenTK.Graphics.ES20.All cap) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glEnable((OpenTK.Graphics.ES20.All)cap); - #if DEBUG - } - #endif - } - - - /// - /// Enable or disable a generic vertex attribute array - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be enabled or disabled. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glEnableVertexAttribArray")] - public static - void EnableVertexAttribArray([In, Out] Int32 index) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glEnableVertexAttribArray((UInt32)index); - #if DEBUG - } - #endif - } - - - /// - /// Enable or disable a generic vertex attribute array - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be enabled or disabled. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glEnableVertexAttribArray")] - public static - void EnableVertexAttribArray([In, Out] UInt32 index) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glEnableVertexAttribArray((UInt32)index); - #if DEBUG - } - #endif - } - - - /// - /// Block until all GL execution is complete - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glFinish")] - public static - void Finish() - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFinish(); - #if DEBUG - } - #endif - } - - - /// - /// Force execution of GL commands in finite time - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glFlush")] - public static - void Flush() - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFlush(); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glFramebufferRenderbuffer")] - public static - void FramebufferRenderbuffer([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All attachment, [In, Out] OpenTK.Graphics.ES20.All renderbuffertarget, [In, Out] Int32 renderbuffer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFramebufferRenderbuffer((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)renderbuffertarget, (UInt32)renderbuffer); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glFramebufferRenderbuffer")] - public static - void FramebufferRenderbuffer([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All attachment, [In, Out] OpenTK.Graphics.ES20.All renderbuffertarget, [In, Out] UInt32 renderbuffer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFramebufferRenderbuffer((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)renderbuffertarget, (UInt32)renderbuffer); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glFramebufferTexture2D")] - public static - void FramebufferTexture2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All attachment, [In, Out] OpenTK.Graphics.ES20.All textarget, [In, Out] Int32 texture, [In, Out] Int32 level) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFramebufferTexture2D((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)textarget, (UInt32)texture, (Int32)level); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glFramebufferTexture2D")] - public static - void FramebufferTexture2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All attachment, [In, Out] OpenTK.Graphics.ES20.All textarget, [In, Out] UInt32 texture, [In, Out] Int32 level) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFramebufferTexture2D((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)textarget, (UInt32)texture, (Int32)level); - #if DEBUG - } - #endif - } - - - /// - /// Define front- and back-facing polygons - /// - /// - /// - /// Specifies the orientation of front-facing polygons. GL_CW and GL_CCW are accepted. The initial value is GL_CCW. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glFrontFace")] - public static - void FrontFace([In, Out] OpenTK.Graphics.ES20.All mode) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glFrontFace((OpenTK.Graphics.ES20.All)mode); - #if DEBUG - } - #endif - } - - - /// - /// Generate buffer object names - /// - /// - /// - /// Specifies the number of buffer object names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated buffer object names are stored. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenBuffers")] - public static - void GenBuffers([In, Out] Int32 n, [In, Out] ref Int32 buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* buffers_ptr = &buffers) - { - Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Generate buffer object names - /// - /// - /// - /// Specifies the number of buffer object names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated buffer object names are stored. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenBuffers")] - public static - unsafe void GenBuffers([In, Out] Int32 n, [In, Out] UInt32* buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGenBuffers((Int32)n, (UInt32*)buffers); - #if DEBUG - } - #endif - } - - - /// - /// Generate buffer object names - /// - /// - /// - /// Specifies the number of buffer object names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated buffer object names are stored. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenBuffers")] - public static - unsafe void GenBuffers([In, Out] Int32 n, [In, Out] Int32* buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGenBuffers((Int32)n, (UInt32*)buffers); - #if DEBUG - } - #endif - } - - - /// - /// Generate buffer object names - /// - /// - /// - /// Specifies the number of buffer object names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated buffer object names are stored. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenBuffers")] - public static - void GenBuffers([In, Out] Int32 n, [In, Out] UInt32[] buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* buffers_ptr = buffers) - { - Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Generate buffer object names - /// - /// - /// - /// Specifies the number of buffer object names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated buffer object names are stored. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenBuffers")] - public static - void GenBuffers([In, Out] Int32 n, [In, Out] Int32[] buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* buffers_ptr = buffers) - { - Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Generate buffer object names - /// - /// - /// - /// Specifies the number of buffer object names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated buffer object names are stored. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenBuffers")] - public static - void GenBuffers([In, Out] Int32 n, [In, Out] ref UInt32 buffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* buffers_ptr = &buffers) - { - Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenerateMipmap")] - public static - void GenerateMipmap([In, Out] OpenTK.Graphics.ES20.All target) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGenerateMipmap((OpenTK.Graphics.ES20.All)target); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenFramebuffers")] - public static - void GenFramebuffers([In, Out] Int32 n, [In, Out] ref Int32 framebuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* framebuffers_ptr = &framebuffers) - { - Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenFramebuffers")] - public static - unsafe void GenFramebuffers([In, Out] Int32 n, [In, Out] UInt32* framebuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenFramebuffers")] - public static - unsafe void GenFramebuffers([In, Out] Int32 n, [In, Out] Int32* framebuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenFramebuffers")] - public static - void GenFramebuffers([In, Out] Int32 n, [In, Out] UInt32[] framebuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* framebuffers_ptr = framebuffers) - { - Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenFramebuffers")] - public static - void GenFramebuffers([In, Out] Int32 n, [In, Out] Int32[] framebuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* framebuffers_ptr = framebuffers) - { - Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenFramebuffers")] - public static - void GenFramebuffers([In, Out] Int32 n, [In, Out] ref UInt32 framebuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* framebuffers_ptr = &framebuffers) - { - Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenRenderbuffers")] - public static - void GenRenderbuffers([In, Out] Int32 n, [In, Out] ref Int32 renderbuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* renderbuffers_ptr = &renderbuffers) - { - Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenRenderbuffers")] - public static - unsafe void GenRenderbuffers([In, Out] Int32 n, [In, Out] UInt32* renderbuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenRenderbuffers")] - public static - unsafe void GenRenderbuffers([In, Out] Int32 n, [In, Out] Int32* renderbuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenRenderbuffers")] - public static - void GenRenderbuffers([In, Out] Int32 n, [In, Out] UInt32[] renderbuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* renderbuffers_ptr = renderbuffers) - { - Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenRenderbuffers")] - public static - void GenRenderbuffers([In, Out] Int32 n, [In, Out] Int32[] renderbuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* renderbuffers_ptr = renderbuffers) - { - Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenRenderbuffers")] - public static - void GenRenderbuffers([In, Out] Int32 n, [In, Out] ref UInt32 renderbuffers) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* renderbuffers_ptr = &renderbuffers) - { - Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Generate texture names - /// - /// - /// - /// Specifies the number of texture names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated texture names are stored. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenTextures")] - public static - void GenTextures([In, Out] Int32 n, [In, Out] ref Int32 textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* textures_ptr = &textures) - { - Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Generate texture names - /// - /// - /// - /// Specifies the number of texture names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated texture names are stored. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenTextures")] - public static - unsafe void GenTextures([In, Out] Int32 n, [In, Out] UInt32* textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGenTextures((Int32)n, (UInt32*)textures); - #if DEBUG - } - #endif - } - - - /// - /// Generate texture names - /// - /// - /// - /// Specifies the number of texture names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated texture names are stored. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenTextures")] - public static - unsafe void GenTextures([In, Out] Int32 n, [In, Out] Int32* textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGenTextures((Int32)n, (UInt32*)textures); - #if DEBUG - } - #endif - } - - - /// - /// Generate texture names - /// - /// - /// - /// Specifies the number of texture names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated texture names are stored. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenTextures")] - public static - void GenTextures([In, Out] Int32 n, [In, Out] UInt32[] textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* textures_ptr = textures) - { - Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Generate texture names - /// - /// - /// - /// Specifies the number of texture names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated texture names are stored. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenTextures")] - public static - void GenTextures([In, Out] Int32 n, [In, Out] Int32[] textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* textures_ptr = textures) - { - Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Generate texture names - /// - /// - /// - /// Specifies the number of texture names to be generated. - /// - /// - /// - /// - /// Specifies an array in which the generated texture names are stored. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGenTextures")] - public static - void GenTextures([In, Out] Int32 n, [In, Out] ref UInt32 textures) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* textures_ptr = &textures) - { - Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns information about an active attribute variable for the specified program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the index of the attribute variable to be queried. - /// - /// - /// - /// - /// Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name. - /// - /// - /// - /// - /// Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed. - /// - /// - /// - /// - /// Returns the size of the attribute variable. - /// - /// - /// - /// - /// Returns the data type of the attribute variable. - /// - /// - /// - /// - /// Returns a null terminated string containing the name of the attribute variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetActiveAttrib")] - public static - void GetActiveAttrib([In, Out] Int32 program, [In, Out] Int32 index, [In, Out] Int32 bufsize, [In, Out] ref Int32 length, [In, Out] ref Int32 size, [In, Out] ref OpenTK.Graphics.ES20.All type, [In, Out] String name) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = &length) - fixed (Int32* size_ptr = &size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = &type) - { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns information about an active attribute variable for the specified program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the index of the attribute variable to be queried. - /// - /// - /// - /// - /// Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name. - /// - /// - /// - /// - /// Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed. - /// - /// - /// - /// - /// Returns the size of the attribute variable. - /// - /// - /// - /// - /// Returns the data type of the attribute variable. - /// - /// - /// - /// - /// Returns a null terminated string containing the name of the attribute variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetActiveAttrib")] - public static - unsafe void GetActiveAttrib([In, Out] UInt32 program, [In, Out] UInt32 index, [In, Out] Int32 bufsize, [In, Out] Int32* length, [In, Out] Int32* size, [In, Out] OpenTK.Graphics.ES20.All* type, [In, Out] String name) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.All*)type, (String)name); - #if DEBUG - } - #endif - } - - - /// - /// Returns information about an active attribute variable for the specified program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the index of the attribute variable to be queried. - /// - /// - /// - /// - /// Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name. - /// - /// - /// - /// - /// Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed. - /// - /// - /// - /// - /// Returns the size of the attribute variable. - /// - /// - /// - /// - /// Returns the data type of the attribute variable. - /// - /// - /// - /// - /// Returns a null terminated string containing the name of the attribute variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetActiveAttrib")] - public static - unsafe void GetActiveAttrib([In, Out] Int32 program, [In, Out] Int32 index, [In, Out] Int32 bufsize, [In, Out] Int32* length, [In, Out] Int32* size, [In, Out] OpenTK.Graphics.ES20.All* type, [In, Out] String name) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.All*)type, (String)name); - #if DEBUG - } - #endif - } - - - /// - /// Returns information about an active attribute variable for the specified program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the index of the attribute variable to be queried. - /// - /// - /// - /// - /// Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name. - /// - /// - /// - /// - /// Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed. - /// - /// - /// - /// - /// Returns the size of the attribute variable. - /// - /// - /// - /// - /// Returns the data type of the attribute variable. - /// - /// - /// - /// - /// Returns a null terminated string containing the name of the attribute variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetActiveAttrib")] - public static - void GetActiveAttrib([In, Out] UInt32 program, [In, Out] UInt32 index, [In, Out] Int32 bufsize, [In, Out] Int32[] length, [In, Out] Int32[] size, [In, Out] OpenTK.Graphics.ES20.All[] type, [In, Out] String name) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = length) - fixed (Int32* size_ptr = size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = type) - { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns information about an active attribute variable for the specified program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the index of the attribute variable to be queried. - /// - /// - /// - /// - /// Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name. - /// - /// - /// - /// - /// Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed. - /// - /// - /// - /// - /// Returns the size of the attribute variable. - /// - /// - /// - /// - /// Returns the data type of the attribute variable. - /// - /// - /// - /// - /// Returns a null terminated string containing the name of the attribute variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetActiveAttrib")] - public static - void GetActiveAttrib([In, Out] Int32 program, [In, Out] Int32 index, [In, Out] Int32 bufsize, [In, Out] Int32[] length, [In, Out] Int32[] size, [In, Out] OpenTK.Graphics.ES20.All[] type, [In, Out] String name) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = length) - fixed (Int32* size_ptr = size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = type) - { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns information about an active attribute variable for the specified program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the index of the attribute variable to be queried. - /// - /// - /// - /// - /// Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name. - /// - /// - /// - /// - /// Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed. - /// - /// - /// - /// - /// Returns the size of the attribute variable. - /// - /// - /// - /// - /// Returns the data type of the attribute variable. - /// - /// - /// - /// - /// Returns a null terminated string containing the name of the attribute variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetActiveAttrib")] - public static - void GetActiveAttrib([In, Out] UInt32 program, [In, Out] UInt32 index, [In, Out] Int32 bufsize, [In, Out] ref Int32 length, [In, Out] ref Int32 size, [In, Out] ref OpenTK.Graphics.ES20.All type, [In, Out] String name) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = &length) - fixed (Int32* size_ptr = &size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = &type) - { - Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns information about an active uniform variable for the specified program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the index of the uniform variable to be queried. - /// - /// - /// - /// - /// Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name. - /// - /// - /// - /// - /// Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed. - /// - /// - /// - /// - /// Returns the size of the uniform variable. - /// - /// - /// - /// - /// Returns the data type of the uniform variable. - /// - /// - /// - /// - /// Returns a null terminated string containing the name of the uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetActiveUniform")] - public static - void GetActiveUniform([In, Out] Int32 program, [In, Out] Int32 index, [In, Out] Int32 bufsize, [In, Out] ref Int32 length, [In, Out] ref Int32 size, [In, Out] ref OpenTK.Graphics.ES20.All type, [In, Out] String name) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = &length) - fixed (Int32* size_ptr = &size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = &type) - { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns information about an active uniform variable for the specified program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the index of the uniform variable to be queried. - /// - /// - /// - /// - /// Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name. - /// - /// - /// - /// - /// Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed. - /// - /// - /// - /// - /// Returns the size of the uniform variable. - /// - /// - /// - /// - /// Returns the data type of the uniform variable. - /// - /// - /// - /// - /// Returns a null terminated string containing the name of the uniform variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetActiveUniform")] - public static - unsafe void GetActiveUniform([In, Out] UInt32 program, [In, Out] UInt32 index, [In, Out] Int32 bufsize, [In, Out] Int32* length, [In, Out] Int32* size, [In, Out] OpenTK.Graphics.ES20.All* type, [In, Out] String name) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.All*)type, (String)name); - #if DEBUG - } - #endif - } - - - /// - /// Returns information about an active uniform variable for the specified program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the index of the uniform variable to be queried. - /// - /// - /// - /// - /// Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name. - /// - /// - /// - /// - /// Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed. - /// - /// - /// - /// - /// Returns the size of the uniform variable. - /// - /// - /// - /// - /// Returns the data type of the uniform variable. - /// - /// - /// - /// - /// Returns a null terminated string containing the name of the uniform variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetActiveUniform")] - public static - unsafe void GetActiveUniform([In, Out] Int32 program, [In, Out] Int32 index, [In, Out] Int32 bufsize, [In, Out] Int32* length, [In, Out] Int32* size, [In, Out] OpenTK.Graphics.ES20.All* type, [In, Out] String name) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.All*)type, (String)name); - #if DEBUG - } - #endif - } - - - /// - /// Returns information about an active uniform variable for the specified program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the index of the uniform variable to be queried. - /// - /// - /// - /// - /// Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name. - /// - /// - /// - /// - /// Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed. - /// - /// - /// - /// - /// Returns the size of the uniform variable. - /// - /// - /// - /// - /// Returns the data type of the uniform variable. - /// - /// - /// - /// - /// Returns a null terminated string containing the name of the uniform variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetActiveUniform")] - public static - void GetActiveUniform([In, Out] UInt32 program, [In, Out] UInt32 index, [In, Out] Int32 bufsize, [In, Out] Int32[] length, [In, Out] Int32[] size, [In, Out] OpenTK.Graphics.ES20.All[] type, [In, Out] String name) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = length) - fixed (Int32* size_ptr = size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = type) - { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns information about an active uniform variable for the specified program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the index of the uniform variable to be queried. - /// - /// - /// - /// - /// Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name. - /// - /// - /// - /// - /// Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed. - /// - /// - /// - /// - /// Returns the size of the uniform variable. - /// - /// - /// - /// - /// Returns the data type of the uniform variable. - /// - /// - /// - /// - /// Returns a null terminated string containing the name of the uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetActiveUniform")] - public static - void GetActiveUniform([In, Out] Int32 program, [In, Out] Int32 index, [In, Out] Int32 bufsize, [In, Out] Int32[] length, [In, Out] Int32[] size, [In, Out] OpenTK.Graphics.ES20.All[] type, [In, Out] String name) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = length) - fixed (Int32* size_ptr = size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = type) - { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns information about an active uniform variable for the specified program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the index of the uniform variable to be queried. - /// - /// - /// - /// - /// Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name. - /// - /// - /// - /// - /// Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed. - /// - /// - /// - /// - /// Returns the size of the uniform variable. - /// - /// - /// - /// - /// Returns the data type of the uniform variable. - /// - /// - /// - /// - /// Returns a null terminated string containing the name of the uniform variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetActiveUniform")] - public static - void GetActiveUniform([In, Out] UInt32 program, [In, Out] UInt32 index, [In, Out] Int32 bufsize, [In, Out] ref Int32 length, [In, Out] ref Int32 size, [In, Out] ref OpenTK.Graphics.ES20.All type, [In, Out] String name) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = &length) - fixed (Int32* size_ptr = &size) - fixed (OpenTK.Graphics.ES20.All* type_ptr = &type) - { - Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the handles of the shader objects attached to a program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the size of the array for storing the returned object names. - /// - /// - /// - /// - /// Returns the number of names actually returned in objects. - /// - /// - /// - /// - /// Specifies an array that is used to return the names of attached shader objects. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetAttachedShaders")] - public static - void GetAttachedShaders([In, Out] Int32 program, [In, Out] Int32 maxcount, [In, Out] ref Int32 count, [In, Out] ref Int32 shaders) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* count_ptr = &count) - fixed (Int32* shaders_ptr = &shaders) - { - Delegates.glGetAttachedShaders((UInt32)program, (Int32)maxcount, (Int32*)count_ptr, (UInt32*)shaders_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the handles of the shader objects attached to a program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the size of the array for storing the returned object names. - /// - /// - /// - /// - /// Returns the number of names actually returned in objects. - /// - /// - /// - /// - /// Specifies an array that is used to return the names of attached shader objects. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetAttachedShaders")] - public static - unsafe void GetAttachedShaders([In, Out] UInt32 program, [In, Out] Int32 maxcount, [In, Out] Int32* count, [In, Out] UInt32* shaders) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetAttachedShaders((UInt32)program, (Int32)maxcount, (Int32*)count, (UInt32*)shaders); - #if DEBUG - } - #endif - } - - - /// - /// Returns the handles of the shader objects attached to a program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the size of the array for storing the returned object names. - /// - /// - /// - /// - /// Returns the number of names actually returned in objects. - /// - /// - /// - /// - /// Specifies an array that is used to return the names of attached shader objects. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetAttachedShaders")] - public static - unsafe void GetAttachedShaders([In, Out] Int32 program, [In, Out] Int32 maxcount, [In, Out] Int32* count, [In, Out] Int32* shaders) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetAttachedShaders((UInt32)program, (Int32)maxcount, (Int32*)count, (UInt32*)shaders); - #if DEBUG - } - #endif - } - - - /// - /// Returns the handles of the shader objects attached to a program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the size of the array for storing the returned object names. - /// - /// - /// - /// - /// Returns the number of names actually returned in objects. - /// - /// - /// - /// - /// Specifies an array that is used to return the names of attached shader objects. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetAttachedShaders")] - public static - void GetAttachedShaders([In, Out] UInt32 program, [In, Out] Int32 maxcount, [In, Out] Int32[] count, [In, Out] UInt32[] shaders) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* count_ptr = count) - fixed (UInt32* shaders_ptr = shaders) - { - Delegates.glGetAttachedShaders((UInt32)program, (Int32)maxcount, (Int32*)count_ptr, (UInt32*)shaders_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the handles of the shader objects attached to a program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the size of the array for storing the returned object names. - /// - /// - /// - /// - /// Returns the number of names actually returned in objects. - /// - /// - /// - /// - /// Specifies an array that is used to return the names of attached shader objects. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetAttachedShaders")] - public static - void GetAttachedShaders([In, Out] Int32 program, [In, Out] Int32 maxcount, [In, Out] Int32[] count, [In, Out] Int32[] shaders) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* count_ptr = count) - fixed (Int32* shaders_ptr = shaders) - { - Delegates.glGetAttachedShaders((UInt32)program, (Int32)maxcount, (Int32*)count_ptr, (UInt32*)shaders_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the handles of the shader objects attached to a program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the size of the array for storing the returned object names. - /// - /// - /// - /// - /// Returns the number of names actually returned in objects. - /// - /// - /// - /// - /// Specifies an array that is used to return the names of attached shader objects. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetAttachedShaders")] - public static - void GetAttachedShaders([In, Out] UInt32 program, [In, Out] Int32 maxcount, [In, Out] ref Int32 count, [In, Out] ref UInt32 shaders) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* count_ptr = &count) - fixed (UInt32* shaders_ptr = &shaders) - { - Delegates.glGetAttachedShaders((UInt32)program, (Int32)maxcount, (Int32*)count_ptr, (UInt32*)shaders_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the location of an attribute variable - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Points to a null terminated string containing the name of the attribute variable whose location is to be queried. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetAttribLocation")] - public static - int GetAttribLocation([In, Out] Int32 program, [In, Out] String name) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glGetAttribLocation((UInt32)program, (String)name); - #if DEBUG - } - #endif - } - - - /// - /// Returns the location of an attribute variable - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Points to a null terminated string containing the name of the attribute variable whose location is to be queried. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetAttribLocation")] - public static - int GetAttribLocation([In, Out] UInt32 program, [In, Out] String name) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glGetAttribLocation((UInt32)program, (String)name); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetBooleanv")] - public static - unsafe void GetBoolean([In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] bool* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetBooleanv((OpenTK.Graphics.ES20.All)pname, (bool*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetBooleanv")] - public static - void GetBoolean([In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] ref bool @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (bool* @params_ptr = &@params) - { - Delegates.glGetBooleanv((OpenTK.Graphics.ES20.All)pname, (bool*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetBooleanv")] - public static - void GetBoolean([In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] bool[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (bool* @params_ptr = @params) - { - Delegates.glGetBooleanv((OpenTK.Graphics.ES20.All)pname, (bool*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return parameters of a buffer object - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the symbolic name of a buffer object parameter. Accepted values are GL_BUFFER_ACCESS, GL_BUFFER_MAPPED, GL_BUFFER_SIZE, or GL_BUFFER_USAGE. - /// - /// - /// - /// - /// Returns the requested parameter. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetBufferParameteriv")] - public static - unsafe void GetBufferParameter([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Return parameters of a buffer object - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the symbolic name of a buffer object parameter. Accepted values are GL_BUFFER_ACCESS, GL_BUFFER_MAPPED, GL_BUFFER_SIZE, or GL_BUFFER_USAGE. - /// - /// - /// - /// - /// Returns the requested parameter. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetBufferParameteriv")] - public static - void GetBufferParameter([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] ref Int32 @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = &@params) - { - Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return parameters of a buffer object - /// - /// - /// - /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. - /// - /// - /// - /// - /// Specifies the symbolic name of a buffer object parameter. Accepted values are GL_BUFFER_ACCESS, GL_BUFFER_MAPPED, GL_BUFFER_SIZE, or GL_BUFFER_USAGE. - /// - /// - /// - /// - /// Returns the requested parameter. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetBufferParameteriv")] - public static - void GetBufferParameter([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = @params) - { - Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return error information - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetError")] - public static - OpenTK.Graphics.ES20.All GetError() - { - return Delegates.glGetError(); - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetFloatv")] - public static - unsafe void GetFloat([In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetFloatv((OpenTK.Graphics.ES20.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetFloatv")] - public static - void GetFloat([In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] ref Single @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = &@params) - { - Delegates.glGetFloatv((OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetFloatv")] - public static - void GetFloat([In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glGetFloatv((OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetFramebufferAttachmentParameteriv")] - public static - unsafe void GetFramebufferAttachmentParameter([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All attachment, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetFramebufferAttachmentParameteriv")] - public static - void GetFramebufferAttachmentParameter([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All attachment, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] ref Int32 @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = &@params) - { - Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetFramebufferAttachmentParameteriv")] - public static - void GetFramebufferAttachmentParameter([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All attachment, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = @params) - { - Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetIntegerv")] - public static - unsafe void GetInteger([In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetIntegerv((OpenTK.Graphics.ES20.All)pname, (Int32*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetIntegerv")] - public static - void GetInteger([In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] ref Int32 @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = &@params) - { - Delegates.glGetIntegerv((OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetIntegerv")] - public static - void GetInteger([In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = @params) - { - Delegates.glGetIntegerv((OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the information log for a program object - /// - /// - /// - /// Specifies the program object whose information log is to be queried. - /// - /// - /// - /// - /// Specifies the size of the character buffer for storing the returned information log. - /// - /// - /// - /// - /// Returns the length of the string returned in infoLog (excluding the null terminator). - /// - /// - /// - /// - /// Specifies an array of characters that is used to return the information log. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetProgramInfoLog")] - public static - void GetProgramInfoLog([In, Out] UInt32 program, [In, Out] Int32 bufsize, [In, Out] ref Int32 length, [In, Out] String infolog) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = &length) - { - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (String)infolog); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the information log for a program object - /// - /// - /// - /// Specifies the program object whose information log is to be queried. - /// - /// - /// - /// - /// Specifies the size of the character buffer for storing the returned information log. - /// - /// - /// - /// - /// Returns the length of the string returned in infoLog (excluding the null terminator). - /// - /// - /// - /// - /// Specifies an array of characters that is used to return the information log. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetProgramInfoLog")] - public static - void GetProgramInfoLog([In, Out] Int32 program, [In, Out] Int32 bufsize, [In, Out] Int32[] length, [In, Out] String infolog) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = length) - { - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (String)infolog); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the information log for a program object - /// - /// - /// - /// Specifies the program object whose information log is to be queried. - /// - /// - /// - /// - /// Specifies the size of the character buffer for storing the returned information log. - /// - /// - /// - /// - /// Returns the length of the string returned in infoLog (excluding the null terminator). - /// - /// - /// - /// - /// Specifies an array of characters that is used to return the information log. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetProgramInfoLog")] - public static - void GetProgramInfoLog([In, Out] UInt32 program, [In, Out] Int32 bufsize, [In, Out] Int32[] length, [In, Out] String infolog) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = length) - { - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (String)infolog); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the information log for a program object - /// - /// - /// - /// Specifies the program object whose information log is to be queried. - /// - /// - /// - /// - /// Specifies the size of the character buffer for storing the returned information log. - /// - /// - /// - /// - /// Returns the length of the string returned in infoLog (excluding the null terminator). - /// - /// - /// - /// - /// Specifies an array of characters that is used to return the information log. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetProgramInfoLog")] - public static - unsafe void GetProgramInfoLog([In, Out] Int32 program, [In, Out] Int32 bufsize, [In, Out] Int32* length, [In, Out] String infolog) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length, (String)infolog); - #if DEBUG - } - #endif - } - - - /// - /// Returns the information log for a program object - /// - /// - /// - /// Specifies the program object whose information log is to be queried. - /// - /// - /// - /// - /// Specifies the size of the character buffer for storing the returned information log. - /// - /// - /// - /// - /// Returns the length of the string returned in infoLog (excluding the null terminator). - /// - /// - /// - /// - /// Specifies an array of characters that is used to return the information log. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetProgramInfoLog")] - public static - unsafe void GetProgramInfoLog([In, Out] UInt32 program, [In, Out] Int32 bufsize, [In, Out] Int32* length, [In, Out] String infolog) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length, (String)infolog); - #if DEBUG - } - #endif - } - - - /// - /// Returns the information log for a program object - /// - /// - /// - /// Specifies the program object whose information log is to be queried. - /// - /// - /// - /// - /// Specifies the size of the character buffer for storing the returned information log. - /// - /// - /// - /// - /// Returns the length of the string returned in infoLog (excluding the null terminator). - /// - /// - /// - /// - /// Specifies an array of characters that is used to return the information log. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetProgramInfoLog")] - public static - void GetProgramInfoLog([In, Out] Int32 program, [In, Out] Int32 bufsize, [In, Out] ref Int32 length, [In, Out] String infolog) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = &length) - { - Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (String)infolog); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns a parameter from a program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the object parameter. Accepted symbolic names are GL_DELETE_STATUS, GL_LINK_STATUS, GL_VALIDATE_STATUS, GL_INFO_LOG_LENGTH, GL_ATTACHED_SHADERS, GL_ACTIVE_ATTRIBUTES, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, GL_ACTIVE_UNIFORMS, GL_ACTIVE_UNIFORM_MAX_LENGTH. - /// - /// - /// - /// - /// Returns the requested object parameter. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetProgramiv")] - public static - void GetProgram([In, Out] UInt32 program, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] ref Int32 @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = &@params) - { - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns a parameter from a program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the object parameter. Accepted symbolic names are GL_DELETE_STATUS, GL_LINK_STATUS, GL_VALIDATE_STATUS, GL_INFO_LOG_LENGTH, GL_ATTACHED_SHADERS, GL_ACTIVE_ATTRIBUTES, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, GL_ACTIVE_UNIFORMS, GL_ACTIVE_UNIFORM_MAX_LENGTH. - /// - /// - /// - /// - /// Returns the requested object parameter. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetProgramiv")] - public static - void GetProgram([In, Out] Int32 program, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = @params) - { - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns a parameter from a program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the object parameter. Accepted symbolic names are GL_DELETE_STATUS, GL_LINK_STATUS, GL_VALIDATE_STATUS, GL_INFO_LOG_LENGTH, GL_ATTACHED_SHADERS, GL_ACTIVE_ATTRIBUTES, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, GL_ACTIVE_UNIFORMS, GL_ACTIVE_UNIFORM_MAX_LENGTH. - /// - /// - /// - /// - /// Returns the requested object parameter. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetProgramiv")] - public static - void GetProgram([In, Out] UInt32 program, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = @params) - { - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns a parameter from a program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the object parameter. Accepted symbolic names are GL_DELETE_STATUS, GL_LINK_STATUS, GL_VALIDATE_STATUS, GL_INFO_LOG_LENGTH, GL_ATTACHED_SHADERS, GL_ACTIVE_ATTRIBUTES, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, GL_ACTIVE_UNIFORMS, GL_ACTIVE_UNIFORM_MAX_LENGTH. - /// - /// - /// - /// - /// Returns the requested object parameter. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetProgramiv")] - public static - unsafe void GetProgram([In, Out] Int32 program, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Returns a parameter from a program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the object parameter. Accepted symbolic names are GL_DELETE_STATUS, GL_LINK_STATUS, GL_VALIDATE_STATUS, GL_INFO_LOG_LENGTH, GL_ATTACHED_SHADERS, GL_ACTIVE_ATTRIBUTES, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, GL_ACTIVE_UNIFORMS, GL_ACTIVE_UNIFORM_MAX_LENGTH. - /// - /// - /// - /// - /// Returns the requested object parameter. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetProgramiv")] - public static - unsafe void GetProgram([In, Out] UInt32 program, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Returns a parameter from a program object - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the object parameter. Accepted symbolic names are GL_DELETE_STATUS, GL_LINK_STATUS, GL_VALIDATE_STATUS, GL_INFO_LOG_LENGTH, GL_ATTACHED_SHADERS, GL_ACTIVE_ATTRIBUTES, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, GL_ACTIVE_UNIFORMS, GL_ACTIVE_UNIFORM_MAX_LENGTH. - /// - /// - /// - /// - /// Returns the requested object parameter. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetProgramiv")] - public static - void GetProgram([In, Out] Int32 program, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] ref Int32 @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = &@params) - { - Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetRenderbufferParameteriv")] - public static - unsafe void GetRenderbufferParameter([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetRenderbufferParameteriv")] - public static - void GetRenderbufferParameter([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] ref Int32 @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = &@params) - { - Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetRenderbufferParameteriv")] - public static - void GetRenderbufferParameter([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = @params) - { - Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the information log for a shader object - /// - /// - /// - /// Specifies the shader object whose information log is to be queried. - /// - /// - /// - /// - /// Specifies the size of the character buffer for storing the returned information log. - /// - /// - /// - /// - /// Returns the length of the string returned in infoLog (excluding the null terminator). - /// - /// - /// - /// - /// Specifies an array of characters that is used to return the information log. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetShaderInfoLog")] - public static - void GetShaderInfoLog([In, Out] UInt32 shader, [In, Out] Int32 bufsize, [In, Out] ref Int32 length, [In, Out] String infolog) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = &length) - { - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (String)infolog); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the information log for a shader object - /// - /// - /// - /// Specifies the shader object whose information log is to be queried. - /// - /// - /// - /// - /// Specifies the size of the character buffer for storing the returned information log. - /// - /// - /// - /// - /// Returns the length of the string returned in infoLog (excluding the null terminator). - /// - /// - /// - /// - /// Specifies an array of characters that is used to return the information log. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetShaderInfoLog")] - public static - void GetShaderInfoLog([In, Out] Int32 shader, [In, Out] Int32 bufsize, [In, Out] Int32[] length, [In, Out] String infolog) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = length) - { - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (String)infolog); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the information log for a shader object - /// - /// - /// - /// Specifies the shader object whose information log is to be queried. - /// - /// - /// - /// - /// Specifies the size of the character buffer for storing the returned information log. - /// - /// - /// - /// - /// Returns the length of the string returned in infoLog (excluding the null terminator). - /// - /// - /// - /// - /// Specifies an array of characters that is used to return the information log. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetShaderInfoLog")] - public static - void GetShaderInfoLog([In, Out] UInt32 shader, [In, Out] Int32 bufsize, [In, Out] Int32[] length, [In, Out] String infolog) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = length) - { - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (String)infolog); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the information log for a shader object - /// - /// - /// - /// Specifies the shader object whose information log is to be queried. - /// - /// - /// - /// - /// Specifies the size of the character buffer for storing the returned information log. - /// - /// - /// - /// - /// Returns the length of the string returned in infoLog (excluding the null terminator). - /// - /// - /// - /// - /// Specifies an array of characters that is used to return the information log. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetShaderInfoLog")] - public static - unsafe void GetShaderInfoLog([In, Out] Int32 shader, [In, Out] Int32 bufsize, [In, Out] Int32* length, [In, Out] String infolog) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length, (String)infolog); - #if DEBUG - } - #endif - } - - - /// - /// Returns the information log for a shader object - /// - /// - /// - /// Specifies the shader object whose information log is to be queried. - /// - /// - /// - /// - /// Specifies the size of the character buffer for storing the returned information log. - /// - /// - /// - /// - /// Returns the length of the string returned in infoLog (excluding the null terminator). - /// - /// - /// - /// - /// Specifies an array of characters that is used to return the information log. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetShaderInfoLog")] - public static - unsafe void GetShaderInfoLog([In, Out] UInt32 shader, [In, Out] Int32 bufsize, [In, Out] Int32* length, [In, Out] String infolog) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length, (String)infolog); - #if DEBUG - } - #endif - } - - - /// - /// Returns the information log for a shader object - /// - /// - /// - /// Specifies the shader object whose information log is to be queried. - /// - /// - /// - /// - /// Specifies the size of the character buffer for storing the returned information log. - /// - /// - /// - /// - /// Returns the length of the string returned in infoLog (excluding the null terminator). - /// - /// - /// - /// - /// Specifies an array of characters that is used to return the information log. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetShaderInfoLog")] - public static - void GetShaderInfoLog([In, Out] Int32 shader, [In, Out] Int32 bufsize, [In, Out] ref Int32 length, [In, Out] String infolog) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = &length) - { - Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (String)infolog); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns a parameter from a shader object - /// - /// - /// - /// Specifies the shader object to be queried. - /// - /// - /// - /// - /// Specifies the object parameter. Accepted symbolic names are GL_SHADER_TYPE, GL_DELETE_STATUS, GL_COMPILE_STATUS, GL_INFO_LOG_LENGTH, GL_SHADER_SOURCE_LENGTH. - /// - /// - /// - /// - /// Returns the requested object parameter. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetShaderiv")] - public static - void GetShader([In, Out] UInt32 shader, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] ref Int32 @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = &@params) - { - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns a parameter from a shader object - /// - /// - /// - /// Specifies the shader object to be queried. - /// - /// - /// - /// - /// Specifies the object parameter. Accepted symbolic names are GL_SHADER_TYPE, GL_DELETE_STATUS, GL_COMPILE_STATUS, GL_INFO_LOG_LENGTH, GL_SHADER_SOURCE_LENGTH. - /// - /// - /// - /// - /// Returns the requested object parameter. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetShaderiv")] - public static - void GetShader([In, Out] Int32 shader, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = @params) - { - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns a parameter from a shader object - /// - /// - /// - /// Specifies the shader object to be queried. - /// - /// - /// - /// - /// Specifies the object parameter. Accepted symbolic names are GL_SHADER_TYPE, GL_DELETE_STATUS, GL_COMPILE_STATUS, GL_INFO_LOG_LENGTH, GL_SHADER_SOURCE_LENGTH. - /// - /// - /// - /// - /// Returns the requested object parameter. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetShaderiv")] - public static - void GetShader([In, Out] UInt32 shader, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = @params) - { - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns a parameter from a shader object - /// - /// - /// - /// Specifies the shader object to be queried. - /// - /// - /// - /// - /// Specifies the object parameter. Accepted symbolic names are GL_SHADER_TYPE, GL_DELETE_STATUS, GL_COMPILE_STATUS, GL_INFO_LOG_LENGTH, GL_SHADER_SOURCE_LENGTH. - /// - /// - /// - /// - /// Returns the requested object parameter. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetShaderiv")] - public static - unsafe void GetShader([In, Out] Int32 shader, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Returns a parameter from a shader object - /// - /// - /// - /// Specifies the shader object to be queried. - /// - /// - /// - /// - /// Specifies the object parameter. Accepted symbolic names are GL_SHADER_TYPE, GL_DELETE_STATUS, GL_COMPILE_STATUS, GL_INFO_LOG_LENGTH, GL_SHADER_SOURCE_LENGTH. - /// - /// - /// - /// - /// Returns the requested object parameter. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetShaderiv")] - public static - unsafe void GetShader([In, Out] UInt32 shader, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Returns a parameter from a shader object - /// - /// - /// - /// Specifies the shader object to be queried. - /// - /// - /// - /// - /// Specifies the object parameter. Accepted symbolic names are GL_SHADER_TYPE, GL_DELETE_STATUS, GL_COMPILE_STATUS, GL_INFO_LOG_LENGTH, GL_SHADER_SOURCE_LENGTH. - /// - /// - /// - /// - /// Returns the requested object parameter. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetShaderiv")] - public static - void GetShader([In, Out] Int32 shader, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] ref Int32 @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = &@params) - { - Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetShaderPrecisionFormat")] - public static - unsafe void GetShaderPrecisionFormat([In, Out] OpenTK.Graphics.ES20.All shadertype, [In, Out] OpenTK.Graphics.ES20.All precisiontype, [In, Out] Int32* range, [In, Out] Int32* precision) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.ES20.All)shadertype, (OpenTK.Graphics.ES20.All)precisiontype, (Int32*)range, (Int32*)precision); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetShaderPrecisionFormat")] - public static - void GetShaderPrecisionFormat([In, Out] OpenTK.Graphics.ES20.All shadertype, [In, Out] OpenTK.Graphics.ES20.All precisiontype, [In, Out] ref Int32 range, [In, Out] ref Int32 precision) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* range_ptr = &range) - fixed (Int32* precision_ptr = &precision) - { - Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.ES20.All)shadertype, (OpenTK.Graphics.ES20.All)precisiontype, (Int32*)range_ptr, (Int32*)precision_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetShaderPrecisionFormat")] - public static - void GetShaderPrecisionFormat([In, Out] OpenTK.Graphics.ES20.All shadertype, [In, Out] OpenTK.Graphics.ES20.All precisiontype, [In, Out] Int32[] range, [In, Out] Int32[] precision) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* range_ptr = range) - fixed (Int32* precision_ptr = precision) - { - Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.ES20.All)shadertype, (OpenTK.Graphics.ES20.All)precisiontype, (Int32*)range_ptr, (Int32*)precision_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the source code string from a shader object - /// - /// - /// - /// Specifies the shader object to be queried. - /// - /// - /// - /// - /// Specifies the size of the character buffer for storing the returned source code string. - /// - /// - /// - /// - /// Returns the length of the string returned in source (excluding the null terminator). - /// - /// - /// - /// - /// Specifies an array of characters that is used to return the source code string. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetShaderSource")] - public static - void GetShaderSource([In, Out] Int32 shader, [In, Out] Int32 bufsize, [In, Out] ref Int32 length, [Out] System.Text.StringBuilder source) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = &length) - { - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)source); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the source code string from a shader object - /// - /// - /// - /// Specifies the shader object to be queried. - /// - /// - /// - /// - /// Specifies the size of the character buffer for storing the returned source code string. - /// - /// - /// - /// - /// Returns the length of the string returned in source (excluding the null terminator). - /// - /// - /// - /// - /// Specifies an array of characters that is used to return the source code string. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetShaderSource")] - public static - unsafe void GetShaderSource([In, Out] UInt32 shader, [In, Out] Int32 bufsize, [In, Out] Int32* length, [Out] System.Text.StringBuilder source) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length, (System.Text.StringBuilder)source); - #if DEBUG - } - #endif - } - - - /// - /// Returns the source code string from a shader object - /// - /// - /// - /// Specifies the shader object to be queried. - /// - /// - /// - /// - /// Specifies the size of the character buffer for storing the returned source code string. - /// - /// - /// - /// - /// Returns the length of the string returned in source (excluding the null terminator). - /// - /// - /// - /// - /// Specifies an array of characters that is used to return the source code string. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetShaderSource")] - public static - unsafe void GetShaderSource([In, Out] Int32 shader, [In, Out] Int32 bufsize, [In, Out] Int32* length, [Out] System.Text.StringBuilder source) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length, (System.Text.StringBuilder)source); - #if DEBUG - } - #endif - } - - - /// - /// Returns the source code string from a shader object - /// - /// - /// - /// Specifies the shader object to be queried. - /// - /// - /// - /// - /// Specifies the size of the character buffer for storing the returned source code string. - /// - /// - /// - /// - /// Returns the length of the string returned in source (excluding the null terminator). - /// - /// - /// - /// - /// Specifies an array of characters that is used to return the source code string. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetShaderSource")] - public static - void GetShaderSource([In, Out] UInt32 shader, [In, Out] Int32 bufsize, [In, Out] Int32[] length, [Out] System.Text.StringBuilder source) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = length) - { - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)source); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the source code string from a shader object - /// - /// - /// - /// Specifies the shader object to be queried. - /// - /// - /// - /// - /// Specifies the size of the character buffer for storing the returned source code string. - /// - /// - /// - /// - /// Returns the length of the string returned in source (excluding the null terminator). - /// - /// - /// - /// - /// Specifies an array of characters that is used to return the source code string. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetShaderSource")] - public static - void GetShaderSource([In, Out] Int32 shader, [In, Out] Int32 bufsize, [In, Out] Int32[] length, [Out] System.Text.StringBuilder source) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = length) - { - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)source); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the source code string from a shader object - /// - /// - /// - /// Specifies the shader object to be queried. - /// - /// - /// - /// - /// Specifies the size of the character buffer for storing the returned source code string. - /// - /// - /// - /// - /// Returns the length of the string returned in source (excluding the null terminator). - /// - /// - /// - /// - /// Specifies an array of characters that is used to return the source code string. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetShaderSource")] - public static - void GetShaderSource([In, Out] UInt32 shader, [In, Out] Int32 bufsize, [In, Out] ref Int32 length, [Out] System.Text.StringBuilder source) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = &length) - { - Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)source); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return a string describing the current GL connection - /// - /// - /// - /// Specifies a symbolic constant, one of GL_VENDOR, GL_RENDERER, GL_VERSION, GL_SHADING_LANGUAGE_VERSION, or GL_EXTENSIONS. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetString")] - public static - unsafe string GetString([In, Out] OpenTK.Graphics.ES20.All name) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.glGetString((OpenTK.Graphics.ES20.All)name)); - #if DEBUG - } - #endif - } - - - /// - /// Return texture parameter values - /// - /// - /// - /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. - /// - /// - /// - /// - /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. - /// - /// - /// - /// - /// Returns the texture parameters. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetTexParameterfv")] - public static - unsafe void GetTexParameter([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Return texture parameter values - /// - /// - /// - /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. - /// - /// - /// - /// - /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. - /// - /// - /// - /// - /// Returns the texture parameters. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetTexParameterfv")] - public static - void GetTexParameter([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] ref Single @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = &@params) - { - Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return texture parameter values - /// - /// - /// - /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. - /// - /// - /// - /// - /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. - /// - /// - /// - /// - /// Returns the texture parameters. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetTexParameterfv")] - public static - void GetTexParameter([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return texture parameter values - /// - /// - /// - /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. - /// - /// - /// - /// - /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. - /// - /// - /// - /// - /// Returns the texture parameters. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetTexParameteriv")] - public static - unsafe void GetTexParameter([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Return texture parameter values - /// - /// - /// - /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. - /// - /// - /// - /// - /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. - /// - /// - /// - /// - /// Returns the texture parameters. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetTexParameteriv")] - public static - void GetTexParameter([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] ref Int32 @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = &@params) - { - Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return texture parameter values - /// - /// - /// - /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. - /// - /// - /// - /// - /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. - /// - /// - /// - /// - /// Returns the texture parameters. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetTexParameteriv")] - public static - void GetTexParameter([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = @params) - { - Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the value of a uniform variable - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the location of the uniform variable to be queried. - /// - /// - /// - /// - /// Returns the value of the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetUniformfv")] - public static - void GetUniform([In, Out] Int32 program, [In, Out] Int32 location, [In, Out] ref Single @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = &@params) - { - Delegates.glGetUniformfv((UInt32)program, (Int32)location, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the value of a uniform variable - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the location of the uniform variable to be queried. - /// - /// - /// - /// - /// Returns the value of the specified uniform variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetUniformfv")] - public static - unsafe void GetUniform([In, Out] UInt32 program, [In, Out] Int32 location, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetUniformfv((UInt32)program, (Int32)location, (Single*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Returns the value of a uniform variable - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the location of the uniform variable to be queried. - /// - /// - /// - /// - /// Returns the value of the specified uniform variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetUniformfv")] - public static - unsafe void GetUniform([In, Out] Int32 program, [In, Out] Int32 location, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetUniformfv((UInt32)program, (Int32)location, (Single*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Returns the value of a uniform variable - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the location of the uniform variable to be queried. - /// - /// - /// - /// - /// Returns the value of the specified uniform variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetUniformfv")] - public static - void GetUniform([In, Out] UInt32 program, [In, Out] Int32 location, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glGetUniformfv((UInt32)program, (Int32)location, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the value of a uniform variable - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the location of the uniform variable to be queried. - /// - /// - /// - /// - /// Returns the value of the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetUniformfv")] - public static - void GetUniform([In, Out] Int32 program, [In, Out] Int32 location, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glGetUniformfv((UInt32)program, (Int32)location, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the value of a uniform variable - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the location of the uniform variable to be queried. - /// - /// - /// - /// - /// Returns the value of the specified uniform variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetUniformfv")] - public static - void GetUniform([In, Out] UInt32 program, [In, Out] Int32 location, [In, Out] ref Single @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = &@params) - { - Delegates.glGetUniformfv((UInt32)program, (Int32)location, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the value of a uniform variable - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the location of the uniform variable to be queried. - /// - /// - /// - /// - /// Returns the value of the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetUniformiv")] - public static - void GetUniform([In, Out] Int32 program, [In, Out] Int32 location, [In, Out] ref Int32 @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = &@params) - { - Delegates.glGetUniformiv((UInt32)program, (Int32)location, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the value of a uniform variable - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the location of the uniform variable to be queried. - /// - /// - /// - /// - /// Returns the value of the specified uniform variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetUniformiv")] - public static - unsafe void GetUniform([In, Out] UInt32 program, [In, Out] Int32 location, [In, Out] Int32* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetUniformiv((UInt32)program, (Int32)location, (Int32*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Returns the value of a uniform variable - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the location of the uniform variable to be queried. - /// - /// - /// - /// - /// Returns the value of the specified uniform variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetUniformiv")] - public static - unsafe void GetUniform([In, Out] Int32 program, [In, Out] Int32 location, [In, Out] Int32* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetUniformiv((UInt32)program, (Int32)location, (Int32*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Returns the value of a uniform variable - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the location of the uniform variable to be queried. - /// - /// - /// - /// - /// Returns the value of the specified uniform variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetUniformiv")] - public static - void GetUniform([In, Out] UInt32 program, [In, Out] Int32 location, [In, Out] Int32[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = @params) - { - Delegates.glGetUniformiv((UInt32)program, (Int32)location, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the value of a uniform variable - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the location of the uniform variable to be queried. - /// - /// - /// - /// - /// Returns the value of the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetUniformiv")] - public static - void GetUniform([In, Out] Int32 program, [In, Out] Int32 location, [In, Out] Int32[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = @params) - { - Delegates.glGetUniformiv((UInt32)program, (Int32)location, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the value of a uniform variable - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Specifies the location of the uniform variable to be queried. - /// - /// - /// - /// - /// Returns the value of the specified uniform variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetUniformiv")] - public static - void GetUniform([In, Out] UInt32 program, [In, Out] Int32 location, [In, Out] ref Int32 @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = &@params) - { - Delegates.glGetUniformiv((UInt32)program, (Int32)location, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Returns the location of a uniform variable - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Points to a null terminated string containing the name of the uniform variable whose location is to be queried. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetUniformLocation")] - public static - int GetUniformLocation([In, Out] Int32 program, [In, Out] String name) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glGetUniformLocation((UInt32)program, (String)name); - #if DEBUG - } - #endif - } - - - /// - /// Returns the location of a uniform variable - /// - /// - /// - /// Specifies the program object to be queried. - /// - /// - /// - /// - /// Points to a null terminated string containing the name of the uniform variable whose location is to be queried. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetUniformLocation")] - public static - int GetUniformLocation([In, Out] UInt32 program, [In, Out] String name) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glGetUniformLocation((UInt32)program, (String)name); - #if DEBUG - } - #endif - } - - - /// - /// Return a generic vertex attribute parameter - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be queried. - /// - /// - /// - /// - /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribfv")] - public static - void GetVertexAttrib([In, Out] Int32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] ref Single @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = &@params) - { - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return a generic vertex attribute parameter - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be queried. - /// - /// - /// - /// - /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribfv")] - public static - unsafe void GetVertexAttrib([In, Out] UInt32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Return a generic vertex attribute parameter - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be queried. - /// - /// - /// - /// - /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribfv")] - public static - unsafe void GetVertexAttrib([In, Out] Int32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Return a generic vertex attribute parameter - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be queried. - /// - /// - /// - /// - /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribfv")] - public static - void GetVertexAttrib([In, Out] UInt32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return a generic vertex attribute parameter - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be queried. - /// - /// - /// - /// - /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribfv")] - public static - void GetVertexAttrib([In, Out] Int32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return a generic vertex attribute parameter - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be queried. - /// - /// - /// - /// - /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribfv")] - public static - void GetVertexAttrib([In, Out] UInt32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] ref Single @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = &@params) - { - Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return a generic vertex attribute parameter - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be queried. - /// - /// - /// - /// - /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribiv")] - public static - void GetVertexAttrib([In, Out] Int32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] ref Int32 @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = &@params) - { - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return a generic vertex attribute parameter - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be queried. - /// - /// - /// - /// - /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribiv")] - public static - unsafe void GetVertexAttrib([In, Out] UInt32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Return a generic vertex attribute parameter - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be queried. - /// - /// - /// - /// - /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribiv")] - public static - unsafe void GetVertexAttrib([In, Out] Int32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Return a generic vertex attribute parameter - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be queried. - /// - /// - /// - /// - /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribiv")] - public static - void GetVertexAttrib([In, Out] UInt32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = @params) - { - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return a generic vertex attribute parameter - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be queried. - /// - /// - /// - /// - /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribiv")] - public static - void GetVertexAttrib([In, Out] Int32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = @params) - { - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return a generic vertex attribute parameter - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be queried. - /// - /// - /// - /// - /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB. - /// - /// - /// - /// - /// Returns the requested data. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribiv")] - public static - void GetVertexAttrib([In, Out] UInt32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] ref Int32 @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = &@params) - { - Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Return the address of the specified generic vertex attribute pointer - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be returned. - /// - /// - /// - /// - /// Specifies the symbolic name of the generic vertex attribute parameter to be returned. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER. - /// - /// - /// - /// - /// Returns the pointer value. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribPointerv")] - public static - void GetVertexAttribPointer([In, Out] UInt32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] T2[,] pointer) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Return the address of the specified generic vertex attribute pointer - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be returned. - /// - /// - /// - /// - /// Specifies the symbolic name of the generic vertex attribute parameter to be returned. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER. - /// - /// - /// - /// - /// Returns the pointer value. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribPointerv")] - public static - void GetVertexAttribPointer([In, Out] Int32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] T2[] pointer) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Return the address of the specified generic vertex attribute pointer - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be returned. - /// - /// - /// - /// - /// Specifies the symbolic name of the generic vertex attribute parameter to be returned. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER. - /// - /// - /// - /// - /// Returns the pointer value. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribPointerv")] - public static - void GetVertexAttribPointer([In, Out] Int32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] T2[,] pointer) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Return the address of the specified generic vertex attribute pointer - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be returned. - /// - /// - /// - /// - /// Specifies the symbolic name of the generic vertex attribute parameter to be returned. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER. - /// - /// - /// - /// - /// Returns the pointer value. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribPointerv")] - public static - void GetVertexAttribPointer([In, Out] Int32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] T2[,,] pointer) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Return the address of the specified generic vertex attribute pointer - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be returned. - /// - /// - /// - /// - /// Specifies the symbolic name of the generic vertex attribute parameter to be returned. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER. - /// - /// - /// - /// - /// Returns the pointer value. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribPointerv")] - public static - void GetVertexAttribPointer([In, Out] UInt32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] T2[,,] pointer) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Return the address of the specified generic vertex attribute pointer - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be returned. - /// - /// - /// - /// - /// Specifies the symbolic name of the generic vertex attribute parameter to be returned. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER. - /// - /// - /// - /// - /// Returns the pointer value. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribPointerv")] - public static - void GetVertexAttribPointer([In, Out] Int32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] IntPtr pointer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer); - #if DEBUG - } - #endif - } - - - /// - /// Return the address of the specified generic vertex attribute pointer - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be returned. - /// - /// - /// - /// - /// Specifies the symbolic name of the generic vertex attribute parameter to be returned. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER. - /// - /// - /// - /// - /// Returns the pointer value. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribPointerv")] - public static - void GetVertexAttribPointer([In, Out] UInt32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] IntPtr pointer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer); - #if DEBUG - } - #endif - } - - - /// - /// Return the address of the specified generic vertex attribute pointer - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be returned. - /// - /// - /// - /// - /// Specifies the symbolic name of the generic vertex attribute parameter to be returned. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER. - /// - /// - /// - /// - /// Returns the pointer value. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribPointerv")] - public static - void GetVertexAttribPointer([In, Out] UInt32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] ref T2 pointer) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Return the address of the specified generic vertex attribute pointer - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be returned. - /// - /// - /// - /// - /// Specifies the symbolic name of the generic vertex attribute parameter to be returned. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER. - /// - /// - /// - /// - /// Returns the pointer value. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribPointerv")] - public static - void GetVertexAttribPointer([In, Out] UInt32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] T2[] pointer) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Return the address of the specified generic vertex attribute pointer - /// - /// - /// - /// Specifies the generic vertex attribute parameter to be returned. - /// - /// - /// - /// - /// Specifies the symbolic name of the generic vertex attribute parameter to be returned. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER. - /// - /// - /// - /// - /// Returns the pointer value. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glGetVertexAttribPointerv")] - public static - void GetVertexAttribPointer([In, Out] Int32 index, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] ref T2 pointer) - where T2 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); - try - { - Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); - } - finally - { - pointer_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify implementation-specific hints - /// - /// - /// - /// Specifies a symbolic constant indicating the behavior to be controlled. GL_FOG_HINT, GL_GENERATE_MIPMAP_HINT, GL_LINE_SMOOTH_HINT, GL_PERSPECTIVE_CORRECTION_HINT, GL_POINT_SMOOTH_HINT, GL_POLYGON_SMOOTH_HINT, GL_TEXTURE_COMPRESSION_HINT, and GL_FRAGMENT_SHADER_DERIVATIVE_HINT are accepted. - /// - /// - /// - /// - /// Specifies a symbolic constant indicating the desired behavior. GL_FASTEST, GL_NICEST, and GL_DONT_CARE are accepted. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glHint")] - public static - void Hint([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All mode) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glHint((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)mode); - #if DEBUG - } - #endif - } - - - /// - /// Determine if a name corresponds to a buffer object - /// - /// - /// - /// Specifies a value that may be the name of a buffer object. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glIsBuffer")] - public static - bool IsBuffer([In, Out] Int32 buffer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glIsBuffer((UInt32)buffer); - #if DEBUG - } - #endif - } - - - /// - /// Determine if a name corresponds to a buffer object - /// - /// - /// - /// Specifies a value that may be the name of a buffer object. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glIsBuffer")] - public static - bool IsBuffer([In, Out] UInt32 buffer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glIsBuffer((UInt32)buffer); - #if DEBUG - } - #endif - } - - - /// - /// Test whether a capability is enabled - /// - /// - /// - /// Specifies a symbolic constant indicating a GL capability. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glIsEnabled")] - public static - bool IsEnabled([In, Out] OpenTK.Graphics.ES20.All cap) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glIsEnabled((OpenTK.Graphics.ES20.All)cap); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glIsFramebuffer")] - public static - bool IsFramebuffer([In, Out] Int32 framebuffer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glIsFramebuffer((UInt32)framebuffer); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glIsFramebuffer")] - public static - bool IsFramebuffer([In, Out] UInt32 framebuffer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glIsFramebuffer((UInt32)framebuffer); - #if DEBUG - } - #endif - } - - - /// - /// Determines if a name corresponds to a program object - /// - /// - /// - /// Specifies a potential program object. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glIsProgram")] - public static - bool IsProgram([In, Out] Int32 program) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glIsProgram((UInt32)program); - #if DEBUG - } - #endif - } - - - /// - /// Determines if a name corresponds to a program object - /// - /// - /// - /// Specifies a potential program object. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glIsProgram")] - public static - bool IsProgram([In, Out] UInt32 program) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glIsProgram((UInt32)program); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glIsRenderbuffer")] - public static - bool IsRenderbuffer([In, Out] Int32 renderbuffer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glIsRenderbuffer((UInt32)renderbuffer); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glIsRenderbuffer")] - public static - bool IsRenderbuffer([In, Out] UInt32 renderbuffer) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glIsRenderbuffer((UInt32)renderbuffer); - #if DEBUG - } - #endif - } - - - /// - /// Determines if a name corresponds to a shader object - /// - /// - /// - /// Specifies a potential shader object. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glIsShader")] - public static - bool IsShader([In, Out] Int32 shader) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glIsShader((UInt32)shader); - #if DEBUG - } - #endif - } - - - /// - /// Determines if a name corresponds to a shader object - /// - /// - /// - /// Specifies a potential shader object. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glIsShader")] - public static - bool IsShader([In, Out] UInt32 shader) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glIsShader((UInt32)shader); - #if DEBUG - } - #endif - } - - - /// - /// Determine if a name corresponds to a texture - /// - /// - /// - /// Specifies a value that may be the name of a texture. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glIsTexture")] - public static - bool IsTexture([In, Out] Int32 texture) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glIsTexture((UInt32)texture); - #if DEBUG - } - #endif - } - - - /// - /// Determine if a name corresponds to a texture - /// - /// - /// - /// Specifies a value that may be the name of a texture. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glIsTexture")] - public static - bool IsTexture([In, Out] UInt32 texture) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - return Delegates.glIsTexture((UInt32)texture); - #if DEBUG - } - #endif - } - - - /// - /// Specify the width of rasterized lines - /// - /// - /// - /// Specifies the width of rasterized lines. The initial value is 1. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glLineWidth")] - public static - void LineWidth([In, Out] Single width) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLineWidth((Single)width); - #if DEBUG - } - #endif - } - - - /// - /// Links a program object - /// - /// - /// - /// Specifies the handle of the program object to be linked. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glLinkProgram")] - public static - void LinkProgram([In, Out] Int32 program) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLinkProgram((UInt32)program); - #if DEBUG - } - #endif - } - - - /// - /// Links a program object - /// - /// - /// - /// Specifies the handle of the program object to be linked. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glLinkProgram")] - public static - void LinkProgram([In, Out] UInt32 program) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glLinkProgram((UInt32)program); - #if DEBUG - } - #endif - } - - - /// - /// Set pixel storage modes - /// - /// - /// - /// Specifies the symbolic name of the parameter to be set. Six values affect the packing of pixel data into memory: GL_PACK_SWAP_BYTES, GL_PACK_LSB_FIRST, GL_PACK_ROW_LENGTH, GL_PACK_IMAGE_HEIGHT, GL_PACK_SKIP_PIXELS, GL_PACK_SKIP_ROWS, GL_PACK_SKIP_IMAGES, and GL_PACK_ALIGNMENT. Six more affect the unpacking of pixel data from memory: GL_UNPACK_SWAP_BYTES, GL_UNPACK_LSB_FIRST, GL_UNPACK_ROW_LENGTH, GL_UNPACK_IMAGE_HEIGHT, GL_UNPACK_SKIP_PIXELS, GL_UNPACK_SKIP_ROWS, GL_UNPACK_SKIP_IMAGES, and GL_UNPACK_ALIGNMENT. - /// - /// - /// - /// - /// Specifies the value that pname is set to. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glPixelStorei")] - public static - void PixelStore([In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32 param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glPixelStorei((OpenTK.Graphics.ES20.All)pname, (Int32)param); - #if DEBUG - } - #endif - } - - - /// - /// Set the scale and units used to calculate depth values - /// - /// - /// - /// Specifies a scale factor that is used to create a variable depth offset for each polygon. The initial value is 0. - /// - /// - /// - /// - /// Is multiplied by an implementation-specific value to create a constant depth offset. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glPolygonOffset")] - public static - void PolygonOffset([In, Out] Single factor, [In, Out] Single units) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glPolygonOffset((Single)factor, (Single)units); - #if DEBUG - } - #endif - } - - - /// - /// Read a block of pixels from the frame buffer - /// - /// - /// - /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. - /// - /// - /// - /// - /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Returns the pixel data. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glReadPixels")] - public static - void ReadPixels([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] T6[,] pixels) - where T6 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Read a block of pixels from the frame buffer - /// - /// - /// - /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. - /// - /// - /// - /// - /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Returns the pixel data. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glReadPixels")] - public static - void ReadPixels([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] T6[,,] pixels) - where T6 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Read a block of pixels from the frame buffer - /// - /// - /// - /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. - /// - /// - /// - /// - /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Returns the pixel data. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glReadPixels")] - public static - void ReadPixels([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] T6[] pixels) - where T6 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Read a block of pixels from the frame buffer - /// - /// - /// - /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. - /// - /// - /// - /// - /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Returns the pixel data. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glReadPixels")] - public static - void ReadPixels([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] IntPtr pixels) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels); - #if DEBUG - } - #endif - } - - - /// - /// Read a block of pixels from the frame buffer - /// - /// - /// - /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. - /// - /// - /// - /// - /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Returns the pixel data. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glReadPixels")] - public static - void ReadPixels([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] ref T6 pixels) - where T6 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glReleaseShaderCompiler")] - public static - void ReleaseShaderCompiler() - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glReleaseShaderCompiler(); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glRenderbufferStorage")] - public static - void RenderbufferStorage([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glRenderbufferStorage((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height); - #if DEBUG - } - #endif - } - - - /// - /// Specify multisample coverage parameters - /// - /// - /// - /// Specify a single floating-point sample coverage value. The value is clamped to the range [0 ,1]. The initial value is 1.0. - /// - /// - /// - /// - /// Specify a single boolean value representing if the coverage masks should be inverted. GL_TRUE and GL_FALSE are accepted. The initial value is GL_FALSE. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glSampleCoverage")] - public static - void SampleCoverage([In, Out] Single value, [In, Out] bool invert) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glSampleCoverage((Single)value, (bool)invert); - #if DEBUG - } - #endif - } - - - /// - /// Define the scissor box - /// - /// - /// - /// Specify the lower left corner of the scissor box. Initially (0, 0). - /// - /// - /// - /// - /// Specify the width and height of the scissor box. When a GL context is first attached to a window, width and height are set to the dimensions of that window. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glScissor")] - public static - void Scissor([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glScissor((Int32)x, (Int32)y, (Int32)width, (Int32)height); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - void ShaderBinary([In, Out] Int32 n, [In, Out] ref Int32 shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] T3[,,] binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* shaders_ptr = &shaders) - { - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - unsafe void ShaderBinary([In, Out] Int32 n, [In, Out] UInt32* shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] IntPtr binary, [In, Out] Int32 length) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - unsafe void ShaderBinary([In, Out] Int32 n, [In, Out] Int32* shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] IntPtr binary, [In, Out] Int32 length) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - void ShaderBinary([In, Out] Int32 n, [In, Out] ref UInt32 shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] T3[,,] binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* shaders_ptr = &shaders) - { - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - void ShaderBinary([In, Out] Int32 n, [In, Out] ref Int32 shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] T3[] binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* shaders_ptr = &shaders) - { - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - void ShaderBinary([In, Out] Int32 n, [In, Out] ref UInt32 shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] T3[,] binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* shaders_ptr = &shaders) - { - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - void ShaderBinary([In, Out] Int32 n, [In, Out] ref Int32 shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] T3[,] binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* shaders_ptr = &shaders) - { - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - unsafe void ShaderBinary([In, Out] Int32 n, [In, Out] UInt32* shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] ref T3 binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - unsafe void ShaderBinary([In, Out] Int32 n, [In, Out] Int32* shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] T3[,] binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - unsafe void ShaderBinary([In, Out] Int32 n, [In, Out] UInt32* shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] T3[,,] binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - unsafe void ShaderBinary([In, Out] Int32 n, [In, Out] Int32* shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] T3[,,] binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - unsafe void ShaderBinary([In, Out] Int32 n, [In, Out] UInt32* shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] T3[,] binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - unsafe void ShaderBinary([In, Out] Int32 n, [In, Out] Int32* shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] ref T3 binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - unsafe void ShaderBinary([In, Out] Int32 n, [In, Out] UInt32* shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] T3[] binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - unsafe void ShaderBinary([In, Out] Int32 n, [In, Out] Int32* shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] T3[] binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - void ShaderBinary([In, Out] Int32 n, [In, Out] UInt32[] shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] T3[] binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* shaders_ptr = shaders) - { - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - void ShaderBinary([In, Out] Int32 n, [In, Out] Int32[] shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] T3[] binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* shaders_ptr = shaders) - { - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - void ShaderBinary([In, Out] Int32 n, [In, Out] UInt32[] shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] T3[,] binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* shaders_ptr = shaders) - { - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - void ShaderBinary([In, Out] Int32 n, [In, Out] Int32[] shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] ref T3 binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* shaders_ptr = shaders) - { - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - void ShaderBinary([In, Out] Int32 n, [In, Out] UInt32[] shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] IntPtr binary, [In, Out] Int32 length) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* shaders_ptr = shaders) - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - void ShaderBinary([In, Out] Int32 n, [In, Out] Int32[] shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] IntPtr binary, [In, Out] Int32 length) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* shaders_ptr = shaders) - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - void ShaderBinary([In, Out] Int32 n, [In, Out] UInt32[] shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] ref T3 binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* shaders_ptr = shaders) - { - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - void ShaderBinary([In, Out] Int32 n, [In, Out] Int32[] shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] T3[,] binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* shaders_ptr = shaders) - { - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - void ShaderBinary([In, Out] Int32 n, [In, Out] ref UInt32 shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] ref T3 binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* shaders_ptr = &shaders) - { - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - void ShaderBinary([In, Out] Int32 n, [In, Out] ref Int32 shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] ref T3 binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* shaders_ptr = &shaders) - { - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - void ShaderBinary([In, Out] Int32 n, [In, Out] ref UInt32 shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] T3[] binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* shaders_ptr = &shaders) - { - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - void ShaderBinary([In, Out] Int32 n, [In, Out] ref Int32 shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] IntPtr binary, [In, Out] Int32 length) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* shaders_ptr = &shaders) - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - void ShaderBinary([In, Out] Int32 n, [In, Out] UInt32[] shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] T3[,,] binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* shaders_ptr = shaders) - { - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - void ShaderBinary([In, Out] Int32 n, [In, Out] Int32[] shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] T3[,,] binary, [In, Out] Int32 length) - where T3 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* shaders_ptr = shaders) - { - GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); - try - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); - } - finally - { - binary_ptr.Free(); - } - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderBinary")] - public static - void ShaderBinary([In, Out] Int32 n, [In, Out] ref UInt32 shaders, [In, Out] OpenTK.Graphics.ES20.All binaryformat, [In, Out] IntPtr binary, [In, Out] Int32 length) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (UInt32* shaders_ptr = &shaders) - { - Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Replaces the source code in a shader object - /// - /// - /// - /// Specifies the handle of the shader object whose source code is to be replaced. - /// - /// - /// - /// - /// Specifies the number of elements in the string and length arrays. - /// - /// - /// - /// - /// Specifies an array of pointers to strings containing the source code to be loaded into the shader. - /// - /// - /// - /// - /// Specifies an array of string lengths. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderSource")] - public static - void ShaderSource([In, Out] Int32 shader, [In, Out] Int32 count, [In, Out] String[] @string, [In, Out] ref Int32 length) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = &length) - { - Delegates.glShaderSource((UInt32)shader, (Int32)count, (String[])@string, (Int32*)length_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Replaces the source code in a shader object - /// - /// - /// - /// Specifies the handle of the shader object whose source code is to be replaced. - /// - /// - /// - /// - /// Specifies the number of elements in the string and length arrays. - /// - /// - /// - /// - /// Specifies an array of pointers to strings containing the source code to be loaded into the shader. - /// - /// - /// - /// - /// Specifies an array of string lengths. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderSource")] - public static - unsafe void ShaderSource([In, Out] UInt32 shader, [In, Out] Int32 count, [In, Out] String[] @string, [In, Out] Int32* length) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glShaderSource((UInt32)shader, (Int32)count, (String[])@string, (Int32*)length); - #if DEBUG - } - #endif - } - - - /// - /// Replaces the source code in a shader object - /// - /// - /// - /// Specifies the handle of the shader object whose source code is to be replaced. - /// - /// - /// - /// - /// Specifies the number of elements in the string and length arrays. - /// - /// - /// - /// - /// Specifies an array of pointers to strings containing the source code to be loaded into the shader. - /// - /// - /// - /// - /// Specifies an array of string lengths. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderSource")] - public static - unsafe void ShaderSource([In, Out] Int32 shader, [In, Out] Int32 count, [In, Out] String[] @string, [In, Out] Int32* length) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glShaderSource((UInt32)shader, (Int32)count, (String[])@string, (Int32*)length); - #if DEBUG - } - #endif - } - - - /// - /// Replaces the source code in a shader object - /// - /// - /// - /// Specifies the handle of the shader object whose source code is to be replaced. - /// - /// - /// - /// - /// Specifies the number of elements in the string and length arrays. - /// - /// - /// - /// - /// Specifies an array of pointers to strings containing the source code to be loaded into the shader. - /// - /// - /// - /// - /// Specifies an array of string lengths. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderSource")] - public static - void ShaderSource([In, Out] UInt32 shader, [In, Out] Int32 count, [In, Out] String[] @string, [In, Out] Int32[] length) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = length) - { - Delegates.glShaderSource((UInt32)shader, (Int32)count, (String[])@string, (Int32*)length_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Replaces the source code in a shader object - /// - /// - /// - /// Specifies the handle of the shader object whose source code is to be replaced. - /// - /// - /// - /// - /// Specifies the number of elements in the string and length arrays. - /// - /// - /// - /// - /// Specifies an array of pointers to strings containing the source code to be loaded into the shader. - /// - /// - /// - /// - /// Specifies an array of string lengths. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderSource")] - public static - void ShaderSource([In, Out] Int32 shader, [In, Out] Int32 count, [In, Out] String[] @string, [In, Out] Int32[] length) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = length) - { - Delegates.glShaderSource((UInt32)shader, (Int32)count, (String[])@string, (Int32*)length_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Replaces the source code in a shader object - /// - /// - /// - /// Specifies the handle of the shader object whose source code is to be replaced. - /// - /// - /// - /// - /// Specifies the number of elements in the string and length arrays. - /// - /// - /// - /// - /// Specifies an array of pointers to strings containing the source code to be loaded into the shader. - /// - /// - /// - /// - /// Specifies an array of string lengths. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glShaderSource")] - public static - void ShaderSource([In, Out] UInt32 shader, [In, Out] Int32 count, [In, Out] String[] @string, [In, Out] ref Int32 length) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* length_ptr = &length) - { - Delegates.glShaderSource((UInt32)shader, (Int32)count, (String[])@string, (Int32*)length_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Set front and back function and reference value for stencil testing - /// - /// - /// - /// Specifies the test function. Eight symbolic constants are valid: GL_NEVER, GL_LESS, GL_LEQUAL, GL_GREATER, GL_GEQUAL, GL_EQUAL, GL_NOTEQUAL, and GL_ALWAYS. The initial value is GL_ALWAYS. - /// - /// - /// - /// - /// Specifies the reference value for the stencil test. ref is clamped to the range [0, 2 sup n - 1], where is the number of bitplanes in the stencil buffer. The initial value is 0. - /// - /// - /// - /// - /// Specifies a mask that is ANDed with both the reference value and the stored stencil value when the test is done. The initial value is all 1's. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glStencilFunc")] - public static - void StencilFunc([In, Out] OpenTK.Graphics.ES20.All func, [In, Out] Int32 @ref, [In, Out] Int32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glStencilFunc((OpenTK.Graphics.ES20.All)func, (Int32)@ref, (UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Set front and back function and reference value for stencil testing - /// - /// - /// - /// Specifies the test function. Eight symbolic constants are valid: GL_NEVER, GL_LESS, GL_LEQUAL, GL_GREATER, GL_GEQUAL, GL_EQUAL, GL_NOTEQUAL, and GL_ALWAYS. The initial value is GL_ALWAYS. - /// - /// - /// - /// - /// Specifies the reference value for the stencil test. ref is clamped to the range [0, 2 sup n - 1], where is the number of bitplanes in the stencil buffer. The initial value is 0. - /// - /// - /// - /// - /// Specifies a mask that is ANDed with both the reference value and the stored stencil value when the test is done. The initial value is all 1's. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glStencilFunc")] - public static - void StencilFunc([In, Out] OpenTK.Graphics.ES20.All func, [In, Out] Int32 @ref, [In, Out] UInt32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glStencilFunc((OpenTK.Graphics.ES20.All)func, (Int32)@ref, (UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Set front and/or back function and reference value for stencil testing - /// - /// - /// - /// Specifies whether front and/or back stencil state is updated. Three symbolic constants are valid: GL_FRONT, GL_BACK, and GL_FRONT_AND_BACK. - /// - /// - /// - /// - /// Specifies the test function. Eight symbolic constants are valid: GL_NEVER, GL_LESS, GL_LEQUAL, GL_GREATER, GL_GEQUAL, GL_EQUAL, GL_NOTEQUAL, and GL_ALWAYS. The initial value is GL_ALWAYS. - /// - /// - /// - /// - /// Specifies the reference value for the stencil test. ref is clamped to the range [0, 2 sup n - 1], where is the number of bitplanes in the stencil buffer. The initial value is 0. - /// - /// - /// - /// - /// Specifies a mask that is ANDed with both the reference value and the stored stencil value when the test is done. The initial value is all 1's. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glStencilFuncSeparate")] - public static - void StencilFuncSeparate([In, Out] OpenTK.Graphics.ES20.All face, [In, Out] OpenTK.Graphics.ES20.All func, [In, Out] Int32 @ref, [In, Out] Int32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glStencilFuncSeparate((OpenTK.Graphics.ES20.All)face, (OpenTK.Graphics.ES20.All)func, (Int32)@ref, (UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Set front and/or back function and reference value for stencil testing - /// - /// - /// - /// Specifies whether front and/or back stencil state is updated. Three symbolic constants are valid: GL_FRONT, GL_BACK, and GL_FRONT_AND_BACK. - /// - /// - /// - /// - /// Specifies the test function. Eight symbolic constants are valid: GL_NEVER, GL_LESS, GL_LEQUAL, GL_GREATER, GL_GEQUAL, GL_EQUAL, GL_NOTEQUAL, and GL_ALWAYS. The initial value is GL_ALWAYS. - /// - /// - /// - /// - /// Specifies the reference value for the stencil test. ref is clamped to the range [0, 2 sup n - 1], where is the number of bitplanes in the stencil buffer. The initial value is 0. - /// - /// - /// - /// - /// Specifies a mask that is ANDed with both the reference value and the stored stencil value when the test is done. The initial value is all 1's. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glStencilFuncSeparate")] - public static - void StencilFuncSeparate([In, Out] OpenTK.Graphics.ES20.All face, [In, Out] OpenTK.Graphics.ES20.All func, [In, Out] Int32 @ref, [In, Out] UInt32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glStencilFuncSeparate((OpenTK.Graphics.ES20.All)face, (OpenTK.Graphics.ES20.All)func, (Int32)@ref, (UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Control the front and back writing of individual bits in the stencil planes - /// - /// - /// - /// Specifies a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, the mask is all 1's. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glStencilMask")] - public static - void StencilMask([In, Out] Int32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glStencilMask((UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Control the front and back writing of individual bits in the stencil planes - /// - /// - /// - /// Specifies a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, the mask is all 1's. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glStencilMask")] - public static - void StencilMask([In, Out] UInt32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glStencilMask((UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Control the front and/or back writing of individual bits in the stencil planes - /// - /// - /// - /// Specifies whether the front and/or back stencil writemask is updated. Three symbolic constants are valid: GL_FRONT, GL_BACK, and GL_FRONT_AND_BACK. - /// - /// - /// - /// - /// Specifies a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, the mask is all 1's. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glStencilMaskSeparate")] - public static - void StencilMaskSeparate([In, Out] OpenTK.Graphics.ES20.All face, [In, Out] Int32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glStencilMaskSeparate((OpenTK.Graphics.ES20.All)face, (UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Control the front and/or back writing of individual bits in the stencil planes - /// - /// - /// - /// Specifies whether the front and/or back stencil writemask is updated. Three symbolic constants are valid: GL_FRONT, GL_BACK, and GL_FRONT_AND_BACK. - /// - /// - /// - /// - /// Specifies a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, the mask is all 1's. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glStencilMaskSeparate")] - public static - void StencilMaskSeparate([In, Out] OpenTK.Graphics.ES20.All face, [In, Out] UInt32 mask) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glStencilMaskSeparate((OpenTK.Graphics.ES20.All)face, (UInt32)mask); - #if DEBUG - } - #endif - } - - - /// - /// Set front and back stencil test actions - /// - /// - /// - /// Specifies the action to take when the stencil test fails. Eight symbolic constants are accepted: GL_KEEP, GL_ZERO, GL_REPLACE, GL_INCR, GL_INCR_WRAP, GL_DECR, GL_DECR_WRAP, and GL_INVERT. The initial value is GL_KEEP. - /// - /// - /// - /// - /// Specifies the stencil action when the stencil test passes, but the depth test fails. dpfail accepts the same symbolic constants as sfail. The initial value is GL_KEEP. - /// - /// - /// - /// - /// Specifies the stencil action when both the stencil test and the depth test pass, or when the stencil test passes and either there is no depth buffer or depth testing is not enabled. dppass accepts the same symbolic constants as sfail. The initial value is GL_KEEP. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glStencilOp")] - public static - void StencilOp([In, Out] OpenTK.Graphics.ES20.All fail, [In, Out] OpenTK.Graphics.ES20.All zfail, [In, Out] OpenTK.Graphics.ES20.All zpass) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glStencilOp((OpenTK.Graphics.ES20.All)fail, (OpenTK.Graphics.ES20.All)zfail, (OpenTK.Graphics.ES20.All)zpass); - #if DEBUG - } - #endif - } - - - /// - /// Set front and/or back stencil test actions - /// - /// - /// - /// Specifies whether front and/or back stencil state is updated. Three symbolic constants are valid: GL_FRONT, GL_BACK, and GL_FRONT_AND_BACK. - /// - /// - /// - /// - /// Specifies the action to take when the stencil test fails. Eight symbolic constants are accepted: GL_KEEP, GL_ZERO, GL_REPLACE, GL_INCR, GL_INCR_WRAP, GL_DECR, GL_DECR_WRAP, and GL_INVERT. The initial value is GL_KEEP. - /// - /// - /// - /// - /// Specifies the stencil action when the stencil test passes, but the depth test fails. dpfail accepts the same symbolic constants as sfail. The initial value is GL_KEEP. - /// - /// - /// - /// - /// Specifies the stencil action when both the stencil test and the depth test pass, or when the stencil test passes and either there is no depth buffer or depth testing is not enabled. dppass accepts the same symbolic constants as sfail. The initial value is GL_KEEP. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glStencilOpSeparate")] - public static - void StencilOpSeparate([In, Out] OpenTK.Graphics.ES20.All face, [In, Out] OpenTK.Graphics.ES20.All fail, [In, Out] OpenTK.Graphics.ES20.All zfail, [In, Out] OpenTK.Graphics.ES20.All zpass) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glStencilOpSeparate((OpenTK.Graphics.ES20.All)face, (OpenTK.Graphics.ES20.All)fail, (OpenTK.Graphics.ES20.All)zfail, (OpenTK.Graphics.ES20.All)zpass); - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glTexImage2D")] - public static - void TexImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES20.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] T8[,] pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glTexImage2D")] - public static - void TexImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES20.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] T8[,,] pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glTexImage2D")] - public static - void TexImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES20.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] T8[] pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glTexImage2D")] - public static - void TexImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES20.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] IntPtr pixels) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels); - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture image - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. - /// - /// - /// - /// - /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. - /// - /// - /// - /// - /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. - /// - /// - /// - /// - /// Specifies the width of the border. Must be either 0 or 1. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glTexImage2D")] - public static - void TexImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] OpenTK.Graphics.ES20.All internalformat, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] Int32 border, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] ref T8 pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Set texture parameters - /// - /// - /// - /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. - /// - /// - /// - /// - /// Specifies the value of pname. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glTexParameterf")] - public static - void TexParameter([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Single param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexParameterf((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single)param); - #if DEBUG - } - #endif - } - - - /// - /// Set texture parameters - /// - /// - /// - /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. - /// - /// - /// - /// - /// Specifies the value of pname. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glTexParameterfv")] - public static - unsafe void TexParameter([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Single* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexParameterfv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Set texture parameters - /// - /// - /// - /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. - /// - /// - /// - /// - /// Specifies the value of pname. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glTexParameterfv")] - public static - void TexParameter([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Single[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* @params_ptr = @params) - { - Delegates.glTexParameterfv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Set texture parameters - /// - /// - /// - /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. - /// - /// - /// - /// - /// Specifies the value of pname. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glTexParameteri")] - public static - void TexParameter([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32 param) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexParameteri((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32)param); - #if DEBUG - } - #endif - } - - - /// - /// Set texture parameters - /// - /// - /// - /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. - /// - /// - /// - /// - /// Specifies the value of pname. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glTexParameteriv")] - public static - unsafe void TexParameter([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32* @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); - #if DEBUG - } - #endif - } - - - /// - /// Set texture parameters - /// - /// - /// - /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. - /// - /// - /// - /// - /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. - /// - /// - /// - /// - /// Specifies the value of pname. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glTexParameteriv")] - public static - void TexParameter([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] OpenTK.Graphics.ES20.All pname, [In, Out] Int32[] @params) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* @params_ptr = @params) - { - Delegates.glTexParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glTexSubImage2D")] - public static - void TexSubImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] T8[,] pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glTexSubImage2D")] - public static - void TexSubImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] T8[,,] pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glTexSubImage2D")] - public static - void TexSubImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] T8[] pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glTexSubImage2D")] - public static - void TexSubImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] IntPtr pixels) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels); - #if DEBUG - } - #endif - } - - - /// - /// Specify a two-dimensional texture subimage - /// - /// - /// - /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. - /// - /// - /// - /// - /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. - /// - /// - /// - /// - /// Specifies a texel offset in the x direction within the texture array. - /// - /// - /// - /// - /// Specifies a texel offset in the y direction within the texture array. - /// - /// - /// - /// - /// Specifies the width of the texture subimage. - /// - /// - /// - /// - /// Specifies the height of the texture subimage. - /// - /// - /// - /// - /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. - /// - /// - /// - /// - /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. - /// - /// - /// - /// - /// Specifies a pointer to the image data in memory. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glTexSubImage2D")] - public static - void TexSubImage2D([In, Out] OpenTK.Graphics.ES20.All target, [In, Out] Int32 level, [In, Out] Int32 xoffset, [In, Out] Int32 yoffset, [In, Out] Int32 width, [In, Out] Int32 height, [In, Out] OpenTK.Graphics.ES20.All format, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] ref T8 pixels) - where T8 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); - try - { - Delegates.glTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); - } - finally - { - pixels_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform1f")] - public static - void Uniform1([In, Out] Int32 location, [In, Out] Single x) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glUniform1f((Int32)location, (Single)x); - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform1fv")] - public static - unsafe void Uniform1([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Single* v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glUniform1fv((Int32)location, (Int32)count, (Single*)v); - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform1fv")] - public static - void Uniform1([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] ref Single v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* v_ptr = &v) - { - Delegates.glUniform1fv((Int32)location, (Int32)count, (Single*)v_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform1fv")] - public static - void Uniform1([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Single[] v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* v_ptr = v) - { - Delegates.glUniform1fv((Int32)location, (Int32)count, (Single*)v_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform1i")] - public static - void Uniform1([In, Out] Int32 location, [In, Out] Int32 x) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glUniform1i((Int32)location, (Int32)x); - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform1iv")] - public static - unsafe void Uniform1([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Int32* v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glUniform1iv((Int32)location, (Int32)count, (Int32*)v); - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform1iv")] - public static - void Uniform1([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] ref Int32 v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* v_ptr = &v) - { - Delegates.glUniform1iv((Int32)location, (Int32)count, (Int32*)v_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform1iv")] - public static - void Uniform1([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Int32[] v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* v_ptr = v) - { - Delegates.glUniform1iv((Int32)location, (Int32)count, (Int32*)v_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform2f")] - public static - void Uniform2([In, Out] Int32 location, [In, Out] Single x, [In, Out] Single y) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glUniform2f((Int32)location, (Single)x, (Single)y); - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform2fv")] - public static - unsafe void Uniform2([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Single* v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glUniform2fv((Int32)location, (Int32)count, (Single*)v); - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform2fv")] - public static - void Uniform2([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] ref Single v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* v_ptr = &v) - { - Delegates.glUniform2fv((Int32)location, (Int32)count, (Single*)v_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform2fv")] - public static - void Uniform2([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Single[] v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* v_ptr = v) - { - Delegates.glUniform2fv((Int32)location, (Int32)count, (Single*)v_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform2i")] - public static - void Uniform2([In, Out] Int32 location, [In, Out] Int32 x, [In, Out] Int32 y) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glUniform2i((Int32)location, (Int32)x, (Int32)y); - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform2iv")] - public static - unsafe void Uniform2([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Int32* v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glUniform2iv((Int32)location, (Int32)count, (Int32*)v); - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform2iv")] - public static - void Uniform2([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Int32[] v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* v_ptr = v) - { - Delegates.glUniform2iv((Int32)location, (Int32)count, (Int32*)v_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform3f")] - public static - void Uniform3([In, Out] Int32 location, [In, Out] Single x, [In, Out] Single y, [In, Out] Single z) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glUniform3f((Int32)location, (Single)x, (Single)y, (Single)z); - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform3fv")] - public static - unsafe void Uniform3([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Single* v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glUniform3fv((Int32)location, (Int32)count, (Single*)v); - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform3fv")] - public static - void Uniform3([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] ref Single v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* v_ptr = &v) - { - Delegates.glUniform3fv((Int32)location, (Int32)count, (Single*)v_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform3fv")] - public static - void Uniform3([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Single[] v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* v_ptr = v) - { - Delegates.glUniform3fv((Int32)location, (Int32)count, (Single*)v_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform3i")] - public static - void Uniform3([In, Out] Int32 location, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 z) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glUniform3i((Int32)location, (Int32)x, (Int32)y, (Int32)z); - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform3iv")] - public static - unsafe void Uniform3([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Int32* v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glUniform3iv((Int32)location, (Int32)count, (Int32*)v); - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform3iv")] - public static - void Uniform3([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] ref Int32 v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* v_ptr = &v) - { - Delegates.glUniform3iv((Int32)location, (Int32)count, (Int32*)v_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform3iv")] - public static - void Uniform3([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Int32[] v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* v_ptr = v) - { - Delegates.glUniform3iv((Int32)location, (Int32)count, (Int32*)v_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform4f")] - public static - void Uniform4([In, Out] Int32 location, [In, Out] Single x, [In, Out] Single y, [In, Out] Single z, [In, Out] Single w) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glUniform4f((Int32)location, (Single)x, (Single)y, (Single)z, (Single)w); - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform4fv")] - public static - unsafe void Uniform4([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Single* v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glUniform4fv((Int32)location, (Int32)count, (Single*)v); - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform4fv")] - public static - void Uniform4([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] ref Single v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* v_ptr = &v) - { - Delegates.glUniform4fv((Int32)location, (Int32)count, (Single*)v_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform4fv")] - public static - void Uniform4([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Single[] v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* v_ptr = v) - { - Delegates.glUniform4fv((Int32)location, (Int32)count, (Single*)v_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform4i")] - public static - void Uniform4([In, Out] Int32 location, [In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 z, [In, Out] Int32 w) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glUniform4i((Int32)location, (Int32)x, (Int32)y, (Int32)z, (Int32)w); - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform4iv")] - public static - unsafe void Uniform4([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Int32* v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glUniform4iv((Int32)location, (Int32)count, (Int32*)v); - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform4iv")] - public static - void Uniform4([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] ref Int32 v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* v_ptr = &v) - { - Delegates.glUniform4iv((Int32)location, (Int32)count, (Int32*)v_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specify the value of a uniform variable for the current program object - /// - /// - /// - /// Specifies the location of the uniform variable to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified uniform variable. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniform4iv")] - public static - void Uniform4([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] Int32[] v) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Int32* v_ptr = v) - { - Delegates.glUniform4iv((Int32)location, (Int32)count, (Int32*)v_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniformMatrix2fv")] - public static - unsafe void UniformMatrix2([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] bool transpose, [In, Out] Single* value) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glUniformMatrix2fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniformMatrix2fv")] - public static - void UniformMatrix2([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] bool transpose, [In, Out] ref Single value) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* value_ptr = &value) - { - Delegates.glUniformMatrix2fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniformMatrix2fv")] - public static - void UniformMatrix2([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] bool transpose, [In, Out] Single[] value) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* value_ptr = value) - { - Delegates.glUniformMatrix2fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniformMatrix3fv")] - public static - unsafe void UniformMatrix3([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] bool transpose, [In, Out] Single* value) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glUniformMatrix3fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniformMatrix3fv")] - public static - void UniformMatrix3([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] bool transpose, [In, Out] ref Single value) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* value_ptr = &value) - { - Delegates.glUniformMatrix3fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniformMatrix3fv")] - public static - void UniformMatrix3([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] bool transpose, [In, Out] Single[] value) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* value_ptr = value) - { - Delegates.glUniformMatrix3fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); - } - } - #if DEBUG - } - #endif - } - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniformMatrix4fv")] - public static - unsafe void UniformMatrix4([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] bool transpose, [In, Out] Single* value) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glUniformMatrix4fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value); - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniformMatrix4fv")] - public static - void UniformMatrix4([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] bool transpose, [In, Out] ref Single value) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* value_ptr = &value) - { - Delegates.glUniformMatrix4fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); - } - } - #if DEBUG - } - #endif - } - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUniformMatrix4fv")] - public static - void UniformMatrix4([In, Out] Int32 location, [In, Out] Int32 count, [In, Out] bool transpose, [In, Out] Single[] value) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* value_ptr = value) - { - Delegates.glUniformMatrix4fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Installs a program object as part of current rendering state - /// - /// - /// - /// Specifies the handle of the program object whose executables are to be used as part of current rendering state. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUseProgram")] - public static - void UseProgram([In, Out] Int32 program) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glUseProgram((UInt32)program); - #if DEBUG - } - #endif - } - - - /// - /// Installs a program object as part of current rendering state - /// - /// - /// - /// Specifies the handle of the program object whose executables are to be used as part of current rendering state. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glUseProgram")] - public static - void UseProgram([In, Out] UInt32 program) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glUseProgram((UInt32)program); - #if DEBUG - } - #endif - } - - - /// - /// Validates a program object - /// - /// - /// - /// Specifies the handle of the program object to be validated. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glValidateProgram")] - public static - void ValidateProgram([In, Out] Int32 program) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glValidateProgram((UInt32)program); - #if DEBUG - } - #endif - } - - - /// - /// Validates a program object - /// - /// - /// - /// Specifies the handle of the program object to be validated. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glValidateProgram")] - public static - void ValidateProgram([In, Out] UInt32 program) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glValidateProgram((UInt32)program); - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib1f")] - public static - void VertexAttrib1([In, Out] Int32 indx, [In, Out] Single x) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glVertexAttrib1f((UInt32)indx, (Single)x); - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib1f")] - public static - void VertexAttrib1([In, Out] UInt32 indx, [In, Out] Single x) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glVertexAttrib1f((UInt32)indx, (Single)x); - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib1fv")] - public static - unsafe void VertexAttrib1([In, Out] UInt32 indx, [In, Out] Single* values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glVertexAttrib1fv((UInt32)indx, (Single*)values); - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib1fv")] - public static - unsafe void VertexAttrib1([In, Out] Int32 indx, [In, Out] Single* values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glVertexAttrib1fv((UInt32)indx, (Single*)values); - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib1fv")] - public static - void VertexAttrib1([In, Out] UInt32 indx, [In, Out] Single[] values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* values_ptr = values) - { - Delegates.glVertexAttrib1fv((UInt32)indx, (Single*)values_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib1fv")] - public static - void VertexAttrib1([In, Out] Int32 indx, [In, Out] Single[] values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* values_ptr = values) - { - Delegates.glVertexAttrib1fv((UInt32)indx, (Single*)values_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib2f")] - public static - void VertexAttrib2([In, Out] Int32 indx, [In, Out] Single x, [In, Out] Single y) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glVertexAttrib2f((UInt32)indx, (Single)x, (Single)y); - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib2f")] - public static - void VertexAttrib2([In, Out] UInt32 indx, [In, Out] Single x, [In, Out] Single y) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glVertexAttrib2f((UInt32)indx, (Single)x, (Single)y); - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib2fv")] - public static - void VertexAttrib2([In, Out] Int32 indx, [In, Out] ref Single values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* values_ptr = &values) - { - Delegates.glVertexAttrib2fv((UInt32)indx, (Single*)values_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib2fv")] - public static - unsafe void VertexAttrib2([In, Out] UInt32 indx, [In, Out] Single* values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glVertexAttrib2fv((UInt32)indx, (Single*)values); - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib2fv")] - public static - unsafe void VertexAttrib2([In, Out] Int32 indx, [In, Out] Single* values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glVertexAttrib2fv((UInt32)indx, (Single*)values); - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib2fv")] - public static - void VertexAttrib2([In, Out] UInt32 indx, [In, Out] Single[] values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* values_ptr = values) - { - Delegates.glVertexAttrib2fv((UInt32)indx, (Single*)values_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib2fv")] - public static - void VertexAttrib2([In, Out] Int32 indx, [In, Out] Single[] values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* values_ptr = values) - { - Delegates.glVertexAttrib2fv((UInt32)indx, (Single*)values_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib2fv")] - public static - void VertexAttrib2([In, Out] UInt32 indx, [In, Out] ref Single values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* values_ptr = &values) - { - Delegates.glVertexAttrib2fv((UInt32)indx, (Single*)values_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib3f")] - public static - void VertexAttrib3([In, Out] Int32 indx, [In, Out] Single x, [In, Out] Single y, [In, Out] Single z) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glVertexAttrib3f((UInt32)indx, (Single)x, (Single)y, (Single)z); - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib3f")] - public static - void VertexAttrib3([In, Out] UInt32 indx, [In, Out] Single x, [In, Out] Single y, [In, Out] Single z) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glVertexAttrib3f((UInt32)indx, (Single)x, (Single)y, (Single)z); - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib3fv")] - public static - void VertexAttrib3([In, Out] Int32 indx, [In, Out] ref Single values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* values_ptr = &values) - { - Delegates.glVertexAttrib3fv((UInt32)indx, (Single*)values_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib3fv")] - public static - unsafe void VertexAttrib3([In, Out] UInt32 indx, [In, Out] Single* values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glVertexAttrib3fv((UInt32)indx, (Single*)values); - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib3fv")] - public static - unsafe void VertexAttrib3([In, Out] Int32 indx, [In, Out] Single* values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glVertexAttrib3fv((UInt32)indx, (Single*)values); - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib3fv")] - public static - void VertexAttrib3([In, Out] UInt32 indx, [In, Out] Single[] values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* values_ptr = values) - { - Delegates.glVertexAttrib3fv((UInt32)indx, (Single*)values_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib3fv")] - public static - void VertexAttrib3([In, Out] Int32 indx, [In, Out] Single[] values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* values_ptr = values) - { - Delegates.glVertexAttrib3fv((UInt32)indx, (Single*)values_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib3fv")] - public static - void VertexAttrib3([In, Out] UInt32 indx, [In, Out] ref Single values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* values_ptr = &values) - { - Delegates.glVertexAttrib3fv((UInt32)indx, (Single*)values_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib4f")] - public static - void VertexAttrib4([In, Out] Int32 indx, [In, Out] Single x, [In, Out] Single y, [In, Out] Single z, [In, Out] Single w) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glVertexAttrib4f((UInt32)indx, (Single)x, (Single)y, (Single)z, (Single)w); - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib4f")] - public static - void VertexAttrib4([In, Out] UInt32 indx, [In, Out] Single x, [In, Out] Single y, [In, Out] Single z, [In, Out] Single w) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glVertexAttrib4f((UInt32)indx, (Single)x, (Single)y, (Single)z, (Single)w); - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib4fv")] - public static - void VertexAttrib4([In, Out] Int32 indx, [In, Out] ref Single values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* values_ptr = &values) - { - Delegates.glVertexAttrib4fv((UInt32)indx, (Single*)values_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib4fv")] - public static - unsafe void VertexAttrib4([In, Out] UInt32 indx, [In, Out] Single* values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glVertexAttrib4fv((UInt32)indx, (Single*)values); - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib4fv")] - public static - unsafe void VertexAttrib4([In, Out] Int32 indx, [In, Out] Single* values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glVertexAttrib4fv((UInt32)indx, (Single*)values); - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib4fv")] - public static - void VertexAttrib4([In, Out] UInt32 indx, [In, Out] Single[] values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* values_ptr = values) - { - Delegates.glVertexAttrib4fv((UInt32)indx, (Single*)values_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib4fv")] - public static - void VertexAttrib4([In, Out] Int32 indx, [In, Out] Single[] values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* values_ptr = values) - { - Delegates.glVertexAttrib4fv((UInt32)indx, (Single*)values_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Specifies the value of a generic vertex attribute - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the new values to be used for the specified vertex attribute. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttrib4fv")] - public static - void VertexAttrib4([In, Out] UInt32 indx, [In, Out] ref Single values) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - unsafe - { - fixed (Single* values_ptr = &values) - { - Delegates.glVertexAttrib4fv((UInt32)indx, (Single*)values_ptr); - } - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of generic vertex attribute data - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the number of components per generic vertex attribute. Must be 1, 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE) when they are accessed. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first component of the first generic vertex attribute in the array. The initial value is 0. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttribPointer")] - public static - void VertexAttribPointer([In, Out] UInt32 indx, [In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] bool normalized, [In, Out] Int32 stride, [In, Out] T5[,] ptr) - where T5 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); - } - finally - { - ptr_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of generic vertex attribute data - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the number of components per generic vertex attribute. Must be 1, 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE) when they are accessed. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first component of the first generic vertex attribute in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttribPointer")] - public static - void VertexAttribPointer([In, Out] Int32 indx, [In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] bool normalized, [In, Out] Int32 stride, [In, Out] T5[] ptr) - where T5 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); - } - finally - { - ptr_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of generic vertex attribute data - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the number of components per generic vertex attribute. Must be 1, 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE) when they are accessed. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first component of the first generic vertex attribute in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttribPointer")] - public static - void VertexAttribPointer([In, Out] Int32 indx, [In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] bool normalized, [In, Out] Int32 stride, [In, Out] T5[,] ptr) - where T5 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); - } - finally - { - ptr_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of generic vertex attribute data - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the number of components per generic vertex attribute. Must be 1, 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE) when they are accessed. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first component of the first generic vertex attribute in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttribPointer")] - public static - void VertexAttribPointer([In, Out] Int32 indx, [In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] bool normalized, [In, Out] Int32 stride, [In, Out] T5[,,] ptr) - where T5 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); - } - finally - { - ptr_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of generic vertex attribute data - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the number of components per generic vertex attribute. Must be 1, 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE) when they are accessed. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first component of the first generic vertex attribute in the array. The initial value is 0. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttribPointer")] - public static - void VertexAttribPointer([In, Out] UInt32 indx, [In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] bool normalized, [In, Out] Int32 stride, [In, Out] T5[,,] ptr) - where T5 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); - } - finally - { - ptr_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of generic vertex attribute data - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the number of components per generic vertex attribute. Must be 1, 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE) when they are accessed. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first component of the first generic vertex attribute in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttribPointer")] - public static - void VertexAttribPointer([In, Out] Int32 indx, [In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] bool normalized, [In, Out] Int32 stride, [In, Out] IntPtr ptr) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr); - #if DEBUG - } - #endif - } - - - /// - /// Define an array of generic vertex attribute data - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the number of components per generic vertex attribute. Must be 1, 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE) when they are accessed. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first component of the first generic vertex attribute in the array. The initial value is 0. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttribPointer")] - public static - void VertexAttribPointer([In, Out] UInt32 indx, [In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] bool normalized, [In, Out] Int32 stride, [In, Out] IntPtr ptr) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr); - #if DEBUG - } - #endif - } - - - /// - /// Define an array of generic vertex attribute data - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the number of components per generic vertex attribute. Must be 1, 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE) when they are accessed. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first component of the first generic vertex attribute in the array. The initial value is 0. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttribPointer")] - public static - void VertexAttribPointer([In, Out] UInt32 indx, [In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] bool normalized, [In, Out] Int32 stride, [In, Out] ref T5 ptr) - where T5 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); - } - finally - { - ptr_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of generic vertex attribute data - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the number of components per generic vertex attribute. Must be 1, 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE) when they are accessed. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first component of the first generic vertex attribute in the array. The initial value is 0. - /// - /// - - [System.CLSCompliant(false)] - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttribPointer")] - public static - void VertexAttribPointer([In, Out] UInt32 indx, [In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] bool normalized, [In, Out] Int32 stride, [In, Out] T5[] ptr) - where T5 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); - } - finally - { - ptr_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Define an array of generic vertex attribute data - /// - /// - /// - /// Specifies the index of the generic vertex attribute to be modified. - /// - /// - /// - /// - /// Specifies the number of components per generic vertex attribute. Must be 1, 2, 3, or 4. The initial value is 4. - /// - /// - /// - /// - /// Specifies the data type of each component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. - /// - /// - /// - /// - /// Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE) when they are accessed. - /// - /// - /// - /// - /// Specifies the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0. - /// - /// - /// - /// - /// Specifies a pointer to the first component of the first generic vertex attribute in the array. The initial value is 0. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glVertexAttribPointer")] - public static - void VertexAttribPointer([In, Out] Int32 indx, [In, Out] Int32 size, [In, Out] OpenTK.Graphics.ES20.All type, [In, Out] bool normalized, [In, Out] Int32 stride, [In, Out] ref T5 ptr) - where T5 : struct - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); - try - { - Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); - } - finally - { - ptr_ptr.Free(); - } - #if DEBUG - } - #endif - } - - - /// - /// Set the viewport - /// - /// - /// - /// Specify the lower left corner of the viewport rectangle, in pixels. The initial value is (0,0). - /// - /// - /// - /// - /// Specify the width and height of the viewport. When a GL context is first attached to a window, width and height are set to the dimensions of that window. - /// - /// - - [AutoGenerated(Category = "2.0", Version = "", EntryPoint = "glViewport")] - public static - void Viewport([In, Out] Int32 x, [In, Out] Int32 y, [In, Out] Int32 width, [In, Out] Int32 height) - { - #if DEBUG - using (new ErrorHelper(GraphicsContext.CurrentContext)) - { - #endif - Delegates.glViewport((Int32)x, (Int32)y, (Int32)width, (Int32)height); - #if DEBUG - } - #endif - } - - } -} +#region License +// +// The Open Toolkit Library License +// +// Copyright (c) 2006 - 2009 the Open Toolkit library. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do +// so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// +#endregion + +namespace OpenTK.Graphics.ES20 +{ + using System; + using System.Runtime.InteropServices; + #pragma warning disable 3019 + #pragma warning disable 1591 + #pragma warning disable 1572 + #pragma warning disable 1573 + + static partial class GL + { + + public static partial class Amd + { + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBeginPerfMonitorAMD")] + public static + void BeginPerfMonitor(UInt32 monitor) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBeginPerfMonitorAMD((UInt32)monitor); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeletePerfMonitorsAMD")] + public static + unsafe void DeletePerfMonitors(Int32 n, Int32* monitors) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeletePerfMonitorsAMD")] + public static + void DeletePerfMonitors(Int32 n, ref UInt32 monitors) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* monitors_ptr = &monitors) + { + Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeletePerfMonitorsAMD")] + public static + unsafe void DeletePerfMonitors(Int32 n, UInt32* monitors) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeletePerfMonitorsAMD")] + public static + void DeletePerfMonitors(Int32 n, UInt32[] monitors) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* monitors_ptr = monitors) + { + Delegates.glDeletePerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glEndPerfMonitorAMD")] + public static + void EndPerfMonitor(UInt32 monitor) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glEndPerfMonitorAMD((UInt32)monitor); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")] + public static + unsafe void GenPerfMonitors(Int32 n, Int32* monitors) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")] + public static + void GenPerfMonitors(Int32 n, ref UInt32 monitors) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* monitors_ptr = &monitors) + { + Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")] + public static + unsafe void GenPerfMonitors(Int32 n, UInt32* monitors) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenPerfMonitorsAMD")] + public static + void GenPerfMonitors(Int32 n, UInt32[] monitors) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* monitors_ptr = monitors) + { + Delegates.glGenPerfMonitorsAMD((Int32)n, (UInt32*)monitors_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterDataAMD")] + public static + unsafe void GetPerfMonitorCounterData(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, Int32* data, Int32* bytesWritten) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.ES20.All)pname, (Int32)dataSize, (UInt32*)data, (Int32*)bytesWritten); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterDataAMD")] + public static + void GetPerfMonitorCounterData(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, ref UInt32 data, ref Int32 bytesWritten) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* data_ptr = &data) + fixed (Int32* bytesWritten_ptr = &bytesWritten) + { + Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.ES20.All)pname, (Int32)dataSize, (UInt32*)data_ptr, (Int32*)bytesWritten_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterDataAMD")] + public static + unsafe void GetPerfMonitorCounterData(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, UInt32* data, Int32* bytesWritten) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.ES20.All)pname, (Int32)dataSize, (UInt32*)data, (Int32*)bytesWritten); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterDataAMD")] + public static + void GetPerfMonitorCounterData(UInt32 monitor, OpenTK.Graphics.ES20.All pname, Int32 dataSize, UInt32[] data, Int32[] bytesWritten) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* data_ptr = data) + fixed (Int32* bytesWritten_ptr = bytesWritten) + { + Delegates.glGetPerfMonitorCounterDataAMD((UInt32)monitor, (OpenTK.Graphics.ES20.All)pname, (Int32)dataSize, (UInt32*)data_ptr, (Int32*)bytesWritten_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterInfoAMD")] + public static + void GetPerfMonitorCounterInfo(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] ref T3 data) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.ES20.All)pname, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterInfoAMD")] + public static + void GetPerfMonitorCounterInfo(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T3[,,] data) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.ES20.All)pname, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterInfoAMD")] + public static + void GetPerfMonitorCounterInfo(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T3[,] data) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.ES20.All)pname, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterInfoAMD")] + public static + void GetPerfMonitorCounterInfo(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T3[] data) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.ES20.All)pname, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterInfoAMD")] + public static + void GetPerfMonitorCounterInfo(UInt32 group, UInt32 counter, OpenTK.Graphics.ES20.All pname, IntPtr data) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPerfMonitorCounterInfoAMD((UInt32)group, (UInt32)counter, (OpenTK.Graphics.ES20.All)pname, (IntPtr)data); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCountersAMD")] + public static + unsafe void GetPerfMonitorCounters(UInt32 group, Int32* numCounters, Int32* maxActiveCounters, Int32 counterSize, Int32* counters) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters, (Int32*)maxActiveCounters, (Int32)counterSize, (UInt32*)counters); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCountersAMD")] + public static + unsafe void GetPerfMonitorCounters(UInt32 group, Int32* numCounters, Int32* maxActiveCounters, Int32 counterSize, UInt32* counters) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters, (Int32*)maxActiveCounters, (Int32)counterSize, (UInt32*)counters); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCountersAMD")] + public static + void GetPerfMonitorCounters(UInt32 group, Int32[] numCounters, Int32[] maxActiveCounters, Int32 counterSize, UInt32[] counters) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* numCounters_ptr = numCounters) + fixed (Int32* maxActiveCounters_ptr = maxActiveCounters) + fixed (UInt32* counters_ptr = counters) + { + Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters_ptr, (Int32*)maxActiveCounters_ptr, (Int32)counterSize, (UInt32*)counters_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCountersAMD")] + public static + void GetPerfMonitorCounters(UInt32 group, ref Int32 numCounters, ref Int32 maxActiveCounters, Int32 counterSize, ref UInt32 counters) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* numCounters_ptr = &numCounters) + fixed (Int32* maxActiveCounters_ptr = &maxActiveCounters) + fixed (UInt32* counters_ptr = &counters) + { + Delegates.glGetPerfMonitorCountersAMD((UInt32)group, (Int32*)numCounters_ptr, (Int32*)maxActiveCounters_ptr, (Int32)counterSize, (UInt32*)counters_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")] + public static + unsafe void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, Int32* length, String counterString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length, (String)counterString); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")] + public static + void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, Int32[] length, String counterString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = length) + { + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (String)counterString); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorCounterStringAMD")] + public static + void GetPerfMonitorCounterString(UInt32 group, UInt32 counter, Int32 bufSize, ref Int32 length, String counterString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = &length) + { + Delegates.glGetPerfMonitorCounterStringAMD((UInt32)group, (UInt32)counter, (Int32)bufSize, (Int32*)length_ptr, (String)counterString); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupsAMD")] + public static + unsafe void GetPerfMonitorGroup(Int32* numGroups, Int32 groupsSize, Int32* groups) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups, (Int32)groupsSize, (UInt32*)groups); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupsAMD")] + public static + unsafe void GetPerfMonitorGroup(Int32* numGroups, Int32 groupsSize, UInt32* groups) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups, (Int32)groupsSize, (UInt32*)groups); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupsAMD")] + public static + void GetPerfMonitorGroup(Int32[] numGroups, Int32 groupsSize, UInt32[] groups) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* numGroups_ptr = numGroups) + fixed (UInt32* groups_ptr = groups) + { + Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups_ptr, (Int32)groupsSize, (UInt32*)groups_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupsAMD")] + public static + void GetPerfMonitorGroup(ref Int32 numGroups, Int32 groupsSize, ref UInt32 groups) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* numGroups_ptr = &numGroups) + fixed (UInt32* groups_ptr = &groups) + { + Delegates.glGetPerfMonitorGroupsAMD((Int32*)numGroups_ptr, (Int32)groupsSize, (UInt32*)groups_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")] + public static + unsafe void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, Int32* length, String groupString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length, (String)groupString); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")] + public static + void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, Int32[] length, String groupString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = length) + { + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (String)groupString); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetPerfMonitorGroupStringAMD")] + public static + void GetPerfMonitorGroupString(UInt32 group, Int32 bufSize, ref Int32 length, String groupString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = &length) + { + Delegates.glGetPerfMonitorGroupStringAMD((UInt32)group, (Int32)bufSize, (Int32*)length_ptr, (String)groupString); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glSelectPerfMonitorCountersAMD")] + public static + unsafe void SelectPerfMonitorCounters(UInt32 monitor, bool enable, UInt32 group, Int32 numCounters, Int32* countersList) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glSelectPerfMonitorCountersAMD((UInt32)monitor, (bool)enable, (UInt32)group, (Int32)numCounters, (UInt32*)countersList); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glSelectPerfMonitorCountersAMD")] + public static + void SelectPerfMonitorCounters(UInt32 monitor, bool enable, UInt32 group, Int32 numCounters, ref UInt32 countersList) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* countersList_ptr = &countersList) + { + Delegates.glSelectPerfMonitorCountersAMD((UInt32)monitor, (bool)enable, (UInt32)group, (Int32)numCounters, (UInt32*)countersList_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glSelectPerfMonitorCountersAMD")] + public static + unsafe void SelectPerfMonitorCounters(UInt32 monitor, bool enable, UInt32 group, Int32 numCounters, UInt32* countersList) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glSelectPerfMonitorCountersAMD((UInt32)monitor, (bool)enable, (UInt32)group, (Int32)numCounters, (UInt32*)countersList); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glSelectPerfMonitorCountersAMD")] + public static + void SelectPerfMonitorCounters(UInt32 monitor, bool enable, UInt32 group, Int32 numCounters, UInt32[] countersList) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* countersList_ptr = countersList) + { + Delegates.glSelectPerfMonitorCountersAMD((UInt32)monitor, (bool)enable, (UInt32)group, (Int32)numCounters, (UInt32*)countersList_ptr); + } + } + #if DEBUG + } + #endif + } + + } + + + /// + /// Select active texture unit + /// + /// + /// + /// Specifies which texture unit to make active. The number of texture units is implementation dependent, but must be at least two. texture must be one of GL_TEXTURE, where i ranges from 0 to the larger of (GL_MAX_TEXTURE_COORDS - 1) and (GL_MAX_COMBINED_TEXTURE_IMAGE_UNITS - 1). The initial value is GL_TEXTURE0. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glActiveTexture")] + public static + void ActiveTexture(OpenTK.Graphics.ES20.All texture) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glActiveTexture((OpenTK.Graphics.ES20.All)texture); + #if DEBUG + } + #endif + } + + + /// + /// Attaches a shader object to a program object + /// + /// + /// + /// Specifies the program object to which a shader object will be attached. + /// + /// + /// + /// + /// Specifies the shader object that is to be attached. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glAttachShader")] + public static + void AttachShader(UInt32 program, UInt32 shader) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glAttachShader((UInt32)program, (UInt32)shader); + #if DEBUG + } + #endif + } + + + /// + /// Associates a generic vertex attribute index with a named attribute variable + /// + /// + /// + /// Specifies the handle of the program object in which the association is to be made. + /// + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be bound. + /// + /// + /// + /// + /// Specifies a null terminated string containing the name of the vertex shader attribute variable to which index is to be bound. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindAttribLocation")] + public static + void BindAttribLocation(UInt32 program, UInt32 index, String name) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBindAttribLocation((UInt32)program, (UInt32)index, (String)name); + #if DEBUG + } + #endif + } + + + /// + /// Bind a named buffer object + /// + /// + /// + /// Specifies the target to which the buffer object is bound. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the name of a buffer object. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindBuffer")] + public static + void BindBuffer(OpenTK.Graphics.ES20.All target, UInt32 buffer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBindBuffer((OpenTK.Graphics.ES20.All)target, (UInt32)buffer); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindFramebuffer")] + public static + void BindFramebuffer(OpenTK.Graphics.ES20.All target, UInt32 framebuffer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBindFramebuffer((OpenTK.Graphics.ES20.All)target, (UInt32)framebuffer); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindRenderbuffer")] + public static + void BindRenderbuffer(OpenTK.Graphics.ES20.All target, UInt32 renderbuffer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBindRenderbuffer((OpenTK.Graphics.ES20.All)target, (UInt32)renderbuffer); + #if DEBUG + } + #endif + } + + + /// + /// Bind a named texture to a texturing target + /// + /// + /// + /// Specifies the target to which the texture is bound. Must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the name of a texture. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBindTexture")] + public static + void BindTexture(OpenTK.Graphics.ES20.All target, UInt32 texture) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBindTexture((OpenTK.Graphics.ES20.All)target, (UInt32)texture); + #if DEBUG + } + #endif + } + + + /// + /// Set the blend color + /// + /// + /// + /// specify the components of GL_BLEND_COLOR + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBlendColor")] + public static + void BlendColor(Single red, Single green, Single blue, Single alpha) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBlendColor((Single)red, (Single)green, (Single)blue, (Single)alpha); + #if DEBUG + } + #endif + } + + + /// + /// Specify the equation used for both the RGB blend equation and the Alpha blend equation + /// + /// + /// + /// specifies how source and destination colors are combined. It must be GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT, GL_MIN, GL_MAX. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBlendEquation")] + public static + void BlendEquation(OpenTK.Graphics.ES20.All mode) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBlendEquation((OpenTK.Graphics.ES20.All)mode); + #if DEBUG + } + #endif + } + + + /// + /// Set the RGB blend equation and the alpha blend equation separately + /// + /// + /// + /// specifies the RGB blend equation, how the red, green, and blue components of the source and destination colors are combined. It must be GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT, GL_MIN, GL_MAX. + /// + /// + /// + /// + /// specifies the alpha blend equation, how the alpha component of the source and destination colors are combined. It must be GL_FUNC_ADD, GL_FUNC_SUBTRACT, GL_FUNC_REVERSE_SUBTRACT, GL_MIN, GL_MAX. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBlendEquationSeparate")] + public static + void BlendEquationSeparate(OpenTK.Graphics.ES20.All modeRGB, OpenTK.Graphics.ES20.All modeAlpha) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBlendEquationSeparate((OpenTK.Graphics.ES20.All)modeRGB, (OpenTK.Graphics.ES20.All)modeAlpha); + #if DEBUG + } + #endif + } + + + /// + /// Specify pixel arithmetic + /// + /// + /// + /// Specifies how the red, green, blue, and alpha source blending factors are computed. The following symbolic constants are accepted: GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA, GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, GL_ONE_MINUS_CONSTANT_ALPHA, and GL_SRC_ALPHA_SATURATE. The initial value is GL_ONE. + /// + /// + /// + /// + /// Specifies how the red, green, blue, and alpha destination blending factors are computed. The following symbolic constants are accepted: GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA. GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, and GL_ONE_MINUS_CONSTANT_ALPHA. The initial value is GL_ZERO. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBlendFunc")] + public static + void BlendFunc(OpenTK.Graphics.ES20.All sfactor, OpenTK.Graphics.ES20.All dfactor) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBlendFunc((OpenTK.Graphics.ES20.All)sfactor, (OpenTK.Graphics.ES20.All)dfactor); + #if DEBUG + } + #endif + } + + + /// + /// Specify pixel arithmetic for RGB and alpha components separately + /// + /// + /// + /// Specifies how the red, green, and blue blending factors are computed. The following symbolic constants are accepted: GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA, GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, GL_ONE_MINUS_CONSTANT_ALPHA, and GL_SRC_ALPHA_SATURATE. The initial value is GL_ONE. + /// + /// + /// + /// + /// Specifies how the red, green, and blue destination blending factors are computed. The following symbolic constants are accepted: GL_ZERO, GL_ONE, GL_SRC_COLOR, GL_ONE_MINUS_SRC_COLOR, GL_DST_COLOR, GL_ONE_MINUS_DST_COLOR, GL_SRC_ALPHA, GL_ONE_MINUS_SRC_ALPHA, GL_DST_ALPHA, GL_ONE_MINUS_DST_ALPHA. GL_CONSTANT_COLOR, GL_ONE_MINUS_CONSTANT_COLOR, GL_CONSTANT_ALPHA, and GL_ONE_MINUS_CONSTANT_ALPHA. The initial value is GL_ZERO. + /// + /// + /// + /// + /// Specified how the alpha source blending factor is computed. The same symbolic constants are accepted as for srcRGB. The initial value is GL_ONE. + /// + /// + /// + /// + /// Specified how the alpha destination blending factor is computed. The same symbolic constants are accepted as for dstRGB. The initial value is GL_ZERO. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBlendFuncSeparate")] + public static + void BlendFuncSeparate(OpenTK.Graphics.ES20.All srcRGB, OpenTK.Graphics.ES20.All dstRGB, OpenTK.Graphics.ES20.All srcAlpha, OpenTK.Graphics.ES20.All dstAlpha) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBlendFuncSeparate((OpenTK.Graphics.ES20.All)srcRGB, (OpenTK.Graphics.ES20.All)dstRGB, (OpenTK.Graphics.ES20.All)srcAlpha, (OpenTK.Graphics.ES20.All)dstAlpha); + #if DEBUG + } + #endif + } + + + /// + /// Creates and initializes a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the size in bytes of the buffer object's new data store. + /// + /// + /// + /// + /// Specifies a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied. + /// + /// + /// + /// + /// Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferData")] + public static + void BufferData(OpenTK.Graphics.ES20.All target, IntPtr size, [InAttribute, OutAttribute] ref T2 data, OpenTK.Graphics.ES20.All usage) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferData((OpenTK.Graphics.ES20.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.All)usage); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Creates and initializes a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the size in bytes of the buffer object's new data store. + /// + /// + /// + /// + /// Specifies a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied. + /// + /// + /// + /// + /// Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferData")] + public static + void BufferData(OpenTK.Graphics.ES20.All target, IntPtr size, [InAttribute, OutAttribute] T2[,,] data, OpenTK.Graphics.ES20.All usage) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferData((OpenTK.Graphics.ES20.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.All)usage); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Creates and initializes a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the size in bytes of the buffer object's new data store. + /// + /// + /// + /// + /// Specifies a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied. + /// + /// + /// + /// + /// Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferData")] + public static + void BufferData(OpenTK.Graphics.ES20.All target, IntPtr size, [InAttribute, OutAttribute] T2[,] data, OpenTK.Graphics.ES20.All usage) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferData((OpenTK.Graphics.ES20.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.All)usage); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Creates and initializes a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the size in bytes of the buffer object's new data store. + /// + /// + /// + /// + /// Specifies a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied. + /// + /// + /// + /// + /// Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferData")] + public static + void BufferData(OpenTK.Graphics.ES20.All target, IntPtr size, [InAttribute, OutAttribute] T2[] data, OpenTK.Graphics.ES20.All usage) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferData((OpenTK.Graphics.ES20.All)target, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject(), (OpenTK.Graphics.ES20.All)usage); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Creates and initializes a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the size in bytes of the buffer object's new data store. + /// + /// + /// + /// + /// Specifies a pointer to data that will be copied into the data store for initialization, or NULL if no data is to be copied. + /// + /// + /// + /// + /// Specifies the expected usage pattern of the data store. The symbolic constant must be GL_STREAM_DRAW, GL_STREAM_READ, GL_STREAM_COPY, GL_STATIC_DRAW, GL_STATIC_READ, GL_STATIC_COPY, GL_DYNAMIC_DRAW, GL_DYNAMIC_READ, or GL_DYNAMIC_COPY. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferData")] + public static + void BufferData(OpenTK.Graphics.ES20.All target, IntPtr size, IntPtr data, OpenTK.Graphics.ES20.All usage) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBufferData((OpenTK.Graphics.ES20.All)target, (IntPtr)size, (IntPtr)data, (OpenTK.Graphics.ES20.All)usage); + #if DEBUG + } + #endif + } + + + /// + /// Updates a subset of a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. + /// + /// + /// + /// + /// Specifies the size in bytes of the data store region being replaced. + /// + /// + /// + /// + /// Specifies a pointer to the new data that will be copied into the data store. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferSubData")] + public static + void BufferSubData(OpenTK.Graphics.ES20.All target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] ref T3 data) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferSubData((OpenTK.Graphics.ES20.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Updates a subset of a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. + /// + /// + /// + /// + /// Specifies the size in bytes of the data store region being replaced. + /// + /// + /// + /// + /// Specifies a pointer to the new data that will be copied into the data store. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferSubData")] + public static + void BufferSubData(OpenTK.Graphics.ES20.All target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] T3[,,] data) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferSubData((OpenTK.Graphics.ES20.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Updates a subset of a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. + /// + /// + /// + /// + /// Specifies the size in bytes of the data store region being replaced. + /// + /// + /// + /// + /// Specifies a pointer to the new data that will be copied into the data store. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferSubData")] + public static + void BufferSubData(OpenTK.Graphics.ES20.All target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] T3[,] data) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferSubData((OpenTK.Graphics.ES20.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Updates a subset of a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. + /// + /// + /// + /// + /// Specifies the size in bytes of the data store region being replaced. + /// + /// + /// + /// + /// Specifies a pointer to the new data that will be copied into the data store. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferSubData")] + public static + void BufferSubData(OpenTK.Graphics.ES20.All target, IntPtr offset, IntPtr size, [InAttribute, OutAttribute] T3[] data) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glBufferSubData((OpenTK.Graphics.ES20.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Updates a subset of a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the offset into the buffer object's data store where data replacement will begin, measured in bytes. + /// + /// + /// + /// + /// Specifies the size in bytes of the data store region being replaced. + /// + /// + /// + /// + /// Specifies a pointer to the new data that will be copied into the data store. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glBufferSubData")] + public static + void BufferSubData(OpenTK.Graphics.ES20.All target, IntPtr offset, IntPtr size, IntPtr data) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glBufferSubData((OpenTK.Graphics.ES20.All)target, (IntPtr)offset, (IntPtr)size, (IntPtr)data); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCheckFramebufferStatus")] + public static + OpenTK.Graphics.ES20.All CheckFramebufferStatus(OpenTK.Graphics.ES20.All target) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glCheckFramebufferStatus((OpenTK.Graphics.ES20.All)target); + #if DEBUG + } + #endif + } + + + /// + /// Clear buffers to preset values + /// + /// + /// + /// Bitwise OR of masks that indicate the buffers to be cleared. The four masks are GL_COLOR_BUFFER_BIT, GL_DEPTH_BUFFER_BIT, GL_ACCUM_BUFFER_BIT, and GL_STENCIL_BUFFER_BIT. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glClear")] + public static + void Clear(UInt32 mask) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClear((UInt32)mask); + #if DEBUG + } + #endif + } + + + /// + /// Specify clear values for the color buffers + /// + /// + /// + /// Specify the red, green, blue, and alpha values used when the color buffers are cleared. The initial values are all 0. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glClearColor")] + public static + void ClearColor(Single red, Single green, Single blue, Single alpha) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClearColor((Single)red, (Single)green, (Single)blue, (Single)alpha); + #if DEBUG + } + #endif + } + + + /// + /// Specify the clear value for the depth buffer + /// + /// + /// + /// Specifies the depth value used when the depth buffer is cleared. The initial value is 1. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glClearDepthf")] + public static + void ClearDepth(Single depth) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClearDepthf((Single)depth); + #if DEBUG + } + #endif + } + + + /// + /// Specify the clear value for the stencil buffer + /// + /// + /// + /// Specifies the index used when the stencil buffer is cleared. The initial value is 0. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glClearStencil")] + public static + void ClearStencil(Int32 s) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glClearStencil((Int32)s); + #if DEBUG + } + #endif + } + + + /// + /// Enable and disable writing of frame buffer color components + /// + /// + /// + /// Specify whether red, green, blue, and alpha can or cannot be written into the frame buffer. The initial values are all GL_TRUE, indicating that the color components can be written. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glColorMask")] + public static + void ColorMask(bool red, bool green, bool blue, bool alpha) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glColorMask((bool)red, (bool)green, (bool)blue, (bool)alpha); + #if DEBUG + } + #endif + } + + + /// + /// Compiles a shader object + /// + /// + /// + /// Specifies the shader object to be compiled. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompileShader")] + public static + void CompileShader(UInt32 shader) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glCompileShader((UInt32)shader); + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage2D")] + public static + void CompressedTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] ref T7 data) + where T7 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage2D")] + public static + void CompressedTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T7[,,] data) + where T7 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage2D")] + public static + void CompressedTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T7[,] data) + where T7 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage2D")] + public static + void CompressedTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T7[] data) + where T7 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels wide and cube-mapped texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be Must be 2 sup n + 2 ( border ) for some integer . All implementations support 2D texture images that are at least 64 texels high and cube-mapped texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage2D")] + public static + void CompressedTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, Int32 imageSize, IntPtr data) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glCompressedTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (Int32)imageSize, (IntPtr)data); + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")] + public static + void CompressedTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, [InAttribute, OutAttribute] ref T8 data) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")] + public static + void CompressedTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, [InAttribute, OutAttribute] T8[,,] data) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")] + public static + void CompressedTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, [InAttribute, OutAttribute] T8[,] data) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")] + public static + void CompressedTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, [InAttribute, OutAttribute] T8[] data) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage2D")] + public static + void CompressedTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glCompressedTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data); + #if DEBUG + } + #endif + } + + + /// + /// Copy pixels into a 2D texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the internal format of the texture. Must be one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_RGB, GL_R3_G3_B2, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specify the window coordinates of the lower left corner of the rectangular region of pixels to be copied. + /// + /// + /// + /// + /// Specifies the width of the texture image. Must be 0 or 2 sup n + 2 ( border ) for some integer . + /// + /// + /// + /// + /// Specifies the height of the texture image. Must be 0 or 2 sup m + 2 ( border ) for some integer . + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCopyTexImage2D")] + public static + void CopyTexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 x, Int32 y, Int32 width, Int32 height, Int32 border) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glCopyTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)x, (Int32)y, (Int32)width, (Int32)height, (Int32)border); + #if DEBUG + } + #endif + } + + + /// + /// Copy a two-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specify the window coordinates of the lower left corner of the rectangular region of pixels to be copied. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCopyTexSubImage2D")] + public static + void CopyTexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 x, Int32 y, Int32 width, Int32 height) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glCopyTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif + } + + + /// + /// Creates a program object + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCreateProgram")] + public static + UInt32 CreateProgram() + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glCreateProgram(); + #if DEBUG + } + #endif + } + + + /// + /// Creates a shader object + /// + /// + /// + /// Specifies the type of shader to be created. Must be either GL_VERTEX_SHADER or GL_FRAGMENT_SHADER. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCreateShader")] + public static + UInt32 CreateShader(OpenTK.Graphics.ES20.All type) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glCreateShader((OpenTK.Graphics.ES20.All)type); + #if DEBUG + } + #endif + } + + + /// + /// Specify whether front- or back-facing facets can be culled + /// + /// + /// + /// Specifies whether front- or back-facing facets are candidates for culling. Symbolic constants GL_FRONT, GL_BACK, and GL_FRONT_AND_BACK are accepted. The initial value is GL_BACK. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCullFace")] + public static + void CullFace(OpenTK.Graphics.ES20.All mode) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glCullFace((OpenTK.Graphics.ES20.All)mode); + #if DEBUG + } + #endif + } + + + /// + /// Delete named buffer objects + /// + /// + /// + /// Specifies the number of buffer objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of buffer objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteBuffers")] + public static + unsafe void DeleteBuffers(Int32 n, Int32* buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers); + #if DEBUG + } + #endif + } + + + /// + /// Delete named buffer objects + /// + /// + /// + /// Specifies the number of buffer objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of buffer objects to be deleted. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteBuffers")] + public static + void DeleteBuffers(Int32 n, ref UInt32 buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* buffers_ptr = &buffers) + { + Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Delete named buffer objects + /// + /// + /// + /// Specifies the number of buffer objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of buffer objects to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteBuffers")] + public static + unsafe void DeleteBuffers(Int32 n, UInt32* buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers); + #if DEBUG + } + #endif + } + + + /// + /// Delete named buffer objects + /// + /// + /// + /// Specifies the number of buffer objects to be deleted. + /// + /// + /// + /// + /// Specifies an array of buffer objects to be deleted. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteBuffers")] + public static + void DeleteBuffers(Int32 n, UInt32[] buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* buffers_ptr = buffers) + { + Delegates.glDeleteBuffers((Int32)n, (UInt32*)buffers_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFramebuffers")] + public static + unsafe void DeleteFramebuffers(Int32 n, Int32* framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFramebuffers")] + public static + void DeleteFramebuffers(Int32 n, ref UInt32 framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* framebuffers_ptr = &framebuffers) + { + Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFramebuffers")] + public static + unsafe void DeleteFramebuffers(Int32 n, UInt32* framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFramebuffers")] + public static + void DeleteFramebuffers(Int32 n, UInt32[] framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* framebuffers_ptr = framebuffers) + { + Delegates.glDeleteFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Deletes a program object + /// + /// + /// + /// Specifies the program object to be deleted. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteProgram")] + public static + void DeleteProgram(UInt32 program) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteProgram((UInt32)program); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteRenderbuffers")] + public static + unsafe void DeleteRenderbuffers(Int32 n, Int32* renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteRenderbuffers")] + public static + void DeleteRenderbuffers(Int32 n, ref UInt32 renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* renderbuffers_ptr = &renderbuffers) + { + Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteRenderbuffers")] + public static + unsafe void DeleteRenderbuffers(Int32 n, UInt32* renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteRenderbuffers")] + public static + void DeleteRenderbuffers(Int32 n, UInt32[] renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* renderbuffers_ptr = renderbuffers) + { + Delegates.glDeleteRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Deletes a shader object + /// + /// + /// + /// Specifies the shader object to be deleted. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteShader")] + public static + void DeleteShader(UInt32 shader) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteShader((UInt32)shader); + #if DEBUG + } + #endif + } + + + /// + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteTextures")] + public static + unsafe void DeleteTextures(Int32 n, Int32* textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures); + #if DEBUG + } + #endif + } + + + /// + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteTextures")] + public static + void DeleteTextures(Int32 n, ref UInt32 textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* textures_ptr = &textures) + { + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteTextures")] + public static + unsafe void DeleteTextures(Int32 n, UInt32* textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures); + #if DEBUG + } + #endif + } + + + /// + /// Delete named textures + /// + /// + /// + /// Specifies the number of textures to be deleted. + /// + /// + /// + /// + /// Specifies an array of textures to be deleted. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteTextures")] + public static + void DeleteTextures(Int32 n, UInt32[] textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* textures_ptr = textures) + { + Delegates.glDeleteTextures((Int32)n, (UInt32*)textures_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify the value used for depth buffer comparisons + /// + /// + /// + /// Specifies the depth comparison function. Symbolic constants GL_NEVER, GL_LESS, GL_EQUAL, GL_LEQUAL, GL_GREATER, GL_NOTEQUAL, GL_GEQUAL, and GL_ALWAYS are accepted. The initial value is GL_LESS. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDepthFunc")] + public static + void DepthFunc(OpenTK.Graphics.ES20.All func) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDepthFunc((OpenTK.Graphics.ES20.All)func); + #if DEBUG + } + #endif + } + + + /// + /// Enable or disable writing into the depth buffer + /// + /// + /// + /// Specifies whether the depth buffer is enabled for writing. If flag is GL_FALSE, depth buffer writing is disabled. Otherwise, it is enabled. Initially, depth buffer writing is enabled. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDepthMask")] + public static + void DepthMask(bool flag) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDepthMask((bool)flag); + #if DEBUG + } + #endif + } + + + /// + /// Specify mapping of depth values from normalized device coordinates to window coordinates + /// + /// + /// + /// Specifies the mapping of the near clipping plane to window coordinates. The initial value is 0. + /// + /// + /// + /// + /// Specifies the mapping of the far clipping plane to window coordinates. The initial value is 1. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDepthRangef")] + public static + void DepthRange(Single zNear, Single zFar) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDepthRangef((Single)zNear, (Single)zFar); + #if DEBUG + } + #endif + } + + + /// + /// Detaches a shader object from a program object to which it is attached + /// + /// + /// + /// Specifies the program object from which to detach the shader object. + /// + /// + /// + /// + /// Specifies the shader object to be detached. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDetachShader")] + public static + void DetachShader(UInt32 program, UInt32 shader) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDetachShader((UInt32)program, (UInt32)shader); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDisable")] + public static + void Disable(OpenTK.Graphics.ES20.All cap) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDisable((OpenTK.Graphics.ES20.All)cap); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDisableDriverControlQCOM")] + public static + void DisableDriverControlQCOM(UInt32 driverControl) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDisableDriverControlQCOM((UInt32)driverControl); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDisableVertexAttribArray")] + public static + void DisableVertexAttribArray(UInt32 index) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDisableVertexAttribArray((UInt32)index); + #if DEBUG + } + #endif + } + + + /// + /// Render primitives from array data + /// + /// + /// + /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. + /// + /// + /// + /// + /// Specifies the starting index in the enabled arrays. + /// + /// + /// + /// + /// Specifies the number of indices to be rendered. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawArrays")] + public static + void DrawArrays(OpenTK.Graphics.ES20.All mode, Int32 first, Int32 count) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDrawArrays((OpenTK.Graphics.ES20.All)mode, (Int32)first, (Int32)count); + #if DEBUG + } + #endif + } + + + /// + /// Render primitives from array data + /// + /// + /// + /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. + /// + /// + /// + /// + /// Specifies the number of elements to be rendered. + /// + /// + /// + /// + /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. + /// + /// + /// + /// + /// Specifies a pointer to the location where the indices are stored. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")] + public static + void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] ref T3 indices) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElements((OpenTK.Graphics.ES20.All)mode, (Int32)count, (OpenTK.Graphics.ES20.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Render primitives from array data + /// + /// + /// + /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. + /// + /// + /// + /// + /// Specifies the number of elements to be rendered. + /// + /// + /// + /// + /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. + /// + /// + /// + /// + /// Specifies a pointer to the location where the indices are stored. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")] + public static + void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T3[,,] indices) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElements((OpenTK.Graphics.ES20.All)mode, (Int32)count, (OpenTK.Graphics.ES20.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Render primitives from array data + /// + /// + /// + /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. + /// + /// + /// + /// + /// Specifies the number of elements to be rendered. + /// + /// + /// + /// + /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. + /// + /// + /// + /// + /// Specifies a pointer to the location where the indices are stored. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")] + public static + void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T3[,] indices) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElements((OpenTK.Graphics.ES20.All)mode, (Int32)count, (OpenTK.Graphics.ES20.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Render primitives from array data + /// + /// + /// + /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. + /// + /// + /// + /// + /// Specifies the number of elements to be rendered. + /// + /// + /// + /// + /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. + /// + /// + /// + /// + /// Specifies a pointer to the location where the indices are stored. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")] + public static + void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T3[] indices) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle indices_ptr = GCHandle.Alloc(indices, GCHandleType.Pinned); + try + { + Delegates.glDrawElements((OpenTK.Graphics.ES20.All)mode, (Int32)count, (OpenTK.Graphics.ES20.All)type, (IntPtr)indices_ptr.AddrOfPinnedObject()); + } + finally + { + indices_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Render primitives from array data + /// + /// + /// + /// Specifies what kind of primitives to render. Symbolic constants GL_POINTS, GL_LINE_STRIP, GL_LINE_LOOP, GL_LINES, GL_TRIANGLE_STRIP, GL_TRIANGLE_FAN, GL_TRIANGLES, GL_QUAD_STRIP, GL_QUADS, and GL_POLYGON are accepted. + /// + /// + /// + /// + /// Specifies the number of elements to be rendered. + /// + /// + /// + /// + /// Specifies the type of the values in indices. Must be one of GL_UNSIGNED_BYTE, GL_UNSIGNED_SHORT, or GL_UNSIGNED_INT. + /// + /// + /// + /// + /// Specifies a pointer to the location where the indices are stored. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDrawElements")] + public static + void DrawElements(OpenTK.Graphics.ES20.All mode, Int32 count, OpenTK.Graphics.ES20.All type, IntPtr indices) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDrawElements((OpenTK.Graphics.ES20.All)mode, (Int32)count, (OpenTK.Graphics.ES20.All)type, (IntPtr)indices); + #if DEBUG + } + #endif + } + + + /// + /// Enable or disable server-side GL capabilities + /// + /// + /// + /// Specifies a symbolic constant indicating a GL capability. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glEnable")] + public static + void Enable(OpenTK.Graphics.ES20.All cap) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glEnable((OpenTK.Graphics.ES20.All)cap); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glEnableDriverControlQCOM")] + public static + void EnableDriverControlQCOM(UInt32 driverControl) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glEnableDriverControlQCOM((UInt32)driverControl); + #if DEBUG + } + #endif + } + + + /// + /// Enable or disable a generic vertex attribute array + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be enabled or disabled. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glEnableVertexAttribArray")] + public static + void EnableVertexAttribArray(UInt32 index) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glEnableVertexAttribArray((UInt32)index); + #if DEBUG + } + #endif + } + + + /// + /// Block until all GL execution is complete + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glFinish")] + public static + void Finish() + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFinish(); + #if DEBUG + } + #endif + } + + + /// + /// Force execution of GL commands in finite time + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glFlush")] + public static + void Flush() + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFlush(); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glFramebufferRenderbuffer")] + public static + void FramebufferRenderbuffer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All renderbuffertarget, UInt32 renderbuffer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFramebufferRenderbuffer((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)renderbuffertarget, (UInt32)renderbuffer); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glFramebufferTexture2D")] + public static + void FramebufferTexture2D(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All textarget, UInt32 texture, Int32 level) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFramebufferTexture2D((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)textarget, (UInt32)texture, (Int32)level); + #if DEBUG + } + #endif + } + + + /// + /// Define front- and back-facing polygons + /// + /// + /// + /// Specifies the orientation of front-facing polygons. GL_CW and GL_CCW are accepted. The initial value is GL_CCW. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glFrontFace")] + public static + void FrontFace(OpenTK.Graphics.ES20.All mode) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFrontFace((OpenTK.Graphics.ES20.All)mode); + #if DEBUG + } + #endif + } + + + /// + /// Generate buffer object names + /// + /// + /// + /// Specifies the number of buffer object names to be generated. + /// + /// + /// + /// + /// Specifies an array in which the generated buffer object names are stored. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenBuffers")] + public static + unsafe void GenBuffers(Int32 n, Int32* buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenBuffers((Int32)n, (UInt32*)buffers); + #if DEBUG + } + #endif + } + + + /// + /// Generate buffer object names + /// + /// + /// + /// Specifies the number of buffer object names to be generated. + /// + /// + /// + /// + /// Specifies an array in which the generated buffer object names are stored. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenBuffers")] + public static + void GenBuffers(Int32 n, ref UInt32 buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* buffers_ptr = &buffers) + { + Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Generate buffer object names + /// + /// + /// + /// Specifies the number of buffer object names to be generated. + /// + /// + /// + /// + /// Specifies an array in which the generated buffer object names are stored. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenBuffers")] + public static + unsafe void GenBuffers(Int32 n, UInt32* buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenBuffers((Int32)n, (UInt32*)buffers); + #if DEBUG + } + #endif + } + + + /// + /// Generate buffer object names + /// + /// + /// + /// Specifies the number of buffer object names to be generated. + /// + /// + /// + /// + /// Specifies an array in which the generated buffer object names are stored. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenBuffers")] + public static + void GenBuffers(Int32 n, UInt32[] buffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* buffers_ptr = buffers) + { + Delegates.glGenBuffers((Int32)n, (UInt32*)buffers_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenerateMipmap")] + public static + void GenerateMipmap(OpenTK.Graphics.ES20.All target) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenerateMipmap((OpenTK.Graphics.ES20.All)target); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")] + public static + unsafe void GenFramebuffers(Int32 n, Int32* framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")] + public static + void GenFramebuffers(Int32 n, ref UInt32 framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* framebuffers_ptr = &framebuffers) + { + Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")] + public static + unsafe void GenFramebuffers(Int32 n, UInt32* framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFramebuffers")] + public static + void GenFramebuffers(Int32 n, UInt32[] framebuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* framebuffers_ptr = framebuffers) + { + Delegates.glGenFramebuffers((Int32)n, (UInt32*)framebuffers_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenRenderbuffers")] + public static + unsafe void GenRenderbuffers(Int32 n, Int32* renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenRenderbuffers")] + public static + void GenRenderbuffers(Int32 n, ref UInt32 renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* renderbuffers_ptr = &renderbuffers) + { + Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenRenderbuffers")] + public static + unsafe void GenRenderbuffers(Int32 n, UInt32* renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenRenderbuffers")] + public static + void GenRenderbuffers(Int32 n, UInt32[] renderbuffers) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* renderbuffers_ptr = renderbuffers) + { + Delegates.glGenRenderbuffers((Int32)n, (UInt32*)renderbuffers_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Generate texture names + /// + /// + /// + /// Specifies the number of texture names to be generated. + /// + /// + /// + /// + /// Specifies an array in which the generated texture names are stored. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenTextures")] + public static + unsafe void GenTextures(Int32 n, Int32* textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenTextures((Int32)n, (UInt32*)textures); + #if DEBUG + } + #endif + } + + + /// + /// Generate texture names + /// + /// + /// + /// Specifies the number of texture names to be generated. + /// + /// + /// + /// + /// Specifies an array in which the generated texture names are stored. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenTextures")] + public static + void GenTextures(Int32 n, ref UInt32 textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* textures_ptr = &textures) + { + Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Generate texture names + /// + /// + /// + /// Specifies the number of texture names to be generated. + /// + /// + /// + /// + /// Specifies an array in which the generated texture names are stored. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenTextures")] + public static + unsafe void GenTextures(Int32 n, UInt32* textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenTextures((Int32)n, (UInt32*)textures); + #if DEBUG + } + #endif + } + + + /// + /// Generate texture names + /// + /// + /// + /// Specifies the number of texture names to be generated. + /// + /// + /// + /// + /// Specifies an array in which the generated texture names are stored. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenTextures")] + public static + void GenTextures(Int32 n, UInt32[] textures) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* textures_ptr = textures) + { + Delegates.glGenTextures((Int32)n, (UInt32*)textures_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns information about an active attribute variable for the specified program object + /// + /// + /// + /// Specifies the program object to be queried. + /// + /// + /// + /// + /// Specifies the index of the attribute variable to be queried. + /// + /// + /// + /// + /// Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name. + /// + /// + /// + /// + /// Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed. + /// + /// + /// + /// + /// Returns the size of the attribute variable. + /// + /// + /// + /// + /// Returns the data type of the attribute variable. + /// + /// + /// + /// + /// Returns a null terminated string containing the name of the attribute variable. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] + public static + unsafe void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.All*)type, (String)name); + #if DEBUG + } + #endif + } + + + /// + /// Returns information about an active attribute variable for the specified program object + /// + /// + /// + /// Specifies the program object to be queried. + /// + /// + /// + /// + /// Specifies the index of the attribute variable to be queried. + /// + /// + /// + /// + /// Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name. + /// + /// + /// + /// + /// Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed. + /// + /// + /// + /// + /// Returns the size of the attribute variable. + /// + /// + /// + /// + /// Returns the data type of the attribute variable. + /// + /// + /// + /// + /// Returns a null terminated string containing the name of the attribute variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] + public static + void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, Int32[] length, Int32[] size, OpenTK.Graphics.ES20.All[] type, String name) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = length) + fixed (Int32* size_ptr = size) + fixed (OpenTK.Graphics.ES20.All* type_ptr = type) + { + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns information about an active attribute variable for the specified program object + /// + /// + /// + /// Specifies the program object to be queried. + /// + /// + /// + /// + /// Specifies the index of the attribute variable to be queried. + /// + /// + /// + /// + /// Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name. + /// + /// + /// + /// + /// Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed. + /// + /// + /// + /// + /// Returns the size of the attribute variable. + /// + /// + /// + /// + /// Returns the data type of the attribute variable. + /// + /// + /// + /// + /// Returns a null terminated string containing the name of the attribute variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveAttrib")] + public static + void GetActiveAttrib(UInt32 program, UInt32 index, Int32 bufsize, ref Int32 length, ref Int32 size, ref OpenTK.Graphics.ES20.All type, String name) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = &length) + fixed (Int32* size_ptr = &size) + fixed (OpenTK.Graphics.ES20.All* type_ptr = &type) + { + Delegates.glGetActiveAttrib((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns information about an active uniform variable for the specified program object + /// + /// + /// + /// Specifies the program object to be queried. + /// + /// + /// + /// + /// Specifies the index of the uniform variable to be queried. + /// + /// + /// + /// + /// Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name. + /// + /// + /// + /// + /// Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed. + /// + /// + /// + /// + /// Returns the size of the uniform variable. + /// + /// + /// + /// + /// Returns the data type of the uniform variable. + /// + /// + /// + /// + /// Returns a null terminated string containing the name of the uniform variable. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] + public static + unsafe void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, Int32* length, Int32* size, OpenTK.Graphics.ES20.All* type, String name) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length, (Int32*)size, (OpenTK.Graphics.ES20.All*)type, (String)name); + #if DEBUG + } + #endif + } + + + /// + /// Returns information about an active uniform variable for the specified program object + /// + /// + /// + /// Specifies the program object to be queried. + /// + /// + /// + /// + /// Specifies the index of the uniform variable to be queried. + /// + /// + /// + /// + /// Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name. + /// + /// + /// + /// + /// Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed. + /// + /// + /// + /// + /// Returns the size of the uniform variable. + /// + /// + /// + /// + /// Returns the data type of the uniform variable. + /// + /// + /// + /// + /// Returns a null terminated string containing the name of the uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] + public static + void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, Int32[] length, Int32[] size, OpenTK.Graphics.ES20.All[] type, String name) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = length) + fixed (Int32* size_ptr = size) + fixed (OpenTK.Graphics.ES20.All* type_ptr = type) + { + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns information about an active uniform variable for the specified program object + /// + /// + /// + /// Specifies the program object to be queried. + /// + /// + /// + /// + /// Specifies the index of the uniform variable to be queried. + /// + /// + /// + /// + /// Specifies the maximum number of characters OpenGL is allowed to write in the character buffer indicated by name. + /// + /// + /// + /// + /// Returns the number of characters actually written by OpenGL in the string indicated by name (excluding the null terminator) if a value other than NULL is passed. + /// + /// + /// + /// + /// Returns the size of the uniform variable. + /// + /// + /// + /// + /// Returns the data type of the uniform variable. + /// + /// + /// + /// + /// Returns a null terminated string containing the name of the uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetActiveUniform")] + public static + void GetActiveUniform(UInt32 program, UInt32 index, Int32 bufsize, ref Int32 length, ref Int32 size, ref OpenTK.Graphics.ES20.All type, String name) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = &length) + fixed (Int32* size_ptr = &size) + fixed (OpenTK.Graphics.ES20.All* type_ptr = &type) + { + Delegates.glGetActiveUniform((UInt32)program, (UInt32)index, (Int32)bufsize, (Int32*)length_ptr, (Int32*)size_ptr, (OpenTK.Graphics.ES20.All*)type_ptr, (String)name); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns the handles of the shader objects attached to a program object + /// + /// + /// + /// Specifies the program object to be queried. + /// + /// + /// + /// + /// Specifies the size of the array for storing the returned object names. + /// + /// + /// + /// + /// Returns the number of names actually returned in objects. + /// + /// + /// + /// + /// Specifies an array that is used to return the names of attached shader objects. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttachedShaders")] + public static + unsafe void GetAttachedShaders(UInt32 program, Int32 maxcount, Int32* count, Int32* shaders) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetAttachedShaders((UInt32)program, (Int32)maxcount, (Int32*)count, (UInt32*)shaders); + #if DEBUG + } + #endif + } + + + /// + /// Returns the handles of the shader objects attached to a program object + /// + /// + /// + /// Specifies the program object to be queried. + /// + /// + /// + /// + /// Specifies the size of the array for storing the returned object names. + /// + /// + /// + /// + /// Returns the number of names actually returned in objects. + /// + /// + /// + /// + /// Specifies an array that is used to return the names of attached shader objects. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttachedShaders")] + public static + unsafe void GetAttachedShaders(UInt32 program, Int32 maxcount, Int32* count, UInt32* shaders) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetAttachedShaders((UInt32)program, (Int32)maxcount, (Int32*)count, (UInt32*)shaders); + #if DEBUG + } + #endif + } + + + /// + /// Returns the handles of the shader objects attached to a program object + /// + /// + /// + /// Specifies the program object to be queried. + /// + /// + /// + /// + /// Specifies the size of the array for storing the returned object names. + /// + /// + /// + /// + /// Returns the number of names actually returned in objects. + /// + /// + /// + /// + /// Specifies an array that is used to return the names of attached shader objects. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttachedShaders")] + public static + void GetAttachedShaders(UInt32 program, Int32 maxcount, Int32[] count, UInt32[] shaders) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* count_ptr = count) + fixed (UInt32* shaders_ptr = shaders) + { + Delegates.glGetAttachedShaders((UInt32)program, (Int32)maxcount, (Int32*)count_ptr, (UInt32*)shaders_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns the handles of the shader objects attached to a program object + /// + /// + /// + /// Specifies the program object to be queried. + /// + /// + /// + /// + /// Specifies the size of the array for storing the returned object names. + /// + /// + /// + /// + /// Returns the number of names actually returned in objects. + /// + /// + /// + /// + /// Specifies an array that is used to return the names of attached shader objects. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttachedShaders")] + public static + void GetAttachedShaders(UInt32 program, Int32 maxcount, ref Int32 count, ref UInt32 shaders) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* count_ptr = &count) + fixed (UInt32* shaders_ptr = &shaders) + { + Delegates.glGetAttachedShaders((UInt32)program, (Int32)maxcount, (Int32*)count_ptr, (UInt32*)shaders_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns the location of an attribute variable + /// + /// + /// + /// Specifies the program object to be queried. + /// + /// + /// + /// + /// Points to a null terminated string containing the name of the attribute variable whose location is to be queried. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetAttribLocation")] + public static + int GetAttribLocation(UInt32 program, String name) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glGetAttribLocation((UInt32)program, (String)name); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBooleanv")] + public static + unsafe void GetBoolean(OpenTK.Graphics.ES20.All pname, bool* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetBooleanv((OpenTK.Graphics.ES20.All)pname, (bool*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBooleanv")] + public static + void GetBoolean(OpenTK.Graphics.ES20.All pname, bool[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (bool* @params_ptr = @params) + { + Delegates.glGetBooleanv((OpenTK.Graphics.ES20.All)pname, (bool*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBooleanv")] + public static + void GetBoolean(OpenTK.Graphics.ES20.All pname, ref bool @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (bool* @params_ptr = &@params) + { + Delegates.glGetBooleanv((OpenTK.Graphics.ES20.All)pname, (bool*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return parameters of a buffer object + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the symbolic name of a buffer object parameter. Accepted values are GL_BUFFER_ACCESS, GL_BUFFER_MAPPED, GL_BUFFER_SIZE, or GL_BUFFER_USAGE. + /// + /// + /// + /// + /// Returns the requested parameter. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBufferParameteriv")] + public static + unsafe void GetBufferParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Return parameters of a buffer object + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the symbolic name of a buffer object parameter. Accepted values are GL_BUFFER_ACCESS, GL_BUFFER_MAPPED, GL_BUFFER_SIZE, or GL_BUFFER_USAGE. + /// + /// + /// + /// + /// Returns the requested parameter. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBufferParameteriv")] + public static + void GetBufferParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return parameters of a buffer object + /// + /// + /// + /// Specifies the target buffer object. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the symbolic name of a buffer object parameter. Accepted values are GL_BUFFER_ACCESS, GL_BUFFER_MAPPED, GL_BUFFER_SIZE, or GL_BUFFER_USAGE. + /// + /// + /// + /// + /// Returns the requested parameter. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBufferParameteriv")] + public static + void GetBufferParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glGetBufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlsQCOM")] + public static + unsafe void GetDriverControlsQCOM(Int32* num, Int32 size, Int32* driverControls) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetDriverControlsQCOM((Int32*)num, (Int32)size, (UInt32*)driverControls); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlsQCOM")] + public static + unsafe void GetDriverControlsQCOM(Int32* num, Int32 size, UInt32* driverControls) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetDriverControlsQCOM((Int32*)num, (Int32)size, (UInt32*)driverControls); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlsQCOM")] + public static + void GetDriverControlsQCOM(Int32[] num, Int32 size, UInt32[] driverControls) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* num_ptr = num) + fixed (UInt32* driverControls_ptr = driverControls) + { + Delegates.glGetDriverControlsQCOM((Int32*)num_ptr, (Int32)size, (UInt32*)driverControls_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlsQCOM")] + public static + void GetDriverControlsQCOM(ref Int32 num, Int32 size, ref UInt32 driverControls) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* num_ptr = &num) + fixed (UInt32* driverControls_ptr = &driverControls) + { + Delegates.glGetDriverControlsQCOM((Int32*)num_ptr, (Int32)size, (UInt32*)driverControls_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")] + public static + unsafe void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, Int32* length, String driverControlString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length, (String)driverControlString); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")] + public static + void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, Int32[] length, String driverControlString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = length) + { + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (String)driverControlString); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetDriverControlStringQCOM")] + public static + void GetDriverControlStringQCOM(UInt32 driverControl, Int32 bufSize, ref Int32 length, String driverControlString) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = &length) + { + Delegates.glGetDriverControlStringQCOM((UInt32)driverControl, (Int32)bufSize, (Int32*)length_ptr, (String)driverControlString); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return error information + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetError")] + public static + OpenTK.Graphics.ES20.All GetError() + { + return Delegates.glGetError(); + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFloatv")] + public static + void GetFloat(OpenTK.Graphics.ES20.All pname, ref Single @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = &@params) + { + Delegates.glGetFloatv((OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFloatv")] + public static + unsafe void GetFloat(OpenTK.Graphics.ES20.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetFloatv((OpenTK.Graphics.ES20.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFloatv")] + public static + void GetFloat(OpenTK.Graphics.ES20.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glGetFloatv((OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFramebufferAttachmentParameteriv")] + public static + unsafe void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFramebufferAttachmentParameteriv")] + public static + void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFramebufferAttachmentParameteriv")] + public static + void GetFramebufferAttachmentParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glGetFramebufferAttachmentParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetIntegerv")] + public static + unsafe void GetInteger(OpenTK.Graphics.ES20.All pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetIntegerv((OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetIntegerv")] + public static + void GetInteger(OpenTK.Graphics.ES20.All pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glGetIntegerv((OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetIntegerv")] + public static + void GetInteger(OpenTK.Graphics.ES20.All pname, ref Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glGetIntegerv((OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns the information log for a program object + /// + /// + /// + /// Specifies the program object whose information log is to be queried. + /// + /// + /// + /// + /// Specifies the size of the character buffer for storing the returned information log. + /// + /// + /// + /// + /// Returns the length of the string returned in infoLog (excluding the null terminator). + /// + /// + /// + /// + /// Specifies an array of characters that is used to return the information log. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] + public static + unsafe void GetProgramInfoLog(UInt32 program, Int32 bufsize, Int32* length, String infolog) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length, (String)infolog); + #if DEBUG + } + #endif + } + + + /// + /// Returns the information log for a program object + /// + /// + /// + /// Specifies the program object whose information log is to be queried. + /// + /// + /// + /// + /// Specifies the size of the character buffer for storing the returned information log. + /// + /// + /// + /// + /// Returns the length of the string returned in infoLog (excluding the null terminator). + /// + /// + /// + /// + /// Specifies an array of characters that is used to return the information log. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] + public static + void GetProgramInfoLog(UInt32 program, Int32 bufsize, Int32[] length, String infolog) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = length) + { + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (String)infolog); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns the information log for a program object + /// + /// + /// + /// Specifies the program object whose information log is to be queried. + /// + /// + /// + /// + /// Specifies the size of the character buffer for storing the returned information log. + /// + /// + /// + /// + /// Returns the length of the string returned in infoLog (excluding the null terminator). + /// + /// + /// + /// + /// Specifies an array of characters that is used to return the information log. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramInfoLog")] + public static + void GetProgramInfoLog(UInt32 program, Int32 bufsize, ref Int32 length, String infolog) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = &length) + { + Delegates.glGetProgramInfoLog((UInt32)program, (Int32)bufsize, (Int32*)length_ptr, (String)infolog); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns a parameter from a program object + /// + /// + /// + /// Specifies the program object to be queried. + /// + /// + /// + /// + /// Specifies the object parameter. Accepted symbolic names are GL_DELETE_STATUS, GL_LINK_STATUS, GL_VALIDATE_STATUS, GL_INFO_LOG_LENGTH, GL_ATTACHED_SHADERS, GL_ACTIVE_ATTRIBUTES, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, GL_ACTIVE_UNIFORMS, GL_ACTIVE_UNIFORM_MAX_LENGTH. + /// + /// + /// + /// + /// Returns the requested object parameter. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")] + public static + unsafe void GetProgram(UInt32 program, OpenTK.Graphics.ES20.All pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Returns a parameter from a program object + /// + /// + /// + /// Specifies the program object to be queried. + /// + /// + /// + /// + /// Specifies the object parameter. Accepted symbolic names are GL_DELETE_STATUS, GL_LINK_STATUS, GL_VALIDATE_STATUS, GL_INFO_LOG_LENGTH, GL_ATTACHED_SHADERS, GL_ACTIVE_ATTRIBUTES, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, GL_ACTIVE_UNIFORMS, GL_ACTIVE_UNIFORM_MAX_LENGTH. + /// + /// + /// + /// + /// Returns the requested object parameter. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")] + public static + void GetProgram(UInt32 program, OpenTK.Graphics.ES20.All pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns a parameter from a program object + /// + /// + /// + /// Specifies the program object to be queried. + /// + /// + /// + /// + /// Specifies the object parameter. Accepted symbolic names are GL_DELETE_STATUS, GL_LINK_STATUS, GL_VALIDATE_STATUS, GL_INFO_LOG_LENGTH, GL_ATTACHED_SHADERS, GL_ACTIVE_ATTRIBUTES, GL_ACTIVE_ATTRIBUTE_MAX_LENGTH, GL_ACTIVE_UNIFORMS, GL_ACTIVE_UNIFORM_MAX_LENGTH. + /// + /// + /// + /// + /// Returns the requested object parameter. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramiv")] + public static + void GetProgram(UInt32 program, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glGetProgramiv((UInt32)program, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetRenderbufferParameteriv")] + public static + unsafe void GetRenderbufferParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetRenderbufferParameteriv")] + public static + void GetRenderbufferParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetRenderbufferParameteriv")] + public static + void GetRenderbufferParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glGetRenderbufferParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns the information log for a shader object + /// + /// + /// + /// Specifies the shader object whose information log is to be queried. + /// + /// + /// + /// + /// Specifies the size of the character buffer for storing the returned information log. + /// + /// + /// + /// + /// Returns the length of the string returned in infoLog (excluding the null terminator). + /// + /// + /// + /// + /// Specifies an array of characters that is used to return the information log. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] + public static + unsafe void GetShaderInfoLog(UInt32 shader, Int32 bufsize, Int32* length, String infolog) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length, (String)infolog); + #if DEBUG + } + #endif + } + + + /// + /// Returns the information log for a shader object + /// + /// + /// + /// Specifies the shader object whose information log is to be queried. + /// + /// + /// + /// + /// Specifies the size of the character buffer for storing the returned information log. + /// + /// + /// + /// + /// Returns the length of the string returned in infoLog (excluding the null terminator). + /// + /// + /// + /// + /// Specifies an array of characters that is used to return the information log. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] + public static + void GetShaderInfoLog(UInt32 shader, Int32 bufsize, Int32[] length, String infolog) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = length) + { + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (String)infolog); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns the information log for a shader object + /// + /// + /// + /// Specifies the shader object whose information log is to be queried. + /// + /// + /// + /// + /// Specifies the size of the character buffer for storing the returned information log. + /// + /// + /// + /// + /// Returns the length of the string returned in infoLog (excluding the null terminator). + /// + /// + /// + /// + /// Specifies an array of characters that is used to return the information log. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderInfoLog")] + public static + void GetShaderInfoLog(UInt32 shader, Int32 bufsize, ref Int32 length, String infolog) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = &length) + { + Delegates.glGetShaderInfoLog((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (String)infolog); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns a parameter from a shader object + /// + /// + /// + /// Specifies the shader object to be queried. + /// + /// + /// + /// + /// Specifies the object parameter. Accepted symbolic names are GL_SHADER_TYPE, GL_DELETE_STATUS, GL_COMPILE_STATUS, GL_INFO_LOG_LENGTH, GL_SHADER_SOURCE_LENGTH. + /// + /// + /// + /// + /// Returns the requested object parameter. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")] + public static + unsafe void GetShader(UInt32 shader, OpenTK.Graphics.ES20.All pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Returns a parameter from a shader object + /// + /// + /// + /// Specifies the shader object to be queried. + /// + /// + /// + /// + /// Specifies the object parameter. Accepted symbolic names are GL_SHADER_TYPE, GL_DELETE_STATUS, GL_COMPILE_STATUS, GL_INFO_LOG_LENGTH, GL_SHADER_SOURCE_LENGTH. + /// + /// + /// + /// + /// Returns the requested object parameter. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")] + public static + void GetShader(UInt32 shader, OpenTK.Graphics.ES20.All pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns a parameter from a shader object + /// + /// + /// + /// Specifies the shader object to be queried. + /// + /// + /// + /// + /// Specifies the object parameter. Accepted symbolic names are GL_SHADER_TYPE, GL_DELETE_STATUS, GL_COMPILE_STATUS, GL_INFO_LOG_LENGTH, GL_SHADER_SOURCE_LENGTH. + /// + /// + /// + /// + /// Returns the requested object parameter. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderiv")] + public static + void GetShader(UInt32 shader, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glGetShaderiv((UInt32)shader, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderPrecisionFormat")] + public static + unsafe void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.All shadertype, OpenTK.Graphics.ES20.All precisiontype, Int32* range, Int32* precision) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.ES20.All)shadertype, (OpenTK.Graphics.ES20.All)precisiontype, (Int32*)range, (Int32*)precision); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderPrecisionFormat")] + public static + void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.All shadertype, OpenTK.Graphics.ES20.All precisiontype, Int32[] range, Int32[] precision) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* range_ptr = range) + fixed (Int32* precision_ptr = precision) + { + Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.ES20.All)shadertype, (OpenTK.Graphics.ES20.All)precisiontype, (Int32*)range_ptr, (Int32*)precision_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderPrecisionFormat")] + public static + void GetShaderPrecisionFormat(OpenTK.Graphics.ES20.All shadertype, OpenTK.Graphics.ES20.All precisiontype, ref Int32 range, ref Int32 precision) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* range_ptr = &range) + fixed (Int32* precision_ptr = &precision) + { + Delegates.glGetShaderPrecisionFormat((OpenTK.Graphics.ES20.All)shadertype, (OpenTK.Graphics.ES20.All)precisiontype, (Int32*)range_ptr, (Int32*)precision_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns the source code string from a shader object + /// + /// + /// + /// Specifies the shader object to be queried. + /// + /// + /// + /// + /// Specifies the size of the character buffer for storing the returned source code string. + /// + /// + /// + /// + /// Returns the length of the string returned in source (excluding the null terminator). + /// + /// + /// + /// + /// Specifies an array of characters that is used to return the source code string. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")] + public static + unsafe void GetShaderSource(UInt32 shader, Int32 bufsize, Int32* length, [OutAttribute] System.Text.StringBuilder source) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length, (System.Text.StringBuilder)source); + #if DEBUG + } + #endif + } + + + /// + /// Returns the source code string from a shader object + /// + /// + /// + /// Specifies the shader object to be queried. + /// + /// + /// + /// + /// Specifies the size of the character buffer for storing the returned source code string. + /// + /// + /// + /// + /// Returns the length of the string returned in source (excluding the null terminator). + /// + /// + /// + /// + /// Specifies an array of characters that is used to return the source code string. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")] + public static + void GetShaderSource(UInt32 shader, Int32 bufsize, Int32[] length, [OutAttribute] System.Text.StringBuilder source) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = length) + { + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)source); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns the source code string from a shader object + /// + /// + /// + /// Specifies the shader object to be queried. + /// + /// + /// + /// + /// Specifies the size of the character buffer for storing the returned source code string. + /// + /// + /// + /// + /// Returns the length of the string returned in source (excluding the null terminator). + /// + /// + /// + /// + /// Specifies an array of characters that is used to return the source code string. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetShaderSource")] + public static + void GetShaderSource(UInt32 shader, Int32 bufsize, ref Int32 length, [OutAttribute] System.Text.StringBuilder source) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = &length) + { + Delegates.glGetShaderSource((UInt32)shader, (Int32)bufsize, (Int32*)length_ptr, (System.Text.StringBuilder)source); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return a string describing the current GL connection + /// + /// + /// + /// Specifies a symbolic constant, one of GL_VENDOR, GL_RENDERER, GL_VERSION, GL_SHADING_LANGUAGE_VERSION, or GL_EXTENSIONS. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetString")] + public static + unsafe string GetString(OpenTK.Graphics.ES20.All name) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return System.Runtime.InteropServices.Marshal.PtrToStringAnsi(Delegates.glGetString((OpenTK.Graphics.ES20.All)name)); + #if DEBUG + } + #endif + } + + + /// + /// Return texture parameter values + /// + /// + /// + /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. + /// + /// + /// + /// + /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. + /// + /// + /// + /// + /// Returns the texture parameters. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameterfv")] + public static + void GetTexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, ref Single @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = &@params) + { + Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return texture parameter values + /// + /// + /// + /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. + /// + /// + /// + /// + /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. + /// + /// + /// + /// + /// Returns the texture parameters. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameterfv")] + public static + unsafe void GetTexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Return texture parameter values + /// + /// + /// + /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. + /// + /// + /// + /// + /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. + /// + /// + /// + /// + /// Returns the texture parameters. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameterfv")] + public static + void GetTexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glGetTexParameterfv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return texture parameter values + /// + /// + /// + /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. + /// + /// + /// + /// + /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. + /// + /// + /// + /// + /// Returns the texture parameters. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameteriv")] + public static + unsafe void GetTexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Return texture parameter values + /// + /// + /// + /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. + /// + /// + /// + /// + /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. + /// + /// + /// + /// + /// Returns the texture parameters. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameteriv")] + public static + void GetTexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return texture parameter values + /// + /// + /// + /// Specifies the symbolic name of the target texture. GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, and GL_TEXTURE_CUBE_MAP are accepted. + /// + /// + /// + /// + /// Specifies the symbolic name of a texture parameter. GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_BORDER_COLOR, GL_TEXTURE_PRIORITY, GL_TEXTURE_RESIDENT, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, and GL_GENERATE_MIPMAP are accepted. + /// + /// + /// + /// + /// Returns the texture parameters. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetTexParameteriv")] + public static + void GetTexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glGetTexParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns the value of a uniform variable + /// + /// + /// + /// Specifies the program object to be queried. + /// + /// + /// + /// + /// Specifies the location of the uniform variable to be queried. + /// + /// + /// + /// + /// Returns the value of the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformfv")] + public static + void GetUniform(UInt32 program, Int32 location, ref Single @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = &@params) + { + Delegates.glGetUniformfv((UInt32)program, (Int32)location, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns the value of a uniform variable + /// + /// + /// + /// Specifies the program object to be queried. + /// + /// + /// + /// + /// Specifies the location of the uniform variable to be queried. + /// + /// + /// + /// + /// Returns the value of the specified uniform variable. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformfv")] + public static + unsafe void GetUniform(UInt32 program, Int32 location, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetUniformfv((UInt32)program, (Int32)location, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Returns the value of a uniform variable + /// + /// + /// + /// Specifies the program object to be queried. + /// + /// + /// + /// + /// Specifies the location of the uniform variable to be queried. + /// + /// + /// + /// + /// Returns the value of the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformfv")] + public static + void GetUniform(UInt32 program, Int32 location, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glGetUniformfv((UInt32)program, (Int32)location, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns the value of a uniform variable + /// + /// + /// + /// Specifies the program object to be queried. + /// + /// + /// + /// + /// Specifies the location of the uniform variable to be queried. + /// + /// + /// + /// + /// Returns the value of the specified uniform variable. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformiv")] + public static + unsafe void GetUniform(UInt32 program, Int32 location, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetUniformiv((UInt32)program, (Int32)location, (Int32*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Returns the value of a uniform variable + /// + /// + /// + /// Specifies the program object to be queried. + /// + /// + /// + /// + /// Specifies the location of the uniform variable to be queried. + /// + /// + /// + /// + /// Returns the value of the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformiv")] + public static + void GetUniform(UInt32 program, Int32 location, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glGetUniformiv((UInt32)program, (Int32)location, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns the value of a uniform variable + /// + /// + /// + /// Specifies the program object to be queried. + /// + /// + /// + /// + /// Specifies the location of the uniform variable to be queried. + /// + /// + /// + /// + /// Returns the value of the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformiv")] + public static + void GetUniform(UInt32 program, Int32 location, ref Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glGetUniformiv((UInt32)program, (Int32)location, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Returns the location of a uniform variable + /// + /// + /// + /// Specifies the program object to be queried. + /// + /// + /// + /// + /// Points to a null terminated string containing the name of the uniform variable whose location is to be queried. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetUniformLocation")] + public static + int GetUniformLocation(UInt32 program, String name) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glGetUniformLocation((UInt32)program, (String)name); + #if DEBUG + } + #endif + } + + + /// + /// Return a generic vertex attribute parameter + /// + /// + /// + /// Specifies the generic vertex attribute parameter to be queried. + /// + /// + /// + /// + /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")] + public static + void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.All pname, ref Single @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = &@params) + { + Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return a generic vertex attribute parameter + /// + /// + /// + /// Specifies the generic vertex attribute parameter to be queried. + /// + /// + /// + /// + /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")] + public static + unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Return a generic vertex attribute parameter + /// + /// + /// + /// Specifies the generic vertex attribute parameter to be queried. + /// + /// + /// + /// + /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribfv")] + public static + void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glGetVertexAttribfv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return a generic vertex attribute parameter + /// + /// + /// + /// Specifies the generic vertex attribute parameter to be queried. + /// + /// + /// + /// + /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")] + public static + unsafe void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.All pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Return a generic vertex attribute parameter + /// + /// + /// + /// Specifies the generic vertex attribute parameter to be queried. + /// + /// + /// + /// + /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")] + public static + void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.All pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return a generic vertex attribute parameter + /// + /// + /// + /// Specifies the generic vertex attribute parameter to be queried. + /// + /// + /// + /// + /// Specifies the symbolic name of the vertex attribute parameter to be queried. Accepted values are GL_VERTEX_ATTRIB_ARRAY_BUFFER_BINDING, GL_VERTEX_ATTRIB_ARRAY_ENABLED, GL_VERTEX_ATTRIB_ARRAY_SIZE, GL_VERTEX_ATTRIB_ARRAY_STRIDE, GL_VERTEX_ATTRIB_ARRAY_TYPE, GL_VERTEX_ATTRIB_ARRAY_NORMALIZED, or GL_CURRENT_VERTEX_ATTRIB. + /// + /// + /// + /// + /// Returns the requested data. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribiv")] + public static + void GetVertexAttrib(UInt32 index, OpenTK.Graphics.ES20.All pname, ref Int32 @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = &@params) + { + Delegates.glGetVertexAttribiv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Return the address of the specified generic vertex attribute pointer + /// + /// + /// + /// Specifies the generic vertex attribute parameter to be returned. + /// + /// + /// + /// + /// Specifies the symbolic name of the generic vertex attribute parameter to be returned. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER. + /// + /// + /// + /// + /// Returns the pointer value. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] + public static + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] ref T2 pointer) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Return the address of the specified generic vertex attribute pointer + /// + /// + /// + /// Specifies the generic vertex attribute parameter to be returned. + /// + /// + /// + /// + /// Specifies the symbolic name of the generic vertex attribute parameter to be returned. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER. + /// + /// + /// + /// + /// Returns the pointer value. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] + public static + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T2[,,] pointer) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Return the address of the specified generic vertex attribute pointer + /// + /// + /// + /// Specifies the generic vertex attribute parameter to be returned. + /// + /// + /// + /// + /// Specifies the symbolic name of the generic vertex attribute parameter to be returned. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER. + /// + /// + /// + /// + /// Returns the pointer value. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] + public static + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T2[,] pointer) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Return the address of the specified generic vertex attribute pointer + /// + /// + /// + /// Specifies the generic vertex attribute parameter to be returned. + /// + /// + /// + /// + /// Specifies the symbolic name of the generic vertex attribute parameter to be returned. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER. + /// + /// + /// + /// + /// Returns the pointer value. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] + public static + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T2[] pointer) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pointer_ptr = GCHandle.Alloc(pointer, GCHandleType.Pinned); + try + { + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer_ptr.AddrOfPinnedObject()); + } + finally + { + pointer_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Return the address of the specified generic vertex attribute pointer + /// + /// + /// + /// Specifies the generic vertex attribute parameter to be returned. + /// + /// + /// + /// + /// Specifies the symbolic name of the generic vertex attribute parameter to be returned. Must be GL_VERTEX_ATTRIB_ARRAY_POINTER. + /// + /// + /// + /// + /// Returns the pointer value. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetVertexAttribPointerv")] + public static + void GetVertexAttribPointer(UInt32 index, OpenTK.Graphics.ES20.All pname, IntPtr pointer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetVertexAttribPointerv((UInt32)index, (OpenTK.Graphics.ES20.All)pname, (IntPtr)pointer); + #if DEBUG + } + #endif + } + + + /// + /// Specify implementation-specific hints + /// + /// + /// + /// Specifies a symbolic constant indicating the behavior to be controlled. GL_FOG_HINT, GL_GENERATE_MIPMAP_HINT, GL_LINE_SMOOTH_HINT, GL_PERSPECTIVE_CORRECTION_HINT, GL_POINT_SMOOTH_HINT, GL_POLYGON_SMOOTH_HINT, GL_TEXTURE_COMPRESSION_HINT, and GL_FRAGMENT_SHADER_DERIVATIVE_HINT are accepted. + /// + /// + /// + /// + /// Specifies a symbolic constant indicating the desired behavior. GL_FASTEST, GL_NICEST, and GL_DONT_CARE are accepted. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glHint")] + public static + void Hint(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All mode) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glHint((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)mode); + #if DEBUG + } + #endif + } + + + /// + /// Determine if a name corresponds to a buffer object + /// + /// + /// + /// Specifies a value that may be the name of a buffer object. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glIsBuffer")] + public static + bool IsBuffer(UInt32 buffer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glIsBuffer((UInt32)buffer); + #if DEBUG + } + #endif + } + + + /// + /// Test whether a capability is enabled + /// + /// + /// + /// Specifies a symbolic constant indicating a GL capability. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glIsEnabled")] + public static + bool IsEnabled(OpenTK.Graphics.ES20.All cap) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glIsEnabled((OpenTK.Graphics.ES20.All)cap); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glIsFramebuffer")] + public static + bool IsFramebuffer(UInt32 framebuffer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glIsFramebuffer((UInt32)framebuffer); + #if DEBUG + } + #endif + } + + + /// + /// Determines if a name corresponds to a program object + /// + /// + /// + /// Specifies a potential program object. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glIsProgram")] + public static + bool IsProgram(UInt32 program) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glIsProgram((UInt32)program); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glIsRenderbuffer")] + public static + bool IsRenderbuffer(UInt32 renderbuffer) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glIsRenderbuffer((UInt32)renderbuffer); + #if DEBUG + } + #endif + } + + + /// + /// Determines if a name corresponds to a shader object + /// + /// + /// + /// Specifies a potential shader object. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glIsShader")] + public static + bool IsShader(UInt32 shader) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glIsShader((UInt32)shader); + #if DEBUG + } + #endif + } + + + /// + /// Determine if a name corresponds to a texture + /// + /// + /// + /// Specifies a value that may be the name of a texture. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glIsTexture")] + public static + bool IsTexture(UInt32 texture) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glIsTexture((UInt32)texture); + #if DEBUG + } + #endif + } + + + /// + /// Specify the width of rasterized lines + /// + /// + /// + /// Specifies the width of rasterized lines. The initial value is 1. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glLineWidth")] + public static + void LineWidth(Single width) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLineWidth((Single)width); + #if DEBUG + } + #endif + } + + + /// + /// Links a program object + /// + /// + /// + /// Specifies the handle of the program object to be linked. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glLinkProgram")] + public static + void LinkProgram(UInt32 program) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glLinkProgram((UInt32)program); + #if DEBUG + } + #endif + } + + + /// + /// Set pixel storage modes + /// + /// + /// + /// Specifies the symbolic name of the parameter to be set. Six values affect the packing of pixel data into memory: GL_PACK_SWAP_BYTES, GL_PACK_LSB_FIRST, GL_PACK_ROW_LENGTH, GL_PACK_IMAGE_HEIGHT, GL_PACK_SKIP_PIXELS, GL_PACK_SKIP_ROWS, GL_PACK_SKIP_IMAGES, and GL_PACK_ALIGNMENT. Six more affect the unpacking of pixel data from memory: GL_UNPACK_SWAP_BYTES, GL_UNPACK_LSB_FIRST, GL_UNPACK_ROW_LENGTH, GL_UNPACK_IMAGE_HEIGHT, GL_UNPACK_SKIP_PIXELS, GL_UNPACK_SKIP_ROWS, GL_UNPACK_SKIP_IMAGES, and GL_UNPACK_ALIGNMENT. + /// + /// + /// + /// + /// Specifies the value that pname is set to. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glPixelStorei")] + public static + void PixelStore(OpenTK.Graphics.ES20.All pname, Int32 param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPixelStorei((OpenTK.Graphics.ES20.All)pname, (Int32)param); + #if DEBUG + } + #endif + } + + + /// + /// Set the scale and units used to calculate depth values + /// + /// + /// + /// Specifies a scale factor that is used to create a variable depth offset for each polygon. The initial value is 0. + /// + /// + /// + /// + /// Is multiplied by an implementation-specific value to create a constant depth offset. The initial value is 0. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glPolygonOffset")] + public static + void PolygonOffset(Single factor, Single units) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glPolygonOffset((Single)factor, (Single)units); + #if DEBUG + } + #endif + } + + + /// + /// Read a block of pixels from the frame buffer + /// + /// + /// + /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. + /// + /// + /// + /// + /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Returns the pixel data. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glReadPixels")] + public static + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] ref T6 pixels) + where T6 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Read a block of pixels from the frame buffer + /// + /// + /// + /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. + /// + /// + /// + /// + /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Returns the pixel data. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glReadPixels")] + public static + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T6[,,] pixels) + where T6 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Read a block of pixels from the frame buffer + /// + /// + /// + /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. + /// + /// + /// + /// + /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Returns the pixel data. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glReadPixels")] + public static + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T6[,] pixels) + where T6 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Read a block of pixels from the frame buffer + /// + /// + /// + /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. + /// + /// + /// + /// + /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Returns the pixel data. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glReadPixels")] + public static + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T6[] pixels) + where T6 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Read a block of pixels from the frame buffer + /// + /// + /// + /// Specify the window coordinates of the first pixel that is read from the frame buffer. This location is the lower left corner of a rectangular block of pixels. + /// + /// + /// + /// + /// Specify the dimensions of the pixel rectangle. width and height of one correspond to a single pixel. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_STENCIL_INDEX, GL_DEPTH_COMPONENT, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. Must be one of GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, or GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Returns the pixel data. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glReadPixels")] + public static + void ReadPixels(Int32 x, Int32 y, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glReadPixels((Int32)x, (Int32)y, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glReleaseShaderCompiler")] + public static + void ReleaseShaderCompiler() + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glReleaseShaderCompiler(); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glRenderbufferStorage")] + public static + void RenderbufferStorage(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glRenderbufferStorage((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height); + #if DEBUG + } + #endif + } + + + /// + /// Specify multisample coverage parameters + /// + /// + /// + /// Specify a single floating-point sample coverage value. The value is clamped to the range [0 ,1]. The initial value is 1.0. + /// + /// + /// + /// + /// Specify a single boolean value representing if the coverage masks should be inverted. GL_TRUE and GL_FALSE are accepted. The initial value is GL_FALSE. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glSampleCoverage")] + public static + void SampleCoverage(Single value, bool invert) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glSampleCoverage((Single)value, (bool)invert); + #if DEBUG + } + #endif + } + + + /// + /// Define the scissor box + /// + /// + /// + /// Specify the lower left corner of the scissor box. Initially (0, 0). + /// + /// + /// + /// + /// Specify the width and height of the scissor box. When a GL context is first attached to a window, width and height are set to the dimensions of that window. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glScissor")] + public static + void Scissor(Int32 x, Int32 y, Int32 width, Int32 height) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glScissor((Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] + public static + unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + } + finally + { + binary_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] + public static + unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + } + finally + { + binary_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] + public static + unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + } + finally + { + binary_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] + public static + unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + } + finally + { + binary_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] + public static + unsafe void ShaderBinary(Int32 n, Int32* shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] + public static + void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* shaders_ptr = &shaders) + { + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + } + finally + { + binary_ptr.Free(); + } + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] + public static + void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* shaders_ptr = &shaders) + { + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + } + finally + { + binary_ptr.Free(); + } + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] + public static + void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* shaders_ptr = &shaders) + { + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + } + finally + { + binary_ptr.Free(); + } + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] + public static + void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* shaders_ptr = &shaders) + { + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + } + finally + { + binary_ptr.Free(); + } + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] + public static + void ShaderBinary(Int32 n, ref UInt32 shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* shaders_ptr = &shaders) + { + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] + public static + unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + } + finally + { + binary_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] + public static + unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + } + finally + { + binary_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] + public static + unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + } + finally + { + binary_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] + public static + unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + } + finally + { + binary_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] + public static + unsafe void ShaderBinary(Int32 n, UInt32* shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] + public static + void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] ref T3 binary, Int32 length) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* shaders_ptr = shaders) + { + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + } + finally + { + binary_ptr.Free(); + } + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] + public static + void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,,] binary, Int32 length) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* shaders_ptr = shaders) + { + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + } + finally + { + binary_ptr.Free(); + } + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] + public static + void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[,] binary, Int32 length) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* shaders_ptr = shaders) + { + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + } + finally + { + binary_ptr.Free(); + } + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] + public static + void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.All binaryformat, [InAttribute, OutAttribute] T3[] binary, Int32 length) + where T3 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* shaders_ptr = shaders) + { + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + } + finally + { + binary_ptr.Free(); + } + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderBinary")] + public static + void ShaderBinary(Int32 n, UInt32[] shaders, OpenTK.Graphics.ES20.All binaryformat, IntPtr binary, Int32 length) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (UInt32* shaders_ptr = shaders) + { + Delegates.glShaderBinary((Int32)n, (UInt32*)shaders_ptr, (OpenTK.Graphics.ES20.All)binaryformat, (IntPtr)binary, (Int32)length); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Replaces the source code in a shader object + /// + /// + /// + /// Specifies the handle of the shader object whose source code is to be replaced. + /// + /// + /// + /// + /// Specifies the number of elements in the string and length arrays. + /// + /// + /// + /// + /// Specifies an array of pointers to strings containing the source code to be loaded into the shader. + /// + /// + /// + /// + /// Specifies an array of string lengths. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderSource")] + public static + unsafe void ShaderSource(UInt32 shader, Int32 count, String[] @string, Int32* length) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glShaderSource((UInt32)shader, (Int32)count, (String[])@string, (Int32*)length); + #if DEBUG + } + #endif + } + + + /// + /// Replaces the source code in a shader object + /// + /// + /// + /// Specifies the handle of the shader object whose source code is to be replaced. + /// + /// + /// + /// + /// Specifies the number of elements in the string and length arrays. + /// + /// + /// + /// + /// Specifies an array of pointers to strings containing the source code to be loaded into the shader. + /// + /// + /// + /// + /// Specifies an array of string lengths. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderSource")] + public static + void ShaderSource(UInt32 shader, Int32 count, String[] @string, Int32[] length) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = length) + { + Delegates.glShaderSource((UInt32)shader, (Int32)count, (String[])@string, (Int32*)length_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Replaces the source code in a shader object + /// + /// + /// + /// Specifies the handle of the shader object whose source code is to be replaced. + /// + /// + /// + /// + /// Specifies the number of elements in the string and length arrays. + /// + /// + /// + /// + /// Specifies an array of pointers to strings containing the source code to be loaded into the shader. + /// + /// + /// + /// + /// Specifies an array of string lengths. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glShaderSource")] + public static + void ShaderSource(UInt32 shader, Int32 count, String[] @string, ref Int32 length) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = &length) + { + Delegates.glShaderSource((UInt32)shader, (Int32)count, (String[])@string, (Int32*)length_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Set front and back function and reference value for stencil testing + /// + /// + /// + /// Specifies the test function. Eight symbolic constants are valid: GL_NEVER, GL_LESS, GL_LEQUAL, GL_GREATER, GL_GEQUAL, GL_EQUAL, GL_NOTEQUAL, and GL_ALWAYS. The initial value is GL_ALWAYS. + /// + /// + /// + /// + /// Specifies the reference value for the stencil test. ref is clamped to the range [0, 2 sup n - 1], where is the number of bitplanes in the stencil buffer. The initial value is 0. + /// + /// + /// + /// + /// Specifies a mask that is ANDed with both the reference value and the stored stencil value when the test is done. The initial value is all 1's. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilFunc")] + public static + void StencilFunc(OpenTK.Graphics.ES20.All func, Int32 @ref, UInt32 mask) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glStencilFunc((OpenTK.Graphics.ES20.All)func, (Int32)@ref, (UInt32)mask); + #if DEBUG + } + #endif + } + + + /// + /// Set front and/or back function and reference value for stencil testing + /// + /// + /// + /// Specifies whether front and/or back stencil state is updated. Three symbolic constants are valid: GL_FRONT, GL_BACK, and GL_FRONT_AND_BACK. + /// + /// + /// + /// + /// Specifies the test function. Eight symbolic constants are valid: GL_NEVER, GL_LESS, GL_LEQUAL, GL_GREATER, GL_GEQUAL, GL_EQUAL, GL_NOTEQUAL, and GL_ALWAYS. The initial value is GL_ALWAYS. + /// + /// + /// + /// + /// Specifies the reference value for the stencil test. ref is clamped to the range [0, 2 sup n - 1], where is the number of bitplanes in the stencil buffer. The initial value is 0. + /// + /// + /// + /// + /// Specifies a mask that is ANDed with both the reference value and the stored stencil value when the test is done. The initial value is all 1's. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilFuncSeparate")] + public static + void StencilFuncSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All func, Int32 @ref, UInt32 mask) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glStencilFuncSeparate((OpenTK.Graphics.ES20.All)face, (OpenTK.Graphics.ES20.All)func, (Int32)@ref, (UInt32)mask); + #if DEBUG + } + #endif + } + + + /// + /// Control the front and back writing of individual bits in the stencil planes + /// + /// + /// + /// Specifies a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, the mask is all 1's. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilMask")] + public static + void StencilMask(UInt32 mask) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glStencilMask((UInt32)mask); + #if DEBUG + } + #endif + } + + + /// + /// Control the front and/or back writing of individual bits in the stencil planes + /// + /// + /// + /// Specifies whether the front and/or back stencil writemask is updated. Three symbolic constants are valid: GL_FRONT, GL_BACK, and GL_FRONT_AND_BACK. + /// + /// + /// + /// + /// Specifies a bit mask to enable and disable writing of individual bits in the stencil planes. Initially, the mask is all 1's. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilMaskSeparate")] + public static + void StencilMaskSeparate(OpenTK.Graphics.ES20.All face, UInt32 mask) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glStencilMaskSeparate((OpenTK.Graphics.ES20.All)face, (UInt32)mask); + #if DEBUG + } + #endif + } + + + /// + /// Set front and back stencil test actions + /// + /// + /// + /// Specifies the action to take when the stencil test fails. Eight symbolic constants are accepted: GL_KEEP, GL_ZERO, GL_REPLACE, GL_INCR, GL_INCR_WRAP, GL_DECR, GL_DECR_WRAP, and GL_INVERT. The initial value is GL_KEEP. + /// + /// + /// + /// + /// Specifies the stencil action when the stencil test passes, but the depth test fails. dpfail accepts the same symbolic constants as sfail. The initial value is GL_KEEP. + /// + /// + /// + /// + /// Specifies the stencil action when both the stencil test and the depth test pass, or when the stencil test passes and either there is no depth buffer or depth testing is not enabled. dppass accepts the same symbolic constants as sfail. The initial value is GL_KEEP. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilOp")] + public static + void StencilOp(OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glStencilOp((OpenTK.Graphics.ES20.All)fail, (OpenTK.Graphics.ES20.All)zfail, (OpenTK.Graphics.ES20.All)zpass); + #if DEBUG + } + #endif + } + + + /// + /// Set front and/or back stencil test actions + /// + /// + /// + /// Specifies whether front and/or back stencil state is updated. Three symbolic constants are valid: GL_FRONT, GL_BACK, and GL_FRONT_AND_BACK. + /// + /// + /// + /// + /// Specifies the action to take when the stencil test fails. Eight symbolic constants are accepted: GL_KEEP, GL_ZERO, GL_REPLACE, GL_INCR, GL_INCR_WRAP, GL_DECR, GL_DECR_WRAP, and GL_INVERT. The initial value is GL_KEEP. + /// + /// + /// + /// + /// Specifies the stencil action when the stencil test passes, but the depth test fails. dpfail accepts the same symbolic constants as sfail. The initial value is GL_KEEP. + /// + /// + /// + /// + /// Specifies the stencil action when both the stencil test and the depth test pass, or when the stencil test passes and either there is no depth buffer or depth testing is not enabled. dppass accepts the same symbolic constants as sfail. The initial value is GL_KEEP. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glStencilOpSeparate")] + public static + void StencilOpSeparate(OpenTK.Graphics.ES20.All face, OpenTK.Graphics.ES20.All fail, OpenTK.Graphics.ES20.All zfail, OpenTK.Graphics.ES20.All zpass) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glStencilOpSeparate((OpenTK.Graphics.ES20.All)face, (OpenTK.Graphics.ES20.All)fail, (OpenTK.Graphics.ES20.All)zfail, (OpenTK.Graphics.ES20.All)zpass); + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage2D")] + public static + void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] ref T8 pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage2D")] + public static + void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T8[,,] pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage2D")] + public static + void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T8[,] pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage2D")] + public static + void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T8[] pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_PROXY_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, GL_TEXTURE_CUBE_MAP_NEGATIVE_Z, or GL_PROXY_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_DEPTH_COMPONENT, GL_DEPTH_COMPONENT16, GL_DEPTH_COMPONENT24, GL_DEPTH_COMPONENT32, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support texture images that are at least 64 texels high. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage2D")] + public static + void TexImage2D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels); + #if DEBUG + } + #endif + } + + + /// + /// Set texture parameters + /// + /// + /// + /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. + /// + /// + /// + /// + /// Specifies the value of pname. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameterf")] + public static + void TexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexParameterf((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single)param); + #if DEBUG + } + #endif + } + + + /// + /// Set texture parameters + /// + /// + /// + /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. + /// + /// + /// + /// + /// Specifies the value of pname. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameterfv")] + public static + unsafe void TexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexParameterfv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Set texture parameters + /// + /// + /// + /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. + /// + /// + /// + /// + /// Specifies the value of pname. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameterfv")] + public static + void TexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Single[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* @params_ptr = @params) + { + Delegates.glTexParameterfv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Single*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Set texture parameters + /// + /// + /// + /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. + /// + /// + /// + /// + /// Specifies the value of pname. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameteri")] + public static + void TexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32 param) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexParameteri((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32)param); + #if DEBUG + } + #endif + } + + + /// + /// Set texture parameters + /// + /// + /// + /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. + /// + /// + /// + /// + /// Specifies the value of pname. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameteriv")] + public static + unsafe void TexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32* @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params); + #if DEBUG + } + #endif + } + + + /// + /// Set texture parameters + /// + /// + /// + /// Specifies the target texture, which must be either GL_TEXTURE_1D, GL_TEXTURE_2D, GL_TEXTURE_3D, or GL_TEXTURE_CUBE_MAP. + /// + /// + /// + /// + /// Specifies the symbolic name of a single-valued texture parameter. pname can be one of the following: GL_TEXTURE_MIN_FILTER, GL_TEXTURE_MAG_FILTER, GL_TEXTURE_MIN_LOD, GL_TEXTURE_MAX_LOD, GL_TEXTURE_BASE_LEVEL, GL_TEXTURE_MAX_LEVEL, GL_TEXTURE_WRAP_S, GL_TEXTURE_WRAP_T, GL_TEXTURE_WRAP_R, GL_TEXTURE_PRIORITY, GL_TEXTURE_COMPARE_MODE, GL_TEXTURE_COMPARE_FUNC, GL_DEPTH_TEXTURE_MODE, or GL_GENERATE_MIPMAP. + /// + /// + /// + /// + /// Specifies the value of pname. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexParameteriv")] + public static + void TexParameter(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, Int32[] @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* @params_ptr = @params) + { + Delegates.glTexParameteriv((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (Int32*)@params_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage2D")] + public static + void TexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] ref T8 pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage2D")] + public static + void TexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T8[,,] pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage2D")] + public static + void TexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T8[,] pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage2D")] + public static + void TexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T8[] pixels) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a two-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_2D, GL_TEXTURE_CUBE_MAP_POSITIVE_X, GL_TEXTURE_CUBE_MAP_NEGATIVE_X, GL_TEXTURE_CUBE_MAP_POSITIVE_Y, GL_TEXTURE_CUBE_MAP_NEGATIVE_Y, GL_TEXTURE_CUBE_MAP_POSITIVE_Z, or GL_TEXTURE_CUBE_MAP_NEGATIVE_Z. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage2D")] + public static + void TexSubImage2D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 width, Int32 height, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexSubImage2D((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)width, (Int32)height, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels); + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform1f")] + public static + void Uniform1(Int32 location, Single x) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glUniform1f((Int32)location, (Single)x); + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform1fv")] + public static + void Uniform1(Int32 location, Int32 count, ref Single v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* v_ptr = &v) + { + Delegates.glUniform1fv((Int32)location, (Int32)count, (Single*)v_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform1fv")] + public static + unsafe void Uniform1(Int32 location, Int32 count, Single* v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glUniform1fv((Int32)location, (Int32)count, (Single*)v); + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform1fv")] + public static + void Uniform1(Int32 location, Int32 count, Single[] v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* v_ptr = v) + { + Delegates.glUniform1fv((Int32)location, (Int32)count, (Single*)v_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform1i")] + public static + void Uniform1(Int32 location, Int32 x) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glUniform1i((Int32)location, (Int32)x); + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform1iv")] + public static + unsafe void Uniform1(Int32 location, Int32 count, Int32* v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glUniform1iv((Int32)location, (Int32)count, (Int32*)v); + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform1iv")] + public static + void Uniform1(Int32 location, Int32 count, Int32[] v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* v_ptr = v) + { + Delegates.glUniform1iv((Int32)location, (Int32)count, (Int32*)v_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform1iv")] + public static + void Uniform1(Int32 location, Int32 count, ref Int32 v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* v_ptr = &v) + { + Delegates.glUniform1iv((Int32)location, (Int32)count, (Int32*)v_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform2f")] + public static + void Uniform2(Int32 location, Single x, Single y) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glUniform2f((Int32)location, (Single)x, (Single)y); + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform2fv")] + public static + void Uniform2(Int32 location, Int32 count, ref Single v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* v_ptr = &v) + { + Delegates.glUniform2fv((Int32)location, (Int32)count, (Single*)v_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform2fv")] + public static + unsafe void Uniform2(Int32 location, Int32 count, Single* v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glUniform2fv((Int32)location, (Int32)count, (Single*)v); + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform2fv")] + public static + void Uniform2(Int32 location, Int32 count, Single[] v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* v_ptr = v) + { + Delegates.glUniform2fv((Int32)location, (Int32)count, (Single*)v_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform2i")] + public static + void Uniform2(Int32 location, Int32 x, Int32 y) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glUniform2i((Int32)location, (Int32)x, (Int32)y); + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform2iv")] + public static + unsafe void Uniform2(Int32 location, Int32 count, Int32* v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glUniform2iv((Int32)location, (Int32)count, (Int32*)v); + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform2iv")] + public static + void Uniform2(Int32 location, Int32 count, Int32[] v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* v_ptr = v) + { + Delegates.glUniform2iv((Int32)location, (Int32)count, (Int32*)v_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform3f")] + public static + void Uniform3(Int32 location, Single x, Single y, Single z) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glUniform3f((Int32)location, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform3fv")] + public static + void Uniform3(Int32 location, Int32 count, ref Single v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* v_ptr = &v) + { + Delegates.glUniform3fv((Int32)location, (Int32)count, (Single*)v_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform3fv")] + public static + unsafe void Uniform3(Int32 location, Int32 count, Single* v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glUniform3fv((Int32)location, (Int32)count, (Single*)v); + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform3fv")] + public static + void Uniform3(Int32 location, Int32 count, Single[] v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* v_ptr = v) + { + Delegates.glUniform3fv((Int32)location, (Int32)count, (Single*)v_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform3i")] + public static + void Uniform3(Int32 location, Int32 x, Int32 y, Int32 z) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glUniform3i((Int32)location, (Int32)x, (Int32)y, (Int32)z); + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform3iv")] + public static + unsafe void Uniform3(Int32 location, Int32 count, Int32* v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glUniform3iv((Int32)location, (Int32)count, (Int32*)v); + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform3iv")] + public static + void Uniform3(Int32 location, Int32 count, Int32[] v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* v_ptr = v) + { + Delegates.glUniform3iv((Int32)location, (Int32)count, (Int32*)v_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform3iv")] + public static + void Uniform3(Int32 location, Int32 count, ref Int32 v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* v_ptr = &v) + { + Delegates.glUniform3iv((Int32)location, (Int32)count, (Int32*)v_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform4f")] + public static + void Uniform4(Int32 location, Single x, Single y, Single z, Single w) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glUniform4f((Int32)location, (Single)x, (Single)y, (Single)z, (Single)w); + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform4fv")] + public static + void Uniform4(Int32 location, Int32 count, ref Single v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* v_ptr = &v) + { + Delegates.glUniform4fv((Int32)location, (Int32)count, (Single*)v_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform4fv")] + public static + unsafe void Uniform4(Int32 location, Int32 count, Single* v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glUniform4fv((Int32)location, (Int32)count, (Single*)v); + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform4fv")] + public static + void Uniform4(Int32 location, Int32 count, Single[] v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* v_ptr = v) + { + Delegates.glUniform4fv((Int32)location, (Int32)count, (Single*)v_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform4i")] + public static + void Uniform4(Int32 location, Int32 x, Int32 y, Int32 z, Int32 w) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glUniform4i((Int32)location, (Int32)x, (Int32)y, (Int32)z, (Int32)w); + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform4iv")] + public static + unsafe void Uniform4(Int32 location, Int32 count, Int32* v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glUniform4iv((Int32)location, (Int32)count, (Int32*)v); + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform4iv")] + public static + void Uniform4(Int32 location, Int32 count, Int32[] v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* v_ptr = v) + { + Delegates.glUniform4iv((Int32)location, (Int32)count, (Int32*)v_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specify the value of a uniform variable for the current program object + /// + /// + /// + /// Specifies the location of the uniform variable to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified uniform variable. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniform4iv")] + public static + void Uniform4(Int32 location, Int32 count, ref Int32 v) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* v_ptr = &v) + { + Delegates.glUniform4iv((Int32)location, (Int32)count, (Int32*)v_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniformMatrix2fv")] + public static + void UniformMatrix2(Int32 location, Int32 count, bool transpose, ref Single value) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* value_ptr = &value) + { + Delegates.glUniformMatrix2fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniformMatrix2fv")] + public static + unsafe void UniformMatrix2(Int32 location, Int32 count, bool transpose, Single* value) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glUniformMatrix2fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniformMatrix2fv")] + public static + void UniformMatrix2(Int32 location, Int32 count, bool transpose, Single[] value) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* value_ptr = value) + { + Delegates.glUniformMatrix2fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniformMatrix3fv")] + public static + void UniformMatrix3(Int32 location, Int32 count, bool transpose, ref Single value) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* value_ptr = &value) + { + Delegates.glUniformMatrix3fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniformMatrix3fv")] + public static + unsafe void UniformMatrix3(Int32 location, Int32 count, bool transpose, Single* value) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glUniformMatrix3fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniformMatrix3fv")] + public static + void UniformMatrix3(Int32 location, Int32 count, bool transpose, Single[] value) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* value_ptr = value) + { + Delegates.glUniformMatrix3fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniformMatrix4fv")] + public static + void UniformMatrix4(Int32 location, Int32 count, bool transpose, ref Single value) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* value_ptr = &value) + { + Delegates.glUniformMatrix4fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); + } + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniformMatrix4fv")] + public static + unsafe void UniformMatrix4(Int32 location, Int32 count, bool transpose, Single* value) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glUniformMatrix4fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUniformMatrix4fv")] + public static + void UniformMatrix4(Int32 location, Int32 count, bool transpose, Single[] value) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* value_ptr = value) + { + Delegates.glUniformMatrix4fv((Int32)location, (Int32)count, (bool)transpose, (Single*)value_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Installs a program object as part of current rendering state + /// + /// + /// + /// Specifies the handle of the program object whose executables are to be used as part of current rendering state. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUseProgram")] + public static + void UseProgram(UInt32 program) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glUseProgram((UInt32)program); + #if DEBUG + } + #endif + } + + + /// + /// Validates a program object + /// + /// + /// + /// Specifies the handle of the program object to be validated. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glValidateProgram")] + public static + void ValidateProgram(UInt32 program) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glValidateProgram((UInt32)program); + #if DEBUG + } + #endif + } + + + /// + /// Specifies the value of a generic vertex attribute + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified vertex attribute. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib1f")] + public static + void VertexAttrib1(UInt32 indx, Single x) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glVertexAttrib1f((UInt32)indx, (Single)x); + #if DEBUG + } + #endif + } + + + /// + /// Specifies the value of a generic vertex attribute + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified vertex attribute. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib1fv")] + public static + unsafe void VertexAttrib1(UInt32 indx, Single* values) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glVertexAttrib1fv((UInt32)indx, (Single*)values); + #if DEBUG + } + #endif + } + + + /// + /// Specifies the value of a generic vertex attribute + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified vertex attribute. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib1fv")] + public static + void VertexAttrib1(UInt32 indx, Single[] values) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* values_ptr = values) + { + Delegates.glVertexAttrib1fv((UInt32)indx, (Single*)values_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specifies the value of a generic vertex attribute + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified vertex attribute. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib2f")] + public static + void VertexAttrib2(UInt32 indx, Single x, Single y) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glVertexAttrib2f((UInt32)indx, (Single)x, (Single)y); + #if DEBUG + } + #endif + } + + + /// + /// Specifies the value of a generic vertex attribute + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified vertex attribute. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib2fv")] + public static + void VertexAttrib2(UInt32 indx, ref Single values) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* values_ptr = &values) + { + Delegates.glVertexAttrib2fv((UInt32)indx, (Single*)values_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specifies the value of a generic vertex attribute + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified vertex attribute. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib2fv")] + public static + unsafe void VertexAttrib2(UInt32 indx, Single* values) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glVertexAttrib2fv((UInt32)indx, (Single*)values); + #if DEBUG + } + #endif + } + + + /// + /// Specifies the value of a generic vertex attribute + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified vertex attribute. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib2fv")] + public static + void VertexAttrib2(UInt32 indx, Single[] values) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* values_ptr = values) + { + Delegates.glVertexAttrib2fv((UInt32)indx, (Single*)values_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specifies the value of a generic vertex attribute + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified vertex attribute. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib3f")] + public static + void VertexAttrib3(UInt32 indx, Single x, Single y, Single z) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glVertexAttrib3f((UInt32)indx, (Single)x, (Single)y, (Single)z); + #if DEBUG + } + #endif + } + + + /// + /// Specifies the value of a generic vertex attribute + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified vertex attribute. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib3fv")] + public static + void VertexAttrib3(UInt32 indx, ref Single values) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* values_ptr = &values) + { + Delegates.glVertexAttrib3fv((UInt32)indx, (Single*)values_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specifies the value of a generic vertex attribute + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified vertex attribute. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib3fv")] + public static + unsafe void VertexAttrib3(UInt32 indx, Single* values) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glVertexAttrib3fv((UInt32)indx, (Single*)values); + #if DEBUG + } + #endif + } + + + /// + /// Specifies the value of a generic vertex attribute + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified vertex attribute. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib3fv")] + public static + void VertexAttrib3(UInt32 indx, Single[] values) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* values_ptr = values) + { + Delegates.glVertexAttrib3fv((UInt32)indx, (Single*)values_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specifies the value of a generic vertex attribute + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified vertex attribute. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib4f")] + public static + void VertexAttrib4(UInt32 indx, Single x, Single y, Single z, Single w) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glVertexAttrib4f((UInt32)indx, (Single)x, (Single)y, (Single)z, (Single)w); + #if DEBUG + } + #endif + } + + + /// + /// Specifies the value of a generic vertex attribute + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified vertex attribute. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib4fv")] + public static + void VertexAttrib4(UInt32 indx, ref Single values) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* values_ptr = &values) + { + Delegates.glVertexAttrib4fv((UInt32)indx, (Single*)values_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Specifies the value of a generic vertex attribute + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified vertex attribute. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib4fv")] + public static + unsafe void VertexAttrib4(UInt32 indx, Single* values) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glVertexAttrib4fv((UInt32)indx, (Single*)values); + #if DEBUG + } + #endif + } + + + /// + /// Specifies the value of a generic vertex attribute + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be modified. + /// + /// + /// + /// + /// Specifies the new values to be used for the specified vertex attribute. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttrib4fv")] + public static + void VertexAttrib4(UInt32 indx, Single[] values) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Single* values_ptr = values) + { + Delegates.glVertexAttrib4fv((UInt32)indx, (Single*)values_ptr); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of generic vertex attribute data + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be modified. + /// + /// + /// + /// + /// Specifies the number of components per generic vertex attribute. Must be 1, 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE) when they are accessed. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first component of the first generic vertex attribute in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] + public static + void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, [InAttribute, OutAttribute] ref T5 ptr) + where T5 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + } + finally + { + ptr_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of generic vertex attribute data + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be modified. + /// + /// + /// + /// + /// Specifies the number of components per generic vertex attribute. Must be 1, 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE) when they are accessed. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first component of the first generic vertex attribute in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] + public static + void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,,] ptr) + where T5 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + } + finally + { + ptr_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of generic vertex attribute data + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be modified. + /// + /// + /// + /// + /// Specifies the number of components per generic vertex attribute. Must be 1, 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE) when they are accessed. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first component of the first generic vertex attribute in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] + public static + void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[,] ptr) + where T5 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + } + finally + { + ptr_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of generic vertex attribute data + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be modified. + /// + /// + /// + /// + /// Specifies the number of components per generic vertex attribute. Must be 1, 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE) when they are accessed. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first component of the first generic vertex attribute in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] + public static + void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, [InAttribute, OutAttribute] T5[] ptr) + where T5 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle ptr_ptr = GCHandle.Alloc(ptr, GCHandleType.Pinned); + try + { + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr_ptr.AddrOfPinnedObject()); + } + finally + { + ptr_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Define an array of generic vertex attribute data + /// + /// + /// + /// Specifies the index of the generic vertex attribute to be modified. + /// + /// + /// + /// + /// Specifies the number of components per generic vertex attribute. Must be 1, 2, 3, or 4. The initial value is 4. + /// + /// + /// + /// + /// Specifies the data type of each component in the array. Symbolic constants GL_BYTE, GL_UNSIGNED_BYTE, GL_SHORT, GL_UNSIGNED_SHORT, GL_INT, GL_UNSIGNED_INT, GL_FLOAT, or GL_DOUBLE are accepted. The initial value is GL_FLOAT. + /// + /// + /// + /// + /// Specifies whether fixed-point data values should be normalized (GL_TRUE) or converted directly as fixed-point values (GL_FALSE) when they are accessed. + /// + /// + /// + /// + /// Specifies the byte offset between consecutive generic vertex attributes. If stride is 0, the generic vertex attributes are understood to be tightly packed in the array. The initial value is 0. + /// + /// + /// + /// + /// Specifies a pointer to the first component of the first generic vertex attribute in the array. The initial value is 0. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glVertexAttribPointer")] + public static + void VertexAttribPointer(UInt32 indx, Int32 size, OpenTK.Graphics.ES20.All type, bool normalized, Int32 stride, IntPtr ptr) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glVertexAttribPointer((UInt32)indx, (Int32)size, (OpenTK.Graphics.ES20.All)type, (bool)normalized, (Int32)stride, (IntPtr)ptr); + #if DEBUG + } + #endif + } + + + /// + /// Set the viewport + /// + /// + /// + /// Specify the lower left corner of the viewport rectangle, in pixels. The initial value is (0,0). + /// + /// + /// + /// + /// Specify the width and height of the viewport. When a GL context is first attached to a window, width and height are set to the dimensions of that window. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glViewport")] + public static + void Viewport(Int32 x, Int32 y, Int32 width, Int32 height) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glViewport((Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif + } + + public static partial class NV + { + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")] + public static + unsafe void DeleteFences(Int32**) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteFencesNV((UInt32**)); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")] + public static + unsafe void DeleteFences(Int32*[]) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + fixed (Int32** _ptr = ) + { + Delegates.glDeleteFencesNV((UInt32**)_ptr); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")] + public static + unsafe void DeleteFences(ref Int32*) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + fixed (Int32** _ptr = &) + { + Delegates.glDeleteFencesNV((UInt32**)_ptr); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")] + public static + unsafe void DeleteFences(ref UInt32*) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + fixed (UInt32** _ptr = &) + { + Delegates.glDeleteFencesNV((UInt32**)_ptr); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")] + public static + unsafe void DeleteFences(UInt32**) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glDeleteFencesNV((UInt32**)); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glDeleteFencesNV")] + public static + unsafe void DeleteFences(UInt32*[]) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + fixed (UInt32** _ptr = ) + { + Delegates.glDeleteFencesNV((UInt32**)_ptr); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glFinishFenceNV")] + public static + void FinishFence() + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFinishFenceNV(); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] + public static + unsafe void GenFences(Int32**) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenFencesNV((UInt32**)); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] + public static + unsafe void GenFences(Int32*[]) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + fixed (Int32** _ptr = ) + { + Delegates.glGenFencesNV((UInt32**)_ptr); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] + public static + unsafe void GenFences(ref Int32*) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + fixed (Int32** _ptr = &) + { + Delegates.glGenFencesNV((UInt32**)_ptr); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] + public static + unsafe void GenFences(ref UInt32*) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + fixed (UInt32** _ptr = &) + { + Delegates.glGenFencesNV((UInt32**)_ptr); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] + public static + unsafe void GenFences(UInt32**) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGenFencesNV((UInt32**)); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGenFencesNV")] + public static + unsafe void GenFences(UInt32*[]) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + fixed (UInt32** _ptr = ) + { + Delegates.glGenFencesNV((UInt32**)_ptr); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")] + public static + unsafe void GetFence(Int32**) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetFenceivNV((Int32**)); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")] + public static + unsafe void GetFence(Int32*[]) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + fixed (Int32** _ptr = ) + { + Delegates.glGetFenceivNV((Int32**)_ptr); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetFenceivNV")] + public static + unsafe void GetFence(ref Int32*) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + fixed (Int32** _ptr = &) + { + Delegates.glGetFenceivNV((Int32**)_ptr); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glIsFenceNV")] + public static + bool IsFence() + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glIsFenceNV(); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glSetFenceNV")] + public static + void SetFence() + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glSetFenceNV(); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTestFenceNV")] + public static + bool TestFence() + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glTestFenceNV(); + #if DEBUG + } + #endif + } + + } + + public static partial class Oes + { + + /// + /// Specify a three-dimensional texture image in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_3D or GL_PROXY_TEXTURE_3D. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the depth of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels deep. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage3DOES")] + public static + void CompressedTexImage3D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] ref T8 data) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a three-dimensional texture image in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_3D or GL_PROXY_TEXTURE_3D. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the depth of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels deep. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage3DOES")] + public static + void CompressedTexImage3D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T8[,,] data) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a three-dimensional texture image in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_3D or GL_PROXY_TEXTURE_3D. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the depth of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels deep. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage3DOES")] + public static + void CompressedTexImage3D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T8[,] data) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a three-dimensional texture image in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_3D or GL_PROXY_TEXTURE_3D. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the depth of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels deep. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage3DOES")] + public static + void CompressedTexImage3D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, [InAttribute, OutAttribute] T8[] data) + where T8 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a three-dimensional texture image in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_3D or GL_PROXY_TEXTURE_3D. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the depth of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels deep. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexImage3DOES")] + public static + void CompressedTexImage3D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, Int32 imageSize, IntPtr data) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glCompressedTexImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (Int32)imageSize, (IntPtr)data); + #if DEBUG + } + #endif + } + + + /// + /// Specify a three-dimensional texture subimage in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_3D. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the depth of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage3DOES")] + public static + void CompressedTexSubImage3D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, Int32 imageSize, [InAttribute, OutAttribute] ref T10 data) + where T10 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a three-dimensional texture subimage in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_3D. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the depth of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage3DOES")] + public static + void CompressedTexSubImage3D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, Int32 imageSize, [InAttribute, OutAttribute] T10[,,] data) + where T10 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a three-dimensional texture subimage in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_3D. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the depth of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage3DOES")] + public static + void CompressedTexSubImage3D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, Int32 imageSize, [InAttribute, OutAttribute] T10[,] data) + where T10 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a three-dimensional texture subimage in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_3D. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the depth of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage3DOES")] + public static + void CompressedTexSubImage3D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, Int32 imageSize, [InAttribute, OutAttribute] T10[] data) + where T10 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle data_ptr = GCHandle.Alloc(data, GCHandleType.Pinned); + try + { + Delegates.glCompressedTexSubImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data_ptr.AddrOfPinnedObject()); + } + finally + { + data_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a three-dimensional texture subimage in a compressed format + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_3D. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the depth of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the compressed image data stored at address data. + /// + /// + /// + /// + /// Specifies the number of unsigned bytes of image data starting at the address specified by data. + /// + /// + /// + /// + /// Specifies a pointer to the compressed image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCompressedTexSubImage3DOES")] + public static + void CompressedTexSubImage3D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, Int32 imageSize, IntPtr data) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glCompressedTexSubImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.ES20.All)format, (Int32)imageSize, (IntPtr)data); + #if DEBUG + } + #endif + } + + + /// + /// Copy a three-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_3D + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the z direction within the texture array. + /// + /// + /// + /// + /// Specify the window coordinates of the lower left corner of the rectangular region of pixels to be copied. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glCopyTexSubImage3DOES")] + public static + void CopyTexSubImage3D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 x, Int32 y, Int32 width, Int32 height) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glCopyTexSubImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)x, (Int32)y, (Int32)width, (Int32)height); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glEGLImageTargetRenderbufferStorageOES")] + public static + void EGLImageTargetRenderbufferStorage(OpenTK.Graphics.ES20.All target, GLeglImageOES image) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glEGLImageTargetRenderbufferStorageOES((OpenTK.Graphics.ES20.All)target, (GLeglImageOES)image); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glEGLImageTargetTexture2DOES")] + public static + void EGLImageTargetTexture2D(OpenTK.Graphics.ES20.All target, GLeglImageOES image) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glEGLImageTargetTexture2DOES((OpenTK.Graphics.ES20.All)target, (GLeglImageOES)image); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glFramebufferTexture3DOES")] + public static + void FramebufferTexture3D(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All attachment, OpenTK.Graphics.ES20.All textarget, UInt32 texture, Int32 level, Int32 zoffset) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glFramebufferTexture3DOES((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)attachment, (OpenTK.Graphics.ES20.All)textarget, (UInt32)texture, (Int32)level, (Int32)zoffset); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBufferPointervOES")] + public static + void GetBufferPointer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] ref T2 @params) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBufferPointervOES")] + public static + void GetBufferPointer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T2[,,] @params) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBufferPointervOES")] + public static + void GetBufferPointer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T2[,] @params) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBufferPointervOES")] + public static + void GetBufferPointer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, [InAttribute, OutAttribute] T2[] @params) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle @params_ptr = GCHandle.Alloc(@params, GCHandleType.Pinned); + try + { + Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (IntPtr)@params_ptr.AddrOfPinnedObject()); + } + finally + { + @params_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetBufferPointervOES")] + public static + void GetBufferPointer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All pname, IntPtr @params) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetBufferPointervOES((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)pname, (IntPtr)@params); + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] + public static + unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] ref T4 binary) + where T4 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject()); + } + finally + { + binary_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] + public static + unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) + where T4 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject()); + } + finally + { + binary_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] + public static + unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[,] binary) + where T4 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject()); + } + finally + { + binary_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] + public static + unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, [InAttribute, OutAttribute] T4[] binary) + where T4 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject()); + } + finally + { + binary_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] + public static + unsafe void GetProgramBinary(UInt32 program, Int32 bufSize, Int32* length, OpenTK.Graphics.ES20.All* binaryFormat, IntPtr binary) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length, (OpenTK.Graphics.ES20.All*)binaryFormat, (IntPtr)binary); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] + public static + void GetProgramBinary(UInt32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] ref T4 binary) + where T4 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = length) + fixed (OpenTK.Graphics.ES20.All* binaryFormat_ptr = binaryFormat) + { + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + } + finally + { + binary_ptr.Free(); + } + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] + public static + void GetProgramBinary(UInt32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) + where T4 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = length) + fixed (OpenTK.Graphics.ES20.All* binaryFormat_ptr = binaryFormat) + { + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + } + finally + { + binary_ptr.Free(); + } + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] + public static + void GetProgramBinary(UInt32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[,] binary) + where T4 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = length) + fixed (OpenTK.Graphics.ES20.All* binaryFormat_ptr = binaryFormat) + { + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + } + finally + { + binary_ptr.Free(); + } + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] + public static + void GetProgramBinary(UInt32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, [InAttribute, OutAttribute] T4[] binary) + where T4 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = length) + fixed (OpenTK.Graphics.ES20.All* binaryFormat_ptr = binaryFormat) + { + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + } + finally + { + binary_ptr.Free(); + } + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] + public static + void GetProgramBinary(UInt32 program, Int32 bufSize, Int32[] length, OpenTK.Graphics.ES20.All[] binaryFormat, IntPtr binary) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = length) + fixed (OpenTK.Graphics.ES20.All* binaryFormat_ptr = binaryFormat) + { + Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary); + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] + public static + void GetProgramBinary(UInt32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] ref T4 binary) + where T4 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = &length) + fixed (OpenTK.Graphics.ES20.All* binaryFormat_ptr = &binaryFormat) + { + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + } + finally + { + binary_ptr.Free(); + } + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] + public static + void GetProgramBinary(UInt32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[,,] binary) + where T4 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = &length) + fixed (OpenTK.Graphics.ES20.All* binaryFormat_ptr = &binaryFormat) + { + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + } + finally + { + binary_ptr.Free(); + } + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] + public static + void GetProgramBinary(UInt32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[,] binary) + where T4 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = &length) + fixed (OpenTK.Graphics.ES20.All* binaryFormat_ptr = &binaryFormat) + { + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + } + finally + { + binary_ptr.Free(); + } + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] + public static + void GetProgramBinary(UInt32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T4[] binary) + where T4 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = &length) + fixed (OpenTK.Graphics.ES20.All* binaryFormat_ptr = &binaryFormat) + { + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary_ptr.AddrOfPinnedObject()); + } + finally + { + binary_ptr.Free(); + } + } + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glGetProgramBinaryOES")] + public static + void GetProgramBinary(UInt32 program, Int32 bufSize, ref Int32 length, ref OpenTK.Graphics.ES20.All binaryFormat, IntPtr binary) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + unsafe + { + fixed (Int32* length_ptr = &length) + fixed (OpenTK.Graphics.ES20.All* binaryFormat_ptr = &binaryFormat) + { + Delegates.glGetProgramBinaryOES((UInt32)program, (Int32)bufSize, (Int32*)length_ptr, (OpenTK.Graphics.ES20.All*)binaryFormat_ptr, (IntPtr)binary); + } + } + #if DEBUG + } + #endif + } + + + /// + /// Map a buffer object's data store + /// + /// + /// + /// Specifies the target buffer object being mapped. The symbolic constant must be GL_ARRAY_BUFFER, GL_ELEMENT_ARRAY_BUFFER, GL_PIXEL_PACK_BUFFER, or GL_PIXEL_UNPACK_BUFFER. + /// + /// + /// + /// + /// Specifies the access policy, indicating whether it will be possible to read from, write to, or both read from and write to the buffer object's mapped data store. The symbolic constant must be GL_READ_ONLY, GL_WRITE_ONLY, or GL_READ_WRITE. + /// + /// + [System.CLSCompliant(false)] + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glMapBufferOES")] + public static + unsafe IntPtr MapBuffer(OpenTK.Graphics.ES20.All target, OpenTK.Graphics.ES20.All access) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glMapBufferOES((OpenTK.Graphics.ES20.All)target, (OpenTK.Graphics.ES20.All)access); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glProgramBinaryOES")] + public static + void ProgramBinary(UInt32 program, OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] ref T2 binary, Int32 length) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glProgramBinaryOES((UInt32)program, (OpenTK.Graphics.ES20.All)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + } + finally + { + binary_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glProgramBinaryOES")] + public static + void ProgramBinary(UInt32 program, OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T2[,,] binary, Int32 length) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glProgramBinaryOES((UInt32)program, (OpenTK.Graphics.ES20.All)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + } + finally + { + binary_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glProgramBinaryOES")] + public static + void ProgramBinary(UInt32 program, OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T2[,] binary, Int32 length) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glProgramBinaryOES((UInt32)program, (OpenTK.Graphics.ES20.All)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + } + finally + { + binary_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glProgramBinaryOES")] + public static + void ProgramBinary(UInt32 program, OpenTK.Graphics.ES20.All binaryFormat, [InAttribute, OutAttribute] T2[] binary, Int32 length) + where T2 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle binary_ptr = GCHandle.Alloc(binary, GCHandleType.Pinned); + try + { + Delegates.glProgramBinaryOES((UInt32)program, (OpenTK.Graphics.ES20.All)binaryFormat, (IntPtr)binary_ptr.AddrOfPinnedObject(), (Int32)length); + } + finally + { + binary_ptr.Free(); + } + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glProgramBinaryOES")] + public static + void ProgramBinary(UInt32 program, OpenTK.Graphics.ES20.All binaryFormat, IntPtr binary, Int32 length) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glProgramBinaryOES((UInt32)program, (OpenTK.Graphics.ES20.All)binaryFormat, (IntPtr)binary, (Int32)length); + #if DEBUG + } + #endif + } + + + /// + /// Specify a three-dimensional texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_3D or GL_PROXY_TEXTURE_3D. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level is the n sup th mipmap reduction image. + /// + /// + /// + /// + /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the depth of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup k + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels deep. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage3DOES")] + public static + void TexImage3D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] ref T9 pixels) + where T9 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a three-dimensional texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_3D or GL_PROXY_TEXTURE_3D. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level is the n sup th mipmap reduction image. + /// + /// + /// + /// + /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the depth of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup k + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels deep. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage3DOES")] + public static + void TexImage3D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T9[,,] pixels) + where T9 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a three-dimensional texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_3D or GL_PROXY_TEXTURE_3D. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level is the n sup th mipmap reduction image. + /// + /// + /// + /// + /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the depth of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup k + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels deep. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage3DOES")] + public static + void TexImage3D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T9[,] pixels) + where T9 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a three-dimensional texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_3D or GL_PROXY_TEXTURE_3D. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level is the n sup th mipmap reduction image. + /// + /// + /// + /// + /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the depth of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup k + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels deep. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage3DOES")] + public static + void TexImage3D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T9[] pixels) + where T9 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a three-dimensional texture image + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_3D or GL_PROXY_TEXTURE_3D. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level is the n sup th mipmap reduction image. + /// + /// + /// + /// + /// Specifies the number of color components in the texture. Must be 1, 2, 3, or 4, or one of the following symbolic constants: GL_ALPHA, GL_ALPHA4, GL_ALPHA8, GL_ALPHA12, GL_ALPHA16, GL_COMPRESSED_ALPHA, GL_COMPRESSED_LUMINANCE, GL_COMPRESSED_LUMINANCE_ALPHA, GL_COMPRESSED_INTENSITY, GL_COMPRESSED_RGB, GL_COMPRESSED_RGBA, GL_LUMINANCE, GL_LUMINANCE4, GL_LUMINANCE8, GL_LUMINANCE12, GL_LUMINANCE16, GL_LUMINANCE_ALPHA, GL_LUMINANCE4_ALPHA4, GL_LUMINANCE6_ALPHA2, GL_LUMINANCE8_ALPHA8, GL_LUMINANCE12_ALPHA4, GL_LUMINANCE12_ALPHA12, GL_LUMINANCE16_ALPHA16, GL_INTENSITY, GL_INTENSITY4, GL_INTENSITY8, GL_INTENSITY12, GL_INTENSITY16, GL_R3_G3_B2, GL_RGB, GL_RGB4, GL_RGB5, GL_RGB8, GL_RGB10, GL_RGB12, GL_RGB16, GL_RGBA, GL_RGBA2, GL_RGBA4, GL_RGB5_A1, GL_RGBA8, GL_RGB10_A2, GL_RGBA12, GL_RGBA16, GL_SLUMINANCE, GL_SLUMINANCE8, GL_SLUMINANCE_ALPHA, GL_SLUMINANCE8_ALPHA8, GL_SRGB, GL_SRGB8, GL_SRGB_ALPHA, or GL_SRGB8_ALPHA8. + /// + /// + /// + /// + /// Specifies the width of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup n + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels wide. + /// + /// + /// + /// + /// Specifies the height of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup m + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels high. + /// + /// + /// + /// + /// Specifies the depth of the texture image including the border if any. If the GL version does not support non-power-of-two sizes, this value must be 2 sup k + 2 ( border ) for some integer . All implementations support 3D texture images that are at least 16 texels deep. + /// + /// + /// + /// + /// Specifies the width of the border. Must be either 0 or 1. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexImage3DOES")] + public static + void TexImage3D(OpenTK.Graphics.ES20.All target, Int32 level, OpenTK.Graphics.ES20.All internalformat, Int32 width, Int32 height, Int32 depth, Int32 border, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (OpenTK.Graphics.ES20.All)internalformat, (Int32)width, (Int32)height, (Int32)depth, (Int32)border, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels); + #if DEBUG + } + #endif + } + + + /// + /// Specify a three-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_3D. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the z direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the depth of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage3DOES")] + public static + void TexSubImage3D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] ref T10 pixels) + where T10 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a three-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_3D. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the z direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the depth of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage3DOES")] + public static + void TexSubImage3D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T10[,,] pixels) + where T10 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a three-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_3D. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the z direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the depth of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage3DOES")] + public static + void TexSubImage3D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T10[,] pixels) + where T10 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a three-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_3D. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the z direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the depth of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage3DOES")] + public static + void TexSubImage3D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, [InAttribute, OutAttribute] T10[] pixels) + where T10 : struct + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + GCHandle pixels_ptr = GCHandle.Alloc(pixels, GCHandleType.Pinned); + try + { + Delegates.glTexSubImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels_ptr.AddrOfPinnedObject()); + } + finally + { + pixels_ptr.Free(); + } + #if DEBUG + } + #endif + } + + + /// + /// Specify a three-dimensional texture subimage + /// + /// + /// + /// Specifies the target texture. Must be GL_TEXTURE_3D. + /// + /// + /// + /// + /// Specifies the level-of-detail number. Level 0 is the base image level. Level n is the nth mipmap reduction image. + /// + /// + /// + /// + /// Specifies a texel offset in the x direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the y direction within the texture array. + /// + /// + /// + /// + /// Specifies a texel offset in the z direction within the texture array. + /// + /// + /// + /// + /// Specifies the width of the texture subimage. + /// + /// + /// + /// + /// Specifies the height of the texture subimage. + /// + /// + /// + /// + /// Specifies the depth of the texture subimage. + /// + /// + /// + /// + /// Specifies the format of the pixel data. The following symbolic values are accepted: GL_COLOR_INDEX, GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RGB, GL_BGR, GL_RGBA, GL_BGRA, GL_LUMINANCE, and GL_LUMINANCE_ALPHA. + /// + /// + /// + /// + /// Specifies the data type of the pixel data. The following symbolic values are accepted: GL_UNSIGNED_BYTE, GL_BYTE, GL_BITMAP, GL_UNSIGNED_SHORT, GL_SHORT, GL_UNSIGNED_INT, GL_INT, GL_FLOAT, GL_UNSIGNED_BYTE_3_3_2, GL_UNSIGNED_BYTE_2_3_3_REV, GL_UNSIGNED_SHORT_5_6_5, GL_UNSIGNED_SHORT_5_6_5_REV, GL_UNSIGNED_SHORT_4_4_4_4, GL_UNSIGNED_SHORT_4_4_4_4_REV, GL_UNSIGNED_SHORT_5_5_5_1, GL_UNSIGNED_SHORT_1_5_5_5_REV, GL_UNSIGNED_INT_8_8_8_8, GL_UNSIGNED_INT_8_8_8_8_REV, GL_UNSIGNED_INT_10_10_10_2, and GL_UNSIGNED_INT_2_10_10_10_REV. + /// + /// + /// + /// + /// Specifies a pointer to the image data in memory. + /// + /// + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glTexSubImage3DOES")] + public static + void TexSubImage3D(OpenTK.Graphics.ES20.All target, Int32 level, Int32 xoffset, Int32 yoffset, Int32 zoffset, Int32 width, Int32 height, Int32 depth, OpenTK.Graphics.ES20.All format, OpenTK.Graphics.ES20.All type, IntPtr pixels) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + Delegates.glTexSubImage3DOES((OpenTK.Graphics.ES20.All)target, (Int32)level, (Int32)xoffset, (Int32)yoffset, (Int32)zoffset, (Int32)width, (Int32)height, (Int32)depth, (OpenTK.Graphics.ES20.All)format, (OpenTK.Graphics.ES20.All)type, (IntPtr)pixels); + #if DEBUG + } + #endif + } + + [AutoGenerated(Category = "2.0", Version = "2.0", EntryPoint = "glUnmapBufferOES")] + public static + bool UnmapBuffer(OpenTK.Graphics.ES20.All target) + { + #if DEBUG + using (new ErrorHelper(GraphicsContext.CurrentContext)) + { + #endif + return Delegates.glUnmapBufferOES((OpenTK.Graphics.ES20.All)target); + #if DEBUG + } + #endif + } + + } + + } +} diff --git a/Source/OpenTK/Graphics/ES20/Enums.cs b/Source/OpenTK/Graphics/ES20/Enums.cs index 2f06a774..d9a95091 100644 --- a/Source/OpenTK/Graphics/ES20/Enums.cs +++ b/Source/OpenTK/Graphics/ES20/Enums.cs @@ -1,797 +1,1140 @@ -#region License -// -// The Open Toolkit Library License -// -// Copyright (c) 2006 - 2009 the Open Toolkit library. -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the "Software"), to deal -// in the Software without restriction, including without limitation the rights to -// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -// the Software, and to permit persons to whom the Software is furnished to do -// so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in all -// copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -// OTHER DEALINGS IN THE SOFTWARE. -// -#endregion - -using System; - -namespace OpenTK.Graphics.ES20 -{ - #pragma warning disable 1591 - - public enum All - { - False = ((int)0), - NoError = ((int)0), - None = ((int)0), - Zero = ((int)0), - Points = ((int)0X0000), - DepthBufferBit = ((int)0X00000100), - StencilBufferBit = ((int)0X00000400), - ColorBufferBit = ((int)0X00004000), - Lines = ((int)0X0001), - LineLoop = ((int)0X0002), - LineStrip = ((int)0X0003), - Triangles = ((int)0X0004), - TriangleStrip = ((int)0X0005), - TriangleFan = ((int)0X0006), - Never = ((int)0X0200), - Less = ((int)0X0201), - Equal = ((int)0X0202), - Lequal = ((int)0X0203), - Greater = ((int)0X0204), - Notequal = ((int)0X0205), - Gequal = ((int)0X0206), - Always = ((int)0X0207), - SrcColor = ((int)0X0300), - OneMinusSrcColor = ((int)0X0301), - SrcAlpha = ((int)0X0302), - OneMinusSrcAlpha = ((int)0X0303), - DstAlpha = ((int)0X0304), - OneMinusDstAlpha = ((int)0X0305), - DstColor = ((int)0X0306), - OneMinusDstColor = ((int)0X0307), - SrcAlphaSaturate = ((int)0X0308), - Front = ((int)0X0404), - Back = ((int)0X0405), - FrontAndBack = ((int)0X0408), - InvalidEnum = ((int)0X0500), - InvalidValue = ((int)0X0501), - InvalidOperation = ((int)0X0502), - OutOfMemory = ((int)0X0505), - InvalidFramebufferOperation = ((int)0X0506), - Cw = ((int)0X0900), - Ccw = ((int)0X0901), - LineWidth = ((int)0X0b21), - CullFace = ((int)0X0b44), - CullFaceMode = ((int)0X0b45), - FrontFace = ((int)0X0b46), - DepthRange = ((int)0X0b70), - DepthTest = ((int)0X0b71), - DepthWritemask = ((int)0X0b72), - DepthClearValue = ((int)0X0b73), - DepthFunc = ((int)0X0b74), - StencilTest = ((int)0X0b90), - StencilClearValue = ((int)0X0b91), - StencilFunc = ((int)0X0b92), - StencilValueMask = ((int)0X0b93), - StencilFail = ((int)0X0b94), - StencilPassDepthFail = ((int)0X0b95), - StencilPassDepthPass = ((int)0X0b96), - StencilRef = ((int)0X0b97), - StencilWritemask = ((int)0X0b98), - Viewport = ((int)0X0ba2), - Dither = ((int)0X0bd0), - Blend = ((int)0X0be2), - ScissorBox = ((int)0X0c10), - ScissorTest = ((int)0X0c11), - ColorClearValue = ((int)0X0c22), - ColorWritemask = ((int)0X0c23), - UnpackAlignment = ((int)0X0cf5), - PackAlignment = ((int)0X0d05), - MaxTextureSize = ((int)0X0d33), - MaxViewportDims = ((int)0X0d3a), - SubpixelBits = ((int)0X0d50), - RedBits = ((int)0X0d52), - GreenBits = ((int)0X0d53), - BlueBits = ((int)0X0d54), - AlphaBits = ((int)0X0d55), - DepthBits = ((int)0X0d56), - StencilBits = ((int)0X0d57), - Texture2D = ((int)0X0de1), - DontCare = ((int)0X1100), - Fastest = ((int)0X1101), - Nicest = ((int)0X1102), - Byte = ((int)0X1400), - UnsignedByte = ((int)0X1401), - Short = ((int)0X1402), - UnsignedShort = ((int)0X1403), - Int = ((int)0X1404), - UnsignedInt = ((int)0X1405), - Float = ((int)0X1406), - Fixed = ((int)0X140c), - Invert = ((int)0X150a), - Texture = ((int)0X1702), - StencilIndex = ((int)0X1901), - DepthComponent = ((int)0X1902), - Alpha = ((int)0X1906), - Rgb = ((int)0X1907), - Rgba = ((int)0X1908), - Luminance = ((int)0X1909), - LuminanceAlpha = ((int)0X190a), - Keep = ((int)0X1e00), - Replace = ((int)0X1e01), - Incr = ((int)0X1e02), - Decr = ((int)0X1e03), - Vendor = ((int)0X1f00), - Renderer = ((int)0X1f01), - Version = ((int)0X1f02), - Extensions = ((int)0X1f03), - Nearest = ((int)0X2600), - Linear = ((int)0X2601), - NearestMipmapNearest = ((int)0X2700), - LinearMipmapNearest = ((int)0X2701), - NearestMipmapLinear = ((int)0X2702), - LinearMipmapLinear = ((int)0X2703), - TextureMagFilter = ((int)0X2800), - TextureMinFilter = ((int)0X2801), - TextureWrapS = ((int)0X2802), - TextureWrapT = ((int)0X2803), - Repeat = ((int)0X2901), - PolygonOffsetUnits = ((int)0X2a00), - ConstantColor = ((int)0X8001), - OneMinusConstantColor = ((int)0X8002), - ConstantAlpha = ((int)0X8003), - OneMinusConstantAlpha = ((int)0X8004), - BlendColor = ((int)0X8005), - FuncAdd = ((int)0X8006), - BlendEquation = ((int)0X8009), - BlendEquationRgb = ((int)0X8009), - FuncSubtract = ((int)0X800a), - FuncReverseSubtract = ((int)0X800b), - UnsignedShort4444 = ((int)0X8033), - UnsignedShort5551 = ((int)0X8034), - PolygonOffsetFill = ((int)0X8037), - PolygonOffsetFactor = ((int)0X8038), - Rgba4 = ((int)0X8056), - Rgb5A1 = ((int)0X8057), - TextureBinding2D = ((int)0X8069), - SampleAlphaToCoverage = ((int)0X809e), - SampleCoverage = ((int)0X80a0), - SampleBuffers = ((int)0X80a8), - Samples = ((int)0X80a9), - SampleCoverageValue = ((int)0X80aa), - SampleCoverageInvert = ((int)0X80ab), - BlendDstRgb = ((int)0X80c8), - BlendSrcRgb = ((int)0X80c9), - BlendDstAlpha = ((int)0X80ca), - BlendSrcAlpha = ((int)0X80cb), - ClampToEdge = ((int)0X812f), - GenerateMipmapHint = ((int)0X8192), - DepthComponent16 = ((int)0X81a5), - UnsignedShort565 = ((int)0X8363), - MirroredRepeat = ((int)0X8370), - AliasedPointSizeRange = ((int)0X846d), - AliasedLineWidthRange = ((int)0X846e), - Texture0 = ((int)0X84c0), - Texture1 = ((int)0X84c1), - Texture2 = ((int)0X84c2), - Texture3 = ((int)0X84c3), - Texture4 = ((int)0X84c4), - Texture5 = ((int)0X84c5), - Texture6 = ((int)0X84c6), - Texture7 = ((int)0X84c7), - Texture8 = ((int)0X84c8), - Texture9 = ((int)0X84c9), - Texture10 = ((int)0X84ca), - Texture11 = ((int)0X84cb), - Texture12 = ((int)0X84cc), - Texture13 = ((int)0X84cd), - Texture14 = ((int)0X84ce), - Texture15 = ((int)0X84cf), - Texture16 = ((int)0X84d0), - Texture17 = ((int)0X84d1), - Texture18 = ((int)0X84d2), - Texture19 = ((int)0X84d3), - Texture20 = ((int)0X84d4), - Texture21 = ((int)0X84d5), - Texture22 = ((int)0X84d6), - Texture23 = ((int)0X84d7), - Texture24 = ((int)0X84d8), - Texture25 = ((int)0X84d9), - Texture26 = ((int)0X84da), - Texture27 = ((int)0X84db), - Texture28 = ((int)0X84dc), - Texture29 = ((int)0X84dd), - Texture30 = ((int)0X84de), - Texture31 = ((int)0X84df), - ActiveTexture = ((int)0X84e0), - MaxRenderbufferSize = ((int)0X84e8), - IncrWrap = ((int)0X8507), - DecrWrap = ((int)0X8508), - TextureCubeMap = ((int)0X8513), - TextureBindingCubeMap = ((int)0X8514), - TextureCubeMapPositiveX = ((int)0X8515), - TextureCubeMapNegativeX = ((int)0X8516), - TextureCubeMapPositiveY = ((int)0X8517), - TextureCubeMapNegativeY = ((int)0X8518), - TextureCubeMapPositiveZ = ((int)0X8519), - TextureCubeMapNegativeZ = ((int)0X851a), - MaxCubeMapTextureSize = ((int)0X851c), - VertexAttribArrayEnabled = ((int)0X8622), - VertexAttribArraySize = ((int)0X8623), - VertexAttribArrayStride = ((int)0X8624), - VertexAttribArrayType = ((int)0X8625), - CurrentVertexAttrib = ((int)0X8626), - VertexAttribArrayPointer = ((int)0X8645), - NumCompressedTextureFormats = ((int)0X86a2), - CompressedTextureFormats = ((int)0X86a3), - BufferSize = ((int)0X8764), - BufferUsage = ((int)0X8765), - StencilBackFunc = ((int)0X8800), - StencilBackFail = ((int)0X8801), - StencilBackPassDepthFail = ((int)0X8802), - StencilBackPassDepthPass = ((int)0X8803), - BlendEquationAlpha = ((int)0X883d), - MaxVertexAttribs = ((int)0X8869), - VertexAttribArrayNormalized = ((int)0X886a), - MaxTextureImageUnits = ((int)0X8872), - ArrayBuffer = ((int)0X8892), - ElementArrayBuffer = ((int)0X8893), - ArrayBufferBinding = ((int)0X8894), - ElementArrayBufferBinding = ((int)0X8895), - VertexAttribArrayBufferBinding = ((int)0X889f), - StreamDraw = ((int)0X88e0), - StaticDraw = ((int)0X88e4), - DynamicDraw = ((int)0X88e8), - FragmentShader = ((int)0X8b30), - VertexShader = ((int)0X8b31), - MaxVertexTextureImageUnits = ((int)0X8b4c), - MaxCombinedTextureImageUnits = ((int)0X8b4d), - ShaderType = ((int)0X8b4f), - FloatVec2 = ((int)0X8b50), - FloatVec3 = ((int)0X8b51), - FloatVec4 = ((int)0X8b52), - IntVec2 = ((int)0X8b53), - IntVec3 = ((int)0X8b54), - IntVec4 = ((int)0X8b55), - Bool = ((int)0X8b56), - BoolVec2 = ((int)0X8b57), - BoolVec3 = ((int)0X8b58), - BoolVec4 = ((int)0X8b59), - FloatMat2 = ((int)0X8b5a), - FloatMat3 = ((int)0X8b5b), - FloatMat4 = ((int)0X8b5c), - Sampler2D = ((int)0X8b5e), - SamplerCube = ((int)0X8b60), - DeleteStatus = ((int)0X8b80), - CompileStatus = ((int)0X8b81), - LinkStatus = ((int)0X8b82), - ValidateStatus = ((int)0X8b83), - InfoLogLength = ((int)0X8b84), - AttachedShaders = ((int)0X8b85), - ActiveUniforms = ((int)0X8b86), - ActiveUniformMaxLength = ((int)0X8b87), - ShaderSourceLength = ((int)0X8b88), - ActiveAttributes = ((int)0X8b89), - ActiveAttributeMaxLength = ((int)0X8b8a), - ShadingLanguageVersion = ((int)0X8b8c), - CurrentProgram = ((int)0X8b8d), - ImplementationColorReadType = ((int)0X8b9a), - ImplementationColorReadFormat = ((int)0X8b9b), - StencilBackRef = ((int)0X8ca3), - StencilBackValueMask = ((int)0X8ca4), - StencilBackWritemask = ((int)0X8ca5), - FramebufferBinding = ((int)0X8ca6), - RenderbufferBinding = ((int)0X8ca7), - FramebufferAttachmentObjectType = ((int)0X8cd0), - FramebufferAttachmentObjectName = ((int)0X8cd1), - FramebufferAttachmentTextureLevel = ((int)0X8cd2), - FramebufferAttachmentTextureCubeMapFace = ((int)0X8cd3), - FramebufferComplete = ((int)0X8cd5), - FramebufferIncompleteAttachment = ((int)0X8cd6), - FramebufferIncompleteMissingAttachment = ((int)0X8cd7), - FramebufferIncompleteDimensions = ((int)0X8cd9), - FramebufferUnsupported = ((int)0X8cdd), - ColorAttachment0 = ((int)0X8ce0), - DepthAttachment = ((int)0X8d00), - StencilAttachment = ((int)0X8d20), - Framebuffer = ((int)0X8d40), - Renderbuffer = ((int)0X8d41), - RenderbufferWidth = ((int)0X8d42), - RenderbufferHeight = ((int)0X8d43), - RenderbufferInternalFormat = ((int)0X8d44), - StencilIndex8 = ((int)0X8d48), - RenderbufferRedSize = ((int)0X8d50), - RenderbufferGreenSize = ((int)0X8d51), - RenderbufferBlueSize = ((int)0X8d52), - RenderbufferAlphaSize = ((int)0X8d53), - RenderbufferDepthSize = ((int)0X8d54), - RenderbufferStencilSize = ((int)0X8d55), - Rgb565 = ((int)0X8d62), - LowFloat = ((int)0X8df0), - MediumFloat = ((int)0X8df1), - HighFloat = ((int)0X8df2), - LowInt = ((int)0X8df3), - MediumInt = ((int)0X8df4), - HighInt = ((int)0X8df5), - ShaderBinaryFormats = ((int)0X8df8), - NumShaderBinaryFormats = ((int)0X8df9), - ShaderCompiler = ((int)0X8dfa), - MaxVertexUniformVectors = ((int)0X8dfb), - MaxVaryingVectors = ((int)0X8dfc), - MaxFragmentUniformVectors = ((int)0X8dfd), - EsVersion20 = ((int)1), - One = ((int)1), - True = ((int)1), - } - - public enum BeginMode - { - Points = ((int)0X0000), - Lines = ((int)0X0001), - LineLoop = ((int)0X0002), - LineStrip = ((int)0X0003), - Triangles = ((int)0X0004), - TriangleStrip = ((int)0X0005), - TriangleFan = ((int)0X0006), - } - - public enum BlendEquationSeparate - { - FuncAdd = ((int)0X8006), - BlendEquation = ((int)0X8009), - BlendEquationRgb = ((int)0X8009), - BlendEquationAlpha = ((int)0X883d), - } - - public enum BlendingFactorDest - { - Zero = ((int)0), - SrcColor = ((int)0X0300), - OneMinusSrcColor = ((int)0X0301), - SrcAlpha = ((int)0X0302), - OneMinusSrcAlpha = ((int)0X0303), - DstAlpha = ((int)0X0304), - OneMinusDstAlpha = ((int)0X0305), - One = ((int)1), - } - - public enum BlendingFactorSrc - { - DstColor = ((int)0X0306), - OneMinusDstColor = ((int)0X0307), - SrcAlphaSaturate = ((int)0X0308), - } - - public enum BlendSubtract - { - FuncSubtract = ((int)0X800a), - FuncReverseSubtract = ((int)0X800b), - } - - public enum Boolean - { - False = ((int)0), - True = ((int)1), - } - - public enum BufferObjects - { - CurrentVertexAttrib = ((int)0X8626), - BufferSize = ((int)0X8764), - BufferUsage = ((int)0X8765), - ArrayBuffer = ((int)0X8892), - ElementArrayBuffer = ((int)0X8893), - ArrayBufferBinding = ((int)0X8894), - ElementArrayBufferBinding = ((int)0X8895), - StreamDraw = ((int)0X88e0), - StaticDraw = ((int)0X88e4), - DynamicDraw = ((int)0X88e8), - } - - [Flags] - public enum ClearBufferMask - { - DepthBufferBit = ((int)0X00000100), - StencilBufferBit = ((int)0X00000400), - ColorBufferBit = ((int)0X00004000), - } - - public enum CullFaceMode - { - Front = ((int)0X0404), - Back = ((int)0X0405), - FrontAndBack = ((int)0X0408), - } - - public enum DataType - { - Byte = ((int)0X1400), - UnsignedByte = ((int)0X1401), - Short = ((int)0X1402), - UnsignedShort = ((int)0X1403), - Int = ((int)0X1404), - UnsignedInt = ((int)0X1405), - Float = ((int)0X1406), - Fixed = ((int)0X140c), - } - - public enum EnableCap - { - CullFace = ((int)0X0b44), - DepthTest = ((int)0X0b71), - StencilTest = ((int)0X0b90), - Dither = ((int)0X0bd0), - Blend = ((int)0X0be2), - ScissorTest = ((int)0X0c11), - Texture2D = ((int)0X0de1), - PolygonOffsetFill = ((int)0X8037), - SampleAlphaToCoverage = ((int)0X809e), - SampleCoverage = ((int)0X80a0), - } - - public enum ErrorCode - { - NoError = ((int)0), - InvalidEnum = ((int)0X0500), - InvalidValue = ((int)0X0501), - InvalidOperation = ((int)0X0502), - OutOfMemory = ((int)0X0505), - } - - public enum FramebufferObject - { - None = ((int)0), - InvalidFramebufferOperation = ((int)0X0506), - StencilIndex = ((int)0X1901), - Rgba4 = ((int)0X8056), - Rgb5A1 = ((int)0X8057), - DepthComponent16 = ((int)0X81a5), - MaxRenderbufferSize = ((int)0X84e8), - FramebufferBinding = ((int)0X8ca6), - RenderbufferBinding = ((int)0X8ca7), - FramebufferAttachmentObjectType = ((int)0X8cd0), - FramebufferAttachmentObjectName = ((int)0X8cd1), - FramebufferAttachmentTextureLevel = ((int)0X8cd2), - FramebufferAttachmentTextureCubeMapFace = ((int)0X8cd3), - FramebufferComplete = ((int)0X8cd5), - FramebufferIncompleteAttachment = ((int)0X8cd6), - FramebufferIncompleteMissingAttachment = ((int)0X8cd7), - FramebufferIncompleteDimensions = ((int)0X8cd9), - FramebufferUnsupported = ((int)0X8cdd), - ColorAttachment0 = ((int)0X8ce0), - DepthAttachment = ((int)0X8d00), - StencilAttachment = ((int)0X8d20), - Framebuffer = ((int)0X8d40), - Renderbuffer = ((int)0X8d41), - RenderbufferWidth = ((int)0X8d42), - RenderbufferHeight = ((int)0X8d43), - RenderbufferInternalFormat = ((int)0X8d44), - StencilIndex8 = ((int)0X8d48), - RenderbufferRedSize = ((int)0X8d50), - RenderbufferGreenSize = ((int)0X8d51), - RenderbufferBlueSize = ((int)0X8d52), - RenderbufferAlphaSize = ((int)0X8d53), - RenderbufferDepthSize = ((int)0X8d54), - RenderbufferStencilSize = ((int)0X8d55), - Rgb565 = ((int)0X8d62), - } - - public enum FrontFaceDirection - { - Cw = ((int)0X0900), - Ccw = ((int)0X0901), - } - - public enum GetPName - { - LineWidth = ((int)0X0b21), - CullFaceMode = ((int)0X0b45), - FrontFace = ((int)0X0b46), - DepthRange = ((int)0X0b70), - DepthWritemask = ((int)0X0b72), - DepthClearValue = ((int)0X0b73), - DepthFunc = ((int)0X0b74), - StencilClearValue = ((int)0X0b91), - StencilFunc = ((int)0X0b92), - StencilValueMask = ((int)0X0b93), - StencilFail = ((int)0X0b94), - StencilPassDepthFail = ((int)0X0b95), - StencilPassDepthPass = ((int)0X0b96), - StencilRef = ((int)0X0b97), - StencilWritemask = ((int)0X0b98), - Viewport = ((int)0X0ba2), - ScissorBox = ((int)0X0c10), - ColorClearValue = ((int)0X0c22), - ColorWritemask = ((int)0X0c23), - UnpackAlignment = ((int)0X0cf5), - PackAlignment = ((int)0X0d05), - MaxTextureSize = ((int)0X0d33), - MaxViewportDims = ((int)0X0d3a), - SubpixelBits = ((int)0X0d50), - RedBits = ((int)0X0d52), - GreenBits = ((int)0X0d53), - BlueBits = ((int)0X0d54), - AlphaBits = ((int)0X0d55), - DepthBits = ((int)0X0d56), - StencilBits = ((int)0X0d57), - PolygonOffsetUnits = ((int)0X2a00), - PolygonOffsetFactor = ((int)0X8038), - TextureBinding2D = ((int)0X8069), - SampleBuffers = ((int)0X80a8), - Samples = ((int)0X80a9), - SampleCoverageValue = ((int)0X80aa), - SampleCoverageInvert = ((int)0X80ab), - AliasedPointSizeRange = ((int)0X846d), - AliasedLineWidthRange = ((int)0X846e), - StencilBackFunc = ((int)0X8800), - StencilBackFail = ((int)0X8801), - StencilBackPassDepthFail = ((int)0X8802), - StencilBackPassDepthPass = ((int)0X8803), - StencilBackRef = ((int)0X8ca3), - StencilBackValueMask = ((int)0X8ca4), - StencilBackWritemask = ((int)0X8ca5), - } - - public enum GetTextureParameter - { - NumCompressedTextureFormats = ((int)0X86a2), - CompressedTextureFormats = ((int)0X86a3), - } - - public enum HintMode - { - DontCare = ((int)0X1100), - Fastest = ((int)0X1101), - Nicest = ((int)0X1102), - } - - public enum HintTarget - { - GenerateMipmapHint = ((int)0X8192), - } - - public enum PixelFormat - { - DepthComponent = ((int)0X1902), - Alpha = ((int)0X1906), - Rgb = ((int)0X1907), - Rgba = ((int)0X1908), - Luminance = ((int)0X1909), - LuminanceAlpha = ((int)0X190a), - } - - public enum PixelType - { - UnsignedShort4444 = ((int)0X8033), - UnsignedShort5551 = ((int)0X8034), - UnsignedShort565 = ((int)0X8363), - } - - public enum ReadFormat - { - ImplementationColorReadType = ((int)0X8b9a), - ImplementationColorReadFormat = ((int)0X8b9b), - } - - public enum SeparateBlendFunctions - { - ConstantColor = ((int)0X8001), - OneMinusConstantColor = ((int)0X8002), - ConstantAlpha = ((int)0X8003), - OneMinusConstantAlpha = ((int)0X8004), - BlendColor = ((int)0X8005), - BlendDstRgb = ((int)0X80c8), - BlendSrcRgb = ((int)0X80c9), - BlendDstAlpha = ((int)0X80ca), - BlendSrcAlpha = ((int)0X80cb), - } - - public enum ShaderBinary - { - ShaderBinaryFormats = ((int)0X8df8), - NumShaderBinaryFormats = ((int)0X8df9), - } - - public enum ShaderPrecision - { - LowFloat = ((int)0X8df0), - MediumFloat = ((int)0X8df1), - HighFloat = ((int)0X8df2), - LowInt = ((int)0X8df3), - MediumInt = ((int)0X8df4), - HighInt = ((int)0X8df5), - } - - public enum Shaders - { - MaxVertexAttribs = ((int)0X8869), - MaxTextureImageUnits = ((int)0X8872), - FragmentShader = ((int)0X8b30), - VertexShader = ((int)0X8b31), - MaxVertexTextureImageUnits = ((int)0X8b4c), - MaxCombinedTextureImageUnits = ((int)0X8b4d), - ShaderType = ((int)0X8b4f), - DeleteStatus = ((int)0X8b80), - LinkStatus = ((int)0X8b82), - ValidateStatus = ((int)0X8b83), - AttachedShaders = ((int)0X8b85), - ActiveUniforms = ((int)0X8b86), - ActiveUniformMaxLength = ((int)0X8b87), - ActiveAttributes = ((int)0X8b89), - ActiveAttributeMaxLength = ((int)0X8b8a), - ShadingLanguageVersion = ((int)0X8b8c), - CurrentProgram = ((int)0X8b8d), - MaxVertexUniformVectors = ((int)0X8dfb), - MaxVaryingVectors = ((int)0X8dfc), - MaxFragmentUniformVectors = ((int)0X8dfd), - } - - public enum ShaderSource - { - CompileStatus = ((int)0X8b81), - InfoLogLength = ((int)0X8b84), - ShaderSourceLength = ((int)0X8b88), - ShaderCompiler = ((int)0X8dfa), - } - - public enum StencilFunction - { - Never = ((int)0X0200), - Less = ((int)0X0201), - Equal = ((int)0X0202), - Lequal = ((int)0X0203), - Greater = ((int)0X0204), - Notequal = ((int)0X0205), - Gequal = ((int)0X0206), - Always = ((int)0X0207), - } - - public enum StencilOp - { - Invert = ((int)0X150a), - Keep = ((int)0X1e00), - Replace = ((int)0X1e01), - Incr = ((int)0X1e02), - Decr = ((int)0X1e03), - IncrWrap = ((int)0X8507), - DecrWrap = ((int)0X8508), - } - - public enum StringName - { - Vendor = ((int)0X1f00), - Renderer = ((int)0X1f01), - Version = ((int)0X1f02), - Extensions = ((int)0X1f03), - } - - public enum TextureMagFilter - { - Nearest = ((int)0X2600), - Linear = ((int)0X2601), - } - - public enum TextureMinFilter - { - NearestMipmapNearest = ((int)0X2700), - LinearMipmapNearest = ((int)0X2701), - NearestMipmapLinear = ((int)0X2702), - LinearMipmapLinear = ((int)0X2703), - } - - public enum TextureParameterName - { - TextureMagFilter = ((int)0X2800), - TextureMinFilter = ((int)0X2801), - TextureWrapS = ((int)0X2802), - TextureWrapT = ((int)0X2803), - } - - public enum TextureTarget - { - Texture = ((int)0X1702), - TextureCubeMap = ((int)0X8513), - TextureBindingCubeMap = ((int)0X8514), - TextureCubeMapPositiveX = ((int)0X8515), - TextureCubeMapNegativeX = ((int)0X8516), - TextureCubeMapPositiveY = ((int)0X8517), - TextureCubeMapNegativeY = ((int)0X8518), - TextureCubeMapPositiveZ = ((int)0X8519), - TextureCubeMapNegativeZ = ((int)0X851a), - MaxCubeMapTextureSize = ((int)0X851c), - } - - public enum TextureUnit - { - Texture0 = ((int)0X84c0), - Texture1 = ((int)0X84c1), - Texture2 = ((int)0X84c2), - Texture3 = ((int)0X84c3), - Texture4 = ((int)0X84c4), - Texture5 = ((int)0X84c5), - Texture6 = ((int)0X84c6), - Texture7 = ((int)0X84c7), - Texture8 = ((int)0X84c8), - Texture9 = ((int)0X84c9), - Texture10 = ((int)0X84ca), - Texture11 = ((int)0X84cb), - Texture12 = ((int)0X84cc), - Texture13 = ((int)0X84cd), - Texture14 = ((int)0X84ce), - Texture15 = ((int)0X84cf), - Texture16 = ((int)0X84d0), - Texture17 = ((int)0X84d1), - Texture18 = ((int)0X84d2), - Texture19 = ((int)0X84d3), - Texture20 = ((int)0X84d4), - Texture21 = ((int)0X84d5), - Texture22 = ((int)0X84d6), - Texture23 = ((int)0X84d7), - Texture24 = ((int)0X84d8), - Texture25 = ((int)0X84d9), - Texture26 = ((int)0X84da), - Texture27 = ((int)0X84db), - Texture28 = ((int)0X84dc), - Texture29 = ((int)0X84dd), - Texture30 = ((int)0X84de), - Texture31 = ((int)0X84df), - ActiveTexture = ((int)0X84e0), - } - - public enum TextureWrapMode - { - Repeat = ((int)0X2901), - ClampToEdge = ((int)0X812f), - MirroredRepeat = ((int)0X8370), - } - - public enum UniformTypes - { - FloatVec2 = ((int)0X8b50), - FloatVec3 = ((int)0X8b51), - FloatVec4 = ((int)0X8b52), - IntVec2 = ((int)0X8b53), - IntVec3 = ((int)0X8b54), - IntVec4 = ((int)0X8b55), - Bool = ((int)0X8b56), - BoolVec2 = ((int)0X8b57), - BoolVec3 = ((int)0X8b58), - BoolVec4 = ((int)0X8b59), - FloatMat2 = ((int)0X8b5a), - FloatMat3 = ((int)0X8b5b), - FloatMat4 = ((int)0X8b5c), - Sampler2D = ((int)0X8b5e), - SamplerCube = ((int)0X8b60), - } - - public enum Version - { - EsVersion20 = ((int)1), - } - - public enum VertexArrays - { - VertexAttribArrayEnabled = ((int)0X8622), - VertexAttribArraySize = ((int)0X8623), - VertexAttribArrayStride = ((int)0X8624), - VertexAttribArrayType = ((int)0X8625), - VertexAttribArrayPointer = ((int)0X8645), - VertexAttribArrayNormalized = ((int)0X886a), - VertexAttribArrayBufferBinding = ((int)0X889f), - } - -} +#region License +// +// The Open Toolkit Library License +// +// Copyright (c) 2006 - 2009 the Open Toolkit library. +// +// Permission is hereby granted, free of charge, to any person obtaining a copy +// of this software and associated documentation files (the "Software"), to deal +// in the Software without restriction, including without limitation the rights to +// use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of +// the Software, and to permit persons to whom the Software is furnished to do +// so, subject to the following conditions: +// +// The above copyright notice and this permission notice shall be included in all +// copies or substantial portions of the Software. +// +// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +// EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES +// OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +// NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT +// HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +// WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +// OTHER DEALINGS IN THE SOFTWARE. +// +#endregion + +using System; + +namespace OpenTK.Graphics.ES20 +{ + #pragma warning disable 1591 + + public enum All + { + False = ((int)0), + NoError = ((int)0), + None = ((int)0), + Zero = ((int)0), + Points = ((int)0X0000), + DepthBufferBit = ((int)0X00000100), + StencilBufferBit = ((int)0X00000400), + ColorBufferBit = ((int)0X00004000), + Lines = ((int)0X0001), + LineLoop = ((int)0X0002), + LineStrip = ((int)0X0003), + Triangles = ((int)0X0004), + TriangleStrip = ((int)0X0005), + TriangleFan = ((int)0X0006), + Never = ((int)0X0200), + Less = ((int)0X0201), + Equal = ((int)0X0202), + Lequal = ((int)0X0203), + Greater = ((int)0X0204), + Notequal = ((int)0X0205), + Gequal = ((int)0X0206), + Always = ((int)0X0207), + SrcColor = ((int)0X0300), + OneMinusSrcColor = ((int)0X0301), + SrcAlpha = ((int)0X0302), + OneMinusSrcAlpha = ((int)0X0303), + DstAlpha = ((int)0X0304), + OneMinusDstAlpha = ((int)0X0305), + DstColor = ((int)0X0306), + OneMinusDstColor = ((int)0X0307), + SrcAlphaSaturate = ((int)0X0308), + Front = ((int)0X0404), + Back = ((int)0X0405), + FrontAndBack = ((int)0X0408), + InvalidEnum = ((int)0X0500), + InvalidValue = ((int)0X0501), + InvalidOperation = ((int)0X0502), + OutOfMemory = ((int)0X0505), + InvalidFramebufferOperation = ((int)0X0506), + Cw = ((int)0X0900), + Ccw = ((int)0X0901), + LineWidth = ((int)0X0b21), + CullFace = ((int)0X0b44), + CullFaceMode = ((int)0X0b45), + FrontFace = ((int)0X0b46), + DepthRange = ((int)0X0b70), + DepthTest = ((int)0X0b71), + DepthWritemask = ((int)0X0b72), + DepthClearValue = ((int)0X0b73), + DepthFunc = ((int)0X0b74), + StencilTest = ((int)0X0b90), + StencilClearValue = ((int)0X0b91), + StencilFunc = ((int)0X0b92), + StencilValueMask = ((int)0X0b93), + StencilFail = ((int)0X0b94), + StencilPassDepthFail = ((int)0X0b95), + StencilPassDepthPass = ((int)0X0b96), + StencilRef = ((int)0X0b97), + StencilWritemask = ((int)0X0b98), + Viewport = ((int)0X0ba2), + Dither = ((int)0X0bd0), + Blend = ((int)0X0be2), + ScissorBox = ((int)0X0c10), + ScissorTest = ((int)0X0c11), + ColorClearValue = ((int)0X0c22), + ColorWritemask = ((int)0X0c23), + UnpackAlignment = ((int)0X0cf5), + PackAlignment = ((int)0X0d05), + MaxTextureSize = ((int)0X0d33), + MaxViewportDims = ((int)0X0d3a), + SubpixelBits = ((int)0X0d50), + RedBits = ((int)0X0d52), + GreenBits = ((int)0X0d53), + BlueBits = ((int)0X0d54), + AlphaBits = ((int)0X0d55), + DepthBits = ((int)0X0d56), + StencilBits = ((int)0X0d57), + Texture2D = ((int)0X0de1), + DontCare = ((int)0X1100), + Fastest = ((int)0X1101), + Nicest = ((int)0X1102), + Byte = ((int)0X1400), + UnsignedByte = ((int)0X1401), + Short = ((int)0X1402), + UnsignedShort = ((int)0X1403), + Int = ((int)0X1404), + UnsignedInt = ((int)0X1405), + Float = ((int)0X1406), + Fixed = ((int)0X140c), + Invert = ((int)0X150a), + Texture = ((int)0X1702), + StencilIndex = ((int)0X1901), + DepthComponent = ((int)0X1902), + Alpha = ((int)0X1906), + Rgb = ((int)0X1907), + Rgba = ((int)0X1908), + Luminance = ((int)0X1909), + LuminanceAlpha = ((int)0X190a), + Keep = ((int)0X1e00), + Replace = ((int)0X1e01), + Incr = ((int)0X1e02), + Decr = ((int)0X1e03), + Vendor = ((int)0X1f00), + Renderer = ((int)0X1f01), + Version = ((int)0X1f02), + Extensions = ((int)0X1f03), + Nearest = ((int)0X2600), + Linear = ((int)0X2601), + NearestMipmapNearest = ((int)0X2700), + LinearMipmapNearest = ((int)0X2701), + NearestMipmapLinear = ((int)0X2702), + LinearMipmapLinear = ((int)0X2703), + TextureMagFilter = ((int)0X2800), + TextureMinFilter = ((int)0X2801), + TextureWrapS = ((int)0X2802), + TextureWrapT = ((int)0X2803), + Repeat = ((int)0X2901), + PolygonOffsetUnits = ((int)0X2a00), + ConstantColor = ((int)0X8001), + OneMinusConstantColor = ((int)0X8002), + ConstantAlpha = ((int)0X8003), + OneMinusConstantAlpha = ((int)0X8004), + BlendColor = ((int)0X8005), + FuncAdd = ((int)0X8006), + BlendEquation = ((int)0X8009), + FuncSubtract = ((int)0X800a), + FuncReverseSubtract = ((int)0X800b), + UnsignedShort4444 = ((int)0X8033), + UnsignedShort5551 = ((int)0X8034), + PolygonOffsetFill = ((int)0X8037), + PolygonOffsetFactor = ((int)0X8038), + Rgb8Oes = ((int)0X8051), + Rgba4 = ((int)0X8056), + Rgb5A1 = ((int)0X8057), + Rgba8Oes = ((int)0X8058), + TextureBinding2D = ((int)0X8069), + TextureBinding3DOes = ((int)0X806a), + Texture3DOes = ((int)0X806f), + TextureWrapROes = ((int)0X8072), + Max3DTextureSizeOes = ((int)0X8073), + SampleAlphaToCoverage = ((int)0X809e), + SampleCoverage = ((int)0X80a0), + SampleBuffers = ((int)0X80a8), + Samples = ((int)0X80a9), + SampleCoverageValue = ((int)0X80aa), + SampleCoverageInvert = ((int)0X80ab), + BlendDstRgb = ((int)0X80c8), + BlendSrcRgb = ((int)0X80c9), + BlendDstAlpha = ((int)0X80ca), + BlendSrcAlpha = ((int)0X80cb), + Bgra = ((int)0X80e1), + ClampToEdge = ((int)0X812f), + GenerateMipmapHint = ((int)0X8192), + DepthComponent16 = ((int)0X81a5), + DepthComponent24Oes = ((int)0X81a6), + DepthComponent32Oes = ((int)0X81a7), + UnsignedShort565 = ((int)0X8363), + UnsignedShort4444Rev = ((int)0X8365), + UnsignedShort1555Rev = ((int)0X8366), + UnsignedInt2101010RevExt = ((int)0X8368), + MirroredRepeat = ((int)0X8370), + AliasedPointSizeRange = ((int)0X846d), + AliasedLineWidthRange = ((int)0X846e), + Texture0 = ((int)0X84c0), + Texture1 = ((int)0X84c1), + Texture2 = ((int)0X84c2), + Texture3 = ((int)0X84c3), + Texture4 = ((int)0X84c4), + Texture5 = ((int)0X84c5), + Texture6 = ((int)0X84c6), + Texture7 = ((int)0X84c7), + Texture8 = ((int)0X84c8), + Texture9 = ((int)0X84c9), + Texture10 = ((int)0X84ca), + Texture11 = ((int)0X84cb), + Texture12 = ((int)0X84cc), + Texture13 = ((int)0X84cd), + Texture14 = ((int)0X84ce), + Texture15 = ((int)0X84cf), + Texture16 = ((int)0X84d0), + Texture17 = ((int)0X84d1), + Texture18 = ((int)0X84d2), + Texture19 = ((int)0X84d3), + Texture20 = ((int)0X84d4), + Texture21 = ((int)0X84d5), + Texture22 = ((int)0X84d6), + Texture23 = ((int)0X84d7), + Texture24 = ((int)0X84d8), + Texture25 = ((int)0X84d9), + Texture26 = ((int)0X84da), + Texture27 = ((int)0X84db), + Texture28 = ((int)0X84dc), + Texture29 = ((int)0X84dd), + Texture30 = ((int)0X84de), + Texture31 = ((int)0X84df), + ActiveTexture = ((int)0X84e0), + MaxRenderbufferSize = ((int)0X84e8), + AllCompletedNv = ((int)0X84f2), + FenceStatusNv = ((int)0X84f3), + FenceConditionNv = ((int)0X84f4), + DepthStencilOes = ((int)0X84f9), + UnsignedInt248Oes = ((int)0X84fa), + TextureMaxAnisotropyExt = ((int)0X84fe), + MaxTextureMaxAnisotropyExt = ((int)0X84ff), + IncrWrap = ((int)0X8507), + DecrWrap = ((int)0X8508), + TextureCubeMap = ((int)0X8513), + TextureBindingCubeMap = ((int)0X8514), + TextureCubeMapPositiveX = ((int)0X8515), + TextureCubeMapNegativeX = ((int)0X8516), + TextureCubeMapPositiveY = ((int)0X8517), + TextureCubeMapNegativeY = ((int)0X8518), + TextureCubeMapPositiveZ = ((int)0X8519), + TextureCubeMapNegativeZ = ((int)0X851a), + MaxCubeMapTextureSize = ((int)0X851c), + VertexAttribArrayEnabled = ((int)0X8622), + VertexAttribArraySize = ((int)0X8623), + VertexAttribArrayStride = ((int)0X8624), + VertexAttribArrayType = ((int)0X8625), + CurrentVertexAttrib = ((int)0X8626), + VertexAttribArrayPointer = ((int)0X8645), + NumCompressedTextureFormats = ((int)0X86a2), + CompressedTextureFormats = ((int)0X86a3), + Z400BinaryAmd = ((int)0X8740), + ProgramBinaryLengthOes = ((int)0X8741), + BufferSize = ((int)0X8764), + BufferUsage = ((int)0X8765), + AtcRgbaInterpolatedAlphaAmd = ((int)0X87ee), + 3DcXAmd = ((int)0X87f9), + 3DcXyAmd = ((int)0X87fa), + NumProgramBinaryFormatsOes = ((int)0X87fe), + ProgramBinaryFormatsOes = ((int)0X87ff), + StencilBackFunc = ((int)0X8800), + StencilBackFail = ((int)0X8801), + StencilBackPassDepthFail = ((int)0X8802), + StencilBackPassDepthPass = ((int)0X8803), + BlendEquationAlpha = ((int)0X883d), + MaxVertexAttribs = ((int)0X8869), + VertexAttribArrayNormalized = ((int)0X886a), + MaxTextureImageUnits = ((int)0X8872), + ArrayBuffer = ((int)0X8892), + ElementArrayBuffer = ((int)0X8893), + ArrayBufferBinding = ((int)0X8894), + ElementArrayBufferBinding = ((int)0X8895), + VertexAttribArrayBufferBinding = ((int)0X889f), + WriteOnlyOes = ((int)0X88b9), + BufferAccessOes = ((int)0X88bb), + BufferMappedOes = ((int)0X88bc), + BufferMapPointerOes = ((int)0X88bd), + StreamDraw = ((int)0X88e0), + StaticDraw = ((int)0X88e4), + DynamicDraw = ((int)0X88e8), + Depth24Stencil8Oes = ((int)0X88f0), + FragmentShader = ((int)0X8b30), + VertexShader = ((int)0X8b31), + MaxVertexTextureImageUnits = ((int)0X8b4c), + MaxCombinedTextureImageUnits = ((int)0X8b4d), + ShaderType = ((int)0X8b4f), + FloatVec2 = ((int)0X8b50), + FloatVec3 = ((int)0X8b51), + FloatVec4 = ((int)0X8b52), + IntVec2 = ((int)0X8b53), + IntVec3 = ((int)0X8b54), + IntVec4 = ((int)0X8b55), + Bool = ((int)0X8b56), + BoolVec2 = ((int)0X8b57), + BoolVec3 = ((int)0X8b58), + BoolVec4 = ((int)0X8b59), + FloatMat2 = ((int)0X8b5a), + FloatMat3 = ((int)0X8b5b), + FloatMat4 = ((int)0X8b5c), + Sampler2D = ((int)0X8b5e), + Sampler3DOes = ((int)0X8b5f), + SamplerCube = ((int)0X8b60), + DeleteStatus = ((int)0X8b80), + CompileStatus = ((int)0X8b81), + LinkStatus = ((int)0X8b82), + ValidateStatus = ((int)0X8b83), + InfoLogLength = ((int)0X8b84), + AttachedShaders = ((int)0X8b85), + ActiveUniforms = ((int)0X8b86), + ActiveUniformMaxLength = ((int)0X8b87), + ShaderSourceLength = ((int)0X8b88), + ActiveAttributes = ((int)0X8b89), + ActiveAttributeMaxLength = ((int)0X8b8a), + FragmentShaderDerivativeHintOes = ((int)0X8b8b), + ShadingLanguageVersion = ((int)0X8b8c), + CurrentProgram = ((int)0X8b8d), + Palette4Rgb8Oes = ((int)0X8b90), + Palette4Rgba8Oes = ((int)0X8b91), + Palette4R5G6B5Oes = ((int)0X8b92), + Palette4Rgba4Oes = ((int)0X8b93), + Palette4Rgb5A1Oes = ((int)0X8b94), + Palette8Rgb8Oes = ((int)0X8b95), + Palette8Rgba8Oes = ((int)0X8b96), + Palette8R5G6B5Oes = ((int)0X8b97), + Palette8Rgba4Oes = ((int)0X8b98), + Palette8Rgb5A1Oes = ((int)0X8b99), + ImplementationColorReadType = ((int)0X8b9a), + ImplementationColorReadFormat = ((int)0X8b9b), + CounterTypeAmd = ((int)0X8bc0), + CounterRangeAmd = ((int)0X8bc1), + UnsignedInt64Amd = ((int)0X8bc2), + PercentageAmd = ((int)0X8bc3), + PerfmonResultAvailableAmd = ((int)0X8bc4), + PerfmonResultSizeAmd = ((int)0X8bc5), + PerfmonResultAmd = ((int)0X8bc6), + CompressedRgbPvrtc4Bppv1Img = ((int)0X8c00), + CompressedRgbPvrtc2Bppv1Img = ((int)0X8c01), + CompressedRgbaPvrtc4Bppv1Img = ((int)0X8c02), + CompressedRgbaPvrtc2Bppv1Img = ((int)0X8c03), + AtcRgbAmd = ((int)0X8c92), + AtcRgbaExplicitAlphaAmd = ((int)0X8c93), + StencilBackRef = ((int)0X8ca3), + StencilBackValueMask = ((int)0X8ca4), + StencilBackWritemask = ((int)0X8ca5), + FramebufferBinding = ((int)0X8ca6), + RenderbufferBinding = ((int)0X8ca7), + FramebufferAttachmentObjectType = ((int)0X8cd0), + FramebufferAttachmentObjectName = ((int)0X8cd1), + FramebufferAttachmentTextureLevel = ((int)0X8cd2), + FramebufferAttachmentTextureCubeMapFace = ((int)0X8cd3), + FramebufferAttachmentTexture3DZoffsetOes = ((int)0X8cd4), + FramebufferComplete = ((int)0X8cd5), + FramebufferIncompleteAttachment = ((int)0X8cd6), + FramebufferIncompleteMissingAttachment = ((int)0X8cd7), + FramebufferIncompleteDimensions = ((int)0X8cd9), + FramebufferUnsupported = ((int)0X8cdd), + ColorAttachment0 = ((int)0X8ce0), + DepthAttachment = ((int)0X8d00), + StencilAttachment = ((int)0X8d20), + Framebuffer = ((int)0X8d40), + Renderbuffer = ((int)0X8d41), + RenderbufferWidth = ((int)0X8d42), + RenderbufferHeight = ((int)0X8d43), + RenderbufferInternalFormat = ((int)0X8d44), + StencilIndex1Oes = ((int)0X8d46), + StencilIndex4Oes = ((int)0X8d47), + StencilIndex8 = ((int)0X8d48), + RenderbufferRedSize = ((int)0X8d50), + RenderbufferGreenSize = ((int)0X8d51), + RenderbufferBlueSize = ((int)0X8d52), + RenderbufferAlphaSize = ((int)0X8d53), + RenderbufferDepthSize = ((int)0X8d54), + RenderbufferStencilSize = ((int)0X8d55), + HalfFloatOes = ((int)0X8d61), + Rgb565 = ((int)0X8d62), + Etc1Rgb8Oes = ((int)0X8d64), + LowFloat = ((int)0X8df0), + MediumFloat = ((int)0X8df1), + HighFloat = ((int)0X8df2), + LowInt = ((int)0X8df3), + MediumInt = ((int)0X8df4), + HighInt = ((int)0X8df5), + UnsignedInt1010102Oes = ((int)0X8df6), + Int1010102Oes = ((int)0X8df7), + ShaderBinaryFormats = ((int)0X8df8), + NumShaderBinaryFormats = ((int)0X8df9), + ShaderCompiler = ((int)0X8dfa), + MaxVertexUniformVectors = ((int)0X8dfb), + MaxVaryingVectors = ((int)0X8dfc), + MaxFragmentUniformVectors = ((int)0X8dfd), + PerfmonGlobalModeQcom = ((int)0X8fa0), + AmdCompressed3DcTexture = ((int)1), + AmdCompressedAtcTexture = ((int)1), + AmdPerformanceMonitor = ((int)1), + AmdProgramBinaryZ400 = ((int)1), + EsVersion20 = ((int)1), + ExtTextureFilterAnisotropic = ((int)1), + ExtTextureFormatBgra8888 = ((int)1), + ExtTextureType2101010Rev = ((int)1), + ImgReadFormat = ((int)1), + ImgTextureCompressionPvrtc = ((int)1), + NvFence = ((int)1), + OesCompressedEtc1Rgb8Texture = ((int)1), + OesCompressedPalettedTexture = ((int)1), + OesDepth24 = ((int)1), + OesDepth32 = ((int)1), + OesDepthTexture = ((int)1), + OesEglImage = ((int)1), + OesElementIndexUint = ((int)1), + OesFboRenderMipmap = ((int)1), + OesFragmentPrecisionHigh = ((int)1), + OesGetProgramBinary = ((int)1), + OesMapbuffer = ((int)1), + OesPackedDepthStencil = ((int)1), + OesRgb8Rgba8 = ((int)1), + OesStandardDerivatives = ((int)1), + OesStencil1 = ((int)1), + OesStencil4 = ((int)1), + OesTexture3D = ((int)1), + OesTextureFloat = ((int)1), + OesTextureFloatLinear = ((int)1), + OesTextureHalfFloat = ((int)1), + OesTextureHalfFloatLinear = ((int)1), + OesTextureNpot = ((int)1), + OesVertexHalfFloat = ((int)1), + OesVertexType1010102 = ((int)1), + One = ((int)1), + QcomDriverControl = ((int)1), + QcomPerfmonGlobalMode = ((int)1), + True = ((int)1), + } + + public enum Amdcompressed3Dctexture + { + 3DcXAmd = ((int)0X87f9), + 3DcXyAmd = ((int)0X87fa), + AmdCompressed3DcTexture = ((int)1), + } + + public enum AmdcompressedAtctexture + { + AtcRgbaInterpolatedAlphaAmd = ((int)0X87ee), + AtcRgbAmd = ((int)0X8c92), + AtcRgbaExplicitAlphaAmd = ((int)0X8c93), + AmdCompressedAtcTexture = ((int)1), + } + + public enum AmdperformanceMonitor + { + CounterTypeAmd = ((int)0X8bc0), + CounterRangeAmd = ((int)0X8bc1), + UnsignedInt64Amd = ((int)0X8bc2), + PercentageAmd = ((int)0X8bc3), + PerfmonResultAvailableAmd = ((int)0X8bc4), + PerfmonResultSizeAmd = ((int)0X8bc5), + PerfmonResultAmd = ((int)0X8bc6), + AmdPerformanceMonitor = ((int)1), + } + + public enum AmdprogramBinaryZ400 + { + Z400BinaryAmd = ((int)0X8740), + AmdProgramBinaryZ400 = ((int)1), + } + + public enum BeginMode + { + Points = ((int)0X0000), + Lines = ((int)0X0001), + LineLoop = ((int)0X0002), + LineStrip = ((int)0X0003), + Triangles = ((int)0X0004), + TriangleStrip = ((int)0X0005), + TriangleFan = ((int)0X0006), + } + + public enum BlendEquationSeparate + { + FuncAdd = ((int)0X8006), + BlendEquation = ((int)0X8009), + BlendEquationAlpha = ((int)0X883d), + } + + public enum BlendingFactorDest + { + Zero = ((int)0), + SrcColor = ((int)0X0300), + OneMinusSrcColor = ((int)0X0301), + SrcAlpha = ((int)0X0302), + OneMinusSrcAlpha = ((int)0X0303), + DstAlpha = ((int)0X0304), + OneMinusDstAlpha = ((int)0X0305), + One = ((int)1), + } + + public enum BlendingFactorSrc + { + DstColor = ((int)0X0306), + OneMinusDstColor = ((int)0X0307), + SrcAlphaSaturate = ((int)0X0308), + } + + public enum BlendSubtract + { + FuncSubtract = ((int)0X800a), + FuncReverseSubtract = ((int)0X800b), + } + + public enum Boolean + { + False = ((int)0), + True = ((int)1), + } + + public enum BufferObjects + { + CurrentVertexAttrib = ((int)0X8626), + BufferSize = ((int)0X8764), + BufferUsage = ((int)0X8765), + ArrayBuffer = ((int)0X8892), + ElementArrayBuffer = ((int)0X8893), + ArrayBufferBinding = ((int)0X8894), + ElementArrayBufferBinding = ((int)0X8895), + StreamDraw = ((int)0X88e0), + StaticDraw = ((int)0X88e4), + DynamicDraw = ((int)0X88e8), + } + + [Flags] + public enum ClearBufferMask + { + DepthBufferBit = ((int)0X00000100), + StencilBufferBit = ((int)0X00000400), + ColorBufferBit = ((int)0X00004000), + } + + public enum CullFaceMode + { + Front = ((int)0X0404), + Back = ((int)0X0405), + FrontAndBack = ((int)0X0408), + } + + public enum DataType + { + Byte = ((int)0X1400), + UnsignedByte = ((int)0X1401), + Short = ((int)0X1402), + UnsignedShort = ((int)0X1403), + Int = ((int)0X1404), + UnsignedInt = ((int)0X1405), + Float = ((int)0X1406), + Fixed = ((int)0X140c), + } + + public enum EnableCap + { + CullFace = ((int)0X0b44), + DepthTest = ((int)0X0b71), + StencilTest = ((int)0X0b90), + Dither = ((int)0X0bd0), + Blend = ((int)0X0be2), + ScissorTest = ((int)0X0c11), + Texture2D = ((int)0X0de1), + PolygonOffsetFill = ((int)0X8037), + SampleAlphaToCoverage = ((int)0X809e), + SampleCoverage = ((int)0X80a0), + } + + public enum ErrorCode + { + NoError = ((int)0), + InvalidEnum = ((int)0X0500), + InvalidValue = ((int)0X0501), + InvalidOperation = ((int)0X0502), + OutOfMemory = ((int)0X0505), + } + + public enum ExttextureFilterAnisotropic + { + TextureMaxAnisotropyExt = ((int)0X84fe), + MaxTextureMaxAnisotropyExt = ((int)0X84ff), + ExtTextureFilterAnisotropic = ((int)1), + } + + public enum ExttextureFormatBgra8888 + { + Bgra = ((int)0X80e1), + ExtTextureFormatBgra8888 = ((int)1), + } + + public enum ExttextureType2101010Rev + { + UnsignedInt2101010RevExt = ((int)0X8368), + ExtTextureType2101010Rev = ((int)1), + } + + public enum FramebufferObject + { + None = ((int)0), + InvalidFramebufferOperation = ((int)0X0506), + StencilIndex = ((int)0X1901), + Rgba4 = ((int)0X8056), + Rgb5A1 = ((int)0X8057), + DepthComponent16 = ((int)0X81a5), + MaxRenderbufferSize = ((int)0X84e8), + FramebufferBinding = ((int)0X8ca6), + RenderbufferBinding = ((int)0X8ca7), + FramebufferAttachmentObjectType = ((int)0X8cd0), + FramebufferAttachmentObjectName = ((int)0X8cd1), + FramebufferAttachmentTextureLevel = ((int)0X8cd2), + FramebufferAttachmentTextureCubeMapFace = ((int)0X8cd3), + FramebufferComplete = ((int)0X8cd5), + FramebufferIncompleteAttachment = ((int)0X8cd6), + FramebufferIncompleteMissingAttachment = ((int)0X8cd7), + FramebufferIncompleteDimensions = ((int)0X8cd9), + FramebufferUnsupported = ((int)0X8cdd), + ColorAttachment0 = ((int)0X8ce0), + DepthAttachment = ((int)0X8d00), + StencilAttachment = ((int)0X8d20), + Framebuffer = ((int)0X8d40), + Renderbuffer = ((int)0X8d41), + RenderbufferWidth = ((int)0X8d42), + RenderbufferHeight = ((int)0X8d43), + RenderbufferInternalFormat = ((int)0X8d44), + StencilIndex8 = ((int)0X8d48), + RenderbufferRedSize = ((int)0X8d50), + RenderbufferGreenSize = ((int)0X8d51), + RenderbufferBlueSize = ((int)0X8d52), + RenderbufferAlphaSize = ((int)0X8d53), + RenderbufferDepthSize = ((int)0X8d54), + RenderbufferStencilSize = ((int)0X8d55), + Rgb565 = ((int)0X8d62), + } + + public enum FrontFaceDirection + { + Cw = ((int)0X0900), + Ccw = ((int)0X0901), + } + + public enum GetPName + { + LineWidth = ((int)0X0b21), + CullFaceMode = ((int)0X0b45), + FrontFace = ((int)0X0b46), + DepthRange = ((int)0X0b70), + DepthWritemask = ((int)0X0b72), + DepthClearValue = ((int)0X0b73), + DepthFunc = ((int)0X0b74), + StencilClearValue = ((int)0X0b91), + StencilFunc = ((int)0X0b92), + StencilValueMask = ((int)0X0b93), + StencilFail = ((int)0X0b94), + StencilPassDepthFail = ((int)0X0b95), + StencilPassDepthPass = ((int)0X0b96), + StencilRef = ((int)0X0b97), + StencilWritemask = ((int)0X0b98), + Viewport = ((int)0X0ba2), + ScissorBox = ((int)0X0c10), + ColorClearValue = ((int)0X0c22), + ColorWritemask = ((int)0X0c23), + UnpackAlignment = ((int)0X0cf5), + PackAlignment = ((int)0X0d05), + MaxTextureSize = ((int)0X0d33), + MaxViewportDims = ((int)0X0d3a), + SubpixelBits = ((int)0X0d50), + RedBits = ((int)0X0d52), + GreenBits = ((int)0X0d53), + BlueBits = ((int)0X0d54), + AlphaBits = ((int)0X0d55), + DepthBits = ((int)0X0d56), + StencilBits = ((int)0X0d57), + PolygonOffsetUnits = ((int)0X2a00), + PolygonOffsetFactor = ((int)0X8038), + TextureBinding2D = ((int)0X8069), + SampleBuffers = ((int)0X80a8), + Samples = ((int)0X80a9), + SampleCoverageValue = ((int)0X80aa), + SampleCoverageInvert = ((int)0X80ab), + AliasedPointSizeRange = ((int)0X846d), + AliasedLineWidthRange = ((int)0X846e), + StencilBackFunc = ((int)0X8800), + StencilBackFail = ((int)0X8801), + StencilBackPassDepthFail = ((int)0X8802), + StencilBackPassDepthPass = ((int)0X8803), + StencilBackRef = ((int)0X8ca3), + StencilBackValueMask = ((int)0X8ca4), + StencilBackWritemask = ((int)0X8ca5), + } + + public enum GetTextureParameter + { + NumCompressedTextureFormats = ((int)0X86a2), + CompressedTextureFormats = ((int)0X86a3), + } + + public enum HintMode + { + DontCare = ((int)0X1100), + Fastest = ((int)0X1101), + Nicest = ((int)0X1102), + } + + public enum HintTarget + { + GenerateMipmapHint = ((int)0X8192), + } + + public enum ImgreadFormat + { + Bgra = ((int)0X80e1), + UnsignedShort4444Rev = ((int)0X8365), + UnsignedShort1555Rev = ((int)0X8366), + ImgReadFormat = ((int)1), + } + + public enum ImgtextureCompressionPvrtc + { + CompressedRgbPvrtc4Bppv1Img = ((int)0X8c00), + CompressedRgbPvrtc2Bppv1Img = ((int)0X8c01), + CompressedRgbaPvrtc4Bppv1Img = ((int)0X8c02), + CompressedRgbaPvrtc2Bppv1Img = ((int)0X8c03), + ImgTextureCompressionPvrtc = ((int)1), + } + + public enum Nvfence + { + AllCompletedNv = ((int)0X84f2), + FenceStatusNv = ((int)0X84f3), + FenceConditionNv = ((int)0X84f4), + NvFence = ((int)1), + } + + public enum OescompressedEtc1Rgb8Texture + { + Etc1Rgb8Oes = ((int)0X8d64), + OesCompressedEtc1Rgb8Texture = ((int)1), + } + + public enum OescompressedPalettedTexture + { + Palette4Rgb8Oes = ((int)0X8b90), + Palette4Rgba8Oes = ((int)0X8b91), + Palette4R5G6B5Oes = ((int)0X8b92), + Palette4Rgba4Oes = ((int)0X8b93), + Palette4Rgb5A1Oes = ((int)0X8b94), + Palette8Rgb8Oes = ((int)0X8b95), + Palette8Rgba8Oes = ((int)0X8b96), + Palette8R5G6B5Oes = ((int)0X8b97), + Palette8Rgba4Oes = ((int)0X8b98), + Palette8Rgb5A1Oes = ((int)0X8b99), + OesCompressedPalettedTexture = ((int)1), + } + + public enum Oesdepth24 + { + DepthComponent24Oes = ((int)0X81a6), + OesDepth24 = ((int)1), + } + + public enum Oesdepth32 + { + DepthComponent32Oes = ((int)0X81a7), + OesDepth32 = ((int)1), + } + + public enum OesdepthTexture + { + OesDepthTexture = ((int)1), + } + + public enum Oeseglimage + { + OesEglImage = ((int)1), + } + + public enum OeselementIndexUint + { + OesElementIndexUint = ((int)1), + } + + public enum OesfboRenderMipmap + { + OesFboRenderMipmap = ((int)1), + } + + public enum OesfragmentPrecisionHigh + { + OesFragmentPrecisionHigh = ((int)1), + } + + public enum OesgetProgramBinary + { + ProgramBinaryLengthOes = ((int)0X8741), + NumProgramBinaryFormatsOes = ((int)0X87fe), + ProgramBinaryFormatsOes = ((int)0X87ff), + OesGetProgramBinary = ((int)1), + } + + public enum Oesmapbuffer + { + WriteOnlyOes = ((int)0X88b9), + BufferAccessOes = ((int)0X88bb), + BufferMappedOes = ((int)0X88bc), + BufferMapPointerOes = ((int)0X88bd), + OesMapbuffer = ((int)1), + } + + public enum OespackedDepthStencil + { + DepthStencilOes = ((int)0X84f9), + UnsignedInt248Oes = ((int)0X84fa), + Depth24Stencil8Oes = ((int)0X88f0), + OesPackedDepthStencil = ((int)1), + } + + public enum Oesrgb8Rgba8 + { + Rgb8Oes = ((int)0X8051), + Rgba8Oes = ((int)0X8058), + OesRgb8Rgba8 = ((int)1), + } + + public enum OesstandardDerivatives + { + FragmentShaderDerivativeHintOes = ((int)0X8b8b), + OesStandardDerivatives = ((int)1), + } + + public enum Oesstencil1 + { + StencilIndex1Oes = ((int)0X8d46), + OesStencil1 = ((int)1), + } + + public enum Oesstencil4 + { + StencilIndex4Oes = ((int)0X8d47), + OesStencil4 = ((int)1), + } + + public enum Oestexture3D + { + TextureBinding3DOes = ((int)0X806a), + Texture3DOes = ((int)0X806f), + TextureWrapROes = ((int)0X8072), + Max3DTextureSizeOes = ((int)0X8073), + Sampler3DOes = ((int)0X8b5f), + FramebufferAttachmentTexture3DZoffsetOes = ((int)0X8cd4), + OesTexture3D = ((int)1), + } + + public enum OestextureFloat + { + OesTextureFloat = ((int)1), + } + + public enum OestextureFloatLinear + { + OesTextureFloatLinear = ((int)1), + } + + public enum OestextureHalfFloat + { + HalfFloatOes = ((int)0X8d61), + OesTextureHalfFloat = ((int)1), + } + + public enum OestextureHalfFloatLinear + { + OesTextureHalfFloatLinear = ((int)1), + } + + public enum OestextureNpot + { + OesTextureNpot = ((int)1), + } + + public enum OesvertexHalfFloat + { + OesVertexHalfFloat = ((int)1), + } + + public enum OesvertexType1010102 + { + UnsignedInt1010102Oes = ((int)0X8df6), + Int1010102Oes = ((int)0X8df7), + OesVertexType1010102 = ((int)1), + } + + public enum OpenGlescoreVersions + { + EsVersion20 = ((int)1), + } + + public enum PixelFormat + { + DepthComponent = ((int)0X1902), + Alpha = ((int)0X1906), + Rgb = ((int)0X1907), + Rgba = ((int)0X1908), + Luminance = ((int)0X1909), + LuminanceAlpha = ((int)0X190a), + } + + public enum PixelType + { + UnsignedShort4444 = ((int)0X8033), + UnsignedShort5551 = ((int)0X8034), + UnsignedShort565 = ((int)0X8363), + } + + public enum QcomdriverControl + { + QcomDriverControl = ((int)1), + } + + public enum QcomperfmonGlobalMode + { + PerfmonGlobalModeQcom = ((int)0X8fa0), + QcomPerfmonGlobalMode = ((int)1), + } + + public enum ReadFormat + { + ImplementationColorReadType = ((int)0X8b9a), + ImplementationColorReadFormat = ((int)0X8b9b), + } + + public enum SeparateBlendFunctions + { + ConstantColor = ((int)0X8001), + OneMinusConstantColor = ((int)0X8002), + ConstantAlpha = ((int)0X8003), + OneMinusConstantAlpha = ((int)0X8004), + BlendColor = ((int)0X8005), + BlendDstRgb = ((int)0X80c8), + BlendSrcRgb = ((int)0X80c9), + BlendDstAlpha = ((int)0X80ca), + BlendSrcAlpha = ((int)0X80cb), + } + + public enum ShaderBinary + { + ShaderBinaryFormats = ((int)0X8df8), + NumShaderBinaryFormats = ((int)0X8df9), + } + + public enum ShaderPrecisionSpecifiedTypes + { + LowFloat = ((int)0X8df0), + MediumFloat = ((int)0X8df1), + HighFloat = ((int)0X8df2), + LowInt = ((int)0X8df3), + MediumInt = ((int)0X8df4), + HighInt = ((int)0X8df5), + } + + public enum Shaders + { + MaxVertexAttribs = ((int)0X8869), + MaxTextureImageUnits = ((int)0X8872), + FragmentShader = ((int)0X8b30), + VertexShader = ((int)0X8b31), + MaxVertexTextureImageUnits = ((int)0X8b4c), + MaxCombinedTextureImageUnits = ((int)0X8b4d), + ShaderType = ((int)0X8b4f), + DeleteStatus = ((int)0X8b80), + LinkStatus = ((int)0X8b82), + ValidateStatus = ((int)0X8b83), + AttachedShaders = ((int)0X8b85), + ActiveUniforms = ((int)0X8b86), + ActiveUniformMaxLength = ((int)0X8b87), + ActiveAttributes = ((int)0X8b89), + ActiveAttributeMaxLength = ((int)0X8b8a), + ShadingLanguageVersion = ((int)0X8b8c), + CurrentProgram = ((int)0X8b8d), + MaxVertexUniformVectors = ((int)0X8dfb), + MaxVaryingVectors = ((int)0X8dfc), + MaxFragmentUniformVectors = ((int)0X8dfd), + } + + public enum ShaderSource + { + CompileStatus = ((int)0X8b81), + InfoLogLength = ((int)0X8b84), + ShaderSourceLength = ((int)0X8b88), + ShaderCompiler = ((int)0X8dfa), + } + + public enum StencilFunction + { + Never = ((int)0X0200), + Less = ((int)0X0201), + Equal = ((int)0X0202), + Lequal = ((int)0X0203), + Greater = ((int)0X0204), + Notequal = ((int)0X0205), + Gequal = ((int)0X0206), + Always = ((int)0X0207), + } + + public enum StencilOp + { + Invert = ((int)0X150a), + Keep = ((int)0X1e00), + Replace = ((int)0X1e01), + Incr = ((int)0X1e02), + Decr = ((int)0X1e03), + IncrWrap = ((int)0X8507), + DecrWrap = ((int)0X8508), + } + + public enum StringName + { + Vendor = ((int)0X1f00), + Renderer = ((int)0X1f01), + Version = ((int)0X1f02), + Extensions = ((int)0X1f03), + } + + public enum TextureMagFilter + { + Nearest = ((int)0X2600), + Linear = ((int)0X2601), + } + + public enum TextureMinFilter + { + NearestMipmapNearest = ((int)0X2700), + LinearMipmapNearest = ((int)0X2701), + NearestMipmapLinear = ((int)0X2702), + LinearMipmapLinear = ((int)0X2703), + } + + public enum TextureParameterName + { + TextureMagFilter = ((int)0X2800), + TextureMinFilter = ((int)0X2801), + TextureWrapS = ((int)0X2802), + TextureWrapT = ((int)0X2803), + } + + public enum TextureTarget + { + Texture = ((int)0X1702), + TextureCubeMap = ((int)0X8513), + TextureBindingCubeMap = ((int)0X8514), + TextureCubeMapPositiveX = ((int)0X8515), + TextureCubeMapNegativeX = ((int)0X8516), + TextureCubeMapPositiveY = ((int)0X8517), + TextureCubeMapNegativeY = ((int)0X8518), + TextureCubeMapPositiveZ = ((int)0X8519), + TextureCubeMapNegativeZ = ((int)0X851a), + MaxCubeMapTextureSize = ((int)0X851c), + } + + public enum TextureUnit + { + Texture0 = ((int)0X84c0), + Texture1 = ((int)0X84c1), + Texture2 = ((int)0X84c2), + Texture3 = ((int)0X84c3), + Texture4 = ((int)0X84c4), + Texture5 = ((int)0X84c5), + Texture6 = ((int)0X84c6), + Texture7 = ((int)0X84c7), + Texture8 = ((int)0X84c8), + Texture9 = ((int)0X84c9), + Texture10 = ((int)0X84ca), + Texture11 = ((int)0X84cb), + Texture12 = ((int)0X84cc), + Texture13 = ((int)0X84cd), + Texture14 = ((int)0X84ce), + Texture15 = ((int)0X84cf), + Texture16 = ((int)0X84d0), + Texture17 = ((int)0X84d1), + Texture18 = ((int)0X84d2), + Texture19 = ((int)0X84d3), + Texture20 = ((int)0X84d4), + Texture21 = ((int)0X84d5), + Texture22 = ((int)0X84d6), + Texture23 = ((int)0X84d7), + Texture24 = ((int)0X84d8), + Texture25 = ((int)0X84d9), + Texture26 = ((int)0X84da), + Texture27 = ((int)0X84db), + Texture28 = ((int)0X84dc), + Texture29 = ((int)0X84dd), + Texture30 = ((int)0X84de), + Texture31 = ((int)0X84df), + ActiveTexture = ((int)0X84e0), + } + + public enum TextureWrapMode + { + Repeat = ((int)0X2901), + ClampToEdge = ((int)0X812f), + MirroredRepeat = ((int)0X8370), + } + + public enum UniformTypes + { + FloatVec2 = ((int)0X8b50), + FloatVec3 = ((int)0X8b51), + FloatVec4 = ((int)0X8b52), + IntVec2 = ((int)0X8b53), + IntVec3 = ((int)0X8b54), + IntVec4 = ((int)0X8b55), + Bool = ((int)0X8b56), + BoolVec2 = ((int)0X8b57), + BoolVec3 = ((int)0X8b58), + BoolVec4 = ((int)0X8b59), + FloatMat2 = ((int)0X8b5a), + FloatMat3 = ((int)0X8b5b), + FloatMat4 = ((int)0X8b5c), + Sampler2D = ((int)0X8b5e), + SamplerCube = ((int)0X8b60), + } + + public enum VertexArrays + { + VertexAttribArrayEnabled = ((int)0X8622), + VertexAttribArraySize = ((int)0X8623), + VertexAttribArrayStride = ((int)0X8624), + VertexAttribArrayType = ((int)0X8625), + VertexAttribArrayPointer = ((int)0X8645), + VertexAttribArrayNormalized = ((int)0X886a), + VertexAttribArrayBufferBinding = ((int)0X889f), + } + +} diff --git a/Source/OpenTK/Graphics/ES20/Helper.cs b/Source/OpenTK/Graphics/ES20/Helper.cs index 99d94e25..09cdc1b5 100644 --- a/Source/OpenTK/Graphics/ES20/Helper.cs +++ b/Source/OpenTK/Graphics/ES20/Helper.cs @@ -7,7 +7,7 @@ namespace OpenTK.Graphics.ES20 /// /// Provides access to OpenGL ES 2.0 methods. /// - public static partial class ES + public static partial class GL { const string Library = "libGLESv2.dll"; }