Antonio Niño Díaz
39117696aa
build: Uniformize all devkitARM makefiles
...
Add DATA and GRAPHICS directories to all of them so that it's easier to
maintain the files.
2024-12-31 16:20:02 +01:00
Antonio Niño Díaz
459d8f8960
build: Use ar from ARM toolchain instead of the system one
2024-12-30 02:13:53 +01:00
Antonio Niño Díaz
e5ae245674
examples: Fix build of example on devkitARM
2024-12-28 12:44:36 +01:00
Antonio Niño Díaz
8a18dfa586
doxygen: Update version number in Doxyfile
2024-12-23 00:50:19 +01:00
Antonio Niño Díaz
de9ca58286
docs: library: Update changelog and version number
2024-12-23 00:40:45 +01:00
Antonio Niño Díaz
446e27110e
examples: Clarify some comments
2024-12-17 00:38:28 +00:00
Antonio Niño Díaz
09c3712431
build: Install licenses with the rest of the library
2024-12-01 13:42:18 +00:00
Antonio Niño Díaz
a6738a9ab5
docs: library: Update changelog and version number
2024-12-01 12:07:51 +00:00
W3SLAV/gt4ous
afdd56eda4
examples: Fix devkitARM makefile
...
Added missing data directory.
2024-11-30 13:38:07 +00:00
Antonio Niño Díaz
fe6e4a0dcc
examples: Add example of assigning a matrix to a model
2024-10-11 13:33:33 +02:00
Antonio Niño Díaz
4642bdf982
library: Allow users to specify model transformation matrices
...
A manual matrix overrides scale, translation and rotation. It can be
removed to switch back to individual scale, translation and rotation.
2024-10-11 13:33:21 +02:00
Antonio Niño Díaz
26823c024f
docs: library: Update changelog and bump version to 0.14.0
2024-09-10 18:18:30 +01:00
Antonio Niño Díaz
5a4824f461
library: Fix use-after-free in RichText module
...
When this function doesn't fail, it should preserve the buffers that
have just been allocated, as they will be used later.
2024-08-14 00:47:06 +01:00
Antonio Niño Díaz
de16a59722
library: Fixes to RichText module
2024-08-14 00:45:07 +01:00
Antonio Niño Díaz
4115a62800
libdsf: Update to v0.1.3
2024-08-14 00:44:23 +01:00
Antonio Niño Díaz
88d1b489f6
examples: Update BlocksDS Makefiles
...
They were missing several updates made over the last few months.
2024-08-14 00:43:55 +01:00
Antonio Niño Díaz
7d13c2d637
docs: Update Doxyfile
2024-08-01 18:02:17 +01:00
Antonio Niño Díaz
5dda97fe52
Use stdint.h types instead of libnds custom types
2024-07-29 00:09:41 +01:00
Antonio Niño Díaz
c2af70fe15
docs: Update changelog
2024-06-08 12:53:34 +01:00
Antonio Niño Díaz
dce5e99f0f
library: Optimize copy of NE_RGB5 textures to VRAM
...
This is the same optimization made by asie here:
479ca8fb77
2024-06-05 02:28:40 +01:00
Antonio Niño Díaz
1c752174e9
examples: Stop using NE_RGB5 in examples
...
This texture format sets bit 15 manually to 1. This is slow, and it's
better if the developer converts graphics in a way that the bit is already
set to 1.
2024-06-03 18:39:33 +01:00
Antonio Niño Díaz
935f7eb084
examples: Update binaries used by the examples
...
This isn't strictly required, but this way running the global assets.sh
won't cause lots of files to be marked as modified.
2024-06-02 21:55:32 +01:00
Antonio Niño Díaz
0f92fc9da7
build: Use BlocksDS paths for assets conversion scripts
2024-06-02 21:50:06 +01:00
Antonio Niño Díaz
3f4bfbdb25
examples: Remove unused files
2024-06-02 18:06:51 +01:00
Antonio Niño Díaz
b52b704000
build: Rename BlocksDS makefile
2024-06-02 18:06:00 +01:00
Antonio Niño Díaz
902314a2ac
docs: build: Add simplified global build targets
2024-06-02 17:38:55 +01:00
Antonio Niño Díaz
3ba35ba48e
docs: build: library: examples: Set BlocksDS as main toolchain
...
Until now the main makefiles of Nitro Engine have been the ones of
devkitPro, forcing users to go through extra steps to build everything
under BlocksDS.
Now, the easy makefiles are the BlocksDS ones, and additional notes have
been added to warn about the limitations of devkitPro:
- No GRF support in libnds.
- NitroFS doesn't work in melonDS.
2024-06-02 17:38:52 +01:00
Antonio Niño Díaz
381e4071ac
tools: Update md5_2_dsma
...
This fixes a bug where the base animation of the model (its standing pose)
would be exported with the wrong extension.
2024-06-02 12:08:08 +01:00
Antonio Niño Díaz
ccb3739f98
docs: Add note about ArchitectDS to the readme
2024-06-01 02:03:38 +01:00
Antonio Niño Díaz
230a65541e
docs: Remove version from readme
...
This gets out of date easily and it isn't that useful anyway.
2024-04-09 01:53:49 +01:00
Antonio Niño Díaz
7dda3abe54
docs: Update changelog
2024-03-30 11:41:28 +00:00
Antonio Niño Díaz
3f3e266a4f
library: Implement priority setting functions in RichText
...
This reverts commit 48ff37231f
("library: Remove unimplemented
functions from RichText system").
I thought the 3D drawing functions took a "depth" argument, but I was
wrong. I'm re-introducing the functions (and, this time, with an actual
implementation).
2024-03-30 00:34:39 +00:00
Antonio Niño Díaz
5ce71a9b02
library: Add function to calculate rendered text size
...
This simply exposes DSF_StringRenderDryRun() in a way that can be easily
used with Nitro Engine.
2024-03-29 22:21:22 +00:00
Antonio Niño Díaz
12b7389d1f
examples: Remove asset from example that doesn't use it
2024-03-29 19:39:12 +00:00
Antonio Niño Díaz
48ff37231f
library: Remove unimplemented functions from RichText system
...
They were never meant to be there, they are a copy-paste error from taking
the code of the original text system to create the original files of the
rich text system.
2024-03-29 14:56:55 +00:00
William
ff734036fc
fix: NE_RichTextMetadataLoadFAT
returning error code on success
2024-03-28 14:19:30 +00:00
Antonio Niño Díaz
d7ecc5cc4d
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:54:35 +00:00
Antonio Niño Díaz
5ea29c4f81
docs: Update sprites screenshot in readme
2024-03-24 16:52:19 +00:00
Antonio Niño Díaz
b40f67c593
examples: Improve sprites example
2024-03-24 16:50:51 +00:00
Antonio Niño Díaz
8cb10264bb
library: Support setting texture coordinates in sprites
...
This allows you to use one single texture for multiple images, and to
specify the coordinates that a sprite needs to use so that you don't need
to keep track of them.
2024-03-24 16:14:21 +00:00
Antonio Niño Díaz
cf1a3c48e2
library: Fix build on devkitARM
2024-03-20 23:42:15 +00:00
Antonio Niño Díaz
b0d9151455
library: Build some functions as ARM to increase performance
...
Using `mulf32()` while compiling functions to Thumb makes the compiler
add calls to `__aeabi_lmul()` once per multiplication. This routine is
quite slow, so the cost of any function that uses `mulf32()` a lot is
quite high.
Switching math-heavy functions to ARM increases performance and reduces
code size.
2024-03-16 03:04:02 +01:00
Antonio Niño Díaz
82171bbf69
chore: Simplify copyright years in notices
...
Instead of listing every individual year, keep only the first and last
years.
2024-03-09 01:42:29 +00:00
Antonio Niño Díaz
47c8061168
examples: test: Refactor to avoid global variables
...
Using global variables is generally discouraged. Now that NE_ProcessArg()
and NE_ProcessDualArg() exist, it's better to show how to use them instead
of NE_Process() and NE_ProcessDual() while using global variables.
Also, switch from "int main(void)" to "int main(int argc, char *argv[])".
2024-03-08 18:44:02 +00:00
Antonio Niño Díaz
9f81541075
examples: Remove global variables from some examples
2024-03-08 02:43:18 +00:00
Antonio Niño Díaz
a06617a93f
examples: Cleanup variables of 2D quads example
2024-03-08 02:43:18 +00:00
Antonio Niño Díaz
fc73687b79
docs: Update list of future work items
2024-03-07 02:41:06 +00:00
Antonio Niño Díaz
052a15b974
example: Stop using deprecated NE_ShadingEnabled()
2024-03-07 01:49:25 +00:00
Antonio Niño Díaz
bf63ddea8a
examples: Remove unneeded calls to NE_ShadowEnable()
...
This function wasn't required for regular shading, but for toon shading.
2024-03-07 01:49:07 +00:00
Antonio Niño Díaz
636a7d73c3
library: Deprecate NE_ShadingEnable()
...
This has been replaced by NE_SetupToonShadingTables(), which is a more
sensible name.
A define has been added for compatibility.
2024-03-07 01:48:34 +00:00