Find the answer to your Linux question:
Results 1 to 6 of 6
I am going to design some games for Linux/GNU using opengl and I need some hints as far as windowing goes. What does Linux/GNU use for window programming (not window ...
  1. #1
    Just Joined!
    Join Date
    Dec 2007
    Posts
    12

    Windowing API?

    I am going to design some games for Linux/GNU using opengl and I need some hints as far as windowing goes. What does Linux/GNU use for window programming (not window as in the windows operating system)?

    Is there an API for creating windows in linux? Like what win32 does for windows? Or is it best to program games in linux with the console?

    Thanks

  2. #2
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    You'll be using the X Window system.
    --
    Bill

    Old age and treachery will overcome youth and skill.

  3. #3
    Trusted Penguin Cabhan's Avatar
    Join Date
    Jan 2005
    Location
    Seattle, WA, USA
    Posts
    3,230
    Right. At the most basic level, you could use Xlib, but it is very difficult to use, and not very pretty besides. Gtk and Qt are two very popular widget toolkits that live on top of Xlib that are significantly easier to program with.

    Both Gtk and Qt provide tutorials on their websites, and you can probably google for an Xlib tutorial.
    DISTRO=Arch
    Registered Linux User #388732

  4. #4
    Banned jan1024188's Avatar
    Join Date
    Jul 2006
    Location
    EU, SLOVENIA
    Posts
    1,549
    Well, I think you shall Google for OpenGL Linux tutorial and see what API those tutorials use.

  5. #5
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    Or, as an alternative:
    Code:
    Or is it best to program games in linux with the console?
    That isn't necessarily best, but it would be really really really cool.
    --
    Bill

    Old age and treachery will overcome youth and skill.

  6. #6
    Banned jan1024188's Avatar
    Join Date
    Jul 2006
    Location
    EU, SLOVENIA
    Posts
    1,549
    Ha, this makes me think about DOS games...LOL

Posting Permissions

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