Paul Herring wrote:
> On Wed, Aug 20, 2008 at 12:29 AM, Paul David <[EMAIL PROTECTED]> wrote:
>> btw i'm on Mac OS X Leopard if that matters but i'd prefer something
>> cross-platform
>> On Aug 19, 2008, at 4:27 PM, Paul David wrote:
>>
>>> Does any one no of a function or functions i can use to output text
>>> (strings, characters, numbers, variables) to a window created with
>>> opengl
> 
> First match for [opengl text output]:
> http://www.naturewizard.com/tutorial0105.html

CreateFontIndirect() and SelectObject() are Windows GDI APIs, not OpenGL.

http://msdn.microsoft.com/en-us/library/ms970775.aspx

It appears Microsoft added some extensions of their own to OpenGL (e.g. 
wglUseFontOutlines).  That definitely muddies the waters a bit when 
looking for a tutorial.


http://www.opengl.org/resources/features/fontsurvey/

According to the OpenGL folks, font rendering is not part of the base 
OpenGL package nor is there any desire to do so (<jaw dropped>).  glFont 
seems to be an interesting alternative to the ones listed in the "font 
survey":

http://students.cs.byu.edu/~bfish/glfont.php

Basically, you have entered an "obscure"/"unsupported" realm of OpenGL. 
  However, displaying text is such a common task, I can't think of a 
single reason why there isn't at least rudimentary support for it in the 
base library (even if such support looks terrible visually).  Bizarre.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to