12 #include <QtCore/QPointer>
13 #include <QtCore/QObject>
14 #include <QtCore/QLoggingCategory>
18 #include <glm/glm.hpp>
19 #include <ScriptValue.h>
28 Q_DECLARE_LOGGING_CATEGORY(graphics_scripting)
30 namespace scriptable {
31 QVariant toVariant(
const Extents& box);
32 QVariant toVariant(
const AABox& box);
33 QVariant toVariant(
const gpu::Element& element);
34 QVariant toVariant(
const glm::mat4& mat4);
45 template <
typename T> T this_qobject_cast(
ScriptEngine* engine);
47 QString toDebugString(QObject* tmp);
48 template <
typename T> QString toDebugString(std::shared_ptr<T> tmp);
53 template <
typename T,
class... Rest>
inline QPointer<T> make_scriptowned(Rest... rest) {
54 auto instance = QPointer<T>(
new T(rest...));
55 Q_ASSERT(instance && instance->parent());
Provides an engine-independent interface for a scripting engine.
Definition: ScriptEngine.h:93
[ScriptInterface] Provides an engine-independent interface for QScriptValue
Definition: ScriptValue.h:40