vitasdk
Documentation of the vitasdk

Detailed Description

Exports for User.


Using this library in your project

Include the header file in your project:

#include <psp2/gxt.h>


Link the library to the executable:

SceGxm_stub



Functions

 VITASDK_BUILD_ASSERT_EQ (0x20, SceGxtHeader)
 
 VITASDK_BUILD_ASSERT_EQ (0x20, SceGxtTextureInfo)
 

Data Structure Documentation

◆ SceGxtHeader

struct SceGxtHeader

Header for a GXT file.

Data Fields
uint32_t tag GXT Identifier.
uint32_t version Version number.
uint32_t numTextures Number of textures.
uint32_t dataOffset Offset to the texture data.
uint32_t dataSize Total size of the texture data.
uint32_t numP4Palettes Number of 16 entry palettes.
uint32_t numP8Palettes Number of 256 entry palettes.
uint32_t pad Padding.

◆ SceGxtTextureInfo

struct SceGxtTextureInfo

This structure contains information about each texture in the GXT file.

Data Fields
uint32_t dataOffset Offset to the texture data.
uint32_t dataSize Size of the texture data.
uint32_t paletteIndex Index of the palette.
uint32_t flags Texture flags.
uint32_t type Texture type.
uint32_t format Texture format.
uint16_t width Texture width.
uint16_t height Texture height.
uint8_t mipCount Number of mipmaps.
uint8_t pad[3] Padding.

Enumeration Type Documentation

◆ SceGxtErrorCode

GXT error codes.

Enumerator
SCE_GXT_ERROR_INVALID_VALUE 
SCE_GXT_ERROR_INVALID_POINTER 
SCE_GXT_ERROR_INVALID_ALIGNMENT 

Function Documentation

◆ VITASDK_BUILD_ASSERT_EQ() [1/2]

VITASDK_BUILD_ASSERT_EQ ( 0x20  ,
SceGxtHeader   
)

◆ VITASDK_BUILD_ASSERT_EQ() [2/2]

VITASDK_BUILD_ASSERT_EQ ( 0x20  ,
SceGxtTextureInfo   
)