Comments (5)
I had a brief look some time ago and it's going to be quite painful, Meka relies on Allegro functionality beyond rendering video and audio, for example config and resource loading and drawing primitives. The imgui port may well reduce some of this, though.
from meka.
I think we should aim for that. Allegro is a crumbling mess.
Part of my plan was to replace the gui with a skinned ImGui which would have the advantage of getting rid of pretty much every Allegro draw primitives everywhere in the code for tools/ui. From there the entirely of rendering would be quite portable.
We don't use Allegro for config, we don't even use it for "data/package" file anymore, the files are standalone png, etc. stb_image.h
can load them very well. It would be quite easy after the GUI is replaced.
If you want to help that'd be great :)
from meka.
I wonder if we could start by including SDL (1 or 2, doesn't really matter which) just to render the display buffer, and the gradually move over the inputs and audio calls. There doesn't seem to be an "easy" way to change over all in one go as everything is a bit tangled in with the allegro defines and routines.
from meka.
We could try moving all the allegro calls behind a quasi-platform interface. That might make it easier to eventually crate alternative ports.
Allegro calls are fairly scattered throughout the code, but as an initial step they could be moved behind an API layer, so they are all in one place.
from meka.
My plan what to rewrite the UI and most of the rendering using Dear ImGui, make it look fairly similar and then 90% of the Allegro calls will be done and UI will be easier to work with and improve. From there it'll be very easier to switch to something like SDL.
from meka.
Related Issues (20)
- show the overscan area
- Paste & Copy
- the Palette tool keeps on growing
- "Ninja Princess SG-1000" crashing problem
- Where to put/config bios files? HOT 3
- start_in_gui = 0 "no work"
- Window should be resizable
- Translation to Russian
- Windows Defender malware scan of Meka 2019-12-13 release HOT 4
- Error loading file: "cursor_main.tga"
- Keyboard mapping issue (# on french mapping)
- Trojan virus warning on meka-20191213 release binary HOT 3
- Thanks HOT 2
- Incorrect display of letters with accents in the setup and more HOT 2
- Segmentation fault HOT 9
- VirusTotal warnings again HOT 8
- pushsamplesreaquestbuff overflow HOT 3
- Mapper type 11, memory requirements HOT 2
- Graphical interface corruption under FreeBSD HOT 1
- update Android version
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from meka.