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

@@ -21,3 +21,21 @@ func GetTex(name string) (*Tex, error) {
return tex, nil
}
// Finds and returns a Ply resource.
// If not found or when the resource is of wrong type, an error will be returned.
func GetPly(name string) (*Ply, error) {
res := GetResByName(name)
if res == nil {
return nil, errors.New("Resource not found")
}
ply, ok := res.(*Ply)
if !ok {
return nil, errors.New("Resource was not of type *Ply")
}
return ply, nil
}