Home » Developing U++ » U++ Developers corner » Porting SystemDraw to Frambuffer
Re: Porting SystemDraw to Frambuffer [message #22998 is a reply to message #22980] |
Fri, 04 September 2009 18:53 |
|
mirek
Messages: 13976 Registered: November 2005
|
Ultimate Member |
|
|
kohait00 wrote on Fri, 04 September 2009 07:55 | hi mirek
the point is that we *dont* use X11, so we work on bare /dev/fb0 and drivers (/dev/input/* or dev/mouse and even tslib stuff for touchscreen) to get that working..
|
I am asking because of development/debugging environment...
Quote: |
you "simply" open /dev/fb0, but you then mmap it to your userspace and can then start painting on it (some more details on that needed). to find out mode or to set it, to find out strides, color witdth and the like there is this fbinfo struct (donno the name exactly, must look it up also) and according to that, BufferPainter needs to be set up. So maybe a wrapper class?
|
I think you are going to do double-buffering anyway, so ImageBuffer is just fine for this (as you can solve the format difference later...)
Quote: |
where a SystemDraw is instantiated and drawn to GDC and passed all the events to.
|
It is during handling of WM_PAINT (or expose).
Quote: |
Where is that point exactly, i could find it seen thing like CreateWindow and CreateWindowEx, but the rest.... thats kind of specific.. i wanted to know where the start point for Upp actually begins, where OS things switch /hand over to Upp stuff/interface.
as a startpoint we might want to take a look at the nanox project in blackfin uClinux trunk, here is the start point maybe, how to use fb0 (in a simple way, nanox is smalles X11, but we might want to have no X11 at all.
svn: blackfin.uclinux.org, svn of uClinux distro
trunk/user/microwindow/src/nanox/clientfb.c
dig for /dev/fb0
|
Well, thinking about it, I guess nice and simple solution is to provide some abstraction level...
I mean, a class that abstractly represents sort of framebuffer and mouse and keyboard input and then build the whole thing above it.
For development purposes, we can use normal single window to emulate this.
Quote: |
another Point: SDL
i saw that SDL is sowhat supported, how's that?
|
Not realy, the only support is that it comes with mingw version.
Quote: |
it can use bare fb0 and also has its layer to the input driver stuff, including touch screen. does Upp support SDL natively?? meaning without any GTK stuff and the like? or even in windowss a native SDL?
|
No. But I guess we can use SDL as inspiration for above abstraction layer...
Mirek
|
|
|
|
|
Porting SystemDraw to Frambuffer
By: kohait00 on Thu, 03 September 2009 11:18
|
|
|
Re: Porting SystemDraw to Frambuffer
By: kohait00 on Thu, 03 September 2009 11:26
|
|
|
Re: Porting SystemDraw to Frambuffer
By: mirek on Fri, 04 September 2009 12:06
|
|
|
Re: Porting SystemDraw to Frambuffer
By: kohait00 on Fri, 04 September 2009 13:55
|
|
|
Re: Porting SystemDraw to Frambuffer
|
|
|
Re: Porting SystemDraw to Frambuffer
By: mr_ped on Fri, 04 September 2009 15:53
|
|
|
Re: Porting SystemDraw to Frambuffer
By: mirek on Fri, 04 September 2009 18:53
|
|
|
Re: Porting SystemDraw to Frambuffer
By: kohait00 on Wed, 16 December 2009 11:19
|
|
|
Re: Porting SystemDraw to Frambuffer
By: mirek on Wed, 16 December 2009 14:37
|
|
|
Re: Porting SystemDraw to Frambuffer
By: kohait00 on Wed, 16 December 2009 15:19
|
|
|
Re: Porting SystemDraw to Frambuffer
By: mirek on Thu, 17 December 2009 13:30
|
|
|
Re: Porting SystemDraw to Frambuffer
By: zsolt on Fri, 04 September 2009 16:06
|
|
|
Re: Porting SystemDraw to Frambuffer
|
|
|
Re: Porting SystemDraw to Frambuffer
By: kohait00 on Fri, 04 September 2009 18:47
|
|
|
Re: Porting SystemDraw to Frambuffer
By: kohait00 on Fri, 04 September 2009 18:49
|
|
|
Re: Porting SystemDraw to Frambuffer
By: kohait00 on Wed, 16 December 2009 22:08
|
|
|
Re: Porting SystemDraw to Frambuffer
By: kohait00 on Wed, 16 December 2009 22:34
|
|
|
Re: Porting SystemDraw to Frambuffer
|
|
|
Re: Porting SystemDraw to Frambuffer
|
|
|
Re: Porting SystemDraw to Frambuffer
By: mirek on Tue, 06 July 2010 09:49
|
|
|
Re: Porting SystemDraw to Frambuffer
|
|
|
Re: Porting SystemDraw to Frambuffer
By: mirek on Thu, 08 July 2010 10:30
|
|
|
Re: Porting SystemDraw to Frambuffer
|
|
|
Re: Porting SystemDraw to Frambuffer
By: mirek on Thu, 08 July 2010 11:00
|
|
|
Re: Porting SystemDraw to Frambuffer
|
|
|
Re: Porting SystemDraw to Frambuffer
|
|
|
Re: Porting SystemDraw to Frambuffer
|
|
|
Re: Porting SystemDraw to Frambuffer
|
|
|
Re: Porting SystemDraw to Frambuffer
By: mirek on Thu, 08 July 2010 17:55
|
|
|
Re: Porting SystemDraw to Frambuffer
|
|
|
Re: Porting SystemDraw to Frambuffer
By: mr_ped on Fri, 09 July 2010 08:37
|
|
|
Re: Porting SystemDraw to Frambuffer
|
|
|
Re: Porting SystemDraw to Frambuffer
By: tojocky on Fri, 15 October 2010 13:15
|
|
|
Re: Porting SystemDraw to Frambuffer
By: kohait00 on Thu, 21 October 2010 09:25
|
|
|
Re: Porting SystemDraw to Frambuffer
By: mr_ped on Fri, 09 July 2010 12:50
|
|
|
Re: Porting SystemDraw to Frambuffer
|
|
|
Re: Porting SystemDraw to Frambuffer
By: mirek on Fri, 09 July 2010 14:28
|
|
|
Re: Porting SystemDraw to Frambuffer
|
|
|
Re: Porting SystemDraw to Frambuffer
By: mirek on Fri, 09 July 2010 16:44
|
|
|
Re: Porting SystemDraw to Frambuffer
By: tojocky on Sat, 10 July 2010 19:13
|
|
|
Re: Porting SystemDraw to Frambuffer
By: tojocky on Tue, 27 July 2010 23:09
|
|
|
Re: Porting SystemDraw to Frambuffer
By: Novo on Wed, 28 July 2010 05:37
|
Goto Forum:
Current Time: Fri May 10 11:40:23 CEST 2024
Total time taken to generate the page: 0.02580 seconds
|