Home » Developing U++ » Mac OS » changes needed in Upp <Core> to run cocoa properly
changes needed in Upp <Core> to run cocoa properly [message #35701] |
Tue, 13 March 2012 22:37 |
 |
fudadmin
Messages: 1321 Registered: November 2005 Location: Kaunas, Lithuania
|
Ultimate Contributor Administrator |
|
|
I will post here changes needed in Core to run cocoa properly.
Other suggestions welcome.
1. RGBA. this works on "normal" intel endian:
#ifdef PLATFORM_WIN32
struct RGBA : Moveable<RGBA> {
byte b, g, r, a;
};
#endif
#if defined(PLATFORM_POSIX) && !defined(PLATFORM_COCOA)
#ifdef CPU_BE
struct RGBA : Moveable<RGBA> {
byte a, r, g, b;
};
#else
struct RGBA : Moveable<RGBA> {
byte b, g, r, a;
};
#endif
#endif
#ifdef PLATFORM_COCOA
//#ifdef CPU_BE
struct RGBA : Moveable<RGBA> {
byte r, g, b, a;
};
//#else
//struct RGBA : Moveable<RGBA> {
// byte b, g, r, a;
//};
//#endif
#endif
[Updated on: Tue, 13 March 2012 22:38] Report message to a moderator
|
|
|
Goto Forum:
Current Time: Tue Apr 29 17:30:29 CEST 2025
Total time taken to generate the page: 0.01297 seconds
|