Re: [PyOpenGL-Users] carriage return in text
Brought to you by:
mcfletch
|
From: Shawn D. <sha...@ho...> - 2013-12-10 07:50:29
|
altern <altern2 <at> gmail.com> writes: > def text(s,x,y,z): > glRasterPos3f(x,y,z) > for char in s: > glutBitmapCharacter(GLUT_BITMAP_8_BY_13, ord(char)) > > I tried to pass \n\ in the string to mark the carriage return but i > guess this doesnt work with opengl. > any tips? You want to check char for \n character and then adjust the raster position manually. Like you're doing a carriage return. |