Correlation 4.10.0
An Analysis Tool for Liquids and for Amorphous Solids
Loading...
Searching...
No Matches
RenderEngineFactory.hpp
Go to the documentation of this file.
1
8
9#pragma once
10
12#include <memory>
13
14namespace correlation::render3d {
15
25
31public:
38 [[nodiscard]] static std::unique_ptr<IRenderEngine>
40 const ViewportDimensions &dimensions = ViewportDimensions{800, 600});
41};
42
43} // namespace correlation::render3d
Common interface for 3D molecular visualization render engines.
Constructs initialized IRenderEngine instances with fallback handling.
Definition RenderEngineFactory.hpp:30
static std::unique_ptr< IRenderEngine > createEngine(BackendPreference preference=BackendPreference::Auto, const ViewportDimensions &dimensions=ViewportDimensions{800, 600})
Creates and initializes an IRenderEngine instance.
Definition RenderEngineFactory.cpp:19
Definition Camera3D.hpp:14
BackendPreference
Definition RenderEngineFactory.hpp:20
@ Auto
Try Vulkan GPU first; automatically fall back to CPU rasterizer.
Definition RenderEngineFactory.hpp:21
@ CpuOnly
Explicitly use portable CPU software rasterizer.
Definition RenderEngineFactory.hpp:23
@ VulkanOnly
Require Vulkan GPU; fail if unavailable.
Definition RenderEngineFactory.hpp:22
Width and height in pixels for the rendering viewport.
Definition IRenderEngine.hpp:26