Voxellancer
0.3
A game about voxels in space
Main Page
Related Pages
Classes
Files
File List
All
Classes
Functions
Pages
objecthudgetcornervoxels.h
1
#pragma once
2
3
#include <memory>
4
#include <vector>
5
6
#include <glm/glm.hpp>
7
#include <glm/gtx/quaternion.hpp>
8
9
#include "voxel/voxelcluster.h"
10
11
12
class
ObjectHudgetVoxels
;
13
14
class
ObjectHudgetCornerVoxels
{
15
public
:
16
ObjectHudgetCornerVoxels
(
ObjectHudgetVoxels
* objectHudgetVoxels,
const
glm::ivec3& baseOffset);
17
18
const
glm::vec3& position()
const
;
19
const
glm::quat& orientation()
const
;
20
21
void
update(
float
deltaSec);
22
void
draw(
int
index);
23
24
25
protected
:
26
ObjectHudgetVoxels
* m_objectHudgetVoxels;
27
glm::ivec3 m_baseOffset;
28
29
glm::vec3 m_position;
30
glm::quat m_orientation;
31
32
std::vector<std::unique_ptr<VoxelCluster>> m_voxelClusters;
33
34
void
addIndex(
int
index, uint32_t color,
float
scale);
35
};
36
ObjectHudgetVoxels
Definition:
objecthudgetvoxels.h:13
ObjectHudgetCornerVoxels
Definition:
objecthudgetcornervoxels.h:14
src
ui
hud
objecthudgetcornervoxels.h
Generated on Sun Mar 30 2014 13:32:31 for Voxellancer by
1.8.6