29 Commits

Author SHA1 Message Date
Myles Busig
9046ccc8a1 Enable link time optimization 2024-03-20 22:11:03 -06:00
Myles Busig
274371f4e3 Change CMakeLists.txt to use globs and pkg-config
NOTE: libtonc does not have a pkg-config file packaged in devkitpro. You
must write one and place it in
$DEVKITPRO/portlibs/gba/lib/pkgconfig/libtonc.pc
2024-03-11 02:17:58 -06:00
Myles Busig
67f16364ec Change debug::puts to use raw char* and copy
In order to handle the self-assign case, string::operator= moves the
string, which may copy the string in reverse. The MGBA string register
does not allow this I believe. In order to avoid this, it now uses a raw
character buffer and is copied using string_view::copy.
string_view::copy will always copy the string forward.
2024-03-07 15:58:51 -07:00
Myles Busig
1c1e156d55 Update MTL submodule 2024-03-07 15:58:12 -07:00
Myles Busig
da4816dcc3 Change debug::puts to use string_view instead of const char* 2024-03-07 14:27:44 -07:00
Myles Busig
e8fbb60691 Update MTL submodule 2024-03-07 14:27:19 -07:00
Myles Busig
3b6c0ae2e4 Update MTL submodule 2024-03-06 23:51:12 -07:00
Myles Busig
85aa1894e4 Change debug registers to use references instead of pointers 2024-03-04 21:18:45 -07:00
Myles Busig
6a538fb5e5 Change debug::string to use MTL string instead of C strings 2024-03-04 21:17:16 -07:00
Myles Busig
93f5d32fb6 Fix missing pragma once in debug.hpp 2024-03-04 21:06:32 -07:00
Myles Busig
5019cb4d89 Add debug CXX flags, disable exceptions 2024-03-04 21:05:41 -07:00
Myles Busig
2980296fd7 Build MTL and ETL in project, update MTL submodule 2024-03-04 21:02:07 -07:00
Myles Busig
aecad06870 Add MTL submodule 2024-03-04 19:51:56 -07:00
Myles Busig
432b707871 Add ETL submodule 2024-03-04 19:50:37 -07:00
Myles Busig
9efe4e8bc3 Test MGBA logging 2024-02-29 16:59:32 -07:00
Myles Busig
83fafbab45 Add MGBA debug logging to build 2024-02-29 16:59:07 -07:00
Myles Busig
489e942bd2 Add MGBA debug logging w/ puts
MGBA debugging must be enabled using debug::open and disabled using
debug::close. This commit adds logging through debug::puts. TODO: add
logging using debug::printf and debug::write.
2024-02-29 16:57:04 -07:00
Myles Busig
f75e734c8b Display bitmap image instead of gradient colors 2024-02-22 18:22:25 -07:00
Myles Busig
2509e6e027 Change test image to store data as uint16 2024-02-22 18:16:58 -07:00
Myles Busig
16dd29ec40 Add graphics bin to include directories and fix include scope. 2024-02-22 17:52:00 -07:00
Myles Busig
20b6afc80c Add test image to CMake build 2024-02-22 17:45:47 -07:00
Myles Busig
d7174e1988 Add test image grit file and grit output 2024-02-22 17:43:03 -07:00
Myles Busig
54d416ef0f Add test image 2024-02-22 17:06:07 -07:00
Myles Busig
619badb068 Display color gradient from black->RGB on separate lines 2024-02-22 16:03:09 -07:00
Myles Busig
7489fe4849 Set display mode and busy-loop VSync 2024-02-22 12:58:52 -07:00
Myles Busig
a2c3c6b92a Add main.cpp 2024-02-22 12:25:55 -07:00
Myles Busig
e1b6c6ab7b Add CMakeLists.txt 2024-02-22 11:55:55 -07:00
Myles Busig
e6d5923060 Add GBA files and build artifacts to .gitignore 2024-02-22 11:47:28 -07:00
Myles Busig
ce768d16fd Initial commit 2024-02-22 11:49:38 -07:00