Uploaded image for project: 'GMAT'
  1. GMAT
  2. GMT-5877

OpenGL text drawing not implemented in Linux

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: R2017a
    • Component/s: GUI
    • Labels:
      None
    • Environment:

      CentOS 7, GMAT R2015a, OSX

    • Sprint:
      Next Sprint

      Description

      In R2015a, the OpenGL views will render fonts using display lists generated by wglUseFontBitmaps. This functionality is specific to MS Windows, and so no labels are seen in OpenGL plots on Linux or Mac. This is, I believe, related to bug GMT-5355.

      Attached is a patch which adds a simple fallback case to non-Windows platforms. A header is included which contains a public-domain bitmap font; this bitmap font is then loaded into a set of display lists which make glBitmap calls (as in wglUseFontBitmaps). The functionality thus approximates the Windows version. (This is in lieu of a better way to render fonts in general.)

        Gliffy Diagrams

          Attachments

            Activity

            Hide
            djcinsb Darrel Conway added a comment -

            Tom - I can check/commit this one on Linux (since it'll be hard to validate from Windows).

            Show
            djcinsb Darrel Conway added a comment - Tom - I can check/commit this one on Linux (since it'll be hard to validate from Windows).
            Hide
            tgrubb Thomas Grubb added a comment -

            Thanks Darrel. Assigning to you.

            Show
            tgrubb Thomas Grubb added a comment - Thanks Darrel. Assigning to you.
            Hide
            djcinsb Darrel Conway added a comment -

            Patch applied (Thanks, Bryan!) Passing to Wendy for checking on Mac.

            Show
            djcinsb Darrel Conway added a comment - Patch applied (Thanks, Bryan!) Passing to Wendy for checking on Mac.
            Hide
            gmat_wcs Wendy Shoan added a comment -

            Seems to be OK on Mac as well.

            Show
            gmat_wcs Wendy Shoan added a comment - Seems to be OK on Mac as well.

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: