Could someone tell me how to render text in OpenGL? We don't want to use any other libs like slick.
We have found one example but we can't get it to work with our own rendering code. It just doesn't draw anything.
This is our gl-init code:
private void glInit()And we run this before any renderings:
glOrtho(0, w, h, 0, 1, -1);
glClearColor(0.0f, 0.0f, 0.1f, 1.0f);
glClear(GL_COLOR_BUFFER_BIT | GL_DEPTH_BUFFER_BIT);Actually, we are new to OpenGL. Thanks, Oflor.