mirror of
https://github.com/pspdev/pspsdk.git
synced 2025-12-25 13:04:59 +00:00
- Fix sceGuBreak - Fix sceGuContinue - Fix sceGuDrawArrayN - Fix sceGuMorphWeight - Remove unnecessary 0xffffff as it is done by sendCommandi - Improve the name of some parameters - Create and use GU_MAX_STATUS - Remove magic numbers in `sceGuMaterial` - Remove magic numbers in `sceGuMorphWeight` - Remove magic numbers in `sceGuSetMatrix` - Remove magic numbers in `sceGuSignal`
21 lines
554 B
C
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 mc, int swizzle)
|
|
{
|
|
GuContext *context = &gu_contexts[gu_curr_context];
|
|
context->texture_mode = tpsm;
|
|
|
|
sendCommandi(TEX_MODE, (maxmips << 16) | (mc << 8) | (swizzle));
|
|
sendCommandi(TEX_FORMAT, tpsm);
|
|
|
|
sceGuTexFlush();
|
|
}
|