Removed shader, added 3D rendering (no demo yet, coming next), started bitmap font rendering, a few fixes and improvements.

This commit is contained in:
Marvin Blum
2016-05-07 20:26:36 +02:00
parent 1d974566de
commit 139e668233
15 changed files with 809 additions and 106 deletions

View File

@@ -75,6 +75,25 @@ type Ply struct {
IndexBuffer, VertexBuffer, TexCoordBuffer, NormalBuffer *VBO
}
// Drops contained GL buffers.
func (p *Ply) Drop() {
if p.IndexBuffer != nil {
p.IndexBuffer.Drop()
}
if p.VertexBuffer != nil {
p.VertexBuffer.Drop()
}
if p.TexCoordBuffer != nil {
p.TexCoordBuffer.Drop()
}
if p.NormalBuffer != nil {
p.NormalBuffer.Drop()
}
}
// Returns the name of this resource.
func (p *Ply) GetName() string {
return p.name