mirror of
https://github.com/pspdev/pspsdk.git
synced 2026-01-02 22:00:23 +00:00
21 lines
540 B
C
21 lines
540 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(194,(maxmips << 16) | (a2 << 8) | (swizzle));
|
|
sendCommandi(195,tpsm);
|
|
|
|
sceGuTexFlush();
|
|
}
|