Part of the Khronos Group

The Industry's Foundation for High Performance Graphics

from games to virtual reality, mobile phones to supercomputers

Results 1 to 2 of 2

Thread: XLIB Functions with OpenGL

  1. #1

    XLIB Functions with OpenGL


    I'm usign some calls to WINAPI in my OpenGL programs for windows (C ANSI), like:

    #include <GL/gl.h>
    #include <GL/glut.h>
    #include <windows.h>
    #include <mmsystem.h>
    #include <winuser.h>
    #include <shellapi.h>
    Status = MessageBox(NULL, "Question...", "Box Title", MB_YESNO);
    ShellExecute(NULL, "open", "help/index.html", "", "", SW_MAXIMIZED);

    And now I'm porting this porgrams to Linux.

    How can I do this in XWindows to run in KDE and Gnome?? Is there a site obout the XLIB API?? (like msdn for WINAPI)


  2. #2
    Member Regular Contributor
    Join Date
    Sep 2000
    Vancouver BC Canada

    Re: XLIB Functions with OpenGL

    All the info you'll ever need about Xlib is in the man pages.

    And if that isn't enough:

    But if I were you, I'd look at using GTK or the KDE libs or SDL instead of using the Xlibs directly.

Posting Permissions

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