Documentation ¶
Index ¶
- type Data
- type Dynamic
- type Generator
- type Mesh
- type Static
- func (m *Static) CastShadows() bool
- func (m *Static) Material() *material.Def
- func (m *Static) MaterialID() material.ID
- func (m *Static) Mesh() assets.Mesh
- func (m *Static) Name() string
- func (m *Static) SetTexture(slot texture.Slot, ref assets.Texture)
- func (m *Static) Texture(slot texture.Slot) assets.Texture
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data[V vertex.VertexFormat, I vertex.IndexFormat] struct { Vertices []V Indices []I }
type Dynamic ¶
type Dynamic[V vertex.VertexFormat, I vertex.IndexFormat] struct { *Static // contains filtered or unexported fields }
func NewDynamic ¶
func (*Dynamic[V, I]) RefreshSync ¶
func (m *Dynamic[V, I]) RefreshSync()
type Generator ¶
type Generator[V vertex.VertexFormat, I vertex.IndexFormat] func() Data[V, I]
type Static ¶
type Static struct { object.Component CastsShadow object.Property[bool] Mat object.Property[*material.Def] Textures object.Dict[texture.Slot, assets.Texture] VertexData object.Property[assets.Mesh] // contains filtered or unexported fields }
mesh base
func (*Static) CastShadows ¶
func (*Static) MaterialID ¶
Click to show internal directories.
Click to hide internal directories.