File: swapBuffers.h

package info (click to toggle)
transcend 0.3.dfsg2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, jessie, jessie-kfreebsd, stretch
  • size: 5,796 kB
  • ctags: 3,074
  • sloc: cpp: 26,886; ansic: 693; sh: 210; makefile: 99; 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