aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorJohn Wilbert M. Villamor <lameguy64@gmail.com>2019-06-23 07:42:16 +0800
committerJohn Wilbert M. Villamor <lameguy64@gmail.com>2019-06-23 07:42:16 +0800
commit7be9178c0f9b0e698a305ecc5c0c41fcc596a4fc (patch)
treee98c627e1da5c764563774b89b0c06d7ac5ad0a4 /examples
parentae9e545c3ed33d39ce21ae13ceb8337fa34901b8 (diff)
downloadpsn00bsdk-7be9178c0f9b0e698a305ecc5c0c41fcc596a4fc.tar.gz
LibPSn00b officially v0.10b, added psxsio library, better DrawSync() and VSync(), better reference manual.
Diffstat (limited to 'examples')
-rw-r--r--examples/balls/main.c4
-rw-r--r--examples/gte/main.c4
-rw-r--r--examples/n00bdemo/disp.c4
-rw-r--r--examples/n00bdemo/main.c2
-rw-r--r--examples/rgb24/main.c2
5 files changed, 8 insertions, 8 deletions
diff --git a/examples/balls/main.c b/examples/balls/main.c
index 3e23fb5..ba6a391 100644
--- a/examples/balls/main.c
+++ b/examples/balls/main.c
@@ -203,8 +203,8 @@ int main(int argc, const char* argv[]) {
nextpri += sizeof(DR_TPAGE);
/* Wait for GPU and VSync */
- DrawSync();
- VSync();
+ DrawSync( 0 );
+ VSync( 0 );
/* Since draw.isbg is non-zero this clears the screen */
PutDrawEnv( &draw );
diff --git a/examples/gte/main.c b/examples/gte/main.c
index aa7042d..3fec9d7 100644
--- a/examples/gte/main.c
+++ b/examples/gte/main.c
@@ -288,8 +288,8 @@ void init() {
void display() {
/* Wait for GPU to finish drawing and vertical retrace */
- DrawSync();
- VSync();
+ DrawSync( 0 );
+ VSync( 0 );
/* Swap buffers */
db_active ^= 1;
diff --git a/examples/n00bdemo/disp.c b/examples/n00bdemo/disp.c
index 5a9bb22..d798ee9 100644
--- a/examples/n00bdemo/disp.c
+++ b/examples/n00bdemo/disp.c
@@ -57,8 +57,8 @@ void initDisplay() {
void display() {
- VSync();
- DrawSync();
+ DrawSync(0);
+ VSync(0);
PutDrawEnv( &draw );
DrawOTag( ot[db]+OT_LEN-1 );
diff --git a/examples/n00bdemo/main.c b/examples/n00bdemo/main.c
index 2a5874f..a6eb57e 100644
--- a/examples/n00bdemo/main.c
+++ b/examples/n00bdemo/main.c
@@ -615,7 +615,7 @@ void transition() {
}
- DrawSync();
+ DrawSync(0);
draw.isbg = 1;
diff --git a/examples/rgb24/main.c b/examples/rgb24/main.c
index 178ece2..9f1a647 100644
--- a/examples/rgb24/main.c
+++ b/examples/rgb24/main.c
@@ -43,7 +43,7 @@ int main() {
// Upload image to VRAM
GetTimInfo(tim_image, &tim);
LoadImage(tim.prect, tim.paddr);
- DrawSync();
+ DrawSync(0);
while(1) {
}