klange / toaruos

A completely-from-scratch hobby operating system: bootloader, kernel, drivers, C library, and userspace including a composited graphical UI, dynamic linker, syntax-highlighting text editor, network stack, etc.
https://toaruos.org/
University of Illinois/NCSA Open Source License
6.03k stars 475 forks source link

Fixup the graphics library API #206

Open klange opened 2 years ago

klange commented 2 years ago

The graphics library exports symbols without any prefix, leading to some problematically short names and a lack of uniformity. Functions like flip or rgb/rgba absolutely need some prefixing. The headers also include a number of problematic macros.

Thoughts:

klange commented 2 years ago

The published SDL package for 2.x references flip and some init_graphics_... functions, so it will need to be updated.

akshataj96 commented 1 year ago

If this is still open, Can i start looking into it? @klange

klange commented 1 year ago

This is not the sort of thing I would normally accept a pull request for, and it is not practical for an external contributor anyway - much of the work here will be making changes to parches for ported third-party software (SDL, etc.), as well as repackaging it and updating the CDN.