History

start on scripting interface to allow saving polyvox meshes to obj files

Seth Alves committed 9 years ago

Commit 541692c1 parent 94537219 files · +175 −1Browse files

Showing the changes to libraries/script-engine/src/ModelScriptingInterface.cpp (1 of 9 files). Show all

Unified · Split

libraries/script-engine/src/ModelScriptingInterface.cpp+31−0
@@ -0,0 +1,31 @@
1//
2// ModelScriptingInterface.cpp
3// libraries/script-engine/src
4//
5// Created by Seth Alves on 2017-1-27.
6// Copyright 2017 High Fidelity, Inc.
7//
8// Distributed under the Apache License, Version 2.0.
9// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
10//
11
12#include "ModelScriptingInterface.h"
13
14ModelScriptingInterface::ModelScriptingInterface(QObject* parent) : QObject(parent) {
15}
16
17
18MeshProxy::MeshProxy(MeshPointer mesh) : _mesh(mesh) {
19}
20
21MeshProxy::~MeshProxy() {
22}
23
24
25QScriptValue meshToScriptValue(QScriptEngine* engine, MeshProxy* const &in) {
26 QScriptValue obj("something");
27 return obj;
28}
29
30void meshFromScriptValue(const QScriptValue& value, MeshProxy* &out) {
31}