mirror of
https://github.com/knightfox75/nds_nflib.git
synced 2025-06-19 01:05:34 -04:00
52 lines
1.1 KiB
C
52 lines
1.1 KiB
C
// SPDX-License-Identifier: MIT
|
|
//
|
|
// Copyright (c) 2009-2014 Cesar Rincon "NightFox"
|
|
//
|
|
// NightFox LIB - Include de funciones de carga de archivos multimedia
|
|
// http://www.nightfoxandco.com/
|
|
// Version 20140413
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef __NF_MEDIA_H__
|
|
#define __NF_MEDIA_H__
|
|
|
|
#include <nds.h>
|
|
|
|
/// @file nf_media.h
|
|
/// @brief Functions to load files of common media formats.
|
|
|
|
/// @defgroup nf_media Functions to load files of common media formats.
|
|
///
|
|
/// This module contains a function to load BMP files.
|
|
///
|
|
/// @{
|
|
|
|
/// Load a BMP image into a 16-bit background slot.
|
|
///
|
|
/// It supports 8, 16 and 24 bits BMP images. To load and show the image, you
|
|
/// must initialize 16 bits mode, the backbuffers and to call
|
|
/// NF_Draw16bitsImage() to send the image from the RAM slot to the backbuffer.
|
|
///
|
|
/// All pixels drawn out of bounds are ignored.
|
|
///
|
|
/// Example:
|
|
/// ```
|
|
/// // Load "lostend.bmp" to 16-bit slot 0
|
|
/// NF_LoadBMP("bmp/lostend", 0);
|
|
/// ```
|
|
///
|
|
/// @param file File path.
|
|
/// @param slot Slot number (0 - 15).
|
|
void NF_LoadBMP(const char* file, u8 slot);
|
|
|
|
/// @}
|
|
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|