Documentation ¶
Overview ¶
Package common contains code commonly used in the examples section of cimgui-go.
Example of using imguizmo.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // here are some 4x4 matries. Generally IDK what are they doing - figure it yourself :-) // Well, This one is parsed in an editor below. View = []float32{ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, -7, 1, } Projection = []float32{ 2.3787, 0, 0, 0, 0, 3.1716, 0, 0, 0, 0, -1.0002, -1, 0, 0, -0.2, 0, } Ident = []float32{ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, } MOmo = []float32{ 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0.5, 0.5, 0.5, 1, } Bounds = []float32{-0.5, -0.5, -0.5, 0.5, 0.5, 0.5} // GizmoControls can be enabled in editor and allows mouse control over gizmo GizmoControls bool UsingGizmo bool )
Functions ¶
func AfterCreateContext ¶
func AfterCreateContext()
func BeforeDestroyContext ¶
func BeforeDestroyContext()
func Initialize ¶
func Initialize()
Initialize prepares global variables. Call before anything related to backend.
func InputTextCallback ¶
func InputTextCallback(data imgui.InputTextCallbackData) int
func ShowCTEDemo ¶ added in v1.2.0
func ShowCTEDemo()
func ShowGizmoDemo ¶ added in v1.1.0
func ShowGizmoDemo()
func ShowImPlotDemo ¶
func ShowImPlotDemo()
func ShowPictureLoadingDemo ¶
func ShowPictureLoadingDemo()
func ShowWidgetsDemo ¶
func ShowWidgetsDemo()
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.