mirror of
https://github.com/overte-org/overte.git
synced 2025-04-29 19:02:36 +02:00
renaming of AABox to AACube, introduction of actual AABox
This commit is contained in:
parent
33fe339213
commit
3a166d2832
1 changed files with 43 additions and 0 deletions
43
libraries/octree/src/BoxBase.h
Normal file
43
libraries/octree/src/BoxBase.h
Normal file
|
@ -0,0 +1,43 @@
|
|||
//
|
||||
// BoxBase.h
|
||||
// libraries/octree/src
|
||||
//
|
||||
// Created by Brad Hefta-Gaub on 04/11/13.
|
||||
// Copyright 2013 High Fidelity, Inc.
|
||||
//
|
||||
// Originally from lighthouse3d. Modified to utilize glm::vec3 and clean up to our coding standards
|
||||
// Simple axis aligned box class.
|
||||
//
|
||||
// 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_BoxBase_h
|
||||
#define hifi_BoxBase_h
|
||||
|
||||
#include <glm/glm.hpp>
|
||||
|
||||
enum BoxFace {
|
||||
MIN_X_FACE,
|
||||
MAX_X_FACE,
|
||||
MIN_Y_FACE,
|
||||
MAX_Y_FACE,
|
||||
MIN_Z_FACE,
|
||||
MAX_Z_FACE,
|
||||
UNKNOWN_FACE
|
||||
};
|
||||
|
||||
enum BoxVertex {
|
||||
BOTTOM_LEFT_NEAR = 0,
|
||||
BOTTOM_RIGHT_NEAR = 1,
|
||||
TOP_RIGHT_NEAR = 2,
|
||||
TOP_LEFT_NEAR = 3,
|
||||
BOTTOM_LEFT_FAR = 4,
|
||||
BOTTOM_RIGHT_FAR = 5,
|
||||
TOP_RIGHT_FAR = 6,
|
||||
TOP_LEFT_FAR = 7
|
||||
};
|
||||
|
||||
const int FACE_COUNT = 6;
|
||||
|
||||
#endif // hifi_BoxBase_h
|
Loading…
Reference in a new issue