mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-08 06:32:35 +02:00
add basic GVRInterface class that creates a NodeList
This commit is contained in:
parent
6e6a3173db
commit
f5f9513e4e
4 changed files with 48 additions and 3 deletions
|
@ -67,7 +67,7 @@ macro(qt_create_apk)
|
|||
TARGET ${TARGET_NAME}
|
||||
COMMAND ${CMAKE_COMMAND} -E copy ${_LOCATED_DEP} "${ANDROID_APK_OUTPUT_DIR}/libs/${ANDROID_ABI}"
|
||||
)
|
||||
list(REMOVE_ITEM _DEPS_LIST _LOCATED_DEP)
|
||||
list(REMOVE_ITEM _DEPS_LIST ${_LOCATED_DEP})
|
||||
endif ()
|
||||
endforeach()
|
||||
|
||||
|
|
20
gvr-interface/src/GVRInterface.cpp
Normal file
20
gvr-interface/src/GVRInterface.cpp
Normal file
|
@ -0,0 +1,20 @@
|
|||
//
|
||||
// GVRInterface.cpp
|
||||
// gvr-interface/src
|
||||
//
|
||||
// Created by Stephen Birarda on 11/18/14.
|
||||
// Copyright 2013 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
|
||||
//
|
||||
|
||||
#include <NodeList.h>
|
||||
|
||||
#include "GVRInterface.h"
|
||||
|
||||
GVRInterface::GVRInterface(int argc, char* argv[]) :
|
||||
QGuiApplication(argc, argv)
|
||||
{
|
||||
NodeList* nodeList = NodeList::createInstance(NodeType::Agent);
|
||||
}
|
25
gvr-interface/src/GVRInterface.h
Normal file
25
gvr-interface/src/GVRInterface.h
Normal file
|
@ -0,0 +1,25 @@
|
|||
//
|
||||
// GVRInterface.h
|
||||
// gvr-interface/src
|
||||
//
|
||||
// Created by Stephen Birarda on 11/18/14.
|
||||
// Copyright 2013 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_GVRInterface_h
|
||||
#define hifi_GVRInterface_h
|
||||
|
||||
#include <QtGui/qguiapplication.h>
|
||||
|
||||
class GVRInterface : public QGuiApplication {
|
||||
Q_OBJECT
|
||||
public:
|
||||
GVRInterface(int argc, char* argv[]);
|
||||
private slots:
|
||||
void processDatagrams();
|
||||
};
|
||||
|
||||
#endif // hifi_GVRInterface_h
|
|
@ -9,9 +9,9 @@
|
|||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
|
||||
#include <QtGui/qguiapplication.h>
|
||||
#include "GVRInterface.h"
|
||||
|
||||
int main(int argc, char* argv[]) {
|
||||
QGuiApplication app(argc, argv);
|
||||
GVRInterface app(argc, argv);
|
||||
return app.exec();
|
||||
}
|
Loading…
Reference in a new issue