VEX Engine
Retro looking game engine made in vulkan mostly because i wanted to understand it better.
Loading...
Searching...
No Matches
ModelCreator.hpp
Go to the documentation of this file.
1
6
7#pragma once
8
9#include <string>
12
13namespace vex {
22 ModelObject* createModelFromComponents(const std::string& name, MeshComponent meshComponent, TransformComponent transformComponent, Engine& engine, vex::Entity parent = vex::NULL_ENTITY);
23
28 MeshComponent createMeshFromPath(const std::string& path, Engine& engine);
29
36 ModelObject* createModelFromPath(const std::string& path, const std::string& name, Engine& engine, vex::Entity parent = vex::NULL_ENTITY);
37}
Contains basic components like transform, camera, name components..
This file defines in engine ModelObject class.
Class for interaction with engine systems.
Definition Engine.hpp:47
ModelObject class represents a model object in the engine. Thanks to engine separation from the backe...
uint32_t Entity
Type alias representing a unique entity identifier in the ECS system.
Definition Types.hpp:11
ModelObject * createModelFromComponents(const std::string &name, MeshComponent meshComponent, TransformComponent transformComponent, Engine &engine, vex::Entity parent=vex::NULL_ENTITY)
Creates model object From mesh and tranform components.
MeshComponent createMeshFromPath(const std::string &path, Engine &engine)
Just creates meshcomponent from file. Copies meshData and texture paths for later backend specific pr...
ModelObject * createModelFromPath(const std::string &path, const std::string &name, Engine &engine, vex::Entity parent=vex::NULL_ENTITY)
Creates model object from file. Esentially just runs two other functions just with empty transform co...
constexpr Entity NULL_ENTITY
Special entity value indicating an invalid or null entity.
Definition Types.hpp:15
Struct containing raw meshData, mesh id, texture paths and material properties. It just template and ...
Struct containing transform data and methods.