add basic GVRInterface class that creates a NodeList

This commit is contained in:
Stephen Birarda 2014-11-18 11:59:38 -08:00
parent 6e6a3173db
commit f5f9513e4e
4 changed files with 48 additions and 3 deletions

View file

@ -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()

View 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);
}

View 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

View file

@ -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();
}