File: swapBuffers.h

package info (click to toggle)
primrose 6%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 5,304 kB
  • sloc: cpp: 27,318; php: 765; ansic: 636; objc: 272; sh: 136; makefile: 92; perl: 67
file content (24 lines) | stat: -rw-r--r-- 782 bytes parent folder | download | duplicates (30)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#include "GraphicBuffer.h"

// function that swaps bufferB to the screen  (32 bit version)
// returns new back buffer
//unsigned long *swapBuffers32( unsigned long *bufferPtrB, short bufferHigh, short bufferWide);

// now replaces "buffer" in bufferB with the new double buffer after swap
// no need to pass back the new buffer
void swapBuffers32( GraphicBuffer &bufferB );




// swap bufferB to the screen  (8 bit version)
// returns new back buffer
unsigned char *swapBuffers8( unsigned char *bufferPtrB, short bufferHigh, short bufferWide );





// NOTE:  the bodies of these functions must occur in the body of the main DDraw code file
//			i.e., in the file where all the directDraw objects are instantiated.
//			these functions assume the ddraw ojects are declared globally