module charge.gfx.buffer
Graphics

Vertex buffers.

Code Map

//! Vertex buffers.
module charge.gfx.buffer;


class Buffer : sys.Resource
{
public:
	enum uri;


public:
	vao: GLuint;
	buf: GLuint;


protected:
	fn deleteBuffers() { }
}

class Builder
{
public:
	this() { }
	fn ptr() void* { }
	fn length() size_t { }
	fn close() { }
	fn add(input: void*, size: size_t) { }
	fn alignAndGetOffset(to: size_t) size_t { }
	fn resetStore(size: size_t) { }
}

//! Dereference and reference helper function.
fn reference(dec: Buffer, inc: Buffer) { }
//! Closes and sets reference to null.
fn destroy(obj: Builder) { }
fn reference(dec: Buffer, inc: Buffer)

Dereference and reference helper function.

Parameters

dec

Object to dereference passed by reference, set to inc.

inc

Object to reference.

fn destroy(obj: Builder)

Closes and sets reference to null.