mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-28 17:17:53 +02:00
Merge pull request #3073 from ZappoMan/removeOctreeTests
try to get tests to build
This commit is contained in:
commit
3b4ac91d60
4 changed files with 15 additions and 12 deletions
|
@ -12,9 +12,10 @@
|
||||||
#ifndef hifi_ModelItem_h
|
#ifndef hifi_ModelItem_h
|
||||||
#define hifi_ModelItem_h
|
#define hifi_ModelItem_h
|
||||||
|
|
||||||
#include <glm/glm.hpp>
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
|
||||||
|
#include <glm/glm.hpp>
|
||||||
|
|
||||||
#include <QtScript/QScriptEngine>
|
#include <QtScript/QScriptEngine>
|
||||||
#include <QtCore/QObject>
|
#include <QtCore/QObject>
|
||||||
|
|
||||||
|
@ -23,6 +24,7 @@
|
||||||
#include <SharedUtil.h>
|
#include <SharedUtil.h>
|
||||||
#include <OctreePacketData.h>
|
#include <OctreePacketData.h>
|
||||||
|
|
||||||
|
|
||||||
class ModelItem;
|
class ModelItem;
|
||||||
class ModelEditPacketSender;
|
class ModelEditPacketSender;
|
||||||
class ModelItemProperties;
|
class ModelItemProperties;
|
||||||
|
|
|
@ -30,15 +30,20 @@ include_glm(${TARGET_NAME} ${ROOT_DIR})
|
||||||
|
|
||||||
# link in the shared libraries
|
# link in the shared libraries
|
||||||
include(${MACRO_DIR}/LinkHifiLibrary.cmake)
|
include(${MACRO_DIR}/LinkHifiLibrary.cmake)
|
||||||
link_hifi_library(animation ${TARGET_NAME} ${ROOT_DIR})
|
|
||||||
link_hifi_library(audio ${TARGET_NAME} ${ROOT_DIR})
|
|
||||||
link_hifi_library(fbx ${TARGET_NAME} ${ROOT_DIR})
|
|
||||||
link_hifi_library(networking ${TARGET_NAME} ${ROOT_DIR})
|
|
||||||
link_hifi_library(models ${TARGET_NAME} ${ROOT_DIR})
|
link_hifi_library(models ${TARGET_NAME} ${ROOT_DIR})
|
||||||
link_hifi_library(octree ${TARGET_NAME} ${ROOT_DIR})
|
link_hifi_library(octree ${TARGET_NAME} ${ROOT_DIR})
|
||||||
|
link_hifi_library(audio ${TARGET_NAME} ${ROOT_DIR})
|
||||||
|
link_hifi_library(networking ${TARGET_NAME} ${ROOT_DIR})
|
||||||
|
link_hifi_library(animation ${TARGET_NAME} ${ROOT_DIR})
|
||||||
|
link_hifi_library(fbx ${TARGET_NAME} ${ROOT_DIR})
|
||||||
link_hifi_library(shared ${TARGET_NAME} ${ROOT_DIR})
|
link_hifi_library(shared ${TARGET_NAME} ${ROOT_DIR})
|
||||||
|
|
||||||
IF (WIN32)
|
IF (WIN32)
|
||||||
|
# add a definition for ssize_t so that windows doesn't bail
|
||||||
|
add_definitions(-Dssize_t=long)
|
||||||
|
|
||||||
#target_link_libraries(${TARGET_NAME} Winmm Ws2_32)
|
#target_link_libraries(${TARGET_NAME} Winmm Ws2_32)
|
||||||
|
target_link_libraries(${TARGET_NAME} wsock32.lib)
|
||||||
ENDIF(WIN32)
|
ENDIF(WIN32)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -14,20 +14,17 @@
|
||||||
|
|
||||||
#include <QDebug>
|
#include <QDebug>
|
||||||
|
|
||||||
#if 0
|
#include <Octree.h>
|
||||||
#include <ModelItem.h>
|
#include <ModelItem.h>
|
||||||
#include <ModelTree.h>
|
#include <ModelTree.h>
|
||||||
#include <ModelTreeElement.h>
|
#include <ModelTreeElement.h>
|
||||||
#include <Octree.h>
|
|
||||||
#include <OctreeConstants.h>
|
#include <OctreeConstants.h>
|
||||||
#include <PropertyFlags.h>
|
#include <PropertyFlags.h>
|
||||||
#include <SharedUtil.h>
|
#include <SharedUtil.h>
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "ModelTests.h"
|
#include "ModelTests.h"
|
||||||
|
|
||||||
void ModelTests::modelTreeTests(bool verbose) {
|
void ModelTests::modelTreeTests(bool verbose) {
|
||||||
#if 0
|
|
||||||
int testsTaken = 0;
|
int testsTaken = 0;
|
||||||
int testsPassed = 0;
|
int testsPassed = 0;
|
||||||
int testsFailed = 0;
|
int testsFailed = 0;
|
||||||
|
@ -258,7 +255,6 @@ void ModelTests::modelTreeTests(bool verbose) {
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
qDebug() << "******************************************************************************************";
|
qDebug() << "******************************************************************************************";
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1183,7 +1183,7 @@ void ShapeColliderTests::rayMissesCapsule() {
|
||||||
|
|
||||||
void ShapeColliderTests::rayHitsPlane() {
|
void ShapeColliderTests::rayHitsPlane() {
|
||||||
// make a simple plane
|
// make a simple plane
|
||||||
float planeDistanceFromOrigin = 3.579;
|
float planeDistanceFromOrigin = 3.579f;
|
||||||
glm::vec3 planePosition(0.0f, planeDistanceFromOrigin, 0.0f);
|
glm::vec3 planePosition(0.0f, planeDistanceFromOrigin, 0.0f);
|
||||||
PlaneShape plane;
|
PlaneShape plane;
|
||||||
plane.setTranslation(planePosition);
|
plane.setTranslation(planePosition);
|
||||||
|
@ -1228,7 +1228,7 @@ void ShapeColliderTests::rayHitsPlane() {
|
||||||
|
|
||||||
void ShapeColliderTests::rayMissesPlane() {
|
void ShapeColliderTests::rayMissesPlane() {
|
||||||
// make a simple plane
|
// make a simple plane
|
||||||
float planeDistanceFromOrigin = 3.579;
|
float planeDistanceFromOrigin = 3.579f;
|
||||||
glm::vec3 planePosition(0.0f, planeDistanceFromOrigin, 0.0f);
|
glm::vec3 planePosition(0.0f, planeDistanceFromOrigin, 0.0f);
|
||||||
PlaneShape plane;
|
PlaneShape plane;
|
||||||
plane.setTranslation(planePosition);
|
plane.setTranslation(planePosition);
|
||||||
|
|
Loading…
Reference in a new issue