Bug 27195 - Unified API Binding recommendations for GLint, GLFloat etc. might be wrong
Summary: Unified API Binding recommendations for GLint, GLFloat etc. might be wrong
Status: NEW
Alias: None
Product: Documentation
Classification: Xamarin
Component: MonoTouch ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Miguel de Icaza [MSFT]
Depends on:
Reported: 2015-02-18 16:22 UTC by Johannes Rudolph
Modified: 2015-07-14 15:23 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report for Bug 27195 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description Johannes Rudolph 2015-02-18 16:22:40 UTC
gltypes.h defines: 

typedef int8_t   GLbyte;
typedef float    GLclampf;
typedef uint32_t GLenum;
typedef float    GLfloat;
typedef int32_t  GLint;
typedef int16_t  GLshort;
typedef int32_t  GLsizei;
typedef uint8_t  GLubyte;
typedef uint32_t GLuint;
typedef uint16_t GLushort;
typedef void     GLvoid;

yet, the table at http://developer.xamarin.com/guides/ios/advanced_topics/binding_objective-c/binding_objc_libs/ "Simple Types" recommends binding GL* types to the newly introduced n* native types (e.g. GLfloat to nfloat). 

Given that e.g. a GLint is always a 32bit integer, it would make more sense to bind them to a System.Int32. So is this a documentation bug or is there any particular reason why the native types should be preferred? Either way, the documentation needs to change or be amended with reasoning.
Comment 1 Johannes Rudolph 2015-07-14 15:23:37 UTC
Has this been fixed since?