ps2sdk  1.1
A collection of Open Source libraries used for developing applications on Sony's PlayStation 2® (PS2).
DoubleBuff.c File Reference
#include <errno.h>
#include <stdio.h>
#include <kernel.h>
#include <libgs.h>
#include "internal.h"
+ Include dependency graph for DoubleBuff.c:

Go to the source code of this file.

Functions

int GsDbGetDrawBuffer (void)
 
int GsDbGetDisplayBuffer (void)
 
void GsDbSwapBuffer (void)
 

Variables

static short int gs_db_draw_buffer =0
 

Function Documentation

◆ GsDbGetDisplayBuffer()

int GsDbGetDisplayBuffer ( void  )

Definition at line 25 of file DoubleBuff.c.

26 {
27  return(gs_db_draw_buffer? 0: 1);
28 }
static short int gs_db_draw_buffer
Definition: DoubleBuff.c:18

References gs_db_draw_buffer.

Referenced by main().

◆ GsDbGetDrawBuffer()

int GsDbGetDrawBuffer ( void  )

Definition at line 20 of file DoubleBuff.c.

21 {
22  return gs_db_draw_buffer;
23 }

References gs_db_draw_buffer.

Referenced by main().

◆ GsDbSwapBuffer()

void GsDbSwapBuffer ( void  )

Definition at line 30 of file DoubleBuff.c.

31 {
33 }

References gs_db_draw_buffer.

Referenced by main().

Variable Documentation

◆ gs_db_draw_buffer

short int gs_db_draw_buffer =0
static

Definition at line 18 of file DoubleBuff.c.

Referenced by GsDbGetDisplayBuffer(), GsDbGetDrawBuffer(), and GsDbSwapBuffer().