12 #ifndef hifi_AbstractViewStateInterface_h
13 #define hifi_AbstractViewStateInterface_h
15 #include <glm/glm.hpp>
18 #include <render/Scene.h>
19 #include <render/Engine.h>
27 class ConicalViewFrustum;
28 using ConicalViewFrustums = std::vector<ConicalViewFrustum>;
36 virtual const ConicalViewFrustums& getConicalViews()
const = 0;
38 virtual QThread* getMainThread() = 0;
40 virtual PickRay computePickRay(
float x,
float y)
const = 0;
42 virtual glm::vec3 getAvatarPosition()
const = 0;
51 virtual void postLambdaEvent(
const std::function<
void()>& f) = 0;
55 virtual void sendLambdaEvent(
const std::function<
void()>& f) = 0;
57 virtual qreal getDevicePixelRatio() = 0;
59 virtual render::ScenePointer getMain3DScene() = 0;
60 virtual render::EnginePointer getRenderEngine() = 0;
62 virtual void pushPostUpdateLambda(
void* key,
const std::function<
void()>& func) = 0;
64 virtual bool isHMDMode()
const = 0;
Interface provided by Application to other objects that need access to the current view state details...
Definition: AbstractViewStateInterface.h:31
virtual void copyCurrentViewFrustum(ViewFrustum &viewOut) const =0
copies the current view frustum for rendering the view state