Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Frame ¶
Frame is a rectangle fragment of an image.
type OpenGLWindow ¶
type OpenGLWindow struct { Name string // contains filtered or unexported fields }
func MakeOpenGLWindow ¶
func MakeOpenGLWindow(width, height int) *OpenGLWindow
func (*OpenGLWindow) GetRequestStream ¶
func (w *OpenGLWindow) GetRequestStream() <-chan Frame
func (*OpenGLWindow) Run ¶
func (w *OpenGLWindow) Run()
Run should only be called from the main thread.
func (*OpenGLWindow) SetInputStream ¶
func (w *OpenGLWindow) SetInputStream(input <-chan Frame)
type Renderer ¶
type Renderer struct { ResolutionX int ResolutionY int Scene *scene.Scene // contains filtered or unexported fields }
func MakeRenderer ¶
func (*Renderer) Attach ¶
func (r *Renderer) Attach(v Visualizer)
type Visualizer ¶
type Visualizer interface { // SetInputStream takes a read only Frame channel and visualizes the Frames from it. SetInputStream(<-chan Frame) // GetRequestStream returns a read only Frame channel that is used to pass Frame requests to the renderer. GetRequestStream() <-chan Frame // Run starts the visualizer. It must cleanup before Run exists. Run() }
Click to show internal directories.
Click to hide internal directories.