NightFox’s Lib
Data Fields
NF_TYPE_3DSPRITE_INFO Struct Reference

Struct that holds information about 3D sprites. More...

#include <nf_sprite3d.h>

Data Fields

s16 x
 X coordinate.
 
s16 y
 Y coordinate.
 
s16 z
 Z coordinate.
 
s16 rx
 X axis rotation (-512 << 6 to 512 << 6)
 
s16 ry
 Y axis rotation (-512 << 6 to 512 << 6)
 
s16 rz
 Z axis rotation (-512 << 6 to 512 << 6)
 
bool rot
 True if the sprite is being rotated.
 
u16 sx
 X scale (0 to 64 << 6 to more than 512 << 6)
 
u16 sy
 Y scale (0 to 64 << 6 to more than 512 << 6)
 
bool scale
 True if the sprite is being scaled.
 
s16 width
 Sprite width.
 
s16 height
 Sprite height.
 
bool inuse
 True if the sprite is being used.
 
bool show
 True if the sprite has to be drawn.
 
u32 gfx_tex_format
 Texture format.
 
u32 gfx
 Address of the texture in VRAM.
 
u16 gfxid
 ID of the texture/graphics being used by the sprite.
 
u16 frame
 Current frame.
 
u16 newframe
 Next frame.
 
u16 framesize
 Frame size in bytes.
 
u16 lastframe
 Last frame.
 
u32 gfx_pal_format
 Palette format.
 
u32 pal
 Address of the palette in VRAM.
 
u16 palid
 ID of the palette being used by the sprite.
 
u16 prio
 Sprite priority (lower values are higher priorities)
 
u8 poly_id
 Polygon ID (0 by default, don't use 63)
 
u8 alpha
 Alpha value (0 - 31) (31 by default)
 

Detailed Description

Struct that holds information about 3D sprites.


The documentation for this struct was generated from the following file: