|
Discussion about dependencies. |
Doctor Cop
Member #16,833
April 2018
|
Does Allegro 5 depends upon platform specific code in any way, does any of the library extension of Allegro 5 uses Win32 API. like File system.
|
jmasterx
Member #11,410
October 2009
|
Yes, yes, and yes. https://github.com/liballeg/allegro5/blob/master/src/win/wsystem.c#L34 Look at the source code and you will see. Agui GUI API -> https://github.com/jmasterx/Agui |
Doctor Cop
Member #16,833
April 2018
|
If I only use Allegro primitives and keyboard, mouse then will it use Win32?
|
GullRaDriel
Member #3,861
September 2003
|
On Windows, for sure. Though only on windows. For the Win32 API, that's the case.
"Code is like shit - it only smells if it is not yours" |
Doctor Cop
Member #16,833
April 2018
|
So, is there a way that I can use Allegro 5 without using Win32?
|
GullRaDriel
Member #3,861
September 2003
|
Using Linux maybe ? "Code is like shit - it only smells if it is not yours" |
dthompson
Member #5,749
April 2005
|
The official website said: Allegro is a cross-platform library Dependency on Win32 is the least of your worries my friend ______________________________________________________ |
MiquelFire
Member #3,110
January 2003
|
If you're making a Windows program, you use Win32, there no way around it (whatever browser you're using also uses Win32) In a way, it's like saying, can use <network only game/program here> without using a network? --- |
Doctor Cop
Member #16,833
April 2018
|
That's scary because if I want to make an application or I want to contribute to a library which is using graphics or I/O interface calls then I'll have to learn Win32 API, and we all know how successful is Win32 in making plausible applications. Win32 has only one buffer for every event and its Naming conventions hurt my eyes. I don't want to learn Win32, I wanted a workaround but I guess there are none.
|
Niunio
Member #1,975
March 2002
|
I think you're missing the point: Allegro allows you to write programs for Windows without you learning the Windows API. And even allowing to use the same program with (almost) no changes for other platforms. That's what cross-platform means. ----------------- |
Edgar Reynaldo
Major Reynaldo
May 2007
|
Doctor Cop said:
I don't want to learn Win32, I wanted a workaround but I guess there are none. So your alternatives are Linux and C, or OSX and objective C, or Java and Android, or objective C and iOS, or windows and Win32. These platform specific libraries, are the ONLY way to interface with that particular OS. On Linux you use X and X11. On OSX you used to use Cocoa, now Metal, or something. On Windows you use Win32. Now the point everyone is trying to make is that none of that matters! Because Allegro abstracts it away for you. You can use as much or as little of the interface allegro provides for you. But if you wanted to write a windows program without win32 or another library that uses win32 for you, then you're sorely out of luck. Quote: a library which is using graphics or I/O interface calls then I'll have to learn Win32 API, This isn't even true for graphics. Unless you're using GDI, which is silly, because allegro does it for you, or OpenGL, or DirectX. You don't have to touch any of that stuff. My Website! | EAGLE GUI Library Demos | My Deviant Art Gallery | Spiraloid Preview | A4 FontMaker | Skyline! (Missile Defense) Eagle and Allegro 5 binaries | Older Allegro 4 and 5 binaries | Allegro 5 compile guide |
|