Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 is currently offline  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

Previous Topic: U++ TheIde compiles and runs on pure Cocoa (video) 85% of U++ port done. 2months+-1 left, ifs...
Next Topic: [SOLVED] CtrlLib/Ctrl.iml:41:1: error: expected unqualified-id before '{' token
Goto Forum:
  


Current Time: Sat Apr 20 08:22:10 CEST 2024

Total time taken to generate the page: 0.04348 seconds