sfillib
Simple and Fast Image Loading library for the Nintendo 3DS
Functions
sfil.h File Reference

sfillib header More...

#include <3ds.h>
#include <sf2d.h>

Go to the source code of this file.

Functions

sf2d_texture * sfil_load_PNG_file (const char *filename, sf2d_place place)
 Loads a PNG image from the SD card. More...
 
sf2d_texture * sfil_load_PNG_buffer (const void *buffer, sf2d_place place)
 Loads a PNG image from a memory buffer. More...
 
sf2d_texture * sfil_load_JPEG_file (const char *filename, sf2d_place place)
 Loads a JPG/JPEG image from the SD card. More...
 
sf2d_texture * sfil_load_JPEG_buffer (const void *buffer, unsigned long buffer_size, sf2d_place place)
 Loads a JPG/JPEG image from a memory buffer. More...
 
sf2d_texture * sfil_load_BMP_file (const char *filename, sf2d_place place)
 Loads a BMP image from the SD card. More...
 
sf2d_texture * sfil_load_BMP_buffer (const void *buffer, sf2d_place place)
 Loads a BMP image from a memory buffer. More...
 

Detailed Description

sfillib header

Author
Sergi Granell (xerpi)
Date
2 April 2015

Function Documentation

sf2d_texture* sfil_load_BMP_buffer ( const void *  buffer,
sf2d_place  place 
)

Loads a BMP image from a memory buffer.

Parameters
bufferthe pointer of the memory buffer to load the image from
placewhere to allocate the texture
Returns
a pointer to the newly created texture/image
sf2d_texture* sfil_load_BMP_file ( const char *  filename,
sf2d_place  place 
)

Loads a BMP image from the SD card.

Parameters
filenamethe path of the image to load
placewhere to allocate the texture
Returns
a pointer to the newly created texture/image
sf2d_texture* sfil_load_JPEG_buffer ( const void *  buffer,
unsigned long  buffer_size,
sf2d_place  place 
)

Loads a JPG/JPEG image from a memory buffer.

Parameters
bufferthe pointer of the memory buffer to load the image from
buffer_sizethe size of the memory buffer
placewhere to allocate the texture
Returns
a pointer to the newly created texture/image
sf2d_texture* sfil_load_JPEG_file ( const char *  filename,
sf2d_place  place 
)

Loads a JPG/JPEG image from the SD card.

Parameters
filenamethe path of the image to load
placewhere to allocate the texture
Returns
a pointer to the newly created texture/image
sf2d_texture* sfil_load_PNG_buffer ( const void *  buffer,
sf2d_place  place 
)

Loads a PNG image from a memory buffer.

Parameters
bufferthe pointer of the memory buffer to load the image from
placewhere to allocate the texture
Returns
a pointer to the newly created texture/image
sf2d_texture* sfil_load_PNG_file ( const char *  filename,
sf2d_place  place 
)

Loads a PNG image from the SD card.

Parameters
filenamethe path of the image to load
placewhere to allocate the texture
Returns
a pointer to the newly created texture/image