10 #ifndef hifi_GraphicsEngine_h
11 #define hifi_GraphicsEngine_h
13 #include <gl/OffscreenGLCanvas.h>
15 #include <gl/GLWidget.h>
17 #include <vk/VKWidget.h>
21 #include <render/Engine.h>
22 #include <procedural/ProceduralSkybox.h>
24 #include <OctreeConstants.h>
25 #include <shared/RateCounter.h>
27 #include "FrameTimingsScriptingInterface.h"
35 glm::mat4 _eyeToWorld;
37 glm::mat4 _eyeOffsets[2];
38 glm::mat4 _eyeProjections[2];
40 glm::mat4 _sensorToWorld;
41 float _sensorToWorldScale{ 1.0f };
42 bool _isStereo{
false };
45 using RenderArgsEditor = std::function <void(
AppRenderArgs&)>;
144 void render_performFrame();
150 void render_runRenderFrame(
RenderArgs* renderArgs);
206 std::shared_ptr<ProceduralSkybox>
_splashScreen { std::make_shared<ProceduralSkybox>() };
222 friend class Application;
Definition: GraphicsEngine.h:50
gpu::ContextPointer getGPUContext() const
Definition: GraphicsEngine.h:103
void initializeGPU(GLWidget *primaryWidget)
Definition: GraphicsEngine.cpp:52
render::ScenePointer _renderScene
Definition: GraphicsEngine.h:177
render::ScenePointer getRenderScene() const
Definition: GraphicsEngine.h:93
QRecursiveMutex _renderArgsMutex
Definition: GraphicsEngine.h:156
render::EnginePointer getRenderEngine() const
Definition: GraphicsEngine.h:98
FrameTimingsScriptingInterface _frameTimingsScriptingInterface
Definition: GraphicsEngine.h:201
QObject * _renderEventHandler
Definition: GraphicsEngine.h:194
NetworkTexturePointer _texture
Definition: GraphicsEngine.h:211
void initializeGPU(VKWidget *primaryWidget)
uint32_t _renderFrameCount
Definition: GraphicsEngine.h:172
size_t getRenderFrameCount() const
Definition: GraphicsEngine.h:125
bool checkPendingRenderEvent()
AppRenderArgs _appRenderArgs
Definition: GraphicsEngine.h:162
std::atomic< bool > _programsCompiled
Definition: GraphicsEngine.h:217
gpu::ContextPointer _gpuContext
Definition: GraphicsEngine.h:188
std::shared_ptr< ProceduralSkybox > _splashScreen
Definition: GraphicsEngine.h:206
RateCounter< 500 > _renderLoopCounter
Definition: GraphicsEngine.h:167
render::EnginePointer _renderEngine
Definition: GraphicsEngine.h:183
float getRenderLoopRate() const
Definition: GraphicsEngine.h:130
void editRenderArgs(RenderArgsEditor editor)
Definition: interface/src/graphics/RenderEventHandler.h:31
Scene is a container for Items. Items are introduced, modified or erased in the scene through Transac...
Definition: Scene.h:274
Definition: GraphicsEngine.h:33