cross-platform issues

I'm rewriting an old Win32 painting program to support more platforms using FLTK. So far so good on Linux, but I have some questions:

1. Internally, 32-bit images are used, which FLTK draws in software (slowly). So Xlib is used to render the main viewport. This requires converting the internal image format to that of the hardware while being displayed. At the moment, RGB/BGR is supported, but does something like GBR or BRG ever happen? Do I need to support all possible combinations?

2. Is is really necessary for a paint package to support big-endian machines? I have it in the file loading/saving, but am I wasting my time bothering?

3. Some things need to be organized better, so I'm open to suggestions and help is wanted on this project if someone is interested in this sort of program.

The application in question:
https://github.com/Mortis69/rendera

Holla.
1. No. What you have suffices.
2. It depends on what exactly you are doing, but chances are slim that you'll need to care. If you are unsure about any specific point, just ask.
Hope this helps.
It helps a lot, thanks.






Topic archived. No new replies allowed.