Jump to content
  • Advertisement
Sign in to follow this  
Revelation60

Creating a window in Linux

This topic is 3889 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Recently I installed ubuntu on my system and now I want to start programming C++ in Linux. The problem is, I can't find information on how to build windows. While in Windows there are well-documented API tutorials, Linux seems to have none. Can you help me?

Share this post


Link to post
Share on other sites
Advertisement
It's because Linux has no windows. Linux is a kernel. *NIX-like systems often operate without a display. The closest you can get is a framebuffer, but that's kernel and video card dependent.

If all you're after is a window to use with OpenGL or to blit images to, then you need X or, more likely, something like SDL, Allegro or ClanLib.

If what you need is to build a rich client application, then you'll need a toolkit such as Qt, Gtk+, Gtk--, GFC, WxWidgets, The FOX toolkit, FLTK, Ultimate++, etc.

There is no direct equivalent of the Win32 API, if that's what you're looking for. It's either lower level (eg Xlib) or higher level (the toolkits).

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!