mirror of
https://github.com/overte-org/overte.git
synced 2025-06-27 00:49:48 +02:00
25 lines
609 B
C++
25 lines
609 B
C++
#include "TestCase.h"
|
|
|
|
#include <QtCore/QLoggingCategory>
|
|
#include <QtCore/QDir>
|
|
|
|
void TestCase::destroy() {
|
|
}
|
|
void TestCase::update() {
|
|
}
|
|
|
|
void TestCase::init() {
|
|
_glf.initializeOpenGLFunctions();
|
|
_discardLamdba = hifi::qml::OffscreenSurface::getDiscardLambda();
|
|
}
|
|
|
|
QUrl TestCase::getTestResource(const QString& relativePath) {
|
|
static QString dir;
|
|
if (dir.isEmpty()) {
|
|
QDir path(__FILE__);
|
|
path.cdUp();
|
|
dir = path.cleanPath(path.absoluteFilePath("../")) + "/";
|
|
qDebug() << "Resources Path: " << dir;
|
|
}
|
|
return QUrl::fromLocalFile(dir + relativePath);
|
|
}
|