Part of the Khronos Group
OpenGL.org

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: How to draw Platform-independent text ?

  1. #1
    Junior Member Newbie
    Join Date
    Dec 2007
    Posts
    3

    How to draw Platform-independent text ?

    Hi ,
    I came across the following problem:
    How to draw platform-independent text with OpenGL ?
    I use Qt now to develop my application and cannot find something adecvate to wglUseFontOutlines in Linux.
    I don't know how to implement the following part:

    CFont* oldfont = pDC->SelectObject( pFont );
    ASSERT(oldfont);

    if (!wglUseFontOutlines( pDC->m_hDC, 0, 256, m_DisplayList, 0.0f,
    (float)xt, WGL_FONT_POLYGONS, m_Gmf) )
    {
    glDeleteLists( m_DisplayList, 256 );
    m_DisplayList = 0;
    }
    else
    pDC->SelectObject( oldfont );


    Thanks for help in advance

  2. #2
    Super Moderator OpenGL Lord
    Join Date
    Dec 2003
    Location
    Grenoble - France
    Posts
    5,575

    Re: How to draw Platform-independent text ?

    No need to dupe.
    Just continue there :
    http://www.opengl.org/discussion_boa...562#Post231562

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •