nanogui: Newbie ---- Regarding moving picture in window ( As like Scrolling banner on screen)


Previous by date: 2 Dec 2005 14:59:57 +0000 Newbie ---- Regarding moving picture in window ( As like Scrolling banner on screen), nimesh kanoth
Next by date: 2 Dec 2005 14:59:57 +0000 Re: [mail] Re: [nanogui] scrdev, Greg Haerr
Previous in thread: 2 Dec 2005 14:59:57 +0000 Newbie ---- Regarding moving picture in window ( As like Scrolling banner on screen), nimesh kanoth
Next in thread:

Subject: Re: Newbie ---- Regarding moving picture in window ( As like Scrolling banner on screen)
From: "Jordan Crouse" ####@####.####
Date: 2 Dec 2005 14:59:57 +0000
Message-Id: <20051202150637.GH15827@cosmic.amd.com>

>  I am using GrDrawToFit() fuction to draw picture on screen. then I am looping the Y-coordinate to move from one side to other side. But It very slow..  . Is there any other way to move picture .
  
GdDrawImage is slow because it has to draw the whole thing pixel by pixel,
translating colors and then drawing them to the screen (see GdDrawImage in 
engine/devdraw.c to see what I'm talking about). Any time you jump into a 
for(y)/for(x) loop, things are going to be slow.

What you want to do is draw the image offscreen, and then use GrCopyArea
to to copy the parts of the image you need on screen.

Good Luck,
Jordan


Previous by date: 2 Dec 2005 14:59:57 +0000 Newbie ---- Regarding moving picture in window ( As like Scrolling banner on screen), nimesh kanoth
Next by date: 2 Dec 2005 14:59:57 +0000 Re: [mail] Re: [nanogui] scrdev, Greg Haerr
Previous in thread: 2 Dec 2005 14:59:57 +0000 Newbie ---- Regarding moving picture in window ( As like Scrolling banner on screen), nimesh kanoth
Next in thread:


Powered by ezmlm-browse 0.20.