|
coastline 0.0.4
|
The paint shop of the console. More...
#include <paintshop.h>
Public Member Functions | |
| ~PaintShop () | |
| Release paint previews and editing resources before the menu screen and GPU device. | |
| PaintShop (const PaintShop &)=delete | |
| Prevent copying active editing and preview resources. | |
| PaintShop & | operator= (const PaintShop &)=delete |
| Prevent assignment of active editing and preview resources. | |
| void | SetCar (int car, const std::filesystem::path &directory) |
| Choose the car the paint shop opens with, as the car select screen exits to it. | |
| bool | Frame (SceneRenderer &renderer, float seconds, const PaintShopInput &input) |
| Run a frame of the paint shop and draw it. | |
| bool | TakesText () const |
| std::optional< bool > | LoadDecalsFrame (SceneRenderer &renderer, float seconds, const PaintShopInput &input, DecalCar &car) |
| Run a frame of the dialog that loads the decals on the car select screen, as the car select screen of the console runs ProcessDecalSaveLoad() and DrawPakErrorMessage(). | |
| bool | LoadDecalsQuietly (DecalCar &car) |
| Load the decals of the Controller Pak into a car at once, without the dialog, for the custom decals a player chose before. | |
Static Public Member Functions | |
| static std::unique_ptr< PaintShop > | Load (SceneRenderer &renderer, const std::filesystem::path &release, MenuScreen &screen, std::optional< std::array< int, 6 > > &textColors, ControllerPak pak) |
| Read the pictures and the tables of the paint shop from the import of a release. | |
Friends | |
| class | Menus |
The paint shop of the console.
| coastline::PaintShop::~PaintShop | ( | ) |
Release paint previews and editing resources before the menu screen and GPU device.
|
delete |
Prevent copying active editing and preview resources.
|
static |
Read the pictures and the tables of the paint shop from the import of a release.
| renderer | The renderer that draws the paint shop. |
| release | The selected cartridge directory, n64/base of the prepared assets. |
| screen | The menu screens, whose fades and fonts the paint shop shares. |
| textColors | The custom colours of the text of the menus, set by the paint shop. |
| pak | The Controller Pak the decals are saved on. |
Prevent assignment of active editing and preview resources.
| void coastline::PaintShop::SetCar | ( | int | car, |
| const std::filesystem::path & | directory ) |
Choose the car the paint shop opens with, as the car select screen exits to it.
| car | The car, an index of the cars of the menus. |
| directory | The directory of the car in the import. |
| bool coastline::PaintShop::Frame | ( | SceneRenderer & | renderer, |
| float | seconds, | ||
| const PaintShopInput & | input ) |
Run a frame of the paint shop and draw it.
| renderer | The renderer of the frame, between Begin() and End(). |
| seconds | The time of the frame. |
| input | The input of the player. |
| bool coastline::PaintShop::TakesText | ( | ) | const |
| std::optional< bool > coastline::PaintShop::LoadDecalsFrame | ( | SceneRenderer & | renderer, |
| float | seconds, | ||
| const PaintShopInput & | input, | ||
| DecalCar & | car ) |
Run a frame of the dialog that loads the decals on the car select screen, as the car select screen of the console runs ProcessDecalSaveLoad() and DrawPakErrorMessage().
| renderer | The renderer of the frame, between Begin() and End(). |
| seconds | The time of the frame. |
| input | The input of the player. |
| car | The car the decals load into. |
| bool coastline::PaintShop::LoadDecalsQuietly | ( | DecalCar & | car | ) |
Load the decals of the Controller Pak into a car at once, without the dialog, for the custom decals a player chose before.
| car | The car the decals load into. |
|
friend |