Central citro3d header. Includes all others.
Cubemap texture data.
Definition: texture.h:10
Texture data.
Definition: texture.h:16
Subtexture.
Definition: tex3ds.h:44
u16 height
Sub-texture height (pixels)
Definition: tex3ds.h:46
float left
Left u-coordinate.
Definition: tex3ds.h:47
float right
Right u-coordinate.
Definition: tex3ds.h:49
float top
Top v-coordinate.
Definition: tex3ds.h:48
float bottom
Bottom v-coordinate.
Definition: tex3ds.h:50
u16 width
Sub-texture width (pixels)
Definition: tex3ds.h:45
static void Tex3DS_SubTextureBottomLeft(const Tex3DS_SubTexture *subtex, float *u, float *v)
Get bottom-left texcoords.
Definition: tex3ds.h:138
Tex3DS_Texture Tex3DS_TextureImportFD(int fd, C3D_Tex *tex, C3D_TexCube *texcube, bool vram)
Import Tex3DS texture.
static void Tex3DS_SubTextureBottomRight(const Tex3DS_SubTexture *subtex, float *u, float *v)
Get bottom-right texcoords.
Definition: tex3ds.h:157
Tex3DS_Texture Tex3DS_TextureImportStdio(FILE *fp, C3D_Tex *tex, C3D_TexCube *texcube, bool vram)
Import Tex3DS texture.
const Tex3DS_SubTexture * Tex3DS_GetSubTexture(const Tex3DS_Texture texture, size_t index)
Get subtexture.
struct Tex3DS_SubTexture Tex3DS_SubTexture
Subtexture.
void Tex3DS_TextureFree(Tex3DS_Texture texture)
Free Tex3DS texture.
struct Tex3DS_Texture_s * Tex3DS_Texture
Texture.
Definition: tex3ds.h:54
Tex3DS_Texture Tex3DS_TextureImportCallback(C3D_Tex *tex, C3D_TexCube *texcube, bool vram, decompressCallback callback, void *userdata)
Import Tex3DS texture.
size_t Tex3DS_GetNumSubTextures(const Tex3DS_Texture texture)
Get number of subtextures.
static void Tex3DS_SubTextureTopRight(const Tex3DS_SubTexture *subtex, float *u, float *v)
Get top-right texcoords.
Definition: tex3ds.h:195
static void Tex3DS_SubTextureTopLeft(const Tex3DS_SubTexture *subtex, float *u, float *v)
Get top-left texcoords.
Definition: tex3ds.h:176
static bool Tex3DS_SubTextureRotated(const Tex3DS_SubTexture *subtex)
Check if subtexture is rotated.
Definition: tex3ds.h:127
Tex3DS_Texture Tex3DS_TextureImport(const void *input, size_t insize, C3D_Tex *tex, C3D_TexCube *texcube, bool vram)
Import Tex3DS texture.
Create and manipulate textures.