Documentation ¶
Index ¶
- func Max(x, y int) int
- func Min(x, y int) int
- func UpdateNSGLContext(window *glfw.Window)
- type FontMap
- type GUI
- type OpenGLRenderer
- func (r *OpenGLRenderer) CellHeight() float32
- func (r *OpenGLRenderer) CellWidth() float32
- func (r *OpenGLRenderer) DrawCellBg(cell buffer.Cell, col uint, row uint, colour *config.Colour, force bool)
- func (r *OpenGLRenderer) DrawCellImage(cell buffer.Cell, col uint, row uint)
- func (r *OpenGLRenderer) DrawCellText(text string, col uint, row uint, alpha float32, colour [3]float32, bold bool)
- func (r *OpenGLRenderer) DrawCursor(col uint, row uint, colour config.Colour)
- func (r *OpenGLRenderer) DrawUnderline(span int, col uint, row uint, colour [3]float32)
- func (r *OpenGLRenderer) Free()
- func (r *OpenGLRenderer) GetRectangleSize(col uint, row uint) (float32, float32)
- func (r *OpenGLRenderer) GetTermSize() (uint, uint)
- func (r *OpenGLRenderer) SetArea(areaX int, areaY int, areaWidth int, areaHeight int)
- type ResizeCache
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func UpdateNSGLContext ¶ added in v0.7.10
Types ¶
type FontMap ¶
type FontMap struct {
// contains filtered or unexported fields
}
func (*FontMap) AssignFonts ¶ added in v0.8.6
func (*FontMap) DefaultFont ¶ added in v0.7.7
func (*FontMap) UpdateResolution ¶
type GUI ¶
type GUI struct {
// contains filtered or unexported fields
}
func (*GUI) GetMonitor ¶ added in v0.8.0
func (*GUI) Screenshot ¶ added in v0.8.8
func (*GUI) SetDPIScale ¶ added in v0.9.0
func (g *GUI) SetDPIScale()
SetDPIScale sets the GUI DPI scale from user configuration (if set) or by calculating it from the monitor's configuration and size.
func (*GUI) SwapBuffers ¶ added in v0.7.10
func (gui *GUI) SwapBuffers()
type OpenGLRenderer ¶
type OpenGLRenderer struct {
// contains filtered or unexported fields
}
func NewOpenGLRenderer ¶
func (*OpenGLRenderer) CellHeight ¶
func (r *OpenGLRenderer) CellHeight() float32
func (*OpenGLRenderer) CellWidth ¶
func (r *OpenGLRenderer) CellWidth() float32
func (*OpenGLRenderer) DrawCellBg ¶
func (*OpenGLRenderer) DrawCellImage ¶
func (r *OpenGLRenderer) DrawCellImage(cell buffer.Cell, col uint, row uint)
func (*OpenGLRenderer) DrawCellText ¶
func (*OpenGLRenderer) DrawCursor ¶
func (r *OpenGLRenderer) DrawCursor(col uint, row uint, colour config.Colour)
func (*OpenGLRenderer) DrawUnderline ¶ added in v0.9.0
func (r *OpenGLRenderer) DrawUnderline(span int, col uint, row uint, colour [3]float32)
DrawUnderline draws a line under 'span' characters starting at (col, row)
func (*OpenGLRenderer) Free ¶ added in v0.8.6
func (r *OpenGLRenderer) Free()
This method ensures that all OpenGL resources are deleted correctly
func (*OpenGLRenderer) GetRectangleSize ¶ added in v0.8.8
func (r *OpenGLRenderer) GetRectangleSize(col uint, row uint) (float32, float32)
func (*OpenGLRenderer) GetTermSize ¶
func (r *OpenGLRenderer) GetTermSize() (uint, uint)
Click to show internal directories.
Click to hide internal directories.