imgui

package
v0.0.0-...-428aa4c Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ImGUIModule

type ImGUIModule struct {
	// contains filtered or unexported fields
}

func NewImGUIModule

func NewImGUIModule(base *app.AppBase, window *glfw.Window) (*ImGUIModule, error)

func (*ImGUIModule) AddUI

func (i *ImGUIModule) AddUI(ui UI)

func (*ImGUIModule) CharChange

func (i *ImGUIModule) CharChange(char rune) bool

func (*ImGUIModule) CreateCommandBuffers

func (i *ImGUIModule) CreateCommandBuffers(renderPass vk.RenderPass, framebuffer vk.Framebuffer, app *app.AppBase) ([]vk.CommandBuffer, error)

func (*ImGUIModule) Destroy

func (i *ImGUIModule) Destroy()

func (*ImGUIModule) KeyChange

func (i *ImGUIModule) KeyChange(key glfw.Key, scancode int, action glfw.Action, mods glfw.ModifierKey) bool

func (*ImGUIModule) MouseButtonChange

func (i *ImGUIModule) MouseButtonChange(rawButton glfw.MouseButton, action glfw.Action, mods glfw.ModifierKey) bool

func (*ImGUIModule) MouseScrollChange

func (i *ImGUIModule) MouseScrollChange(x, y float64) bool

func (*ImGUIModule) NewFrame

func (i *ImGUIModule) NewFrame(base *app.AppBase)

func (*ImGUIModule) PostFrame

func (i *ImGUIModule) PostFrame()

type Renderer

type Renderer struct {
	// contains filtered or unexported fields
}

func NewRenderer

func NewRenderer(io imgui.IO, app *vkg.GraphicsApp, maxVertexes, maxIndexes int) (*Renderer, error)

func (*Renderer) Destroy

func (r *Renderer) Destroy()

func (*Renderer) GetAttributeDescriptions

func (r *Renderer) GetAttributeDescriptions() []vk.VertexInputAttributeDescription

func (*Renderer) GetBindingDescription

func (r *Renderer) GetBindingDescription() vk.VertexInputBindingDescription

func (*Renderer) Init

func (r *Renderer) Init() error

func (*Renderer) Render

func (r *Renderer) Render(renderpass vk.RenderPass, framebuffer vk.Framebuffer, drawData imgui.DrawData) ([]vk.CommandBuffer, error)

type UBO

type UBO struct {
	Proj lin.Mat4x4
}

func (*UBO) Bytes

func (u *UBO) Bytes() []byte

type UI

type UI interface {
	DrawUI()
}

type Vertex

type Vertex struct {
	Pos [2]float32
	Uv  [2]float32
	Col [4]uint8
}

Jump to

Keyboard shortcuts

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