Photon Engine 2.0.0-beta
A physically based renderer.
Loading...
Searching...
No Matches
ph_core.cpp File Reference
#include "ph_core.h"
#include "Api/init_and_exit.h"
#include "DataIO/FileSystem/Path.h"
#include "Actor/Geometry/Geometry.h"
#include "Actor/Geometry/GSphere.h"
#include "Actor/Geometry/GRectangle.h"
#include "Actor/Geometry/GTriangle.h"
#include "Actor/Geometry/GTriangleMesh.h"
#include "Actor/Geometry/GMengerSponge.h"
#include "Actor/Geometry/GCuboid.h"
#include "Actor/Geometry/GEmpty.h"
#include "Actor/Geometry/GeometrySoup.h"
#include "Actor/Geometry/GPlyPolygonMesh.h"
#include "Actor/Material/Material.h"
#include "Actor/Material/MatteOpaque.h"
#include "Actor/Material/AbradedOpaque.h"
#include "Actor/Material/AbradedTranslucent.h"
#include "Actor/Material/IdealSubstance.h"
#include "Actor/Material/BinaryMixedSurfaceMaterial.h"
#include "Actor/Material/FullMaterial.h"
#include "Actor/Material/Volume/VAbsorptionOnly.h"
#include "Actor/Material/LayeredSurface.h"
#include "Actor/Material/ThinFilm.h"
#include "Actor/Material/ThinDielectricSurface.h"
#include "Actor/MotionSource/MotionSource.h"
#include "Actor/MotionSource/ConstantVelocityMotion.h"
#include "Actor/Image/Image.h"
#include "Actor/Image/ConstantImage.h"
#include "Actor/Image/RasterImageBase.h"
#include "Actor/Image/RasterFileImage.h"
#include "Actor/Image/MathImage.h"
#include "Actor/Image/SwizzledImage.h"
#include "Actor/Image/CheckerboardImage.h"
#include "Actor/Image/GradientImage.h"
#include "Actor/Image/BlackBodyRadiationImage.h"
#include "EngineEnv/Observer/Observer.h"
#include "EngineEnv/Observer/OrientedRasterObserver.h"
#include "EngineEnv/Observer/SingleLensObserver.h"
#include "EngineEnv/SampleSource/SampleSource.h"
#include "EngineEnv/SampleSource/RuntimeSampleSource.h"
#include "EngineEnv/SampleSource/UniformRandomSampleSource.h"
#include "EngineEnv/SampleSource/StratifiedSampleSource.h"
#include "EngineEnv/SampleSource/HaltonSampleSource.h"
#include "EngineEnv/Visualizer/Visualizer.h"
#include "EngineEnv/Visualizer/FrameVisualizer.h"
#include "EngineEnv/Visualizer/PathTracingVisualizer.h"
#include "EngineEnv/Visualizer/PhotonMappingVisualizer.h"
#include "SDL/Option.h"
#include "EngineEnv/Session/RenderSession.h"
#include "EngineEnv/Session/SingleFrameRenderSession.h"
#include "SDL/Object.h"
#include "Actor/Actor.h"
#include "Actor/PhysicalActor.h"
#include "Actor/AModel.h"
#include "Actor/AMaskedModel.h"
#include "Actor/ADome.h"
#include "Actor/APhantomModel.h"
#include "Actor/ATransformedInstance.h"
#include "Actor/Dome/AImageDome.h"
#include "Actor/Dome/APreethamDome.h"
#include "Actor/Light/ALight.h"
#include "Actor/Light/AGeometricLight.h"
#include "Actor/Light/AAreaLight.h"
#include "Actor/Light/AModelLight.h"
#include "Actor/Light/APointLight.h"
#include "Actor/Light/ARectangleLight.h"
#include "Actor/Light/ASphereLight.h"
#include "Actor/Light/AIesAttenuatedLight.h"
#include "EngineEnv/SampleSource/sdl_halton_randomization_types.h"
#include "EngineEnv/sdl_accelerator_type.h"
#include "EngineEnv/Visualizer/sdl_ray_energy_estimator_type.h"
#include "EngineEnv/Visualizer/sdl_sample_filter_type.h"
#include "EngineEnv/Visualizer/sdl_scheduler_type.h"
#include "EngineEnv/Visualizer/sdl_photon_mapping_mode.h"
#include "Actor/Image/sdl_image_enums.h"
#include "Actor/SDLExtension/sdl_color_enums.h"
#include "Actor/Material/Component/sdl_component_enums.h"
#include "DataIO/sdl_picture_file_type.h"
#include <Common/config.h>
#include <Common/logging.h>
#include <Common/Log/Logger.h>
#include <utility>
#include <vector>
#include <string>

Namespaces

namespace  ph
 The root for all renderer implementations.
 

Functions

 ph::PH_DEFINE_INTERNAL_LOG_GROUP (CppAPI, Engine)
 
bool ph::init_render_engine (std::optional< EngineInitSettings > settings=std::nullopt)
 Initialize the render engine.
 
bool ph::exit_render_engine ()
 Exit the render engine. Must be called before leaving the engine. Using the engine after this call returned is prohibited (except some cleanup operations such as destruction).
 
std::span< const SdlClass *const > ph::get_registered_engine_classes ()
 Get a list of registered SDL classes from the engine.
 
std::span< const SdlEnum *const > ph::get_registered_engine_enums ()
 Get a list of registered SDL enums from the engine.
 
Path ph::get_config_directory (EEngineProject project)
 
Path ph::get_internal_resource_directory (EEngineProject project)
 Directory to resources required by the project.
 
Path ph::get_resource_directory (EEngineProject project)
 Directory to additional/optional resources used by the project.
 
Path ph::get_script_directory (EEngineProject project)
 Directory to scripts for the project.