Initial uniform buffers implementation

This commit is contained in:
bloeys
2024-05-23 07:57:46 +04:00
parent 9e6fdacb48
commit cb20e8ba8b
4 changed files with 339 additions and 15 deletions

View File

@ -55,7 +55,7 @@ func NewVertexBuffer(layout ...Element) VertexBuffer {
gl.GenBuffers(1, &vb.Id)
if vb.Id == 0 {
logging.ErrLog.Println("Failed to create OpenGL buffer")
logging.ErrLog.Panicln("Failed to create OpenGL buffer")
}
vb.SetLayout(layout...)