mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-25 14:59:01 +02:00
36 lines
903 B
C++
36 lines
903 B
C++
//
|
|
// Billboardable.h
|
|
// interface/src/ui/overlays
|
|
//
|
|
// Created by Zander Otavka on 8/7/15.
|
|
// Copyright 2014 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
#ifndef hifi_Billboardable_h
|
|
#define hifi_Billboardable_h
|
|
|
|
#include <glm/gtc/quaternion.hpp>
|
|
#include <QVariant>
|
|
|
|
class QString;
|
|
class Transform;
|
|
|
|
class Billboardable {
|
|
public:
|
|
bool isFacingAvatar() const { return _isFacingAvatar; }
|
|
void setIsFacingAvatar(bool isFacingAvatar) { _isFacingAvatar = isFacingAvatar; }
|
|
|
|
protected:
|
|
void setProperties(const QVariantMap& properties);
|
|
QVariant getProperty(const QString& property);
|
|
|
|
bool pointTransformAtCamera(Transform& transform, glm::quat offsetRotation = {1, 0, 0, 0});
|
|
|
|
private:
|
|
bool _isFacingAvatar = false;
|
|
};
|
|
|
|
#endif // hifi_Billboardable_h
|