overte-JulianGro/Source/cube.h
2013-01-30 13:11:20 -08:00

33 lines
570 B
C++

//
// Cube.h
// interface
//
// Created by Philip on 12/31/12.
// Copyright (c) 2012 High Fidelity, Inc. All rights reserved.
//
#ifndef __interface__Cube__
#define __interface__Cube__
#include "glm.hpp"
#include "Util.h"
#include "world.h"
#include <GLUT/glut.h>
#include <iostream>
class VoxelSystem {
public:
VoxelSystem(int num,
glm::vec3 box);
void simulate(float deltaTime);
void render();
private:
struct Voxel {
glm::vec3 color;
bool hasChildren;
Voxel * children;
} *voxels;
};
#endif