简体   繁体   English

带C的Allegro5-制作程序

[英]Allegro5 with C - making program

I'm making program using Allegro5, but I'm not familiar with the library yet. 我正在使用Allegro5编写程序,但是我还不熟悉该库。 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), 制作按钮(例如在普通的Windows程序中)

-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) -在Allegro窗口中打开窗口(用于预览或其他操作)

etc. 等等

I want to use for that as much OOP as I can (i know, it's C). 我想使用尽可能多的OOP(我知道,这是C)。 Is it possible to do all of that in C and Allegro5, or i need windows libraries and other stuff as well? 是否可以在C和Allegro5中完成所有这些操作,或者我还需要Windows库和其他内容?

Thanks in advance for your replies. 提前感谢您的回复。 :) :)

Yes, you can do all of those things, but Allegro 5 is primarily designed for games and not GUI applications. 是的,您可以做所有这些事情,但是Allegro 5主要是为游戏而不是GUI应用程序设计的。 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.) 它具有对本机菜单(5.1系列)和对话框的支持,但是您可以自己考虑按钮,滑块等。(有一些第三方GUI库可用,但它们看上去都不像本机应用程序。)

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. 因此,如果您的程序基本上是一个GUI应用程序,那么最好使用Qt或GTK之类的东西作为基础,并且仅在需要时使用图形库。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM