module power.voxel.boxel
Code Map
module power.voxel.boxel;
//! VBO used for boxed base voxels.
class BoxelBuffer : gfx.Buffer
{
public:
num: GLsizei;
public:
fn update(vb: BoxelBuilder) { }
public:
static fn make(name: string, vb: BoxelBuilder) BoxelBuffer { }
}
class BoxelBuilder : gfx.Builder
{
public:
alias add = gfx.Builder.add;
public:
this(num: size_t) { }
fn reset(num: size_t) { }
fn addCube(x: f32, y: f32, z: f32, color: math.Color4b) { }
fn add(vert: Vertex*, num: size_t) { }
fn bake(vao: GLuint, buf: GLuint, num: GLsizei) { }
}
struct Vertex
{
public:
x: f32;
y: f32;
z: f32;
color: math.Color4b;
public:
fn opCall(x: f32, y: f32, z: f32, color: math.Color4b) Vertex { }
}
class BoxelBuffer : gfx.Buffer
VBO used for boxed base voxels.