Skip to content

NJS_TEXNAME

Shaddatic edited this page Apr 8, 2026 · 1 revision

Definition

typedef struct
{
    void*   filename;
    Uint32  attr;
    Uint32  texaddr;
}
NJS_TEXNAME;

Members

void* filename

 Either the name of the texture or NULL, or a pointer to an NJS_TEXINFO

Uint32 attr

 Texture attribute flags

Flag Value Usage
NJD_TEXATTR_TYPE_FILE 0 Texture is a PVR/GVR file, read filename as string path
NJD_TEXATTR_TYPE_MEMORY BIT_30 Texture PVR is in memory, read filename as PVR header
NJD_TEXATTR_TYPE_SURFACE BIT_27 Texture surface is in memory, read filename as NJS_TEXINFO
NJD_TEXATTR_TYPE_SYSAREA BIT_26 Texture surface is handled by the system
NJD_TEXATTR_PALGLOBALINDEX BIT_24 Texture has palette bank number
NJD_TEXATTR_GLOBALINDEX BIT_23 Texture has GBIX value
NJD_TEXATTR_REGISTRATION BIT_21 Texture loading by system, cannot be freed until flag is unset
NJD_TEXATTR_HEADER BIT_20 Not currently understood, possibly unused
NJD_TEXATTR_TEXCONTINUE BIT_16 Texture is in two parts, with n being palette data and n-1 being texture data

Uint32 texaddr

NJS_TEXMANAGE pointer

Description

A Ninja texture entry.

Usage

Clone this wiki locally