Commit graph

364 commits

Author SHA1 Message Date
the_fiddler 2a1d85a4c0 Remove enum and constant processing from the classes with the same name and move it into its own file. 2010-10-12 16:46:08 +00:00
the_fiddler 745dae3dbe Added support for token overrides. 2010-10-12 16:41:21 +00:00
the_fiddler c13882d729 Regenerated to add missing items. 2010-10-12 16:34:45 +00:00
the_fiddler 6b8e3f5ace Added xml version of spec files, generated by Generator.Convert. 2010-10-12 15:59:20 +00:00
the_fiddler 357be0e67a Speed up documentation generation by reducing amount of disk IO (cache directory contents in memory). 2010-10-12 11:01:25 +00:00
the_fiddler d352aed114 Speed up documentation processing by caching the results of the last transformation. 2010-10-12 11:00:46 +00:00
the_fiddler 93743f913d Add support for function deprecation. 2010-10-10 12:28:27 +00:00
the_fiddler 9d273cee7e All projects now read common AssemblyInfo items from GlobalAssemblyInfo.cs. The various AssemblyInfo.cs files now only contain project-specific information. Assembly versions are now controlled by Build.UpdateVersion. 2010-10-04 21:37:33 +00:00
the_fiddler bb61dfe3f4 Added keyfile and strong-named all projects. 2010-10-04 14:39:42 +00:00
the_fiddler 5f23fbc1f0 Removed app.config file that somehow made it into the csproj. 2010-10-03 12:38:19 +00:00
the_fiddler a4e82c0915 Added Generator.Bind and Generator.Convert projects.
Fixed msbuild compilation by removing the 3.5 bootstrap ItemGroups. (VS2010 added those on its own - hey, we are targeting v2.0 and we are not using ClickOnce!)
2010-10-03 12:30:39 +00:00
the_fiddler 88e6aceae0 Synced trunk with 1.0 branch. 2010-10-02 18:52:34 +00:00
the_fiddler bca3751e8b Synced with 1.0 branch. 2010-03-11 22:53:11 +00:00
the_fiddler adcce2c00b Added explicit ActiveUniformParameter enum for GetActiveUniforms function. Fixes issue [#1443]: "GetActiveUniforms parameter name". 2010-02-03 20:43:42 +00:00
the_fiddler 0b3fa24c10 Added missing TEXTURE_LOD_BIAS token to TextureParameterName. Fixes issue [#1531]: "TextureParameterName enum missing TEXTURE_LOD_BIAS element". 2010-02-03 20:17:02 +00:00
the_fiddler da138163bf Backported fix for issue [#1538] from 1.0 branch. 2010-02-03 19:55:09 +00:00
the_fiddler 53b84d18d4 Backported bugfixes from 1.0 branch. 2010-02-03 19:04:42 +00:00
the_fiddler 25339f3bee * Source/OpenTK/Compute/CL10/CL.cs:
* Source/OpenTK/Compute/CL10/Core.cs:
* Source/Bind/Specifications/csharp.tm:
* Source/OpenTK/Compute/CL10/Delegates.cs: cl_context_properties
  should be mapped to IntPtr, not int.
Modified CreateContext signature to return ErrorCode rather than plain
  int.

* Source/OpenTK/Compute/CL10/CLHelper.cs: Added helper overloads that
  convert ContextProperties enums into IntPtr internally.
2010-01-04 13:29:21 +00:00
the_fiddler 7fbecbd7bd CreateContext should return an ErrorCode, not an int. 2010-01-04 13:23:56 +00:00
the_fiddler 97b3cd2e93 Type, Parameter, ParameterCollection and Function classes now implement IComparable directly (rather than casting to strings and comparing those).
Modified comparison order to place pointer overloads after reference or array overloads. Fixes issue [#1098]: "[Bind] Work around VS bug by ensuring pointer parameters are generated last".
2009-11-17 09:26:05 +00:00
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 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 3e5f1fb994 * DocProcessor.cs: Remove any trailing newlines in XML docs. Output
between Mono/Linux and .Net/Windows is now consistent.
2009-11-03 08:48:49 +00:00
the_fiddler 289697176b Fixed an issue where "const unsigned [type] [pointer]" parameters where not parsed correctly. Solves issue [#1300]: "[OpenCL] Possible bug at CL.CreateProgramWithBinary". 2009-11-01 19:15:44 +00:00
the_fiddler 97e07a6e24 * GL2/Generator.cs: Refactored WriteWrappers() into smaller methods. Added "using System.Text;" to all generated files that may contain StringBuilder parameters.
* Main.cs: Removed unused comments. Improved parameter handling. Added -o:keep_untyped_parameters option.
* Settings.cs: Added KeepUntypedEnums compatibility setting.
* Structures/Delegate.cs: Removed stale comments. Refactored CreateWrappers() method to support untyped enum overload generation and simplified method implementation. Replaced CurrentType translations with QualifiedType.
* Structures/Function.cs: Removed stale code. Fixed copy constructors to copy all necessary fields. Use QualifiedType instead of CurrentType in WrapReturnType and CreateBody methods. Made Body statement lists static to improve performance. Added hack to modify callstring casts in keep_untyped_enums wrappers. Generate call string from the Function CreateBody was called on, rather than the current Function (solves issues with invalid casts in specific cases).
* Structures/Parameter.cs: Use fully qualified type instead of current type in several caeses.
* Structures/Type.cs: Added explicit support for fully qualified types.
2009-10-27 22:37:05 +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 3d05a448cc Normalized line endings. 2009-10-23 14:51:03 +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 968dc4e299 Fixed return types for GetError and CheckFramebufferStatus.
Updated enum types for consistency with OpenGL.
2009-10-23 06:54:15 +00:00
the_fiddler 61f4a8b0cc Regenerated signatures with fixed out parameters. 2009-10-22 23:06:34 +00:00
the_fiddler 8da604c18f Merged third part of ES 2.0 cleanup (issue [#1015]: "[ES 2.0] Cleanup #3"). 2009-10-22 21:41:30 +00:00
the_fiddler 8e67b0ace2 Merged second part of ES 2.0 cleanup (issue [#1014]: "[ES 2.0] Cleanup #2"). 2009-10-22 21:34:34 +00:00
the_fiddler f8c49a54d4 Merged first part of ES 2.0 cleanup (issue [#1013]: "[ES 2.0] Cleanup #1"). 2009-10-22 21:24:54 +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 6d2c0be7b3 Support adding new enum definitions through overrides.xml. 2009-10-14 22:50:25 +00:00
the_fiddler babb54c00c Avoid translating names that do not need translation (i.e. are not in ALL_CAPS). 2009-10-14 22:49:04 +00:00
the_fiddler 2990e45e0b * signatures.xml: Fixed long enum types. 2009-10-09 06:01:39 +00:00
the_fiddler 92de857809 * ES/ESGenerator.cs: Set enum Type property.
* Structures/Enum.cs: Added enum Type property.
Removed Enum(string) constructor in favor of C# 3.0 syntax (new Enum()
  { Name = ... }).
2009-10-09 05:48:10 +00:00
the_fiddler b234593f14 * Generator.cs: Use Settings.FunctionPrefix when searching for
documentation (instead of hardcoded "gl" prefix).
2009-10-09 05:34:10 +00:00
the_fiddler 479c9f3f10 * Main.cs:
* CL/CLGenerator.cs: Made CLGenerator inherit from ESGenerator. Reduces code duplication significantly.
2009-10-09 05:25:53 +00:00
the_fiddler b76e933355 * Specifications/CL10/signatures.xml: Updated specs with information on enum types (long or int). 2009-10-09 05:09:23 +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 a930251995 Report an error if a constant does not contain either '=' or 'use' in its definition. 2009-09-07 17:49:06 +00:00
the_fiddler e35c3ea83e Updated in preparation of 0.9.9-2 release. 2009-09-05 18:37:42 +00:00
the_fiddler 06f61eb74f Fixed names for MinmaxTarget and SeparableTarget tokens. 2009-09-05 15:31:31 +00:00
the_fiddler dc988a5bfb Cleaned up EXT_convolution and EXT_histogram tokens that were promoted in version 1.2.
Fixed values for SGI_color_table tokens that were promoted in version 1.2.
2009-09-05 15:27:32 +00:00
the_fiddler d6c4c801e1 Fixed line endings and set svn:eol-style to native and svn:mime-type to text/plain for .cs files. 2009-09-03 19:01:11 +00:00
the_fiddler 019504f739 * enumext.spec: Added COLOR_ATTACHMENTi tokens to ReadBuffersMode enum. 2009-09-03 12:51:43 +00:00
the_fiddler 924ec8179e * ES/ESGenerator.cs: Changed default output namespace to 'GL'. 2009-08-26 07:52:58 +00:00
the_fiddler e079daa6cc * Main.cs: * Main.cs: Fixed a potential index out of range exception
when setting dirName (output path).
2009-08-26 07:52:35 +00:00
the_fiddler f692a3c069 Fixed default input and output paths now that the compiled assembly is placed into Binaries/Generator/[Debug|Release] instead of Binaries/[Debug|Release]. 2009-08-26 07:51:16 +00:00
the_fiddler 52744c1661 Applied Barlog's "arrange this qualifier" patch. 2009-08-25 15:59:57 +00:00
the_fiddler beac0d41d1 Applied Jonathan's patch for output directories. 2009-08-25 15:46:22 +00:00
the_fiddler 43e0e2c5e5 Applied Barlog's 02_Bind_2172_ShortenQualifierReferences patch. 2009-08-21 20:28:14 +00:00
the_fiddler b30cc509ce Do not trim 's' from methods ending in "IDs". 2009-08-20 21:38:23 +00:00
the_fiddler c487a382e1 Applied Barlog's refactoring patch for using directives. 2009-08-17 12:28:22 +00:00
the_fiddler 3c68f9fb99 Now use "Core" as default Settings.ImportsClass. 2009-08-17 10:15:22 +00:00
the_fiddler 51179c6518 Added missing types to list of non-CLSCompliant types. 2009-08-15 17:41:25 +00:00
the_fiddler 4021e67dc1 Removed "static" identifier from main wrappers class (add, if necessary, through the Helper.cs). 2009-08-15 17:35:20 +00:00
the_fiddler a1fc84600c Removed spurious constants. 2009-08-15 17:33:13 +00:00
the_fiddler 00629ecbf7 Added GLeglImageOES type. 2009-08-15 17:32:49 +00:00
the_fiddler 5eb9d7242b Do not allow constant names to start with numbers. 2009-08-15 17:32:35 +00:00
the_fiddler e4dc363d24 Fixed Nvidia fences extension (did not specify parameter names). 2009-08-15 17:16:04 +00:00
the_fiddler 3040a59436 * Main.cs: Accept -mode:cl as an alias for -mode:cl10 2009-08-12 10:12:44 +00:00
the_fiddler 4b05db2631 * Generator.cs: Use correct function prefix in AutoGenerated
attribute.
2009-08-12 10:12:16 +00:00
the_fiddler 336d6b4bef * Type.cs: Updated list of non CLS-compliant types.
* Parameter.cs: Changed [In] and [Out] attributes to [InAttribute] and
  [OutAttribute] to work around strange gmcs 2.0 bug.
2009-08-12 10:11:41 +00:00
the_fiddler 6f57ac0f6d * BindStreamWriter.cs: Fixed workaround for indentation on Linux (indentation seems to be applied twice). 2009-08-12 08:33:49 +00:00
the_fiddler 6492945554 Mapped uchar to byte. 2009-08-11 19:25:26 +00:00
the_fiddler 31f20422d1 Added several more overrides to change "int errcode_ret" to "ErrorCode errcode_ret". 2009-08-11 19:24:44 +00:00
the_fiddler 5ffb2ebcc9 Regenerated signatures using the latest fixes for function pointer parameters. All methods with function pointers should be now correct. 2009-08-11 19:18:51 +00:00
the_fiddler c6b69df7d0 Regenerated bindings with fixed function pointers. 2009-08-11 18:51:43 +00:00
the_fiddler be52c2776b Added support for empty or null typemaps. 2009-08-11 15:33:17 +00:00
the_fiddler a08edd47fc Renamed CommandQueuePropertiesFlags to CommandQueueFlags. 2009-08-11 15:31:10 +00:00
the_fiddler 5bce03e785 Bumped version number. 2009-08-11 14:20:46 +00:00
the_fiddler fcaff2477b Reverted commit 2028 (Jonathan's formatting patch for Bind output), since it broke formatting on Windows. Added temporary workaround until the real cause of the issue is discovered and fixed. 2009-08-11 14:17:27 +00:00
the_fiddler cdde2893f6 Added support for enum overrides.
Enabled enum overrides in the CL and ES generators.
Function parameters now follow enum overrides (for example, if function Foo takes enum Bar and enum Bar is overriden to Baz, this change will be reflected on function Foo).
Changed default CLGenerator settings to not generate debug helpers.
2009-08-11 14:12:20 +00:00
the_fiddler 000bdf71ef Added PreviousName property.
Moved value parsing to the Name property instead of implementing in each and every ISpecReader.
2009-08-11 14:08:18 +00:00
the_fiddler 1edfbdb928 Improved handling of multiple indirection (pointer-to-pointer, pointer-to-array or any other combination up to 4 levels of indirection).
Made the generation of debug helpers optional. They are currently specific to OpenTK.Graphics and need more work before they can be used with OpenTK.Compute or OpenTK.Audio.
2009-08-11 14:06:40 +00:00
the_fiddler 16e1f279dc Added EnumPrefix setting, which may be different from ConstantPrefix or FunctionPrefix. Can be used to remove the Gl, Cl, Al, etc prefixes from enum names. 2009-08-11 14:03:55 +00:00
the_fiddler 0137c05d9a Added missing OpenCL types. 2009-08-11 14:02:44 +00:00
the_fiddler 2b596d3541 Added overrides for several OpenCL methods that return error codes (they returned plain integers previously).
Added overrides for problematic values in 'Unknown' enum.
Added overrides for string[] parameters.
2009-08-11 14:02:10 +00:00
the_fiddler 42bb893464 Regenerated signatures (now contain flow for function parameters). 2009-08-11 14:01:06 +00:00
the_fiddler 560c22accf Regenerated signatures. 2009-08-11 13:53:56 +00:00
the_fiddler 1404abb8ca Now uses 'cl' prefix instead of 'gl' for OpenCL bindings.
Fixed handling of output directory.
2009-08-09 17:57:01 +00:00
the_fiddler e98e8656e4 Added OpenCL types to the typemap. 2009-08-09 17:56:20 +00:00
the_fiddler 3a45e6214e Deleted CL directory (has been renamed to CL10). 2009-08-09 17:55:32 +00:00
the_fiddler 68fcad4929 Parameter name "event" is not allowed in .Net. Replaced with "@event". 2009-08-09 17:47:15 +00:00
the_fiddler 63a7a65fee Updated OpenCL signatures. 2009-08-09 17:36:26 +00:00