Commit Graph

178 Commits

Author SHA1 Message Date
Antonio Niño Díaz
cc40a1daad examples: Add example of using affine sprites 2025-06-17 00:20:04 +01:00
Antonio Niño Díaz
0159fb67bf examples: Rename "affine" example to "bgaffine" for clarity 2025-06-16 23:41:48 +01:00
Antonio Niño Díaz
f834dd6bcb docs: library: Update changelog and version number to 1.1.9 2025-03-26 18:11:06 +00:00
Antonio Niño Díaz
2089aab7f9 build: Build library with debug symbols enabled
They are excluded from the final binaries, so the only effect of this is
to help with debugging by using a bit more of disk space.
2025-03-26 18:10:00 +00:00
Antonio Niño Díaz
45eacf3336 docs: Update changelog 2025-03-24 21:27:22 +00:00
Antonio Niño Díaz
e4fd0ba9b6 examples: Look for path of BlocksDS toolchain in convert.sh
Instead of hardcoding the path, check if the environment variable BLOCKSDS
has been set and use its value instead.
2025-03-24 21:26:32 +00:00
Antonio Niño Díaz
dc1de0cd56 build: docs: Remove all outdated devkitARM makefiles
They don't work. Even if they were updated, the code will require changes,
as well as the examples. For now, it's better to remove the makefiles than
to pretend we support devkitARM.
2025-03-24 20:57:15 +00:00
Antonio Niño Díaz
fc762cb9c3 docs: library: Update changelog and update version 2025-02-28 01:24:15 +00:00
Antonio Niño Díaz
ffb023de49 examples: Fix crash in udptalk example
In BlocksDS, close() only works for files, not for sockets. Instead, it is
needed to use closesocket(), which is provided by DSWifi.
2025-02-17 00:36:05 +00:00
ThorTuwy
e6242613c9 library: Fix 32x64 sprite size definition 2025-02-09 12:48:26 +01:00
ThorTuwy
3002fad8d1 examples: Add example to show all possible 2D sprite sizes 2025-02-09 12:48:10 +01:00
Antonio Niño Díaz
b80d754974 docs: library: Update changelog and update version number to 1.1.7 2025-01-15 18:22:34 +00:00
Antonio Niño Díaz
e4171984aa docs: Add note about devkitARM support 2025-01-15 18:20:59 +00:00
Antonio Niño Díaz
8228b95a85 docs: Mention BlocksDS package in setup instructions 2025-01-14 01:27:08 +00:00
Antonio Niño Díaz
659ea7f5cd build: Use ar from ARM toolchain instead of the host 2024-12-30 02:18:46 +01:00
Antonio Niño Díaz
62df61ca36 docs: library: Update changelog and bump version to 1.1.6 2024-12-23 00:45:34 +01:00
Antonio Niño Díaz
9827b42f35 build: Copy licenses when installing library 2024-12-01 13:44:01 +00:00
Antonio Niño Díaz
b9cbe66d3a library: Update link to nds-hb-menu 2024-11-28 02:50:51 +00:00
BG2CNT
bedb6b1b3a sprite256: Fix doc typo in NF_VramSpritePal 2024-09-27 17:56:21 +01:00
Antonio Niño Díaz
67f129bc1e docs: library: Update changelog and bump version number 2024-09-10 18:23:38 +01:00
Antonio Niño Díaz
0079268fcd examples: template: Update BlocksDS makefiles
They have been updated a few times in the BlocksDS repository, but not
here.
2024-08-13 19:50:29 +01:00
Antonio Niño Díaz
86c952817f docs: Fix link 2024-08-01 18:40:43 +01:00
Antonio Niño Díaz
4abfaca8a2 docs: Update Doxyfile 2024-08-01 18:02:45 +01:00
Antonio Niño Díaz
50437c3839 docs: library: Update changelog and bump version to 1.1.4 2024-07-06 12:44:47 +01:00
Antonio Niño Díaz
d892d6cc8a library: Fix '\n' in NF_WriteText16()
Also, slightly rework the code of NF_WriteText() to match the code sytle
of the rest of the library.
2024-07-06 12:44:24 +01:00
Antonio Niño Díaz
70fe30ef29 library: Fix typo 2024-06-22 11:27:25 +01:00
Antonio Niño Díaz
418791f8f2 library: Update extensions of custom maps and fonts
It's better to use the natural extensions of grit rather than the modified
extensions of NFLib. Update the documentation to reflect that.

Also, remove references to bat scripts.
2024-06-20 01:22:50 +01:00
Antonio Niño Díaz
e2a8e1ad4d examples: Remove duplicated assets conversion script 2024-06-20 01:22:50 +01:00
BG2CNT
c5c64a5cc1
library: fix up "\n" bug in NF_WriteText 2024-06-17 22:56:46 +02:00
BG2CNT
92007d25f8
library: Fix version number 2024-06-17 16:33:22 +01:00
Antonio Niño Díaz
e7ec60cf47 docs: Update changelog 2024-06-08 12:50:52 +01:00
Antonio Niño Díaz
e6567ee10f library: Improve error checking when loading files 2024-06-03 02:20:28 +01:00
Antonio Niño Díaz
71700aab03 examples: Fix tilechange example
Using a different version of grit has changed slightly the output. The code
needs to be updated to use the new tile indices.
2024-06-03 02:00:22 +01:00
Antonio Niño Díaz
72010704c4 examples: Update scripts to use grit from BlocksDS
This version of grit lets the user export binary file without ".bin"
after ".img", ".pal" or ".map", so the conversion scripts can be simplified
a lot.

All the converted files have been regenerated.
2024-06-03 01:08:07 +01:00
Antonio Niño Díaz
194561993a build: docs: example: Set BlocksDS as primary toolchain
The main reason is that BlocksDS doesn't have any bug with NitroFS, and
NitroFS is strictly required to use NFlib. With devkitPro, melonDS won't be
able to run any program made with NFlib due to a bug with NitroFS.
2024-06-03 00:27:39 +01:00
Antonio Niño Díaz
3b106b9f36 docs: Add note about ArchitectDS to the readme 2024-06-01 02:03:16 +01:00
Antonio Niño Díaz
537748791e docs: Update changelog 2024-03-30 11:52:23 +00:00
Antonio Niño Díaz
e9f12e4aee templates: examples: Fix linker invocation for C++
Using g++ to link object files automatically links the STD of C++. It looks
like this library is linked outside of the start/end-group commands with
the other libraries, which causes undefined reference errors when linking
C++ projects that use standard library functions that interface with the
OS, like `fopen()`.

Thanks to @lifehackerhansol for the report and testing the fix.
2024-03-26 18:57:01 +00:00
Antonio Niño Díaz
fb3168e87f docs: Turn changelog into a rst file 2024-01-28 02:50:48 +00:00
Antonio Niño Díaz
30bdb320c8 docs: library: Update version to 1.1.1 2024-01-28 02:45:31 +00:00
Antonio Niño Díaz
06557f1773 library: Support colmaps with extensions .map and .img
Currently it is needed to rename the extension of the collision maps
from .img and .map to .dat and .cmp for NFlib to find the files. This
patch makes it also try to load the original extensions so that the
renaming isn't required.
2023-12-24 03:05:46 +01:00
Antonio Niño Díaz
ba8ba3c3b3 library: Add helper to detect if a file exists 2023-12-24 03:05:33 +01:00
Antonio Niño Díaz
331eee9737 library: Support fonts with extension .img
Currently it is needed to rename the extension of the font to .fnt from
.img for NFlib to find the files. This patch makes it also try to load a
.img file so that the renaming isn't required.
2023-12-24 02:48:44 +01:00
Antonio Niño Díaz
edc0326f1a docs: library: Update changelog and version number to 1.1.0 2023-11-16 02:51:07 +00:00
Antonio Niño Díaz
5c0ae4ad1e build: Fix name of filesystem variables 2023-11-11 14:31:25 +00:00
Antonio Niño Díaz
e5e72057e0 build: Update BlocksDS makefiles 2023-11-11 14:00:13 +00:00
Antonio Niño Díaz
05610e6f8b library: Add missing include 2023-07-15 11:28:54 +01:00
Antonio Niño Díaz
02321a1864 library: Delete 3D sprites when overwriten
When a 3D sprite is created on top of a previously created 3D sprite, it
is needed to delete the previous one. If not, the sprite count will be
incorrect.

This doesn't happen with other subsystems of the library.
2023-06-05 23:51:40 +01:00
Antonio Niño Díaz
0e185267fa library: Improve handling of 3D sprite textures
All state is set when the textures are created, there is no need to
clear it when the textures are deleted.
2023-06-05 23:47:15 +01:00
Antonio Niño Díaz
0ab104caa0 examples: Improve 3D sprite deletion example 2023-06-05 23:45:43 +01:00