Files
pspsdk/src/gu/sceGuTexMode.c
Francisco Javier Trujillo Mata 191880f973 Improving SCE GU readability
2024-08-09 08:25:54 +02:00

21 lines
554 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 sceGuTexMode(int tpsm, int maxmips, int a2, int swizzle)
{
GuContext *context = &gu_contexts[gu_curr_context];
context->texture_mode = tpsm;
sendCommandi(TEX_MODE, (maxmips << 16) | (a2 << 8) | (swizzle));
sendCommandi(TEX_FORMAT, tpsm);
sceGuTexFlush();
}