mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 22:10:25 +02:00
adding ViewFrustumTests
This commit is contained in:
parent
92581587b1
commit
669cc75596
2 changed files with 1180 additions and 0 deletions
1149
tests/octree/src/ViewFrustumTests.cpp
Normal file
1149
tests/octree/src/ViewFrustumTests.cpp
Normal file
File diff suppressed because it is too large
Load diff
31
tests/octree/src/ViewFrustumTests.h
Normal file
31
tests/octree/src/ViewFrustumTests.h
Normal file
|
@ -0,0 +1,31 @@
|
||||||
|
//
|
||||||
|
// ViewFrustumTests.h
|
||||||
|
// tests/octree/src
|
||||||
|
//
|
||||||
|
// Created by Andrew Meadows on 2016.02.19
|
||||||
|
// Copyright 2016 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_ViewFruxtumTests_h
|
||||||
|
#define hifi_ViewFruxtumTests_h
|
||||||
|
|
||||||
|
#include <QtTest/QtTest>
|
||||||
|
|
||||||
|
class ViewFrustumTests : public QObject {
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
private slots:
|
||||||
|
void testInit();
|
||||||
|
void testPointInFrustum();
|
||||||
|
void testSphereInFrustum();
|
||||||
|
void testCubeInFrustum();
|
||||||
|
void testBoxInFrustum();
|
||||||
|
void testSphereTouchesKeyhole();
|
||||||
|
void testCubeTouchesKeyhole();
|
||||||
|
void testBoxTouchesKeyhole();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // hifi_ViewFruxtumTests_h
|
Loading…
Reference in a new issue