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 10 of 120

Thread: Display lists in 3.1

Hybrid View

  1. #1
    Junior Member Regular Contributor
    Join Date
    Feb 2007
    Location
    Hungary
    Posts
    154

    Display lists in 3.1

    As far as I know, display lists are deprecated or even removed in OpenGL 3.1.

    Because of this, there is one thing that stops me from moving to 3.1. I use wglUseFontOutlines extensively and this returns display lists, and there is no other way to get extruded fonts.

    Or is there? Does anyone know of an alternative way to get fonts as models and not bitmaps in 3.1?

    Thanks.

  2. #2
    Member Regular Contributor
    Join Date
    Oct 2006
    Posts
    349

    Re: Display lists in 3.1

    There are many ways to do that. The easiest is to use FTGL. Big plus: you get one step closer to cross-platform compatibility.

    Second alternative: you can read the outlines of the font files directly in your code and tesselate them. Not easy, but it's been done before.

    Third alternative: check the implementation of wglUseFontOutlines in the Wine source code (but beware of its license).

  3. #3
    Junior Member Regular Contributor
    Join Date
    Feb 2007
    Location
    Hungary
    Posts
    154

    Re: Display lists in 3.1

    FTGL looks like the best alternative to me. Can you tell me what format does it convert the font to other than display lists?

    Thanks.

  4. #4
    Senior Member OpenGL Guru
    Join Date
    Dec 2000
    Location
    Reutlingen, Germany
    Posts
    2,052

    Re: Display lists in 3.1

    Read the manual ?
    GLIM - Immediate Mode Emulation for GL3

  5. #5
    Junior Member Regular Contributor
    Join Date
    Feb 2007
    Location
    Hungary
    Posts
    154

    Re: Display lists in 3.1

    Oh, it is against the rules to ask WHY someone suggested something?

    Thanks a lot, I will keep that in mind.

  6. #6
    Member Regular Contributor
    Join Date
    Oct 2006
    Posts
    349

    Re: Display lists in 3.1

    I have never used FTGL, so I have no idea what formats FTGL it can convert to. However, I skimmed both the manual and its source code a couple of years ago and it looked both simple to use and versatile.

Posting Permissions

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