gg/ox/feats.go

32 lines
539 B
Go
Raw Normal View History

2024-05-28 11:24:12 +03:00
package ox
// Feat to emded for turning antialias on and off.
type Antialiasity struct {
Antialias bool
}
// Feat to embed for turning visibility on and off.
type Visibility struct {
Visible bool
}
func (v Visibility) IsVisible() bool {
return v.Visible
}
// Feat to embed to make colorful objects.
type Colority struct {
Color Color
}
// The structure to embed into shaderable
// objects.
type Shaderity struct {
ShaderOptions ShaderOptions
}
func (s *Shaderity) GetShaderOptions(
) *ShaderOptions {
return &s.ShaderOptions
}