32 lines
539 B
Go
32 lines
539 B
Go
|
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
|
||
|
}
|