sdk-world v2026.11.05
PS2 SDK - world tier (copyleft-allowed, non-essential packages)
Loading...
Searching...
No Matches
gsTexManager.h
Go to the documentation of this file.
1
5// ____ ___ | / _____ _____
6// | __ | |___/ | |
7// |___| ___| | \ __|__ | gsKit Open Source Project.
8// ----------------------------------------------------------------------
9// Copyright 2017 - Rick "Maximus32" Gaiser <rgaiser@gmail.com>
10// Copyright 2004 - Chris "Neovanglist" Gilbert <Neovanglist@LainOS.org>
11// Licenced under Academic Free License version 2.0
12// Review gsKit README & LICENSE files for further details.
13//
14// gsHires.h - Header for gsHires.c
15//
16
17#ifndef __GSTEXMANAGER_H__
18#define __GSTEXMANAGER_H__
19
20
21#include "gsKit.h"
22
23
24#ifdef __cplusplus
25extern "C" {
26#endif
27
28
29enum ETransferMode {
30 ETM_INLINE = 0,
31 ETM_DIRECT
32};
33
34
36void gsKit_TexManager_init(GSGLOBAL * gsGlobal);
37
39void gsKit_TexManager_setmode(GSGLOBAL * gsGlobal, enum ETransferMode mode);
40
42unsigned int gsKit_TexManager_bind(GSGLOBAL * gsGlobal, GSTEXTURE * tex);
43
45void gsKit_TexManager_invalidate(GSGLOBAL * gsGlobal, GSTEXTURE * tex);
46
49void gsKit_TexManager_free(GSGLOBAL * gsGlobal, GSTEXTURE * tex);
50
54
55
56#ifdef __cplusplus
57};
58#endif
59
60
61#endif /* __GSTEXMANAGER_H__ */
void gsKit_TexManager_init(GSGLOBAL *gsGlobal)
Initialize the texture manager.
unsigned int gsKit_TexManager_bind(GSGLOBAL *gsGlobal, GSTEXTURE *tex)
Bind a texture to VRAM, will automatically transfer the texture.
void gsKit_TexManager_nextFrame(GSGLOBAL *gsGlobal)
void gsKit_TexManager_setmode(GSGLOBAL *gsGlobal, enum ETransferMode mode)
Set the texture transfer mode (inline or direct).
void gsKit_TexManager_invalidate(GSGLOBAL *gsGlobal, GSTEXTURE *tex)
Invalidate a texture, will automatically transfer the texture on next bind call.
void gsKit_TexManager_free(GSGLOBAL *gsGlobal, GSTEXTURE *tex)