Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph_core.h
Go to the documentation of this file.
1#pragma once
2
4#include "EEngineProject.h"
5
6#include <span>
7#include <optional>
8
9namespace ph { class SdlClass; }
10namespace ph { class SdlEnum; }
11namespace ph { class Path; }
12
13namespace ph
14{
15
27bool init_render_engine(std::optional<EngineInitSettings> settings = std::nullopt);
28
34
37std::span<const SdlClass* const> get_registered_engine_classes();
38
41std::span<const SdlEnum* const> get_registered_engine_enums();
42
44
48
52
56
57}// end namespace ph
The root for all renderer implementations.
Definition EEngineProject.h:6
Path get_script_directory(EEngineProject project)
Directory to scripts for the project.
Definition ph_core.cpp:346
Path get_internal_resource_directory(EEngineProject project)
Directory to resources required by the project.
Definition ph_core.cpp:336
bool init_render_engine(std::optional< EngineInitSettings > settings=std::nullopt)
Initialize the render engine.
Definition ph_core.cpp:245
Path get_config_directory(EEngineProject project)
Definition ph_core.cpp:331
std::span< const SdlEnum *const > get_registered_engine_enums()
Get a list of registered SDL enums from the engine.
Definition ph_core.cpp:325
Path get_resource_directory(EEngineProject project)
Directory to additional/optional resources used by the project.
Definition ph_core.cpp:341
std::span< const SdlClass *const > get_registered_engine_classes()
Get a list of registered SDL classes from the engine.
Definition ph_core.cpp:319
bool exit_render_engine()
Exit the render engine. Must be called before leaving the engine. Using the engine after this call re...
Definition ph_core.cpp:304
EEngineProject
Definition EEngineProject.h:9