Documentation ¶
Index ¶
- Variables
- type PrimitiveRenderer
- func (component *PrimitiveRenderer) GetComponentName() string
- func (component *PrimitiveRenderer) Init()
- func (component *PrimitiveRenderer) MarkRender()
- func (component *PrimitiveRenderer) RenderControlPanel()
- func (component *PrimitiveRenderer) SetShape(shape Shape2D)
- func (component *PrimitiveRenderer) SetTexture(textureName string)
- func (component *PrimitiveRenderer) Update()
- type SampleComponent
- type Shape2D
- type Shape2DComponent
- func (component *Shape2DComponent) Determine() Shape2D
- func (component *Shape2DComponent) GetComponentName() string
- func (component *Shape2DComponent) Init()
- func (component *Shape2DComponent) RenderControlPanel()
- func (component *Shape2DComponent) SetShape(shape shape.IShape)
- func (component *Shape2DComponent) Update()
- type TransformComponent
Constants ¶
This section is empty.
Variables ¶
View Source
var SHAPES_LIST = [3]string{
"Rect",
"Ellipse",
"Line",
}
Functions ¶
This section is empty.
Types ¶
type PrimitiveRenderer ¶
type PrimitiveRenderer struct { Color color.Color Shape shape.IShape Texture *opengl.Texture // contains filtered or unexported fields }
func (*PrimitiveRenderer) GetComponentName ¶
func (component *PrimitiveRenderer) GetComponentName() string
func (*PrimitiveRenderer) Init ¶
func (component *PrimitiveRenderer) Init()
func (*PrimitiveRenderer) MarkRender ¶
func (component *PrimitiveRenderer) MarkRender()
func (*PrimitiveRenderer) RenderControlPanel ¶
func (component *PrimitiveRenderer) RenderControlPanel()
func (*PrimitiveRenderer) SetShape ¶
func (component *PrimitiveRenderer) SetShape(shape Shape2D)
func (*PrimitiveRenderer) SetTexture ¶
func (component *PrimitiveRenderer) SetTexture(textureName string)
func (*PrimitiveRenderer) Update ¶
func (component *PrimitiveRenderer) Update()
type SampleComponent ¶
type SampleComponent struct { }
A sample component that we can use around the engine for various tasks
func (*SampleComponent) GetComponentName ¶
func (component *SampleComponent) GetComponentName() string
func (*SampleComponent) Init ¶
func (component *SampleComponent) Init()
func (*SampleComponent) MarkRender ¶
func (component *SampleComponent) MarkRender()
func (*SampleComponent) Update ¶
func (component *SampleComponent) Update()
type Shape2DComponent ¶
type Shape2DComponent struct { Name string Shape shape.IShape // contains filtered or unexported fields }
func (*Shape2DComponent) Determine ¶
func (component *Shape2DComponent) Determine() Shape2D
Determines what specific shape this is
func (*Shape2DComponent) GetComponentName ¶
func (component *Shape2DComponent) GetComponentName() string
func (*Shape2DComponent) Init ¶
func (component *Shape2DComponent) Init()
func (*Shape2DComponent) RenderControlPanel ¶
func (component *Shape2DComponent) RenderControlPanel()
func (*Shape2DComponent) SetShape ¶
func (component *Shape2DComponent) SetShape(shape shape.IShape)
func (*Shape2DComponent) Update ¶
func (component *Shape2DComponent) Update()
type TransformComponent ¶
type TransformComponent struct { Name string Position math.Vec3f Rotation math.Vec3f Scale math.Vec3f }
func (*TransformComponent) GetComponentName ¶
func (transform *TransformComponent) GetComponentName() string
Keeping this here to avoid using reflection
func (*TransformComponent) Init ¶
func (transform *TransformComponent) Init()
func (*TransformComponent) RenderControlPanel ¶
func (transform *TransformComponent) RenderControlPanel()
Allows the component to designate its own control panel within the editor
func (*TransformComponent) Update ¶
func (tranform *TransformComponent) Update()
Don't really need much functionality from this every frame
Source Files ¶
Click to show internal directories.
Click to hide internal directories.