Discover Packages
github.com/llamerada-jp/colonio-simulator-view
pkg
utils
package
Version:
v0.0.0-...-b3eb65c
Opens a new window with list of versions in this module.
Published: Dec 12, 2021
License: Apache-2.0
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Jump to ...
Documentation
Index
Constants
Variables
Functions
Types
type Accessor
type GL
NewGL(imageName)
(g) Box3(x, y, z, w)
(g) Line3(x1, y1, z1, x2, y2, z2)
(g) Loop()
(g) Point3(x, y, z)
(g) Quit()
(g) SetImageDigit(digit)
(g) SetRGB(red, green, blue)
(g) Setup()
type Record
Source Files
Documentation
Documentation
¶
type Accessor
type GL
func (g *GL) Box3(x, y, z, w float64)
func (g *GL) Line3(x1, y1, z1, x2, y2, z2 float64)
func (g *GL) Loop() bool
func (g *GL) Point3(x, y, z float64)
func (g *GL) Quit()
func (g *GL) SetImageDigit(digit int)
func (g *GL) SetRGB(red, green, blue float32)
func (g *GL) Setup()
type Record
Accessor contain mongodb client and collections
NewAccessor makes new connection to mongoDB using target URI and etc
Disconnect close the connection form mongDB
GetByTime gets records for the specified time
GetByTimeMessage gets records having specified time and message
GetEarliestTime gets the timestamp of the earliest record in the DB
GetLastTime gets the timestamp of the last record in the DB
GL containing any instances of OpenGL
NewGL makes new utility instance of OpenGL
Box3 draw box at 2d coordinate space
func (g *GL ) Line3(x1, y1, z1, x2, y2, z2 float64 )
Line3 draw a line at 3d coordinate space
Loop swap and clear buffer, and poll events. return false is program should quit
Point3 draw point at 3d coordinate space
func (g *GL ) SetImageDigit(digit int )
SetImageDigit sets digit for saving image
func (g *GL ) SetRGB(red, green, blue float32 )
SetRGB set fill color
Setup OpenGL and create a new window
Record corresponds to one record in the log.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.