LWJGL Forum

Programming => OpenGL => Topic started by: Zol on July 20, 2012, 12:46:49

Title: how to render text with glPathGlyphsNV?
Post by: Zol on July 20, 2012, 12:46:49
Hi
I ´m having problems rendering text with glPathGlyphsNV(), if somebody could share some sample code how to do it,
I would be very grateful.

Title: Re: how to render text with glPathGlyphsNV?
Post by: oskar on July 31, 2012, 18:55:08
I think you would be better off asking this on the OpenGL forums seeing as this is not an LWJGL-specific issue. http://www.opengl.org/discussion_boards/forum.php
Title: Re: how to render text with glPathGlyphsNV?
Post by: Zol on July 31, 2012, 19:56:34
I got this thing working in c++ but having problems got it work in lwjgl im getting error after calling glPathGlyphsNV(...) org.lwjgl.opengl.OpenGLException: Invalid enum (1280)
   at org.lwjgl.opengl.Util.checkGLError(Util.java:59)
   at org.lwjgl.opengl.NVPathRendering.glPathGlyphsNV(NVPathRendering.java:313)

So I´m wondering anyone used succesfully used NVPathRendering in lwjgl?
Title: Re: how to render text with glPathGlyphsNV?
Post by: matheus23 on August 01, 2012, 08:13:46
I'm sorry, I've never used glPathGlyphsNV.

But If you get errors like "GL_INVALID_ENUM" or "GL_INVALID_VALUE" or "GL_INVALID_OPERATION", the chance is VERY high, that the xml docs for these functions give you hint, on what you might have done wrong:
http://developer.download.nvidia.com/assets/gamedev/files/GL_NV_path_rendering.txt

search for "GL_INVALID_OPERATION", and it will give you this information: