Commit graph

238 commits

Author SHA1 Message Date
the_fiddler
3aa67b84a3 Added strongly-typed tokens for GetActiveUniformBlock, which was introduced in OpenGL 3.1. Fixes issue [#1216]: "[GL] GetActiveUniformBlock* methods take ArbUniformBufferObject parameters". 2009-11-16 16:23:36 +00:00
the_fiddler
4e04838148 Added new OpenGL 3.1 tokens for ARB_texture_rectangle, ARB_shader_objects and EXT_gpu_shader4. Fixes issue [#1355]: "TextureRectangle tokens for ActiveUniformType". 2009-11-16 16:14:32 +00:00
the_fiddler
9d3c251c75 VertexAttribIPointer should take the integer subset (VertexAttribIPointerType) of VertexAttribPointerType. Fixes issue [#1166]: "VertexAttribIPointer pointer type parameter". 2009-11-16 15:13:57 +00:00
the_fiddler
fa2cdee5ef Removed invalid BGRA token from VertexAttribPointerType. 2009-11-16 15:00:24 +00:00
the_fiddler
9cb660bf85 Added new OpenGL 3.x tokens to GenerateMipmap. Fixes issue [#1162]: "GL.GenerateMipmap argument". 2009-11-16 14:15:56 +00:00
the_fiddler
6263153aa8 Disabled CL10, ES10 and ES11 bindings which were not finalized in time for OpenTK 1.0. 2009-11-10 06:39:27 +00:00
the_fiddler
e9d7d147d8 Color4(byte, byte, byte, byte) constructor now correctly normalizes values to the 0.0 - 1.0 range. 2009-11-10 00:09:04 +00:00
the_fiddler
c494250c3c Disabled OpenTK.Point, Size and Rectangle structures that were meant to replace their System.Drawing implementations until the correct course of action can be determined. This change is too disruptive to existing applications, especially if they are also using Windows.Forms (see discussion here: http://www.opentk.com/node/1348). 2009-11-08 23:02:53 +00:00
the_fiddler
f03a6ddc76 Added system-defined colors.
Added and improved constructors (more versatile).
Added ToArgb() method for improved System.Drawing.Color interop.
2009-11-07 19:38:40 +00:00
the_fiddler
b353b62115 Added helper overloads for OpenTK.Point/Rectangle structures. 2009-11-04 19:24:21 +00:00
the_fiddler
c2d92f5aca Added simpler constructor overload for external GraphicsContexts. 2009-11-04 17:18:32 +00:00
the_fiddler
839406aec4 Don't forget to load all bindings when constructing an external context - this constructor was added for precisely this reason, after all. 2009-11-04 17:14:57 +00:00
the_fiddler
30afae50c6 Deprecated the LoadAll() method in favor of the new GraphicsContext constructors. 2009-11-04 17:03:59 +00:00
the_fiddler
cc8ac7df14 Added missing documentation to GraphicsContext constructor. 2009-11-04 17:00:34 +00:00
the_fiddler
2d4b962d2c Renamed internal BindingsBase.LoadAll/Load methods to LoadEntryPoints/LoadEntryPoint, in order to avoid name clashes with the static GL.LoadAll() method.
Added GraphicsContext() constructor that takes an existing, valid OpenGL context. This can be used for interop with third-party toolkits which create the OpenGL context themselves.
2009-11-04 16:49:56 +00:00
the_fiddler
2ba3e5357e Serialize context construction to avoid threading issues with shared contexts. 2009-11-03 23:39:03 +00:00
the_fiddler
ddb56a1952 Added SyncRoot object to BindingsBase that can be used to protect shared state in the various bindings. 2009-11-03 23:26:57 +00:00
the_fiddler
043e0fec2f Fixed race condition in GraphicsMode.Default. 2009-11-03 13:16:59 +00:00
the_fiddler
1af4990517 Use new string(sbyte*) instead of Marshal.PtrToStringAnsi to increase performance when calling GetString to retrieve the list of available extensions. 2009-11-03 12:59:25 +00:00
the_fiddler
26b969b23e Added missing TextureBuffer token to BufferTarget and TextureTarget enums (promoted from ARB_texture_buffer_object). Fixes issue [#1313]: "TextureBuffer target". 2009-11-03 10:33:24 +00:00
the_fiddler
a333532d69 Added type-safe parameters to FramebufferTexture (fixes issue [#1303]: "[GL] fix FramebufferTexture parameters"). 2009-11-03 10:22:50 +00:00
the_fiddler
923ebc7efb Renegerated bindings using the latest version of the generator (improved handling of types in the System and System.Text namespaces). 2009-10-27 22:51:57 +00:00
the_fiddler
584e6c48a6 GetUniformLocation: name should have in-flow.
Use BlendingFunctionDest instead of BlendingFunctionDst, in order to match desktop OpenGL bindings.
2009-10-23 20:20:04 +00:00
the_fiddler
bf89d0a6ab Fixed GetVertexPointerParameter signature to comply with the specs. 2009-10-23 15:36:02 +00:00
the_fiddler
58c12d0d05 GetAttribLocation: name parameter should have a flow of in, not out.
Fixed a number of signatures that were different from desktop OpenGL.
2009-10-23 15:32:43 +00:00
the_fiddler
9223285fd7 Added correct enum types for GetString and ShaderBinary.
Added EnableCap tokens to GetPName, in accordance to specs.
2009-10-23 07:19:09 +00:00
the_fiddler
1803ea7004 Added applicable helper overloads from desktop OpenGL.
Added missing license information.
2009-10-23 06:59:04 +00:00
the_fiddler
b0607ede68 Regenerated bindings using the latest overrides.xml: out parameters for Get/Gen methods; fixed return types for GetError and CheckFramebufferStatus. improved consistency with desktop OpenGL bindings. 2009-10-23 06:58:04 +00:00
the_fiddler
d06191d464 Regenerated ES 2.0 bindings using the new, strongly-typed enums.
Fixed sample to use those new enums.
2009-10-22 21:49:11 +00:00
the_fiddler
8fbea23db2 Use StringBuilder.Capacity to specify the available buffer size in OpenGL interop (StringBuilder.Length is invalid in this case).
Added workaround for Mono 1.9.1 issue, where StringBuilder return truncated results when used in interop. Doubling the StringBuilder capacity fixes this issue.
2009-10-21 17:26:07 +00:00
the_fiddler
8c85493324 Route overloads through GL class instead of calling the Delegates directly. Ensures that automatic error checking will work as expected. 2009-10-19 09:10:32 +00:00
the_fiddler
239d98e860 Added distinct /overrides/add and /overrides/replace elements.
Added check for the existence of override elements before trying to use them (avoids potential null reference exception).
Regenerated bindings using the latest version of the generator.
2009-10-17 21:49:35 +00:00
the_fiddler
0fd6651fd2 Fixed issue [#1240]: "Generic ref and out wrappers do not copy results to the reference parameter", by assigning the GCHandle.Target back to the reference parameter. 2009-10-17 20:02:53 +00:00
the_fiddler
0ade61a5cf Added override for GetProgramInfoLog: infolog parameter should have a flow of 'out'. 2009-10-17 16:31:33 +00:00
the_fiddler
723a0dccf2 Fixed GetDouble implementation to return correct values (should call GetDouble not GetFloat!) Fixes issue [#1235]: "Matrix4d wrong value on GL.GetDouble". 2009-10-15 14:37:26 +00:00
the_fiddler
d7cc044144 * OpenGL/GLHelper.cs: Removed static GetAddress method in favor of
implementation inherited from GraphicsBindingsBase.
Disabled unused code.
2009-10-07 11:23:40 +00:00
the_fiddler
5294845a91 * GraphicsContext.cs: Removed unused code. 2009-10-07 11:22:48 +00:00
the_fiddler
0ac37632a4 * BindingsBase.cs:
* Graphics/BindingsBase.cs:
* Graphics/GraphicsBindingsBase.cs: Moved GraphicsBindingsBase to its
  own file.
Moved BindingsBase to root OpenTK folder (reason: BindingsBase is not
  specific to OpenTK.Graphics anymore).
Documented GetAddress methods.
2009-10-07 10:52:48 +00:00
the_fiddler
672b3cf774 * Graphics/ES10/Helper.cs:
* Graphics/ES11/Helper.cs:
* Graphics/ES20/Helper.cs:
* Graphics/BindingsBase.cs:
* Platform/X11/GlxHelper.cs:
* Graphics/OpenGL/GLHelper.cs:
* Platform/X11/X11GLContext.cs: Modified BindingsBase to define
  abstract GetAddress method (reason: removes OpenTK.Graphics-specific
  code from BindingsBase and allows it to be used in different
  bindings).
Implemented GraphicsBindingsBase and modified the OpenGL and OpenGL|ES
  bindings to use this.
Modified the GLX bindings to inherit from BindingsBase (reason:
  reduces code duplication for extension loading).
2009-10-07 10:44:45 +00:00
the_fiddler
3f3237a822 Added GetActiveAttrib, GetActiveUniform, GetActiveUniformName and GetActiveUniformBlockName overloads that return strings. Fixes issue [#1213]: "[GL] let GetUniformName() return String". 2009-10-06 08:29:12 +00:00
the_fiddler
03f756f8d1 Added ClearColor(Color4) overload. Fixes issue [#1207]: "[GL] add Color4 argument overload for ClearColor". 2009-10-06 08:03:53 +00:00
the_fiddler
d8c8137123 Updated tokens for ARB_depth_clamp, ARB_vertex_array_bgra, ARB_seamless_cube_map, ARB_provoking_vertex, ARB_draw_elements_base_vertex which where promoted in version 3.2. Fixes issue [#1146]: "[GL3.2] Multiple (minor) corrections". 2009-09-07 18:33:32 +00:00
the_fiddler
32f9b89dc8 Updated tokens for ARB_geometry_shader4 (promoted in Version 3.2). Fixes issue [#588]: "ARB_geometry_shader4". 2009-09-07 18:21:39 +00:00
the_fiddler
c396884cfe Updated tokens for ARB_texture_multisample (promoted in Version 3.2). Fixes issue [#1151]: "ARB_texture_multisample". 2009-09-07 17:56:25 +00:00
the_fiddler
dc42ad19f1 Regenerated bindings using the fixed MinmaxTarget and SeparableTarget enums names. 2009-09-05 15:32:00 +00:00
the_fiddler
36aa7e0e86 Regenerated bindings with using the cleaned up EXT_histogram, EXT_convolution and SGI_color_table tokens that were promoted in version 1.2. 2009-09-05 15:28:12 +00:00
the_fiddler
3f2f8e46e1 Added missing XML documentation. 2009-09-04 22:08:10 +00:00
the_fiddler
685b646efa Fixed a large number of documentation warnings. 2009-09-04 21:44:39 +00:00
the_fiddler
6b03992812 Added missing XML documentation and fixed invalid XML doc references.
Removed deprecated methods from IGraphicsContext.
2009-09-04 21:25:29 +00:00
the_fiddler
8b60cc2018 Made GraphicsMode.Index public, as it is necessary when extending OpenTK.
Removed OpenTK.Platform.Utilities.CreateWindowInfo and made the platform-specific CreateWindowInfo methods public (e.g. CreateX11WindowInfo).
Moved Mono Windows.Forms-specific code into X11GLControl.
Removed OpenTK.Platform.Utilities.IsIdle.
Removed obsolete methods from OpenTK.Platform.Utilities.
Marked OpenTK.Platform.Utilities.CreateGraphicsContext as obsolete (use GraphicsContext constructor instead).
Made IWindowInfo implementations private.
2009-09-04 21:11:25 +00:00