Login  Register

Re: GL_ARB_vertex_buffer_object not available on Mac?

Posted by Wade Walker on Dec 26, 2018; 5:12pm
URL: https://forum.jogamp.org/GL-ARB-vertex-buffer-object-not-available-on-Mac-tp4039309p4039348.html

Fixed the latest bug with @CStruct annotation processing, and now glugen compiles. I just need to test it, then move on to JOGL itself :)

There was a change back in https://jogamp.org/bugzilla/show_bug.cgi?id=923 for this annotation processing that gave you the ability to specify a "jname" for the generated class, instead of going by the declared Java name. This was to avoid the problem where the annotation processing failed if you annotated an undeclared class (since the annotation processing was what was going to create that class). So instead of doing this

    @CStruct(name="RenderingConfig", header="TestStruct01.h")
    RenderingConfig dummy1;


you'd annotate a dummy variable of an existing Java primitive type, like this

    @CStruct(name="RenderingConfig", jname="RenderingConfig", header="TestStruct01.h")
    boolean dummy1;

and the annotation processor would create RenderingConfig.java.

I'm not sure what changed in the meantime, but with Java 11, CStructAnnotationProcessor was emitting a RenameJavaType directive into the gluegen config file that caused the emitted file to be named boolean.java instead of RenderingConfig.java. So I put in a test to disable that behavior when jname is being used.