interfaces

package
v0.0.0-...-62a3948 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 15, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GradientCreator

type GradientCreator interface {
	StackRenderer
	CreateGradient(color1, color2 types.Color, numSteps, startingIndex uint8) types.Gradient
}

type KeyGrabber

type KeyGrabber interface {
	GrabKey(key glfw.Key, scancode int, action glfw.Action, mods glfw.ModifierKey) (continueSearching bool)
}

type KeyProvider

type KeyProvider interface {
	PushGrabber(grabber KeyGrabber)
	PopGrabber() (KeyGrabber, error)
	PushGrabberAt(grabber KeyGrabber, index uint32)
	PopGrabberAt(index uint32) (KeyGrabber, error)
}

type LineRenderer

type LineRenderer interface {
	StackRenderer
	DrawLine(point0 types.Point, point1 types.Point, color types.PaletteIndex)
	DrawLineWithSampler(point0 types.Point, point0s types.SamplerPoint, point1 types.Point, point1s types.SamplerPoint, sampler Sampler)
}

type MouseGrabber

type MouseGrabber interface {
	GrabMouse(button glfw.MouseButton, action glfw.Action, mods glfw.ModifierKey, posX float64, posY float64) (continueSearching bool)
}

type MouseProvider

type MouseProvider interface {
	PushMouseGrabber(grabber MouseGrabber)
	PopMouseGrabber() (MouseGrabber, error)
	PushMouseGrabberAt(grabber MouseGrabber, index uint32)
	PopMouseGrabberAt(index uint32) (MouseGrabber, error)
}

type PolyRenderer

type PolyRenderer interface {
	StackRenderer
	GetLineRenderer() LineRenderer
	SetLineRenderer(lr LineRenderer)
	DrawPoly(poly *types.Poly, sampler Sampler)
}

type RawRenderer

type RawRenderer interface {
	InitRenderer(windowName string, width uint32, height uint32) error
	GetSize() types.Point
	TickRenderer()
	ShouldQuit() bool
	DeinitRenderer() error
	DrawBackPixel(x uint32, y uint32, paletteIndex types.PaletteIndex) error
	FillBack(paletteIndex types.PaletteIndex) error
	SetPaletteColor(paletteIndex types.PaletteIndex, color types.Color) error
}

type Sampler

type Sampler interface {
	GetAtPoint(point types.SamplerPoint) types.PaletteIndex
}

type Shape3D

type Shape3D interface {
	GetPoints() []types.Point3D
	GetSamplerPoints() map[types.Point3D]types.SamplerPoint
}

type Shape3DRenderer

type Shape3DRenderer interface {
	StackRenderer
	GetPolyRenderer() PolyRenderer
	SetPolyRenderer(pr PolyRenderer)
	RenderShape(shape Shape3D, cameraPos types.Point3D, cameraRotation types.Rotation3D, sampler Sampler)
}

type StackRenderer

type StackRenderer interface {
	Parent() RawRenderer
	SetParent(rr RawRenderer)
	CanUseCurrentRawRenderer() bool
}

type WolfRenderer

type WolfRenderer interface {
	StackRenderer
	RenderWorld(world types.WorldWolf, cameraPos types.Point, cameraRotation types.Degree)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL