Documentation ¶
Index ¶
- Constants
- Variables
- type EllipseRenderer
- func (r EllipseRenderer) OnRemovePrimitive(ctx *rendering.PrimitiveRenderingContext)
- func (r *EllipseRenderer) OnRender(ctx *rendering.PrimitiveRenderingContext)
- func (r EllipseRenderer) OnSetPrimitive(ctx *rendering.PrimitiveRenderingContext)
- func (r *EllipseRenderer) OnStart()
- func (r EllipseRenderer) OnStop()
- type Frontend
- func (f *Frontend) CommencePanic(reason, msg string)
- func (f *Frontend) Execute(item dispatch.WorkItem)
- func (f *Frontend) GetApp() *frontend.App
- func (f *Frontend) GetContext() frontend.Context
- func (f *Frontend) GetLaunchArgs() a.SiMap
- func (f *Frontend) GetMessageDispatcher() dispatch.MessageDispatcher
- func (f *Frontend) GetPlatform() common.Platform
- func (f *Frontend) GetRenderer() *rendering.ARenderer
- func (f *Frontend) GetResourceManager() frontend.ResourceManager
- func (f *Frontend) GetWorkDispatcher() dispatch.WorkDispatcher
- func (f *Frontend) Init()
- func (f *Frontend) Run()
- func (f *Frontend) SendMessage(message *dispatch.Message)
- func (f *Frontend) SetEngineDispatcher(disp dispatch.MessageDispatcher)
- func (f *Frontend) Stop()
- type GlProgram
- type ImageRenderer
- func (r ImageRenderer) OnRemovePrimitive(ctx *rendering.PrimitiveRenderingContext)
- func (r *ImageRenderer) OnRender(ctx *rendering.PrimitiveRenderingContext)
- func (r ImageRenderer) OnSetPrimitive(ctx *rendering.PrimitiveRenderingContext)
- func (r *ImageRenderer) OnStart()
- func (r ImageRenderer) OnStop()
- type LineRenderer
- type OpenGLRenderer
- type RectangleRenderer
- func (r RectangleRenderer) OnRemovePrimitive(ctx *rendering.PrimitiveRenderingContext)
- func (r *RectangleRenderer) OnRender(ctx *rendering.PrimitiveRenderingContext)
- func (r RectangleRenderer) OnSetPrimitive(ctx *rendering.PrimitiveRenderingContext)
- func (r *RectangleRenderer) OnStart()
- func (r RectangleRenderer) OnStop()
- type ResourceManager
- type TextRenderer
- type TriangleRenderer
- func (r TriangleRenderer) OnRemovePrimitive(ctx *rendering.PrimitiveRenderingContext)
- func (r *TriangleRenderer) OnRender(ctx *rendering.PrimitiveRenderingContext)
- func (r TriangleRenderer) OnSetPrimitive(ctx *rendering.PrimitiveRenderingContext)
- func (r *TriangleRenderer) OnStart()
- func (r TriangleRenderer) OnStop()
Constants ¶
View Source
const SleepTimeS = 1.0 / 60.0
Variables ¶
View Source
var CommonFragmentShaderStr string
View Source
var CommonVertexShaderStr string
View Source
var DefaultFragShaderStr string
View Source
var DefaultVertexShaderStr string
View Source
var EllipseFragShaderStr string
View Source
var EllipseVertexShaderStr string
View Source
var ImageFragShaderStr string
View Source
var ImageVertexShaderStr string
View Source
var RectFragShaderStr string
View Source
var ShapeFragShaderStr string
View Source
var ShapeVertexShaderStr string
View Source
var TextFragShaderStr string
View Source
var TextVertexShaderStr string
Functions ¶
This section is empty.
Types ¶
type EllipseRenderer ¶ added in v0.2.0
type EllipseRenderer struct {
// contains filtered or unexported fields
}
func (EllipseRenderer) OnRemovePrimitive ¶ added in v0.2.0
func (r EllipseRenderer) OnRemovePrimitive(ctx *rendering.PrimitiveRenderingContext)
func (*EllipseRenderer) OnRender ¶ added in v0.2.0
func (r *EllipseRenderer) OnRender(ctx *rendering.PrimitiveRenderingContext)
func (EllipseRenderer) OnSetPrimitive ¶ added in v0.2.0
func (r EllipseRenderer) OnSetPrimitive(ctx *rendering.PrimitiveRenderingContext)
func (*EllipseRenderer) OnStart ¶ added in v0.2.0
func (r *EllipseRenderer) OnStart()
type Frontend ¶
type Frontend struct {
// contains filtered or unexported fields
}
func NewFrontend ¶
func NewFrontend() *Frontend
func (*Frontend) CommencePanic ¶
func (*Frontend) GetContext ¶
func (*Frontend) GetLaunchArgs ¶ added in v0.1.7
func (*Frontend) GetMessageDispatcher ¶ added in v0.2.1
func (f *Frontend) GetMessageDispatcher() dispatch.MessageDispatcher
func (*Frontend) GetPlatform ¶
func (*Frontend) GetRenderer ¶
func (*Frontend) GetResourceManager ¶
func (f *Frontend) GetResourceManager() frontend.ResourceManager
func (*Frontend) GetWorkDispatcher ¶ added in v0.2.1
func (f *Frontend) GetWorkDispatcher() dispatch.WorkDispatcher
func (*Frontend) SendMessage ¶ added in v0.2.1
func (*Frontend) SetEngineDispatcher ¶ added in v0.2.1
func (f *Frontend) SetEngineDispatcher(disp dispatch.MessageDispatcher)
type GlProgram ¶ added in v0.3.4
type GlProgram struct {
// contains filtered or unexported fields
}
func NewGlProgram ¶ added in v0.3.4
func (*GlProgram) CompileAndLink ¶ added in v0.3.4
func (p *GlProgram) CompileAndLink()
func (*GlProgram) GetUniformLocation ¶ added in v0.3.4
func (*GlProgram) SetClipArea2DUniforms ¶ added in v0.3.4
func (p *GlProgram) SetClipArea2DUniforms(area *rendering.ClipArea2D)
type ImageRenderer ¶ added in v0.2.0
type ImageRenderer struct {
// contains filtered or unexported fields
}
func (ImageRenderer) OnRemovePrimitive ¶ added in v0.2.0
func (r ImageRenderer) OnRemovePrimitive(ctx *rendering.PrimitiveRenderingContext)
func (*ImageRenderer) OnRender ¶ added in v0.2.0
func (r *ImageRenderer) OnRender(ctx *rendering.PrimitiveRenderingContext)
func (ImageRenderer) OnSetPrimitive ¶ added in v0.2.0
func (r ImageRenderer) OnSetPrimitive(ctx *rendering.PrimitiveRenderingContext)
func (*ImageRenderer) OnStart ¶ added in v0.2.0
func (r *ImageRenderer) OnStart()
type LineRenderer ¶ added in v0.2.0
type LineRenderer struct {
// contains filtered or unexported fields
}
func (LineRenderer) OnRemovePrimitive ¶ added in v0.2.0
func (r LineRenderer) OnRemovePrimitive(ctx *rendering.PrimitiveRenderingContext)
func (*LineRenderer) OnRender ¶ added in v0.2.0
func (r *LineRenderer) OnRender(ctx *rendering.PrimitiveRenderingContext)
func (LineRenderer) OnSetPrimitive ¶ added in v0.2.0
func (r LineRenderer) OnSetPrimitive(ctx *rendering.PrimitiveRenderingContext)
func (*LineRenderer) OnStart ¶ added in v0.2.0
func (r *LineRenderer) OnStart()
type OpenGLRenderer ¶
type OpenGLRenderer struct {
// contains filtered or unexported fields
}
OpenGLRenderer implements the RendererDelegate interface for pc
func (*OpenGLRenderer) OnClear ¶ added in v0.2.0
func (r *OpenGLRenderer) OnClear()
func (*OpenGLRenderer) OnPerformRenderingEnd ¶ added in v0.2.0
func (r *OpenGLRenderer) OnPerformRenderingEnd()
func (*OpenGLRenderer) OnPerformRenderingStart ¶ added in v0.2.0
func (r *OpenGLRenderer) OnPerformRenderingStart()
func (*OpenGLRenderer) OnPrepare ¶ added in v0.2.0
func (r *OpenGLRenderer) OnPrepare()
func (*OpenGLRenderer) OnStop ¶ added in v0.2.0
func (r *OpenGLRenderer) OnStop()
type RectangleRenderer ¶ added in v0.2.0
type RectangleRenderer struct {
// contains filtered or unexported fields
}
func (RectangleRenderer) OnRemovePrimitive ¶ added in v0.2.0
func (r RectangleRenderer) OnRemovePrimitive(ctx *rendering.PrimitiveRenderingContext)
func (*RectangleRenderer) OnRender ¶ added in v0.2.0
func (r *RectangleRenderer) OnRender(ctx *rendering.PrimitiveRenderingContext)
func (RectangleRenderer) OnSetPrimitive ¶ added in v0.2.0
func (r RectangleRenderer) OnSetPrimitive(ctx *rendering.PrimitiveRenderingContext)
func (*RectangleRenderer) OnStart ¶ added in v0.2.0
func (r *RectangleRenderer) OnStart()
type ResourceManager ¶
type ResourceManager struct {
// contains filtered or unexported fields
}
func (*ResourceManager) FullPathOf ¶ added in v0.1.1
func (r *ResourceManager) FullPathOf(id a.ResId) string
func (*ResourceManager) RegisterResource ¶
func (r *ResourceManager) RegisterResource(path string)
type TextRenderer ¶ added in v0.2.0
type TextRenderer struct {
// contains filtered or unexported fields
}
func (TextRenderer) OnRemovePrimitive ¶ added in v0.2.0
func (r TextRenderer) OnRemovePrimitive(ctx *rendering.PrimitiveRenderingContext)
func (*TextRenderer) OnRender ¶ added in v0.2.0
func (r *TextRenderer) OnRender(ctx *rendering.PrimitiveRenderingContext)
func (TextRenderer) OnSetPrimitive ¶ added in v0.2.0
func (r TextRenderer) OnSetPrimitive(ctx *rendering.PrimitiveRenderingContext)
func (*TextRenderer) OnStart ¶ added in v0.2.0
func (r *TextRenderer) OnStart()
type TriangleRenderer ¶ added in v0.2.0
type TriangleRenderer struct {
// contains filtered or unexported fields
}
func (TriangleRenderer) OnRemovePrimitive ¶ added in v0.2.0
func (r TriangleRenderer) OnRemovePrimitive(ctx *rendering.PrimitiveRenderingContext)
func (*TriangleRenderer) OnRender ¶ added in v0.2.0
func (r *TriangleRenderer) OnRender(ctx *rendering.PrimitiveRenderingContext)
func (TriangleRenderer) OnSetPrimitive ¶ added in v0.2.0
func (r TriangleRenderer) OnSetPrimitive(ctx *rendering.PrimitiveRenderingContext)
func (*TriangleRenderer) OnStart ¶ added in v0.2.0
func (r *TriangleRenderer) OnStart()
Click to show internal directories.
Click to hide internal directories.