nanogui: Thread: banner application


[<<] [<] Page 1 of 1 [>] [>>]
Subject: banner application
From: sai baba ####@####.####
Date: 20 Jan 2006 05:37:25 +0000
Message-Id: <20060120053718.82883.qmail@web35904.mail.mud.yahoo.com>

hi

    I am writing a program in nanox which moves *.bmp
image files as 
scrolls on screen. if there are more then one image
files i am joining 
them by copying one after the other on an offscreen
buffer. This buffer 
is  moved on screen using function GrcopyArea.The
problem i am facing is 
if number of image files increases large amount of
offscreen buffer is 
required.is there any better way to implement this
program. By the by i 
am  using Uclinux on ARM board.



__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
Subject: Re: [nanogui] banner application
From: "Greg Haerr" ####@####.####
Date: 20 Jan 2006 05:55:08 +0000
Message-Id: <0f3701c61d85$f03a0d30$6401a8c0@winXP>

: The problem i am facing is 
: if number of image files increases large amount of
: offscreen buffer is 
: required.is there any better way to implement this
: program.

Well - you only need two offscreen buffers in order
to display any number of images.  The two images
that are cut-off on the left and right sides of the window
need to be buffered, and portions GrCopyArea'd 
to the window as required.  Any images in the
middle (in the case of more than two displayed
images) can be decoded directly onto the window.
Whenever an image completely scrolls off the screen,
its buffer can be deallocated.  When a new
images scrolls on the right side, a new buffer
is allocated.

Regards,

Greg

[<<] [<] Page 1 of 1 [>] [>>]


Powered by ezmlm-browse 0.20.