mirror of
https://github.com/bloeys/nmage.git
synced 2025-12-29 13:28:20 +00:00
Day 15: Basic renderer+improve material system+lockosthread on init
This commit is contained in:
@ -7,18 +7,12 @@ import (
|
||||
"github.com/bloeys/assimp-go/asig"
|
||||
"github.com/bloeys/gglm/gglm"
|
||||
"github.com/bloeys/nmage/asserts"
|
||||
"github.com/bloeys/nmage/assets"
|
||||
"github.com/bloeys/nmage/buffers"
|
||||
)
|
||||
|
||||
type Mesh struct {
|
||||
Name string
|
||||
TextureIDs []uint32
|
||||
Buf buffers.Buffer
|
||||
}
|
||||
|
||||
func (m *Mesh) AddTexture(tex assets.Texture) {
|
||||
m.TextureIDs = append(m.TextureIDs, tex.TexID)
|
||||
Name string
|
||||
Buf buffers.Buffer
|
||||
}
|
||||
|
||||
func NewMesh(name, modelPath string, postProcessFlags asig.PostProcess) (*Mesh, error) {
|
||||
|
||||
Reference in New Issue
Block a user