Home » Developing U++ » U++ Developers corner » Rainbow, first iteration
() 1 Vote
Rainbow, first iteration [message #32829] |
Mon, 13 June 2011 15:03 |
|
mirek
Messages: 13980 Registered: November 2005
|
Ultimate Member |
|
|
I took time, especially considering it is mostly preprocessor compile time hack, but I believe that I have reached important milestone in Rainbow development, I believe it should be now possible to develop custom GUI for U++ without the need dir directly changing CtrlCore/CtrlLib (like MacOS or Android or OpenGL).
How is it supposed to work, at least, starting point:
The CtrlCore.h now begins with:
#include <guiplatform.h>
#ifndef GUIPLATFORM_INCLUDE
#ifdef PLATFORM_WIN32
#define GUIPLATFORM_INCLUDE "Win32Gui.h"
#endif
#ifdef PLATFORM_X11
#define GUIPLATFORM_INCLUDE "X11Gui.h"
#endif
#endif
guiplatform.h is in uppsrc root (not in package) and it is empty, so for normal operations "defaults" kick in.
If you are about to develop custom GUI backend, create a new nest, place guiplatform.h into it and using #define GUIPLATFORM_INCLUDE 'redirect' it to your own GUI specification header.
As for development itself, I believe that two 'default' backends give a good hint... I am using quite ugly combination of macros, includes and platform defined functions/methods; for now it seems to be the most cost efficient way. We will say how that works in practice...
Important notice: Whereas in the past we were using PLATFORM_WIN32 and PLATFORM_X11 in CtrlLib and other GUI code for #ifdefs to tell apart the GUI backend, this should be now replaced by 'GUI_WIN' and 'GUI_X11' (those are defined in GUIPLATFORM_INCLUDE), because it is no longer true that Windows backend has to used on Windows platform...
OK, this should work as first introduction. I am now plannig for actually developing generic framebuffer backend to tune this thing.
Perhaps Daniel could now also try to 'port' OpenGL U++ to rainbow too.
Mirek
|
|
|
|
|
Rainbow, first iteration
By: mirek on Mon, 13 June 2011 15:03
|
|
|
Re: Rainbow, first iteration
By: mirek on Mon, 13 June 2011 21:24
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Tue, 14 June 2011 17:59
|
|
|
Re: Rainbow, first iteration
By: mirek on Wed, 15 June 2011 09:33
|
|
|
Re: Rainbow, first iteration
By: unodgs on Tue, 14 June 2011 14:06
|
|
|
Re: Rainbow, first iteration
By: harmac on Wed, 15 June 2011 16:21
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Wed, 22 June 2011 20:40
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
|
|
|
fb0 shows first Upp stuff
|
|
|
Re: fb0 shows first Upp stuff
By: Sgifan on Mon, 27 June 2011 16:54
|
|
|
Re: fb0 shows first Upp stuff
|
|
|
Re: fb0 shows first Upp stuff
By: mirek on Mon, 27 June 2011 17:50
|
|
|
Re: Rainbow, first iteration
By: mirek on Mon, 27 June 2011 17:43
|
|
|
Re: Rainbow, first iteration
By: mirek on Mon, 27 June 2011 17:52
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Mon, 27 June 2011 21:05
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Tue, 28 June 2011 13:32
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Tue, 28 June 2011 15:02
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Wed, 29 June 2011 19:11
|
|
|
Re: Rainbow, first iteration
By: tojocky on Wed, 29 June 2011 20:47
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Mon, 04 July 2011 13:51
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Mon, 04 July 2011 14:35
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Mon, 04 July 2011 15:32
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Mon, 04 July 2011 22:57
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Mon, 04 July 2011 23:44
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Wed, 06 July 2011 09:44
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Tue, 12 July 2011 15:04
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Tue, 12 July 2011 18:02
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Fri, 15 July 2011 17:12
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Fri, 15 July 2011 15:13
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Fri, 15 July 2011 18:17
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Tue, 19 July 2011 10:33
|
|
|
Re: Rainbow, first iteration
By: unodgs on Tue, 19 July 2011 10:42
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Tue, 19 July 2011 21:29
|
|
|
Re: Rainbow, first iteration
By: unodgs on Tue, 19 July 2011 22:28
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: unodgs on Wed, 20 July 2011 10:48
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Wed, 20 July 2011 17:04
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Thu, 21 July 2011 12:14
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Thu, 21 July 2011 18:40
|
|
|
Re: Rainbow, first iteration
By: mirek on Thu, 21 July 2011 18:43
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Fri, 22 July 2011 15:02
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Thu, 28 July 2011 17:04
|
|
|
Re: Rainbow, first iteration
By: mirek on Fri, 22 July 2011 14:51
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Wed, 20 July 2011 07:13
|
|
|
Re: Rainbow, first iteration
|
|
|
Re: Rainbow, first iteration
By: mirek on Thu, 21 July 2011 11:28
|
|
|
Re: Rainbow, first iteration
By: rett on Thu, 01 September 2011 09:54
|
|
|
Re: Rainbow, first iteration
By: mirek on Thu, 01 September 2011 21:16
|
|
|
Re: Rainbow, first iteration
By: rett on Fri, 02 September 2011 09:49
|
Goto Forum:
Current Time: Wed May 15 04:44:07 CEST 2024
Total time taken to generate the page: 0.01817 seconds
|