Commit Graph

41 Commits

Author SHA1 Message Date
scawful
d6551f84d2 Refactor graphics handling to utilize Arena for graphics sheets management
Update various editors to replace instances of GraphicsSheetManager with gfx::Arena for accessing graphics sheets. This change enhances memory management and performance by centralizing graphics data handling within the Arena class. Clean up related code for improved clarity and maintainability.
2025-05-02 12:06:46 -04:00
scawful
44e13cf4bb Refactor bitmap palette management across various components to streamline palette setting and improve error handling; remove unnecessary status checks and enhance consistency in palette application methods. 2025-04-17 21:49:47 -04:00
scawful
97788fc033 Refactor canvas drawing methods to remove unnecessary bitmap parameters in context menu and bitmap drawing functions; update inventory and graphics editors to use new method signatures for improved consistency and clarity. 2025-04-16 21:44:07 -04:00
scawful
412e617ce7 Add Load method to editor classes and update corresponding headers 2025-03-08 10:07:18 -05:00
scawful
9919677e43 Refactor editor UI components: streamline button handling in graphics and music editors, remove unused macros, and improve table setup in assembly editor. 2025-03-08 00:58:47 -05:00
scawful
6714f77514 Implement Initialize method in Editor class and override in derived editors 2025-03-08 00:31:30 -05:00
scawful
c99a4b0bc4 rename ApplyPalette with SetPalette 2025-03-02 17:06:46 -05:00
scawful
4dc09ad5fc Refactor graphics loading: simplify function calls by removing namespace prefixes and improve header organization in scad_format 2025-02-28 00:46:39 -05:00
scawful
339df53674 Refactor ROM loading methods 2025-01-18 12:33:33 -05:00
scawful
c8883a1e54 Remove unused includes and clean up header files 2025-01-16 03:44:37 -05:00
Justin Scofield
f625fc94b3 Updated GraphicsEditor and Tile16Editor to use std::array instead of std::vector for better performance. 2025-01-05 20:54:19 -05:00
Justin Scofield
fe0dbd3642 Refactor graphics sheet management with singleton class
Refactor the handling of graphics sheets by introducing a singleton class `GraphicsSheetManager`. This centralizes the management of graphics sheets, replacing direct access through the `Rom` object. Key changes include:

- Updated various methods across multiple classes to use `GraphicsSheetManager::GetInstance()` for accessing and manipulating graphics sheets.
- Introduced standalone functions `LoadLinkGraphics`, `LoadAllGraphicsData`, and `SaveAllGraphicsData` for loading and saving graphics data.
- Refactored the `Rom` class to remove methods and member variables related to graphics sheet management.
- Updated `OverworldEditor` to use `std::array` for `maps_bmp_` and added error handling for `std::bad_alloc` exceptions.
- Improved code modularity and error handling throughout the application.
2025-01-04 20:04:00 -05:00
scawful
398ba36811 Remove ImGuiFileDialog integration and replace with FileDialogWrapper in assembly and tile editors 2024-12-31 15:47:51 -05:00
scawful
54c170373b Change Load2BppGraphics to standalone fn, add mutable_data accessor 2024-12-29 09:58:58 -05:00
scawful
e05e7c35db remove app namespace 2024-12-28 21:28:51 -05:00
scawful
21314702e8 Add EditorContext, refactor utils, add system managers 2024-11-19 23:10:23 -05:00
scawful
e3ed705336 Refactor tab handling in Dungeon and Graphics editors for improved readability 2024-11-13 09:42:54 -05:00
scawful
7798d769a5 Refactor bitmap update methods to remove unnecessary parameters; simplify texture updating in Renderer and Bitmap classes 2024-11-13 09:16:16 -05:00
scawful
42db41ebae Refactor GraphicsEditor tab handling for improved readability and structure 2024-11-10 16:58:34 -05:00
scawful
e8e6ab00bf Refactor ImTextureID casting for SDL_Texture rendering 2024-10-09 01:59:15 -04:00
scawful
12ce96e533 chore: Refactor CMakeLists.txt and app.cmake files for better organization 2024-08-30 02:57:14 -04:00
scawful
c83d0440d8 cleanup snes_palette stuff 2024-08-21 10:13:13 -04:00
scawful
a8ed9b7f92 remove magic numbers, enforce const correctness 2024-08-20 21:31:59 -04:00
scawful
49611d4944 big cleanup, replace Bytes alias with std::vector<uint8_t> to reduce ambiguity 2024-08-20 12:02:47 -04:00
scawful
731b8f1c75 chore: Refactor clipboard functions to use namespace aliases 2024-08-14 00:11:18 -04:00
scawful
9bbb6c6114 chore: Refactor file_dialog.cc and file_dialog.h to use namespace aliases 2024-08-13 23:56:17 -04:00
scawful
4aabb3d0b4 Refactor GraphicsEditor to use std::array for gfx sheets 2024-08-13 21:55:17 -04:00
scawful
79e5986b0b chore: Update asset_browser to use std::array for gfx sheets 2024-08-13 21:47:13 -04:00
scawful
dd496f1f4d chore: Remove unnecessary includes and improve code organization in graphics_editor.cc 2024-08-13 21:28:15 -04:00
scawful
9a2c8ae17a replace old renderer access pattern 2024-08-09 18:58:07 -04:00
scawful
7c708519ac standardize imgui headers as user instead of system 2024-07-30 23:33:12 -04:00
scawful
3710ee5ed9 remove pipeline.h 2024-07-24 09:37:35 -04:00
scawful
8e9f5d345b move pipeline functions into respective gui files 2024-07-24 09:31:42 -04:00
scawful
cbc6788e2e move DungeonEditor, merge widgets with style, split up CMakeLists 2024-07-24 01:38:36 -04:00
scawful
dd53d1fd2e add AssetBrowser as tab in GraphicsEditor 2024-07-21 17:21:49 -04:00
scawful
44d90f9b70 cleanup graphics editor palette controls 2024-07-21 11:39:43 -04:00
scawful
5fcd2a8f7e housekeeping 2024-07-20 09:02:04 -04:00
scawful
34841871de add multi select to gfx sheet list 2024-07-19 22:17:29 -04:00
scawful
c8aa5aeb78 add GfxSheetAssetBrowser to GraphicsEditor 2024-07-19 20:47:32 -04:00
scawful
621337f4f2 update some graphics references 2024-07-14 21:12:44 -04:00
scawful
53728d61e5 add editor/graphics, include graphics editor, palette editor, tile16, gfx group 2024-07-14 21:08:24 -04:00