Advertisement

11.14.2008 at 11:19AM PST, ID: 23906237 | Points: 500
[x]
Attachment Details

Double Buffering in C

Asked by gmacdonald in C Programming Language, Game Programming

Tags: , , ,

Hi,

Thank you for taking the time to possibly answer my question.

I am using the Atari ST emulator to develop an application which must use Double Buffered Graphics to write to video memory.

Here's what I know;

Physbase() = start location of frame buffer.

Can instantiate pointers which point to start of frame buffer, and manipulate them accordingly in order to draw to memory.

Can create a secondary buffer, which is an invisible back buffer, write to it while a primary buffer is being displayed on the screen, and then swap the two images as soon as the vertical retrace is complete.

Here's what I don't know: HOW .. lol

I am also aware that, because I am working with a monochrome monitor, which only displays two colors;
I need to allocate the second buffer (outside of main) globally as a 32000 byte chunk of memory, which is 256 byte alligned.

Can someone please point me in the right direction, as far as coding and syntax is concerned. I am a relatively fast learner, but this is my first video programming experience, and I am very shaky when it comes to conceptual design issues.Start Free Trial
[+][-]11.14.2008 at 11:56PM PST, ID: 22966177

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]11.15.2008 at 03:30PM PST, ID: 22968952

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]11.17.2008 at 03:50PM PST, ID: 22980733

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 - Hierarchy / EE_QW_2_20070628