LCDInfo.com

http://www.lcdinfo.com
It is currently Fri Nov 22, 2024 5:52

All times are UTC + 2 hours




Post new topic Reply to topic  [ 2 posts ] 
Author Message
 Post subject: DoubleBuffer
PostPosted: Mon May 29, 2006 17:23 
Offline

Joined: Mon May 29, 2006 17:12
Posts: 1
Hello

I develop a drivers for t6963c controllers. I try to develop a doublebuffer.
However i don't understand this specification.

I tested by writing in RAM an image :

example :

#define frontbuffer 0x0000
#define backbuffer 0x0850

and used that to display

Code:
void InitBuffer(int buffer)
{
   if(buffer==0)
   {
      G_BASE=0x0000;
      /* SET GRAPHICS HOME ADDR */
      WriteData(G_BASE & 0xFF);  // Data1: LowAddress graphic home addr
      WriteData(G_BASE >> 8);    // Data2: HighAddress
      WriteCtrl(SET_GRAPHICS_HOME_ADDR);           // Command: 0x42 -> 01000010
   }
   if(buffer==1)
   {   
      G_BASE=0x0850;
      /* SET GRAPHICS HOME ADDR */
   WriteData(G_BASE & 0xFF);  // Data1: LowAddress graphic home addr
   WriteData(G_BASE >> 8);    // Data2: HighAddress
   WriteCtrl(SET_GRAPHICS_HOME_ADDR);           // Command: 0x42 -> 01000010
   }
}


i think it is false...

someone , use doublebuffer for t6963c?


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 29, 2006 18:34 
Offline

Joined: Wed Aug 03, 2005 20:27
Posts: 130
Location: .fi
You're meant to use it so that you:

1) Clear the backbuffer and call InitBuffer(1).
2) You clear the frontbuffer and do your stuff into it, and when you're done you call InitBuffer(0) to set the frontbuffer visible on the screen.
3) You clear the backbuffer, do your stuff into that, and when done you call InitBuffer(1) to set that visible on the screen.
4) Loop back to position #2.

This is to get rid off of all the visible effects of drawing in the screen.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 2 hours


Who is online

Users browsing this forum: No registered users and 58 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group