Trouble getting a simple JOGL program running on OSX 10.10
Posted by
roger on
Apr 19, 2016; 6:13pm
URL: https://forum.jogamp.org/Trouble-getting-a-simple-JOGL-program-running-on-OSX-10-10-tp4036627.html
Hi, I've been trying to get a very simple JOGL program running on OSX 10.10, and I can't seem to pass the vertex information to the shaders correctly. After trying everything I could think of in my actual program, I've created a basic test case to help me figure out where I'm going wrong. This program draws a triangle, with the vertex information acting as the colors.
Here is the basic idea of the code:
https://gist.github.com/danem/574312cb32aac8a3f1a6f9b8279e0bbaMy program generates this:
http://imgur.com/1PSOaoyThis indicates that the vertex data is all 0s. And I'm not seeing any errors when I repeatedly check glGetError.
See what I'm missing?