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

Stores structs and classes for common components used by the SceneSystem and other related Systems. More...

#include <glm/glm.hpp>
#include <glm/gtc/quaternion.hpp>
#include <nlohmann/json.hpp>
#include "core/ecs_world.hpp"

Go to the source code of this file.

Classes

struct  ToyMaker::Placement
 A component representing the position, rotation, and scale of an entity. More...
struct  ToyMaker::Transform
 The transform component, which moves the vertices of a model to their world space coordinates during rendering. More...
struct  ToyMaker::SceneHierarchyData
 Component representing hierarchical information related to this entity. More...

Namespaces

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

Typedefs

using ToyMaker::TransformComponentSet = uint8_t
 Field indicating which transform components this object would like to inherit from its parent in the scene hierarchy.

Enumerations

enum  ToyMaker::TransformComponentOption : TransformComponentSet { ToyMaker::TRANSFORMCOMPONENT_TRANSLATION =0x1 , ToyMaker::TRANSFORMCOMPONENT_ROTATION =0x2 , ToyMaker::TRANSFORMCOMPONENT_SCALE =0x4 }
 The different kinds of values that can be inherited from a transform belonging to a parent. More...
enum class  ToyMaker::TransformInheritMode : uint8_t { ToyMaker::TransformInheritMode::PARENT , ToyMaker::TransformInheritMode::GLOBAL , ToyMaker::TransformInheritMode::CAMERA }
 The different kinds of values that can be inherited from a transform belonging to a parent. More...

Functions

 ToyMaker::NLOHMANN_JSON_SERIALIZE_ENUM (TransformComponentOption, { { TransformComponentOption::TRANSFORMCOMPONENT_TRANSLATION, "translation" }, { TransformComponentOption::TRANSFORMCOMPONENT_ROTATION, "rotation" }, { TransformComponentOption::TRANSFORMCOMPONENT_SCALE, "scale" }, })
 ToyMaker::NLOHMANN_JSON_SERIALIZE_ENUM (TransformInheritMode, { { TransformInheritMode::PARENT, "parent" }, { TransformInheritMode::GLOBAL, "global" }, { TransformInheritMode::CAMERA, "camera" }, })
void ToyMaker::from_json (const nlohmann::json &json, Placement &placement)
void ToyMaker::to_json (nlohmann::json &json, const Placement &placement)
void ToyMaker::to_json (nlohmann::json &json, const SceneHierarchyData &sceneHierarchyData)
void ToyMaker::from_json (const nlohmann::json &json, SceneHierarchyData &sceneHierarchyData)
void ToyMaker::to_json (nlohmann::json &json, const Transform &transform)
void ToyMaker::from_json (const nlohmann::json &json, Transform &transform)

Detailed Description

Stores structs and classes for common components used by the SceneSystem and other related Systems.

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