mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-16 12:40:10 +02:00
33 lines
875 B
C
33 lines
875 B
C
//
|
|
// VoxelConstants.h
|
|
// hifi
|
|
//
|
|
// Created by Brad Hefta-Gaub on 4/29/13.
|
|
//
|
|
//
|
|
// Various important constants used throughout the system related to voxels
|
|
//
|
|
//
|
|
|
|
#ifndef __hifi_VoxelConstants_h__
|
|
#define __hifi_VoxelConstants_h__
|
|
|
|
#include <limits.h>
|
|
|
|
const int TREE_SCALE = 100;
|
|
|
|
const int NUMBER_OF_CHILDREN = 8;
|
|
const int MAX_VOXEL_PACKET_SIZE = 1492;
|
|
const int MAX_TREE_SLICE_BYTES = 26;
|
|
const int MAX_VOXELS_PER_SYSTEM = 250000;
|
|
const int VERTICES_PER_VOXEL = 24;
|
|
const int VERTEX_POINTS_PER_VOXEL = 3 * VERTICES_PER_VOXEL;
|
|
const int INDICES_PER_VOXEL = 3 * 12;
|
|
const int COLOR_VALUES_PER_VOXEL = 3 * VERTICES_PER_VOXEL;
|
|
|
|
typedef unsigned long int glBufferIndex;
|
|
const glBufferIndex GLBUFFER_INDEX_UNKNOWN = ULONG_MAX;
|
|
|
|
const double SIXTY_FPS_IN_MILLISECONDS = 1000.0/60;
|
|
const double VIEW_CULLING_RATE_IN_MILLISECONDS = 1000.0; // once a second is fine
|
|
#endif
|