Search code examples
coopallegroallegro5

Allegro5 with C - making program


I'm making program using Allegro5, but I'm not familiar with the library yet. I just want to know what is possible with this library.

I have to do 'color correction of image' (contrast, brightness, etc.) and I thought about:

-making buttons (like in normal windows program),

-scrollbars,

-file loader - I click on the button and I'm allowed to jump through directories on my hard drive and pick image file i want to edit in my program

-opening windows in allegro window (for the preview or something)

etc.

I want to use for that as much OOP as I can (i know, it's C). Is it possible to do all of that in C and Allegro5, or i need windows libraries and other stuff as well?

Thanks in advance for your replies. :)


Solution

  • Yes, you can do all of those things, but Allegro 5 is primarily designed for games and not GUI applications. It has support for native menus (5.1 series) and dialogs, but you're on your own regarding buttons, sliders, etc. (There are some third party GUI libraries available, but none of them would look like a native application.)

    So if your program is basically a GUI application, then you're probably best off using something like Qt or GTK as your foundation, and only using a graphics library as needed.