More render tests
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
#include "display/displaypsp.h"
|
||||
#include "display/render/renderpsp.h"
|
||||
#include "display/display.h"
|
||||
#include "display/screen.h"
|
||||
#include "assert/assert.h"
|
||||
#include <pspgu.h>
|
||||
#include <pspgum.h>
|
||||
@@ -26,6 +27,8 @@ static uint32_t __attribute__((aligned(64))) displayList[0x10000];
|
||||
|
||||
errorret_t displayPSPInit(void) {
|
||||
DISPLAY.whichBuffer = 0;
|
||||
SCREEN.width = PSP_SCREEN_W;
|
||||
SCREEN.height = PSP_SCREEN_H;
|
||||
|
||||
sceGuInit();
|
||||
sceGuStart(GU_DIRECT, displayList);
|
||||
|
||||
@@ -251,7 +251,7 @@ static void draw3DQuad(const ropquad3d_t *q) {
|
||||
verts[4] = (GuVert3D){u1,v1, abgr, brx,bry,brz};
|
||||
verts[5] = (GuVert3D){u1,v0, abgr, trx,try_,trz};
|
||||
|
||||
sceGuDrawArray(
|
||||
sceGumDrawArray(
|
||||
GU_TRIANGLES,
|
||||
GU_TEXTURE_32BITF | GU_COLOR_8888 | GU_VERTEX_32BITF | GU_TRANSFORM_3D,
|
||||
6, 0, verts
|
||||
|
||||
Reference in New Issue
Block a user