[Vala] OpenGL Binding: Grouping the constants in gl.vapi and glu.vapi



Hello all,

There's someone with experience in opengl?.
Because I'd like to modify gl.vapi and glu.vapi files for grouping, in the best way, the constants...

For now i can group the data types but for the rest is dificult because I can't find a proper documentation that explain some kind of constant grouping.
I'm a newbie in OpenGL, my experience on this issue I have to thank for creating the binding for vala.

The most simple solution is to wrap the constants and functions like this:

public const GLenum GL_TRIANGLES;
public static glBegin (GLenum mode);

but there's no grouping of the constants....

for now the vapi files are defined like this:

namespace Consts
{
  public const GLenum TRIANGLES;
}
public static void Begin (GLenum mode);

If I can't find a proper solution for this I will choose the first option (I think is more traditional and fits the actual documentation)

Any kind  of opinion is welcome.

Matias



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]