common

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2024 License: MIT Imports: 12 Imported by: 0

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 Image

func Image() *image.RGBA

func Initialize

func Initialize()

Initialize prepares global variables. Call before anything related to backend.

func InputTextCallback

func InputTextCallback(data imgui.InputTextCallbackData) int

func Loop

func Loop()

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.

Jump to

Keyboard shortcuts

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