pub unsafe extern "C" fn Tex3DS_TextureImportFD(
    fd: c_int,
    tex: *mut C3D_Tex,
    texcube: *mut C3D_TexCube,
    vram: bool
) -> Tex3DS_Texture
Expand description

Import Tex3DS texture

Starts reading at the current file descriptor’s offset. The file descriptor’s position is left at the end of the decoded data. On error, the file descriptor’s position is indeterminate.

§Arguments

  • fd (direction in) - Open file descriptor
  • tex (direction out) - citro3d texture
  • texcube (direction out) - citro3d texcube
  • vram (direction in) - Whether to store textures in VRAM

§Returns

Tex3DS texture