Documentation
¶
Index ¶
- func Render(target *ebiten.Image, drawData *imgui.DrawData, txcache TextureCache, ...)
- func RenderMasked(target *ebiten.Image, mask *ebiten.Image, drawData *imgui.DrawData, ...)
- type DropCallback
- type EbitenBackend
- func (b *EbitenBackend) ContentScale() (xScale, yScale float32)
- func (b *EbitenBackend) CreateTexture(pixels unsafe.Pointer, width, height int) imgui.TextureID
- func (b *EbitenBackend) CreateTextureRgba(img *image.RGBA, width, height int) imgui.TextureID
- func (b *EbitenBackend) CreateWindow(title string, width, height int)
- func (b *EbitenBackend) DeleteTexture(id imgui.TextureID)
- func (b *EbitenBackend) DisplaySize() (width, height int32)
- func (b *EbitenBackend) Game() *GameProxy
- func (b *EbitenBackend) GetWindowPos() (x, y int32)
- func (b *EbitenBackend) Refresh()
- func (b *EbitenBackend) Run(f func())
- func (b *EbitenBackend) SetAfterCreateContextHook(hook func())
- func (b *EbitenBackend) SetAfterRenderHook(hook func())
- func (b *EbitenBackend) SetBeforeDestroyContextHook(hook func())
- func (b *EbitenBackend) SetBeforeRenderHook(hook func())
- func (b *EbitenBackend) SetBgColor(color imgui.Vec4)
- func (b *EbitenBackend) SetCloseCallback(cb imgui.WindowCloseCallback[EbitenWindowFlags])
- func (b *EbitenBackend) SetCursorPos(x, y float64)
- func (b *EbitenBackend) SetDropCallback(callback imgui.DropCallback)
- func (b *EbitenBackend) SetGame(game ebiten.Game)
- func (b *EbitenBackend) SetGameRenderDestination(dest *ebiten.Image)
- func (b *EbitenBackend) SetGameScreenSize(size imgui.Vec2)
- func (b *EbitenBackend) SetIcons(icons ...image.Image)
- func (b *EbitenBackend) SetInputMode(mode EbitenWindowFlags, value EbitenWindowFlags)
- func (b *EbitenBackend) SetKeyCallback(callback imgui.KeyCallback)
- func (b *EbitenBackend) SetShouldClose(shouldClose bool)
- func (b *EbitenBackend) SetSizeChangeCallback(callback imgui.SizeChangeCallback)
- func (b *EbitenBackend) SetSwapInterval(interval EbitenWindowFlags) error
- func (b *EbitenBackend) SetTargetFPS(fps uint)
- func (b *EbitenBackend) SetWindowFlags(flag EbitenWindowFlags, value int)
- func (b *EbitenBackend) SetWindowPos(x, y int)
- func (b *EbitenBackend) SetWindowSize(width, height int)
- func (b *EbitenBackend) SetWindowSizeLimits(minWidth, minHeight, maxWidth, maxHeight int)
- func (b *EbitenBackend) SetWindowTitle(title string)
- type EbitenWindowFlags
- type GameProxy
- func (g *GameProxy) Draw(screen *ebiten.Image)
- func (g *GameProxy) Game() ebiten.Game
- func (g *GameProxy) Layout(outsideWidth, outsideHeight int) (int, int)
- func (g *GameProxy) Screen() *ebiten.Image
- func (g *GameProxy) ScreenTextureID() imgui.TextureID
- func (g *GameProxy) SetGameScreenSize(v imgui.Vec2)
- func (g *GameProxy) Update() error
- type KeyCallback
- type SizeChangeCallback
- type TextureCache
- type WindowCloseCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Render ¶
func Render(target *ebiten.Image, drawData *imgui.DrawData, txcache TextureCache, dfilter ebiten.Filter)
Render the ImGui drawData into the target *ebiten.Image
func RenderMasked ¶
func RenderMasked(target *ebiten.Image, mask *ebiten.Image, drawData *imgui.DrawData, txcache TextureCache, dfilter ebiten.Filter)
RenderMasked renders the ImGui drawData into the target *ebiten.Image
Types ¶
type DropCallback ¶
type DropCallback func([]string)
type EbitenBackend ¶
type EbitenBackend struct {
// contains filtered or unexported fields
}
func NewEbitenBackend ¶
func NewEbitenBackend() *EbitenBackend
func (*EbitenBackend) ContentScale ¶
func (b *EbitenBackend) ContentScale() (xScale, yScale float32)
func (*EbitenBackend) CreateTexture ¶
func (*EbitenBackend) CreateTextureRgba ¶
func (*EbitenBackend) CreateWindow ¶
func (b *EbitenBackend) CreateWindow(title string, width, height int)
func (*EbitenBackend) DeleteTexture ¶
func (b *EbitenBackend) DeleteTexture(id imgui.TextureID)
func (*EbitenBackend) DisplaySize ¶
func (b *EbitenBackend) DisplaySize() (width, height int32)
func (*EbitenBackend) Game ¶
func (b *EbitenBackend) Game() *GameProxy
func (*EbitenBackend) GetWindowPos ¶
func (b *EbitenBackend) GetWindowPos() (x, y int32)
func (*EbitenBackend) Refresh ¶
func (b *EbitenBackend) Refresh()
func (*EbitenBackend) Run ¶
func (b *EbitenBackend) Run(f func())
func (*EbitenBackend) SetAfterCreateContextHook ¶
func (b *EbitenBackend) SetAfterCreateContextHook(hook func())
func (*EbitenBackend) SetAfterRenderHook ¶
func (b *EbitenBackend) SetAfterRenderHook(hook func())
func (*EbitenBackend) SetBeforeDestroyContextHook ¶
func (b *EbitenBackend) SetBeforeDestroyContextHook(hook func())
func (*EbitenBackend) SetBeforeRenderHook ¶
func (b *EbitenBackend) SetBeforeRenderHook(hook func())
func (*EbitenBackend) SetBgColor ¶
func (b *EbitenBackend) SetBgColor(color imgui.Vec4)
func (*EbitenBackend) SetCloseCallback ¶
func (b *EbitenBackend) SetCloseCallback(cb imgui.WindowCloseCallback[EbitenWindowFlags])
func (b *GLFWBackend) SetCloseCallback(cbfun WindowCloseCallback[GLFWWindowFlags]) {
func (*EbitenBackend) SetCursorPos ¶
func (b *EbitenBackend) SetCursorPos(x, y float64)
func (*EbitenBackend) SetDropCallback ¶
func (b *EbitenBackend) SetDropCallback(callback imgui.DropCallback)
func (*EbitenBackend) SetGame ¶
func (b *EbitenBackend) SetGame(game ebiten.Game)
func (*EbitenBackend) SetGameRenderDestination ¶
func (b *EbitenBackend) SetGameRenderDestination(dest *ebiten.Image)
func (*EbitenBackend) SetGameScreenSize ¶
func (b *EbitenBackend) SetGameScreenSize(size imgui.Vec2)
func (*EbitenBackend) SetIcons ¶
func (b *EbitenBackend) SetIcons(icons ...image.Image)
func (*EbitenBackend) SetInputMode ¶
func (b *EbitenBackend) SetInputMode(mode EbitenWindowFlags, value EbitenWindowFlags)
func (*EbitenBackend) SetKeyCallback ¶
func (b *EbitenBackend) SetKeyCallback(callback imgui.KeyCallback)
func (*EbitenBackend) SetShouldClose ¶
func (b *EbitenBackend) SetShouldClose(shouldClose bool)
func (*EbitenBackend) SetSizeChangeCallback ¶
func (b *EbitenBackend) SetSizeChangeCallback(callback imgui.SizeChangeCallback)
func (*EbitenBackend) SetSwapInterval ¶
func (b *EbitenBackend) SetSwapInterval(interval EbitenWindowFlags) error
func (*EbitenBackend) SetTargetFPS ¶
func (b *EbitenBackend) SetTargetFPS(fps uint)
func (*EbitenBackend) SetWindowFlags ¶
func (b *EbitenBackend) SetWindowFlags(flag EbitenWindowFlags, value int)
func (*EbitenBackend) SetWindowPos ¶
func (b *EbitenBackend) SetWindowPos(x, y int)
func (*EbitenBackend) SetWindowSize ¶
func (b *EbitenBackend) SetWindowSize(width, height int)
func (*EbitenBackend) SetWindowSizeLimits ¶
func (b *EbitenBackend) SetWindowSizeLimits(minWidth, minHeight, maxWidth, maxHeight int)
func (*EbitenBackend) SetWindowTitle ¶
func (b *EbitenBackend) SetWindowTitle(title string)
type EbitenWindowFlags ¶
type EbitenWindowFlags int
const ( EbitenWindowFlagsCursorMode EbitenWindowFlags = iota EbitenWindowFlagsCursorShape EbitenWindowFlagsResizingMode EbitenWindowFlagsFPSMode EbitenWindowFlagsDecorated EbitenWindowFlagsFloating EbitenWindowFlagsMaximized EbitenWindowFlagsMinimized EbitenWindowFlagsClosingHandled EbitenWindowFlagsMousePassthrough )
type GameProxy ¶
type GameProxy struct { Resizeable bool // contains filtered or unexported fields }
func (*GameProxy) ScreenTextureID ¶
func (*GameProxy) SetGameScreenSize ¶
type KeyCallback ¶
type KeyCallback func(key, scanCode, action, mods int)
type SizeChangeCallback ¶
type SizeChangeCallback func(w, h int)
type TextureCache ¶
type TextureCache interface { FontAtlasTextureID() imgui.TextureID SetFontAtlasTextureID(id imgui.TextureID) GetTexture(id imgui.TextureID) *ebiten.Image SetTexture(id imgui.TextureID, img *ebiten.Image) RemoveTexture(id imgui.TextureID) ResetFontAtlasCache(filter ebiten.Filter) NextId() int }
var Cache TextureCache
func NewCache ¶
func NewCache() TextureCache
type WindowCloseCallback ¶
Click to show internal directories.
Click to hide internal directories.