I am trying to add some text an OpenGL context. I found an example on the internet that uses GLEW and GLUT. I need to create three different windows, so I cant use these wrappers. I believe I have correctly integrated the code into my program that draws three windows on three different screens. The screens are just filled with a simple green quad. I want to overlay the text. The text rendering code comes from “OpenGL Programming/Modern OpenGL Tutorial Text Rendering 01” on wikibooks.org
I will attach the files.
When I run it, it correctly creates the three windows, the prints out the below output:
$ ./helloglx
CODE is >#version 120
attribute vec4 coord;
varying vec2 texpos;
void main(void) {
gl_Position = vec4(coord.xy, 0, 1);
texpos = coord.zw;
}<
text.v.glsl:printlog: Not a shader or a program
^C
How do I check the shader version that is loaded on my system? Maybe I don’t have this version to use.
Thank you for any help you can provide.