Commit Graph

897 Commits

Author SHA1 Message Date
e2d5090f44 [nostalgia/core/userland] Fix namespace of forward declared Palette 2022-12-18 21:13:04 -06:00
d8153e71e1 [nostalgia] Fix for Windows 2022-12-18 21:04:44 -06:00
ad412177ab [nostalgia/studio] MSVC fixes for NFDE file dialog 2022-12-18 21:04:44 -06:00
31e9af032a [nostalgia] Replace most new calls with ox::make 2022-12-17 22:30:49 -06:00
716b3d6022 [nostalgia/core/studio] Cleanup 2022-12-17 14:05:35 -06:00
9b36381b00 [nostalgia/studio] Fix config dir creation not create duplicate dirs 2022-12-17 14:00:39 -06:00
0d040ad752 [nostalgia/tools/pack] Add PtrSize to GbaPlatSpec 2022-12-17 13:41:59 -06:00
44f45e64e9 [nostalgia/studio] Add ClawViewer for unknown types 2022-12-15 01:36:55 -06:00
79d255b63f [nostalgia/core/userland] Make palettes swappable in GL renderer 2022-12-11 08:38:38 -06:00
8e956c68b3 [nostalgia/core/glfw] Increase uninterruptedRefreshes from user input to 25 2022-12-03 20:29:09 -06:00
86cbf66699 [nostalgia/tools/pack] Wrap preload operations with start/end allocs 2022-12-03 01:54:53 -06:00
ab8b1e4925 [nostalgia/core] Give preload version of AssetRef a default constructor 2022-12-03 01:53:45 -06:00
b39a125264 [nostalgia/core] Handle error in getting preload addr 2022-12-03 01:52:39 -06:00
640ea95c24 [nostalgia/core] Remove SignalHandler as parent to GBA version of AssetRef 2022-12-01 02:02:51 -06:00
7322056df2 [nostalgia/tools/pack] Use ox::preload function instead of bare model function in preloading 2022-12-01 02:02:28 -06:00
d68d8531e9 [nostalgia/tools/pack] Fix error message for missing rom-bin path 2022-12-01 02:01:07 -06:00
0e0f43895a [nostalgia/tools/pack] Improve output and fix a sign conversion 2022-12-01 00:15:37 -06:00
8329bf9217 [nostalgia/core/gba] Remove unnecessary include 2022-12-01 00:14:20 -06:00
d82ec27296 [nostalgia/tools/pack] Update for BufferWriter::buff() change 2022-11-30 20:51:39 -06:00
3abcd0af8f [nostalgia/tools/pack] Add GbaPlatSpec 2022-11-30 20:47:02 -06:00
090fe28b44 [nostalgia] Integrate Ox Preloader 2022-11-30 01:51:45 -06:00
52efae287b [nostalgia/core] Cleanup CMakeLists.txt 2022-11-10 21:55:37 -06:00
64ac8f7dbf [nostalgia/core/glfw] Add ImGui theme 2022-10-29 20:09:48 -05:00
a049861f3a [nostalgia/core] Fix clang-tidy warnings 2022-09-24 23:54:17 -05:00
ea55a33b60 [nostalgia/core] Fix possible div by zero in idxToPt 2022-09-24 20:38:49 -05:00
fb5934975d [nostalgia/core] Cleanup formatting error in typeconv.hpp 2022-08-03 00:40:13 -05:00
e822bf2ccb [nostalgia/core] Add missing nodiscards to clipboard types 2022-08-03 00:39:40 -05:00
d9f0415074 [nostalgia/core/gba] Make GBA CBB data static 2022-08-03 00:38:54 -05:00
ef04e03d11 [nostalgia/core/userland] Fix CLion warnnings 2022-08-03 00:38:01 -05:00
41b1c6eb25 [nostalgia/player] Make sprites in demo scene auto-scroll slower 2022-08-03 00:37:18 -05:00
6a02161b37 [nostalgia/player] Make sprites in demo scene auto-scroll 2022-08-02 01:32:46 -05:00
3b19909eb1 [nostalgia/core/glfw] Set window title to app name 2022-08-02 01:31:18 -05:00
35ae54b336 [nostalgia/core] Add ability to set a BG's CBB 2022-08-02 01:30:53 -05:00
379c939208 [nostalgia/core/studio] Move Select tool to first tool in TileSheetEditor toolbox 2022-07-30 21:13:41 -05:00
ed025bfa31 [nostalgia/studio] Make Project update file index when a file is added 2022-07-30 18:26:20 -05:00
29fd9b8c4f [nostalgia/core] Make invalid palette lookups return 0 instead of garbage memory 2022-07-30 14:47:44 -05:00
c8dc14dd8e [nostalgia/core/studio] Add key binding to for switching tools in TileSheetEditor 2022-07-30 14:45:17 -05:00
275e9dbff1 [nostalgia] Add NewMenu for creating new files 2022-07-30 14:28:50 -05:00
1a8f2ce69d [nostalgia/core/userland] Cleanup 2022-07-21 02:47:44 -05:00
fd89a9abb0 [nostalgia/core/glfw] Cleanup and add Escape button 2022-07-21 02:16:26 -05:00
d2d9aae9d5 [nostalgia/sample_project] Update integer type descriptor names 2022-07-21 02:14:40 -05:00
db3e9c5d93 [nostalgia/studio] Fix config path for Windows 2022-07-12 02:07:43 -05:00
6908199428 [nostalgia/studio] Change configio functions to take auto string type 2022-07-10 15:52:36 -05:00
fdc57ce7b8 [nostalgia/core/studio] Fix cast of 32 bit int to pointer 2022-07-10 15:48:14 -05:00
c80a8838a4 [nostalgia] Setup Glad as GL loader 2022-07-10 02:46:26 -05:00
99bdf30c52 [nostalgia] Fix MSVC build 2022-07-09 21:42:26 -05:00
10deddfd07 [nostalgia] Fixes for MSVC 2022-07-09 21:39:19 -05:00
e8a3f5ea9a [nostalgia/tools/pack] Implement the long stubbed out pathToInode replacement 2022-07-09 03:07:04 -05:00
6653715795 [nostalgia/core/gba] Fix GBA for updated model system 2022-07-04 12:40:22 -05:00
8d01882ed5 [nostalgia/core] Update TypeStore::loadDescriptor to take type version 2022-07-04 12:36:58 -05:00
53f03eac22 [nostalgia/core/gba] Use actual types for type info for GBA target models 2022-05-29 22:23:44 -05:00
3834de3318 [nostalgia/studio] Use Nostalgia TypeStore for Project 2022-05-29 01:29:33 -05:00
285a0f9b24 [nostalgia/core] Add custom TypeStore with type desc loader 2022-05-29 01:27:35 -05:00
ab1dc83630 [nostalgia/studio] Make studio only pass key input to Editors if it does not consume it itself 2022-05-29 01:24:48 -05:00
717bbd2e0f [nostalgia/studio] Update for new model type store system 2022-05-28 20:00:28 -05:00
bfb441594f [nostalgia/core] Update for Ox HashMap::at return type change 2022-05-28 03:22:05 -05:00
0adfaa7901 [nostalgia/studio] Add export option to tilesheet editor 2022-05-25 21:22:29 -05:00
2448bdcc82 [nostalgia/studio] Add null check for key input to active editor 2022-05-25 21:19:59 -05:00
0e8d2d7640 [nostalgia/studio] Switch file dialog to NFDE and add save file dialog 2022-05-25 21:19:27 -05:00
a9d5272176 [nostalgia/geo] GCC 12 fix 2022-05-25 21:18:41 -05:00
9ad5771767 [nostalgia/core] Make type conv system access type info correctly 2022-05-25 01:58:11 -05:00
a8244b9313 [nostalgia/core/gba] Fix GCC 12 breaks 2022-05-25 01:15:07 -05:00
fd0d15b28e [nostalgia/studio] Fix memory leak of ProjectExplorer not getting freed 2022-05-25 01:04:43 -05:00
74effd3611 [nostalgia/core/studio] Add insert/delete tile actions and make double click on subsheet open SubsheetEditor 2022-05-22 16:15:58 -05:00
4a921cf65f [nostalgia] Fix compiler warnings 2022-05-21 20:08:45 -05:00
1529c82bec [nostalgia/core] Make AssetContainer non-copyable and non-movable 2022-05-21 19:36:44 -05:00
062fa07f4d [nostalgia/core/studio] Remove unimplemented functions from TileSheetEditorView 2022-05-21 03:22:52 -05:00
f6ebb5b29f [nostalgia/core] Fix unnecessary ox::String instantiations 2022-05-21 03:09:04 -05:00
7a942ac83c [nostalgia/core] Remove unnecessary serialization and deserialization from type conversion 2022-05-20 02:02:14 -05:00
6854e658a0 [nostalgia/studio] Fix TileSheetEditor to switch to appropriate subsheet on undo/redo 2022-05-18 21:15:11 -05:00
5c5f8e748a [nostalgia/core/studio] Add key shortcuts for changing the selected color 2022-05-17 21:24:20 -05:00
1edd72dc7d [nostalgia/studio] Add BaseEditor::keyStateChanged 2022-05-17 21:23:49 -05:00
eac471b21b [nostalgia] Add constructors needed by construct_at 2022-04-10 03:04:24 -05:00
edf4571ff7 [nostalgia] Split studio::Editor into Editor and BaseEditor 2022-04-09 16:20:39 -05:00
56964e197a [nostalgia] Split PaletteEditor into Imgui and general files, other cleanup 2022-04-08 01:05:32 -05:00
632ade60b9 [nostalgia/studio] Add active editor tab to config 2022-04-04 01:11:01 -05:00
f0cbcbbddf [nostalgia/core/studio] Fix unnecessary copies 2022-04-04 01:10:16 -05:00
a40c768872 [nostalgia/core/studio] Fix subsheet editor height 2022-04-03 02:20:16 -05:00
60d67218db [nostalgia/studio] Make opening a file switch to its tab 2022-04-03 00:34:37 -05:00
83ad1623d3 [nostalgia/core/studio] Add PaletteEditorImGui::itemDisplayName() 2022-04-03 00:30:53 -05:00
3fd25782c0 [nostalgia/core/studio] Add unsaved changes indicator to editor tabs 2022-04-02 21:13:08 -05:00
71e0f181ea [nostalgia] Add PaletteEditor 2022-04-02 16:47:48 -05:00
99987ee423 [nostalgia/geo] Add Bounds::setPt2 2022-04-01 20:54:45 -05:00
dd12857ba8 [nostalgia/studio] Add UndoCommand::mergeWith 2022-03-31 01:38:59 -05:00
10d2f2c064 [nostalgia/core/studio] Fix TileSheetEditor cut to use undo stack 2022-03-27 03:19:20 -05:00
041e571626 [nostalgia/core/studio] Fix select not to go beyond the appropriate idx 2022-03-27 02:35:35 -05:00
053d35b31c [nostalgia] Make core::shutdown return void and add GBA implementation 2022-03-25 01:28:26 -05:00
6eb4070d97 [nostalgia/core/studio] Add palette picker combo box 2022-03-24 20:54:17 -05:00
ef3a28846c [nostalgia/studio] Add ability to index and list files of different types in Project 2022-03-24 20:53:29 -05:00
27b7b11146 [nostalgia/studio] Remove toolbar 2022-03-24 20:53:04 -05:00
6e742e5d45 [nostalgia/core/glfw] Cleanup key input system 2022-03-24 01:00:45 -05:00
e1c82117f9 [nostalgia/core] Fix GBA input 2022-03-23 03:21:34 -05:00
b214a7612a [nostalgia/core/glfw] Fix key down initial state 2022-03-23 03:20:38 -05:00
033ffc2e15 [nostalgia/core/gba] Fix GBA input 2022-03-23 03:19:55 -05:00
d76d525054 [nostalgia/studio] Add keyboard shortcuts 2022-03-20 02:08:54 -05:00
ea318bb6c8 [nostalgia/core] Add key event handler 2022-03-20 01:56:48 -05:00
2223fe7863 [nostalgia/core] Rename event handler to update handler 2022-03-19 20:11:53 -05:00
8e660f6b15 [nostalgia/geo] Make geo an object library 2022-03-19 19:40:35 -05:00
3041ce55f6 [nostalgia/studio] Fix Studio lib install location 2022-03-19 19:34:04 -05:00
96ca0cb686 [nostalgia/studio] Add finished signal to Task 2022-03-19 19:32:30 -05:00
2881a28dc8 [nostalgia/core/studio] Fix click bounds checking for TileSheet editor 2022-03-17 04:15:54 -05:00
2a552326e9 [nostalgia/glutils] Fix glutils install 2022-03-17 04:14:01 -05:00
a6f9dfaa2e [nostalgia/studio] Set constant refrest to false 2022-03-17 04:06:30 -05:00
38cb3fc962 [nostalgia] Make default constant refresh setting false 2022-03-17 03:42:39 -05:00
428a47bab8 [nostalgia/core/studio] Add sizing policy to palette table 2022-03-12 11:41:30 -06:00
b4238279ab [nostalgia/core] Switch away from Conan ImGui 2022-03-12 02:55:35 -06:00
919e637822 [nostalgia/studio] Switch awayy from removed ImGui function 2022-03-12 02:38:35 -06:00
9f02c544d4 [nostalgia/studio] Remove imgui as direct dependency 2022-03-12 02:38:06 -06:00
c152bb9a66 [nostalgia] Switch from Conan to bundled dep glfw 2022-03-11 22:16:59 -06:00
6885aca0e8 [nostalgia] Cleanup 2022-03-11 22:01:31 -06:00
7df978605f [nostalgia/core] Add Fill command to tilesheet editor and make ClipboardObject more efficient 2022-03-11 20:41:36 -06:00
ae80d22769 [nostalgia/core/studio] Fix TileSheet Editor paste bounds checking 2022-03-11 02:11:58 -06:00
415c2574bb [nostalgia/core/studio] Add copy/cut/paste support to TileSheet Editor 2022-03-10 20:42:21 -06:00
a6983ce53b [nostalgia/core] Add object clipboard in addition to text clipboard 2022-03-10 20:41:22 -06:00
92651973ce [nostalgia/studio] Hook up Copy/Cut/Paste commands 2022-03-10 20:40:51 -06:00
4dd1d4331b [nostalgia/geo] Fix Point + and * operators to return the computed result 2022-03-10 19:43:28 -06:00
b502b8cc30 [nostalgia/core/studio] Add ability to select pixels for copy/paste 2022-03-10 02:39:22 -06:00
3486734b50 [nostalgia/geo] Add ability to init Bounds from two Points 2022-03-10 02:38:25 -06:00
0b6a36bedc [nostalgia/studio] Make opening a new project close all currently open files 2022-03-06 14:57:19 -06:00
e4f3ec52d0 [nostalgia/core/studio] Add initialization for SubSheetEditor show var 2022-03-06 01:23:01 -06:00
e0b2f37925 [nostalgia/core/studio] Adjust size of SubSheet Editor in cases without size input 2022-03-05 18:29:50 -06:00
94653cb9af [nostalgia/core] Fix TileSheet::SubSheet::setPixelCount 2022-03-05 18:27:45 -06:00
b225d976f5 [nostalgia/core/studio] Cleanup 2022-03-05 17:49:12 -06:00
f40c912365 [nostalgia/core] Cleanup reading of SubSheet::pixels 2022-03-05 16:00:32 -06:00
20a61de9fd [nostalgia/core/studio] Fix subsheet editor to allocate correct number of pixels 2022-03-05 15:51:39 -06:00
2f7c62f2ef [nostalgia/core/studio] Add SubSheet editor 2022-03-05 11:40:54 -06:00
921cb97a14 [nostalgia/core] Make clicks trigger 10 refreshes 2022-03-05 11:40:05 -06:00
4966aaffe4 [nostalgia/studio] Make About modal and ProjectExplorer hide-able 2022-03-05 11:39:13 -06:00
191298a4ca [nostalgia/core/studio] Change some lambdas to capture by reference 2022-03-03 19:24:55 -06:00
ebb7d54403 [nostalgia/core] Fix TileSheet::validateSubSheetIdx 2022-03-03 19:24:24 -06:00
e8a046c2dc [nostalgia] Add basic support for subsheets 2022-02-26 22:48:18 -06:00
9762a38a44 [nostalgia/core] Make readObj move output object instead of copy 2022-02-26 10:12:25 -06:00
294c4547d0 [nostalgia/core] Remove TileSheet::SubSheet::size 2022-02-23 22:12:41 -06:00
778cb78f31 [nostalgia/studio] Add creation of StudioContext 2022-02-21 20:11:48 -06:00
4843e28b9a [nostalgia/studio] Add StudioContext 2022-02-21 20:05:51 -06:00
9bd10bac78 [nostalgia/geo] Cleanup geo package 2022-02-21 20:02:27 -06:00
9b1275e704 [nostalgia/core/studio] Add support for TileSheetEditor unsaved changes status 2022-02-21 20:00:21 -06:00
bc9b896d3d [nostalgia/studio] Add missing Signal to UndoStack 2022-02-21 19:58:03 -06:00
917d88f997 [nostalgia/core/studio] Make TileSheetEditorModel write type descriptor 2022-02-21 19:55:24 -06:00
5c28ebe6d7 [nostalgia/studio] Fix UndoStack to trigger signals on initial command push 2022-02-21 19:43:10 -06:00
d14bab7abd [nostalgia/studio] Add missing Editor header to studioapp.hpp 2022-02-21 02:26:09 -06:00
3dd60965c4 [nostalgia] Replace delete with safeDelete 2022-02-21 02:21:03 -06:00
05224e3fb5 [nostalgia/studio] Remove unnecessary c_str conversion 2022-02-20 20:07:33 -06:00
b517cf6858 [nostalgia/core/studio] Cleanup TileSheetEditorModel update tracking 2022-02-19 03:06:18 -06:00
db2a225855 [nostalgia/studio] Add redo and undo triggered signals to UndoStack 2022-02-19 03:05:45 -06:00
56ec063658 [nostalgia/studio] Get save working 2022-02-19 01:45:37 -06:00
713f5c4bce [nostalgia/core] Add ability to chain converters 2022-02-18 00:54:10 -06:00
00852fad5a [nostalgia/tools/pack] Add conversion from TileSheet to CompactTileSheet 2022-02-17 21:31:25 -06:00
b87c2f0c50 [nostalgia/core] Expand conversion system to allow raw-to-raw 2022-02-17 21:29:46 -06:00
fba203a1e7 [nostalgia/core] Add NostalgiaCore-Headless 2022-02-17 21:26:56 -06:00
3f446a64c5 [nostalgia/geo] Fix Vec2 test 2022-02-17 06:33:50 -06:00
77b270e084 [nostalgia/core] Change TileSheet version conv pixels copy to a move 2022-02-17 04:31:15 -06:00
7ac7909510 [nostalgia/core] Upgrade TileSheet format to support subsheets and add conversion system 2022-02-17 04:27:23 -06:00
3c44c86e91 [nostalgia/studio] Replace Editor opening error logging with oxErrorf 2022-02-17 04:27:04 -06:00
22216c66d6 [nostalgia/core/studio] Add color preview to color picker in TileSheetEditor 2022-02-16 20:52:34 -06:00
462375aa5d [nostalgia/core] Rename NostalgiaGraphic and NostalgiaPalette to TileSheet and Palette 2022-02-16 20:25:00 -06:00
75f0b3a606 [nostalgia/core/studio] Cleanup 2022-02-16 20:20:48 -06:00
5eea7abc4d [nostalgia/core] Fix NostalgiaGraphic::getPixel4Bpp 2022-02-16 20:18:17 -06:00
302dd23a36 [nostalgia/core/studio] Get Undo/Redo working 2022-02-16 20:17:33 -06:00
c92ecdf499 [nostalgia/studio] Get Undo/Redo working 2022-02-16 20:16:49 -06:00
72ce8ea4d9 [nostalgia/geo] Simplify Vec2 2022-02-16 20:16:16 -06:00
b7f726f4fd [nostalgia/core] Get TileSheetEditor's palette view working 2022-02-16 02:34:43 -06:00
c1a374ca04 [nostalgia/core/glfw] Add extra draw before waiting for event to handle possible user input 2022-02-16 02:32:27 -06:00
bb0592ade8 [nostalgia/core] Fix NostalgiaGraphic::setPixel 2022-02-16 02:11:27 -06:00
99cc853b94 [nostalgia/core/studio] Fix issue with pixel idx lookup in draw command 2022-02-14 01:38:56 -06:00
60e259ca34 [nostalgia/geo] Add comparison operators to Vec 2022-02-14 01:37:00 -06:00
0e041a666a [nostalgia/core/studio] Fix DrawCommand not to allow appending of duplicates 2022-02-13 23:49:44 -06:00
95f3c5b62a [nostalgia/core/studio] Cleanup to ensure ongoing draw command ending 2022-02-13 23:34:57 -06:00
d792e4c515 [nostalgia/core/studio] Put TileSheetEditor draw command in UndoCommand 2022-02-13 23:23:59 -06:00
4f69f027ef [nostalgia/studio] Make UndoCommand::redo execute as soon as pushed 2022-02-13 23:22:48 -06:00
3785d192f9 [nostalgia/geo] Add model to Vec2 2022-02-13 14:22:11 -06:00
71f70cb2e6 [nostalgia/world] Update models 2022-02-13 13:39:10 -06:00
f112f060c9 [nostalgia/geo] Rename library artifact to NostalgiaGeo 2022-02-13 12:07:18 -06:00
90723b718b [nostalgia/geo] Add iterators to Vec2 2022-02-13 12:04:58 -06:00
8774f1c062 [nostalgia/core/studio] Break out TileSheetEditor application logic 2022-02-13 11:17:57 -06:00
320df614a9 [nostalgia] Rename common package to geo 2022-02-13 04:03:10 -06:00
0aa71f1dbb [nostalgia/core/studio] Decouple core TileSheetEditor from ImGui 2022-02-13 03:34:12 -06:00
7370b23c9d [nostalgia/core/studio] Cleanup and decouple main TileSheetEditor drawing from ImGui 2022-02-13 02:25:14 -06:00
779dd1fd05 [nostalgia/core] Cleanup 2022-02-13 02:24:01 -06:00
41cebff5fc [nostalgia/core] Add Context buttonDown function 2022-02-13 02:23:00 -06:00
0e7a090d28 [nostalgia/common] Add Vec2 type 2022-02-13 02:18:53 -06:00
142c78db0e [nostalgia/core] Add missing change for constant refresh option 2022-02-12 16:06:58 -06:00
34221f086c [nostalgia] Update for compatibility with Ox changes 2022-02-12 14:39:04 -06:00
8847b2b2ed [nostalgia/core/glfw] Put wait for event in main loop to prevent processor waste 2022-02-10 21:31:00 -06:00
f9d3521fe7 [nostalgia/core] Change how gba_timer_t is configured 2022-02-10 21:28:54 -06:00
0841b56399 [nostalgia/core/gba] Fix code formatting error 2022-02-10 02:20:00 -06:00
2390ae9f7d [nostalgia/glutils] Make framebuffer default size 1x1 2022-02-10 02:17:23 -06:00
a64aa8b586 [nostalgia/studo] Misc cleanup 2022-02-10 02:04:38 -06:00
96e2510e64 [nostalgia/core/studio] Add scrolling support to TileSheetEditor 2022-02-04 22:51:17 -06:00
44df6df75d [nostalgia/core] Remove unnecessary file 2022-02-04 00:19:06 -06:00
f34a09351f [nostalgia/core/studio] Add some missing nodiscards 2022-02-04 00:06:07 -06:00
73dba0ce86 [nostalgia/core] Remove attribute list from Context friend function 2022-02-03 22:05:21 -06:00
a3643a4036 [nostalgia/core/userland] Replace std::array with ox::Array 2022-02-03 21:46:03 -06:00
7459d687b0 [nostalgia/core] Rename customData functions in Context and move them out of Context 2022-02-03 21:06:44 -06:00
c7cd54ae52 [nostalgia/core] Remove renderer funcions from Context friends 2022-02-03 20:48:58 -06:00
8174d04b06 [nostalgia] Collapse NostalgiaCore down to a single library and cleanup impl data access 2022-02-03 20:01:12 -06:00
be3d094f13 [nostalgia/studio] Remove unnecessary try/catch block 2022-02-03 00:39:40 -06:00
57164c1811 [nostalgia/glutils] Add missing assert.hpp include 2022-02-03 00:28:27 -06:00
d4e198ecc3 [nostalgia/core/studio] Add zoom support to TileSheetEditor 2022-02-03 00:24:40 -06:00
0d76129a0e [nostalgia/core/glfw] Fix keyboard support for ImGui 2022-02-01 02:15:49 -06:00