mirror of
https://github.com/JulianGro/overte.git
synced 2025-04-09 19:32:25 +02:00
33 lines
562 B
C++
33 lines
562 B
C++
//
|
|
// cube.h
|
|
// interface
|
|
//
|
|
// Created by Philip on 12/31/12.
|
|
// Copyright (c) 2012 Rosedale Lab. All rights reserved.
|
|
//
|
|
|
|
#ifndef interface_cube_h
|
|
#define interface_cube_h
|
|
|
|
#include "glm/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
|