Files
pspsdk/src/gu/sceGuDrawSpline.c
Francisco Javier Trujillo Mata afc560e82e Add missing _sceGuUpdateStallAddr
2025-06-11 19:19:10 +02:00

31 lines
866 B
C

/*
* PSP Software Development Kit - https://github.com/pspdev
* -----------------------------------------------------------------------
* Licensed under the BSD license, see LICENSE in PSPSDK root for details.
*
* Copyright (c) 2005 Jesper Svennevid
*/
#include "guInternal.h"
void sceGuDrawSpline(int vertex_type, int ucount, int vcount, int uedge, int vedge, const void *indices, const void *vertices)
{
if (vertex_type)
sendCommandi(VERTEX_TYPE, vertex_type);
if (indices)
{
sendCommandi(BASE, (((unsigned int)indices) >> 8) & 0xf0000);
sendCommandi(IADDR, (unsigned int)indices);
}
if (vertices)
{
sendCommandi(BASE, (((unsigned int)vertices) >> 8) & 0xf0000);
sendCommandi(VADDR, (unsigned int)vertices);
}
sendCommandi(SPLINE, (vedge << 18) | (uedge << 16) | (vcount << 8) | ucount);
_sceGuUpdateStallAddr();
}