PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
DoubleBuff.c
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# (c) 2009 Lion
7# Licenced under Academic Free License version 2.0
8# Review ps2sdk README & LICENSE files for further details.
9*/
10
11#include <errno.h>
12#include <stdio.h>
13#include <kernel.h>
14#include <libgs.h>
15
16#include "internal.h"
17
18static short int gs_db_draw_buffer=0;
19
20int GsDbGetDrawBuffer(void)
21{
22 return gs_db_draw_buffer;
23}
24
25int GsDbGetDisplayBuffer(void)
26{
27 return(gs_db_draw_buffer? 0: 1);
28}
29
30void GsDbSwapBuffer(void)
31{
32 gs_db_draw_buffer = gs_db_draw_buffer? 0: 1;
33}