ToyMaker Game Engine 0.0.2
ToyMaker is a game engine developed and maintained by Zoheb Shujauddin.
Loading...
Searching...
No Matches
nine_slice_panel.hpp File Reference

Contains class defining this project's implementation of nine-slice (or nine-region) resizable panels. More...

#include <SDL2/SDL.h>
#include <nlohmann/json.hpp>
#include <glm/glm.hpp>
#include "toymaker/engine/shader_program.hpp"
#include "toymaker/engine/core/resource_database.hpp"
#include "toymaker/engine/texture.hpp"

Go to the source code of this file.

Classes

class  ToyMaker::NineSlicePanel
 Resource responsible for resizing a texture using the 9-slice technique, for use in UI elements. More...
 
class  ToyMaker::NineSlicePanelFromDescription
 Resource constructor for creating new NineSlicePanel resources from their descriptions in JSON. More...
 

Namespaces

namespace  ToyMaker
 Namespace containing all class definitions and functions related to the ToyMaker engine.
 

Functions

 ToyMaker::NLOHMANN_JSON_SERIALIZE_ENUM (NineSlicePanel::ScaleMode, { {NineSlicePanel::ScaleMode::STRETCH, "stretch"}, {NineSlicePanel::ScaleMode::TILE, "tile"}, })
 

Detailed Description

Contains class defining this project's implementation of nine-slice (or nine-region) resizable panels.

Author
Zoheb Shujauddin (zoheb.nosp@m.2424.nosp@m.@gmai.nosp@m.l.co.nosp@m.m)
Version
0.3.2
Date
2025-09-13