mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 00:36:47 +02:00
Merge pull request #14125 from Atlante45/fix/mac-warnings
Fix new Mac warnings
This commit is contained in:
commit
2ce8ed25f8
42 changed files with 71 additions and 57 deletions
|
@ -2906,7 +2906,7 @@ void DomainServer::updateReplicationNodes(ReplicationServerDirection direction)
|
||||||
// collect them in a vector to separately remove them with handleKillNode (since eachNode has a read lock and
|
// collect them in a vector to separately remove them with handleKillNode (since eachNode has a read lock and
|
||||||
// we cannot recursively take the write lock required by handleKillNode)
|
// we cannot recursively take the write lock required by handleKillNode)
|
||||||
std::vector<SharedNodePointer> nodesToKill;
|
std::vector<SharedNodePointer> nodesToKill;
|
||||||
nodeList->eachNode([direction, replicationNodesInSettings, replicationDirection, &nodesToKill](const SharedNodePointer& otherNode) {
|
nodeList->eachNode([&direction, &replicationNodesInSettings, &replicationDirection, &nodesToKill](const SharedNodePointer& otherNode) {
|
||||||
if ((direction == Upstream && NodeType::isUpstream(otherNode->getType()))
|
if ((direction == Upstream && NodeType::isUpstream(otherNode->getType()))
|
||||||
|| (direction == Downstream && NodeType::isDownstream(otherNode->getType()))) {
|
|| (direction == Downstream && NodeType::isDownstream(otherNode->getType()))) {
|
||||||
bool nodeInSettings = find(replicationNodesInSettings.cbegin(), replicationNodesInSettings.cend(),
|
bool nodeInSettings = find(replicationNodesInSettings.cbegin(), replicationNodesInSettings.cend(),
|
||||||
|
|
|
@ -27,7 +27,7 @@ class StartEndRenderState {
|
||||||
public:
|
public:
|
||||||
StartEndRenderState() {}
|
StartEndRenderState() {}
|
||||||
StartEndRenderState(const OverlayID& startID, const OverlayID& endID);
|
StartEndRenderState(const OverlayID& startID, const OverlayID& endID);
|
||||||
virtual ~StartEndRenderState() {}
|
virtual ~StartEndRenderState() = default;
|
||||||
|
|
||||||
const OverlayID& getStartID() const { return _startID; }
|
const OverlayID& getStartID() const { return _startID; }
|
||||||
const OverlayID& getEndID() const { return _endID; }
|
const OverlayID& getEndID() const { return _endID; }
|
||||||
|
|
|
@ -169,7 +169,8 @@ std::map<QString, QString> AnimVariantMap::toDebugMap() const {
|
||||||
break;
|
break;
|
||||||
*/
|
*/
|
||||||
default:
|
default:
|
||||||
assert(("invalid AnimVariant::Type", false));
|
// invalid AnimVariant::Type
|
||||||
|
assert(false);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
|
|
@ -98,7 +98,7 @@ enum Hand {
|
||||||
class InputDevice {
|
class InputDevice {
|
||||||
public:
|
public:
|
||||||
InputDevice(const QString& name) : _name(name) {}
|
InputDevice(const QString& name) : _name(name) {}
|
||||||
virtual ~InputDevice() {}
|
virtual ~InputDevice() = default;
|
||||||
|
|
||||||
using Pointer = std::shared_ptr<InputDevice>;
|
using Pointer = std::shared_ptr<InputDevice>;
|
||||||
|
|
||||||
|
|
|
@ -30,6 +30,8 @@ namespace controller {
|
||||||
using Factory = hifi::SimpleFactory<Conditional, QString>;
|
using Factory = hifi::SimpleFactory<Conditional, QString>;
|
||||||
using Lambda = std::function<bool()>;
|
using Lambda = std::function<bool()>;
|
||||||
|
|
||||||
|
virtual ~Conditional() = default;
|
||||||
|
|
||||||
virtual bool satisfied() = 0;
|
virtual bool satisfied() = 0;
|
||||||
virtual bool parseParameters(const QJsonValue& parameters) { return true; }
|
virtual bool parseParameters(const QJsonValue& parameters) { return true; }
|
||||||
|
|
||||||
|
|
|
@ -35,6 +35,8 @@ namespace controller {
|
||||||
using Lambda = std::function<float(float)>;
|
using Lambda = std::function<float(float)>;
|
||||||
using Factory = hifi::SimpleFactory<Filter, QString>;
|
using Factory = hifi::SimpleFactory<Filter, QString>;
|
||||||
|
|
||||||
|
virtual ~Filter() = default;
|
||||||
|
|
||||||
virtual float apply(float value) const = 0;
|
virtual float apply(float value) const = 0;
|
||||||
virtual Pose apply(Pose value) const = 0;
|
virtual Pose apply(Pose value) const = 0;
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,6 @@ public:
|
||||||
AndConditional(Conditional::Pointer& first, Conditional::Pointer& second)
|
AndConditional(Conditional::Pointer& first, Conditional::Pointer& second)
|
||||||
: _children({ first, second }) {}
|
: _children({ first, second }) {}
|
||||||
|
|
||||||
virtual ~AndConditional() {}
|
|
||||||
|
|
||||||
virtual bool satisfied() override;
|
virtual bool satisfied() override;
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
|
@ -18,7 +18,6 @@ namespace controller {
|
||||||
class EndpointConditional : public Conditional {
|
class EndpointConditional : public Conditional {
|
||||||
public:
|
public:
|
||||||
EndpointConditional(Endpoint::Pointer endpoint) : _endpoint(endpoint) {}
|
EndpointConditional(Endpoint::Pointer endpoint) : _endpoint(endpoint) {}
|
||||||
virtual ~EndpointConditional() {}
|
|
||||||
virtual bool satisfied() override { return _endpoint && _endpoint->peek() != 0.0f; }
|
virtual bool satisfied() override { return _endpoint && _endpoint->peek() != 0.0f; }
|
||||||
private:
|
private:
|
||||||
Endpoint::Pointer _endpoint;
|
Endpoint::Pointer _endpoint;
|
||||||
|
|
|
@ -19,7 +19,6 @@ namespace controller {
|
||||||
using Pointer = std::shared_ptr<NotConditional>;
|
using Pointer = std::shared_ptr<NotConditional>;
|
||||||
|
|
||||||
NotConditional(Conditional::Pointer operand) : _operand(operand) { }
|
NotConditional(Conditional::Pointer operand) : _operand(operand) { }
|
||||||
virtual ~NotConditional() {}
|
|
||||||
|
|
||||||
virtual bool satisfied() override;
|
virtual bool satisfied() override;
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,6 @@ class ClampFilter : public Filter {
|
||||||
REGISTER_FILTER_CLASS(ClampFilter);
|
REGISTER_FILTER_CLASS(ClampFilter);
|
||||||
public:
|
public:
|
||||||
ClampFilter(float min = 0.0, float max = 1.0) : _min(min), _max(max) {};
|
ClampFilter(float min = 0.0, float max = 1.0) : _min(min), _max(max) {};
|
||||||
virtual ~ClampFilter() {}
|
|
||||||
virtual float apply(float value) const override {
|
virtual float apply(float value) const override {
|
||||||
return glm::clamp(value, _min, _max);
|
return glm::clamp(value, _min, _max);
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,16 +17,13 @@ namespace controller {
|
||||||
class ConstrainToIntegerFilter : public Filter {
|
class ConstrainToIntegerFilter : public Filter {
|
||||||
REGISTER_FILTER_CLASS(ConstrainToIntegerFilter);
|
REGISTER_FILTER_CLASS(ConstrainToIntegerFilter);
|
||||||
public:
|
public:
|
||||||
ConstrainToIntegerFilter() {};
|
ConstrainToIntegerFilter() = default;
|
||||||
virtual ~ConstrainToIntegerFilter() {}
|
|
||||||
|
|
||||||
virtual float apply(float value) const override {
|
virtual float apply(float value) const override {
|
||||||
return glm::sign(value);
|
return glm::sign(value);
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual Pose apply(Pose value) const override { return value; }
|
virtual Pose apply(Pose value) const override { return value; }
|
||||||
|
|
||||||
protected:
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,16 +17,13 @@ namespace controller {
|
||||||
class ConstrainToPositiveIntegerFilter : public Filter {
|
class ConstrainToPositiveIntegerFilter : public Filter {
|
||||||
REGISTER_FILTER_CLASS(ConstrainToPositiveIntegerFilter);
|
REGISTER_FILTER_CLASS(ConstrainToPositiveIntegerFilter);
|
||||||
public:
|
public:
|
||||||
ConstrainToPositiveIntegerFilter() {};
|
ConstrainToPositiveIntegerFilter() = default;
|
||||||
virtual ~ConstrainToPositiveIntegerFilter() {};
|
|
||||||
|
|
||||||
virtual float apply(float value) const override {
|
virtual float apply(float value) const override {
|
||||||
return (value <= 0.0f) ? 0.0f : 1.0f;
|
return (value <= 0.0f) ? 0.0f : 1.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
virtual Pose apply(Pose value) const override { return value; }
|
virtual Pose apply(Pose value) const override { return value; }
|
||||||
|
|
||||||
protected:
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -18,7 +18,6 @@ class DeadZoneFilter : public Filter {
|
||||||
REGISTER_FILTER_CLASS(DeadZoneFilter);
|
REGISTER_FILTER_CLASS(DeadZoneFilter);
|
||||||
public:
|
public:
|
||||||
DeadZoneFilter(float min = 0.0) : _min(min) {};
|
DeadZoneFilter(float min = 0.0) : _min(min) {};
|
||||||
virtual ~DeadZoneFilter() {}
|
|
||||||
|
|
||||||
virtual float apply(float value) const override;
|
virtual float apply(float value) const override;
|
||||||
|
|
||||||
|
|
|
@ -20,7 +20,6 @@ namespace controller {
|
||||||
ExponentialSmoothingFilter() {}
|
ExponentialSmoothingFilter() {}
|
||||||
ExponentialSmoothingFilter(float rotationConstant, float translationConstant) :
|
ExponentialSmoothingFilter(float rotationConstant, float translationConstant) :
|
||||||
_translationConstant(translationConstant), _rotationConstant(rotationConstant) {}
|
_translationConstant(translationConstant), _rotationConstant(rotationConstant) {}
|
||||||
virtual ~ExponentialSmoothingFilter() {}
|
|
||||||
|
|
||||||
float apply(float value) const override { return value; }
|
float apply(float value) const override { return value; }
|
||||||
Pose apply(Pose value) const override;
|
Pose apply(Pose value) const override;
|
||||||
|
|
|
@ -18,7 +18,6 @@ class HysteresisFilter : public Filter {
|
||||||
REGISTER_FILTER_CLASS(HysteresisFilter);
|
REGISTER_FILTER_CLASS(HysteresisFilter);
|
||||||
public:
|
public:
|
||||||
HysteresisFilter(float min = 0.25, float max = 0.75);
|
HysteresisFilter(float min = 0.25, float max = 0.75);
|
||||||
virtual ~HysteresisFilter() {}
|
|
||||||
virtual float apply(float value) const override;
|
virtual float apply(float value) const override;
|
||||||
|
|
||||||
virtual Pose apply(Pose value) const override { return value; }
|
virtual Pose apply(Pose value) const override { return value; }
|
||||||
|
|
|
@ -19,11 +19,8 @@ class InvertFilter : public ScaleFilter {
|
||||||
public:
|
public:
|
||||||
using ScaleFilter::parseParameters;
|
using ScaleFilter::parseParameters;
|
||||||
InvertFilter() : ScaleFilter(-1.0f) {}
|
InvertFilter() : ScaleFilter(-1.0f) {}
|
||||||
virtual ~InvertFilter() {}
|
|
||||||
|
|
||||||
virtual bool parseParameters(const QJsonArray& parameters) { return true; }
|
virtual bool parseParameters(const QJsonArray& parameters) { return true; }
|
||||||
|
|
||||||
private:
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,10 +17,9 @@ namespace controller {
|
||||||
REGISTER_FILTER_CLASS(LowVelocityFilter);
|
REGISTER_FILTER_CLASS(LowVelocityFilter);
|
||||||
|
|
||||||
public:
|
public:
|
||||||
LowVelocityFilter() {}
|
LowVelocityFilter() = default;
|
||||||
LowVelocityFilter(float rotationConstant, float translationConstant) :
|
LowVelocityFilter(float rotationConstant, float translationConstant) :
|
||||||
_translationConstant(translationConstant), _rotationConstant(rotationConstant) {}
|
_translationConstant(translationConstant), _rotationConstant(rotationConstant) {}
|
||||||
virtual ~LowVelocityFilter() {}
|
|
||||||
|
|
||||||
float apply(float value) const override { return value; }
|
float apply(float value) const override { return value; }
|
||||||
Pose apply(Pose newPose) const override;
|
Pose apply(Pose newPose) const override;
|
||||||
|
|
|
@ -10,7 +10,6 @@ class NotFilter : public Filter {
|
||||||
REGISTER_FILTER_CLASS(NotFilter);
|
REGISTER_FILTER_CLASS(NotFilter);
|
||||||
public:
|
public:
|
||||||
NotFilter();
|
NotFilter();
|
||||||
virtual ~NotFilter() {}
|
|
||||||
|
|
||||||
virtual float apply(float value) const override;
|
virtual float apply(float value) const override;
|
||||||
virtual Pose apply(Pose value) const override { return value; }
|
virtual Pose apply(Pose value) const override { return value; }
|
||||||
|
|
|
@ -19,9 +19,8 @@ namespace controller {
|
||||||
class PostTransformFilter : public Filter {
|
class PostTransformFilter : public Filter {
|
||||||
REGISTER_FILTER_CLASS(PostTransformFilter);
|
REGISTER_FILTER_CLASS(PostTransformFilter);
|
||||||
public:
|
public:
|
||||||
PostTransformFilter() { }
|
PostTransformFilter() = default;
|
||||||
PostTransformFilter(glm::mat4 transform) : _transform(transform) {}
|
PostTransformFilter(glm::mat4 transform) : _transform(transform) {}
|
||||||
virtual ~PostTransformFilter() {}
|
|
||||||
virtual float apply(float value) const override { return value; }
|
virtual float apply(float value) const override { return value; }
|
||||||
virtual Pose apply(Pose value) const override { return value.postTransform(_transform); }
|
virtual Pose apply(Pose value) const override { return value.postTransform(_transform); }
|
||||||
virtual bool parseParameters(const QJsonValue& parameters) override { return parseMat4Parameter(parameters, _transform); }
|
virtual bool parseParameters(const QJsonValue& parameters) override { return parseMat4Parameter(parameters, _transform); }
|
||||||
|
|
|
@ -18,9 +18,8 @@ namespace controller {
|
||||||
class PulseFilter : public Filter {
|
class PulseFilter : public Filter {
|
||||||
REGISTER_FILTER_CLASS(PulseFilter);
|
REGISTER_FILTER_CLASS(PulseFilter);
|
||||||
public:
|
public:
|
||||||
PulseFilter() {}
|
PulseFilter() = default;
|
||||||
PulseFilter(float interval) : _interval(interval) {}
|
PulseFilter(float interval) : _interval(interval) {}
|
||||||
virtual ~PulseFilter() {}
|
|
||||||
|
|
||||||
virtual float apply(float value) const override;
|
virtual float apply(float value) const override;
|
||||||
|
|
||||||
|
|
|
@ -19,9 +19,8 @@ namespace controller {
|
||||||
class RotateFilter : public Filter {
|
class RotateFilter : public Filter {
|
||||||
REGISTER_FILTER_CLASS(RotateFilter);
|
REGISTER_FILTER_CLASS(RotateFilter);
|
||||||
public:
|
public:
|
||||||
RotateFilter() { }
|
RotateFilter() = default;
|
||||||
RotateFilter(glm::quat rotation) : _rotation(rotation) {}
|
RotateFilter(glm::quat rotation) : _rotation(rotation) {}
|
||||||
virtual ~RotateFilter() {}
|
|
||||||
|
|
||||||
virtual float apply(float value) const override { return value; }
|
virtual float apply(float value) const override { return value; }
|
||||||
|
|
||||||
|
|
|
@ -19,9 +19,8 @@ namespace controller {
|
||||||
class ScaleFilter : public Filter {
|
class ScaleFilter : public Filter {
|
||||||
REGISTER_FILTER_CLASS(ScaleFilter);
|
REGISTER_FILTER_CLASS(ScaleFilter);
|
||||||
public:
|
public:
|
||||||
ScaleFilter() {}
|
ScaleFilter() = default;
|
||||||
ScaleFilter(float scale) : _scale(scale) {}
|
ScaleFilter(float scale) : _scale(scale) {}
|
||||||
virtual ~ScaleFilter() {}
|
|
||||||
|
|
||||||
virtual float apply(float value) const override {
|
virtual float apply(float value) const override {
|
||||||
return value * _scale;
|
return value * _scale;
|
||||||
|
|
|
@ -19,9 +19,8 @@ namespace controller {
|
||||||
class TransformFilter : public Filter {
|
class TransformFilter : public Filter {
|
||||||
REGISTER_FILTER_CLASS(TransformFilter);
|
REGISTER_FILTER_CLASS(TransformFilter);
|
||||||
public:
|
public:
|
||||||
TransformFilter() { }
|
TransformFilter() = default;
|
||||||
TransformFilter(glm::mat4 transform) : _transform(transform) {}
|
TransformFilter(glm::mat4 transform) : _transform(transform) {}
|
||||||
virtual ~TransformFilter() {}
|
|
||||||
|
|
||||||
virtual float apply(float value) const override { return value; }
|
virtual float apply(float value) const override { return value; }
|
||||||
virtual Pose apply(Pose value) const override { return value.transform(_transform); }
|
virtual Pose apply(Pose value) const override { return value.transform(_transform); }
|
||||||
|
|
|
@ -19,9 +19,8 @@ namespace controller {
|
||||||
class TranslateFilter : public Filter {
|
class TranslateFilter : public Filter {
|
||||||
REGISTER_FILTER_CLASS(TranslateFilter);
|
REGISTER_FILTER_CLASS(TranslateFilter);
|
||||||
public:
|
public:
|
||||||
TranslateFilter() { }
|
TranslateFilter() = default;
|
||||||
TranslateFilter(glm::vec3 translate) : _translate(translate) {}
|
TranslateFilter(glm::vec3 translate) : _translate(translate) {}
|
||||||
virtual ~TranslateFilter() {}
|
|
||||||
|
|
||||||
virtual float apply(float value) const override { return value; }
|
virtual float apply(float value) const override { return value; }
|
||||||
virtual Pose apply(Pose value) const override { return value.transform(glm::translate(_translate)); }
|
virtual Pose apply(Pose value) const override { return value.transform(glm::translate(_translate)); }
|
||||||
|
|
|
@ -19,7 +19,11 @@ Q_DECLARE_LOGGING_CATEGORY(gpugllogging)
|
||||||
Q_DECLARE_LOGGING_CATEGORY(trace_render_gpu_gl)
|
Q_DECLARE_LOGGING_CATEGORY(trace_render_gpu_gl)
|
||||||
Q_DECLARE_LOGGING_CATEGORY(trace_render_gpu_gl_detail)
|
Q_DECLARE_LOGGING_CATEGORY(trace_render_gpu_gl_detail)
|
||||||
|
|
||||||
|
#if defined(__clang__)
|
||||||
|
#define BUFFER_OFFSET(bytes) (reinterpret_cast<GLvoid*>(bytes))
|
||||||
|
#else
|
||||||
#define BUFFER_OFFSET(bytes) ((GLubyte*) nullptr + (bytes))
|
#define BUFFER_OFFSET(bytes) ((GLubyte*) nullptr + (bytes))
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace gpu { namespace gl {
|
namespace gpu { namespace gl {
|
||||||
|
|
||||||
|
|
|
@ -25,8 +25,10 @@ struct GLFilterMode {
|
||||||
|
|
||||||
class GLTextureTransferEngine {
|
class GLTextureTransferEngine {
|
||||||
public:
|
public:
|
||||||
virtual ~GLTextureTransferEngine() {}
|
|
||||||
using Pointer = std::shared_ptr<GLTextureTransferEngine>;
|
using Pointer = std::shared_ptr<GLTextureTransferEngine>;
|
||||||
|
|
||||||
|
virtual ~GLTextureTransferEngine() = default;
|
||||||
|
|
||||||
/// Called once per frame to perform any require memory management or transfer work
|
/// Called once per frame to perform any require memory management or transfer work
|
||||||
virtual void manageMemory() = 0;
|
virtual void manageMemory() = 0;
|
||||||
virtual void shutdown() = 0;
|
virtual void shutdown() = 0;
|
||||||
|
|
|
@ -118,11 +118,13 @@ public:
|
||||||
uint8 _function = LESS;
|
uint8 _function = LESS;
|
||||||
uint8 _writeMask = true;
|
uint8 _writeMask = true;
|
||||||
uint8 _enabled = false;
|
uint8 _enabled = false;
|
||||||
uint8 _spare = 0; // _spare is here to to affect alignment
|
#if defined(__clang__)
|
||||||
|
__attribute__((unused))
|
||||||
|
#endif
|
||||||
|
uint8 _spare = 0; // Padding
|
||||||
public:
|
public:
|
||||||
DepthTest(bool enabled = false, bool writeMask = true, ComparisonFunction func = LESS) :
|
DepthTest(bool enabled = false, bool writeMask = true, ComparisonFunction func = LESS) :
|
||||||
_function(func), _writeMask(writeMask), _enabled(enabled) {
|
_function(func), _writeMask(writeMask), _enabled(enabled) {
|
||||||
(void)_spare; // to avoid unusued variable warning
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool isEnabled() const { return _enabled != 0; }
|
bool isEnabled() const { return _enabled != 0; }
|
||||||
|
|
|
@ -320,7 +320,10 @@ public:
|
||||||
|
|
||||||
float _scattering{ 0.0f }; // Scattering info
|
float _scattering{ 0.0f }; // Scattering info
|
||||||
|
|
||||||
glm::vec2 _spare{ 0.0f };
|
#if defined(__clang__)
|
||||||
|
__attribute__((unused))
|
||||||
|
#endif
|
||||||
|
glm::vec2 _spare{ 0.0f }; // Padding
|
||||||
|
|
||||||
uint32_t _key{ 0 }; // a copy of the materialKey
|
uint32_t _key{ 0 }; // a copy of the materialKey
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,6 @@ protected:
|
||||||
class InputDevice : public controller::InputDevice {
|
class InputDevice : public controller::InputDevice {
|
||||||
public:
|
public:
|
||||||
InputDevice() : controller::InputDevice("Keyboard") {}
|
InputDevice() : controller::InputDevice("Keyboard") {}
|
||||||
virtual ~InputDevice() {}
|
|
||||||
private:
|
private:
|
||||||
// Device functions
|
// Device functions
|
||||||
virtual controller::Input::NamedVector getAvailableInputs() const override;
|
virtual controller::Input::NamedVector getAvailableInputs() const override;
|
||||||
|
|
|
@ -36,7 +36,7 @@ public:
|
||||||
|
|
||||||
Geometry() = default;
|
Geometry() = default;
|
||||||
Geometry(const Geometry& geometry);
|
Geometry(const Geometry& geometry);
|
||||||
virtual ~Geometry() {}
|
virtual ~Geometry() = default;
|
||||||
|
|
||||||
// Immutable over lifetime
|
// Immutable over lifetime
|
||||||
using GeometryMeshes = std::vector<std::shared_ptr<const graphics::Mesh>>;
|
using GeometryMeshes = std::vector<std::shared_ptr<const graphics::Mesh>>;
|
||||||
|
|
|
@ -19,7 +19,6 @@ namespace controller {
|
||||||
|
|
||||||
class InputPlugin : public Plugin {
|
class InputPlugin : public Plugin {
|
||||||
public:
|
public:
|
||||||
virtual ~InputPlugin() {}
|
|
||||||
virtual void pluginFocusOutEvent() = 0;
|
virtual void pluginFocusOutEvent() = 0;
|
||||||
virtual void pluginUpdate(float deltaTime, const controller::InputCalibrationData& inputCalibrationData) = 0;
|
virtual void pluginUpdate(float deltaTime, const controller::InputCalibrationData& inputCalibrationData) = 0;
|
||||||
|
|
||||||
|
|
|
@ -109,7 +109,7 @@ class PickResult {
|
||||||
public:
|
public:
|
||||||
PickResult() {}
|
PickResult() {}
|
||||||
PickResult(const QVariantMap& pickVariant) : pickVariant(pickVariant) {}
|
PickResult(const QVariantMap& pickVariant) : pickVariant(pickVariant) {}
|
||||||
virtual ~PickResult() {}
|
virtual ~PickResult() = default;
|
||||||
|
|
||||||
virtual QVariantMap toVariantMap() const {
|
virtual QVariantMap toVariantMap() const {
|
||||||
return pickVariant;
|
return pickVariant;
|
||||||
|
@ -135,6 +135,7 @@ class PickQuery : protected ReadWriteLockable {
|
||||||
Q_GADGET
|
Q_GADGET
|
||||||
public:
|
public:
|
||||||
PickQuery(const PickFilter& filter, const float maxDistance, const bool enabled);
|
PickQuery(const PickFilter& filter, const float maxDistance, const bool enabled);
|
||||||
|
virtual ~PickQuery() = default;
|
||||||
|
|
||||||
/**jsdoc
|
/**jsdoc
|
||||||
* Enum for different types of Picks and Pointers.
|
* Enum for different types of Picks and Pointers.
|
||||||
|
@ -248,7 +249,6 @@ template<typename T>
|
||||||
class Pick : public PickQuery {
|
class Pick : public PickQuery {
|
||||||
public:
|
public:
|
||||||
Pick(const T& mathPick, const PickFilter& filter, const float maxDistance, const bool enabled) : PickQuery(filter, maxDistance, enabled), _mathPick(mathPick) {}
|
Pick(const T& mathPick, const PickFilter& filter, const float maxDistance, const bool enabled) : PickQuery(filter, maxDistance, enabled), _mathPick(mathPick) {}
|
||||||
virtual ~Pick() {}
|
|
||||||
|
|
||||||
virtual T getMathematicalPick() const = 0;
|
virtual T getMathematicalPick() const = 0;
|
||||||
virtual PickResultPointer getDefaultResult(const QVariantMap& pickVariant) const = 0;
|
virtual PickResultPointer getDefaultResult(const QVariantMap& pickVariant) const = 0;
|
||||||
|
|
|
@ -2175,7 +2175,10 @@ public:
|
||||||
bool isAntiAliased() const { return isFlag(IS_ANTIALIASED); }
|
bool isAntiAliased() const { return isFlag(IS_ANTIALIASED); }
|
||||||
|
|
||||||
Flags _flags = 0;
|
Flags _flags = 0;
|
||||||
short _spare = 0;
|
#if defined(__clang__)
|
||||||
|
__attribute__((unused))
|
||||||
|
#endif
|
||||||
|
short _spare = 0; // Padding
|
||||||
|
|
||||||
int getRaw() const { return *reinterpret_cast<const int*>(this); }
|
int getRaw() const { return *reinterpret_cast<const int*>(this); }
|
||||||
|
|
||||||
|
|
|
@ -26,10 +26,9 @@ class Model;
|
||||||
|
|
||||||
class MeshPartPayload {
|
class MeshPartPayload {
|
||||||
public:
|
public:
|
||||||
|
MeshPartPayload() = default;
|
||||||
MeshPartPayload() {}
|
|
||||||
MeshPartPayload(const std::shared_ptr<const graphics::Mesh>& mesh, int partIndex, graphics::MaterialPointer material);
|
MeshPartPayload(const std::shared_ptr<const graphics::Mesh>& mesh, int partIndex, graphics::MaterialPointer material);
|
||||||
virtual ~MeshPartPayload() {}
|
virtual ~MeshPartPayload() = default;
|
||||||
|
|
||||||
typedef render::Payload<MeshPartPayload> Payload;
|
typedef render::Payload<MeshPartPayload> Payload;
|
||||||
typedef Payload::DataPointer Pointer;
|
typedef Payload::DataPointer Pointer;
|
||||||
|
|
|
@ -531,7 +531,7 @@ public:
|
||||||
typedef UpdateFunctor<T> Updater;
|
typedef UpdateFunctor<T> Updater;
|
||||||
|
|
||||||
Payload(const DataPointer& data) : _data(data) {}
|
Payload(const DataPointer& data) : _data(data) {}
|
||||||
virtual ~Payload() {}
|
virtual ~Payload() = default;
|
||||||
|
|
||||||
// Payload general interface
|
// Payload general interface
|
||||||
virtual const ItemKey getKey() const override { return payloadGetKey<T>(_data); }
|
virtual const ItemKey getKey() const override { return payloadGetKey<T>(_data); }
|
||||||
|
|
|
@ -29,7 +29,8 @@ namespace PrioritySortUtil {
|
||||||
|
|
||||||
class Sortable {
|
class Sortable {
|
||||||
public:
|
public:
|
||||||
virtual ~Sortable() {}
|
virtual ~Sortable() = default;
|
||||||
|
|
||||||
virtual glm::vec3 getPosition() const = 0;
|
virtual glm::vec3 getPosition() const = 0;
|
||||||
virtual float getRadius() const = 0;
|
virtual float getRadius() const = 0;
|
||||||
virtual uint64_t getTimestamp() const = 0;
|
virtual uint64_t getTimestamp() const = 0;
|
||||||
|
|
|
@ -12,7 +12,8 @@
|
||||||
|
|
||||||
class TransformNode {
|
class TransformNode {
|
||||||
public:
|
public:
|
||||||
virtual ~TransformNode() {}
|
virtual ~TransformNode() = default;
|
||||||
|
|
||||||
virtual Transform getTransform() = 0;
|
virtual Transform getTransform() = 0;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -175,7 +175,7 @@ public:
|
||||||
template <class T, class I, class O, class C = Config> using ModelIO = Model<T, C, I, O>;
|
template <class T, class I, class O, class C = Config> using ModelIO = Model<T, C, I, O>;
|
||||||
|
|
||||||
Job(const ConceptPointer& concept) : _concept(concept) {}
|
Job(const ConceptPointer& concept) : _concept(concept) {}
|
||||||
virtual ~Job() {}
|
virtual ~Job() = default;
|
||||||
|
|
||||||
const std::string& getName() const { return _concept->getName(); }
|
const std::string& getName() const { return _concept->getName(); }
|
||||||
const Varying getInput() const { return _concept->getInput(); }
|
const Varying getInput() const { return _concept->getInput(); }
|
||||||
|
|
|
@ -52,6 +52,7 @@ protected:
|
||||||
friend class NeuronPlugin;
|
friend class NeuronPlugin;
|
||||||
|
|
||||||
InputDevice() : controller::InputDevice("Neuron") {}
|
InputDevice() : controller::InputDevice("Neuron") {}
|
||||||
|
virtual ~InputDevice() = default;
|
||||||
|
|
||||||
// Device functions
|
// Device functions
|
||||||
virtual controller::Input::NamedVector getAvailableInputs() const override;
|
virtual controller::Input::NamedVector getAvailableInputs() const override;
|
||||||
|
|
|
@ -1,8 +1,28 @@
|
||||||
|
//
|
||||||
|
// main.cpp
|
||||||
|
// tests/recording/src
|
||||||
|
//
|
||||||
|
// Created by Bradley Austin Davis on 11/06/15.
|
||||||
|
// Copyright 2018 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
|
||||||
|
//
|
||||||
|
|
||||||
|
#if defined(__clang__)
|
||||||
|
#pragma clang diagnostic push
|
||||||
|
#pragma clang diagnostic ignored "-Wunused-private-field"
|
||||||
|
#endif
|
||||||
|
|
||||||
#include <QtGlobal>
|
#include <QtGlobal>
|
||||||
#include <QtTest/QtTest>
|
#include <QtTest/QtTest>
|
||||||
#include <QtCore/QTemporaryFile>
|
#include <QtCore/QTemporaryFile>
|
||||||
#include <QtCore/QString>
|
#include <QtCore/QString>
|
||||||
|
|
||||||
|
#if defined(__clang__)
|
||||||
|
#pragma clang diagnostic pop
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef Q_OS_WIN32
|
#ifdef Q_OS_WIN32
|
||||||
#include <Windows.h>
|
#include <Windows.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue