Esempio n. 1
0
File: pplot.go Progetto: DaviWei/iup
func AddPoints(ih *iup.Ihandle, index int, x, y []float64) {
	count := len(x)
	cX := float64ArrayToC(x)
	cY := float64ArrayToC(y)

	C.IupPPlotAddPoints(ih.C(), C.int(index), &cX[0], &cY[0], C.int(count))
}
Esempio n. 2
0
File: pplot.go Progetto: DaviWei/iup
func Transform(ih *iup.Ihandle, x, y float64) (int, int) {
	cIX := new(C.int)
	cIY := new(C.int)

	C.IupPPlotTransform(ih.C(), C.float(x), C.float(y), cIX, cIY)

	return int(*cIX), int(*cIY)
}
Esempio n. 3
0
File: pplot.go Progetto: DaviWei/iup
func AddStringPoints(ih *iup.Ihandle, index int, x []string, y []float64) {
	count := len(x)

	cX := stringArrayToC(x)
	defer freeCStringArray(cX)

	cY := float64ArrayToC(y)

	C.IupPPlotAddStrPoints(ih.C(), C.int(index), &cX[0], &cY[0], C.int(count))
}
Esempio n. 4
0
File: pplot.go Progetto: DaviWei/iup
func Begin(ih *iup.Ihandle, strXdata int) {
	C.IupPPlotBegin(ih.C(), C.int(strXdata))
}
Esempio n. 5
0
File: pplot.go Progetto: DaviWei/iup
func InsertString(ih *iup.Ihandle, index, sample_index int, x string, y float64) {
	cX := C.CString(x)
	defer C.free(unsafe.Pointer(cX))

	C.IupPPlotInsertStr(ih.C(), C.int(index), C.int(sample_index), cX, C.float(y))
}
Esempio n. 6
0
File: pplot.go Progetto: DaviWei/iup
func End(ih *iup.Ihandle) {
	C.IupPPlotEnd(ih.C())
}
Esempio n. 7
0
File: pplot.go Progetto: DaviWei/iup
func Insert(ih *iup.Ihandle, index, sample_index int, x, y float64) {
	C.IupPPlotInsert(ih.C(), C.int(index), C.int(sample_index), C.float(x), C.float(y))
}
Esempio n. 8
0
File: pplot.go Progetto: DaviWei/iup
func Add(ih *iup.Ihandle, x, y float64) {
	C.IupPPlotAdd(ih.C(), C.float(x), C.float(y))
}
Esempio n. 9
0
File: pplot.go Progetto: DaviWei/iup
func AddString(ih *iup.Ihandle, x string, y float64) {
	cX := C.CString(x)
	defer C.free(unsafe.Pointer(cX))

	C.IupPPlotAddStr(ih.C(), cX, C.float(y))
}
Esempio n. 10
0
func UseFont(ih *iup.Ihandle, first, count, list_base int) {
	C.IupGLUseFont(ih.C(), C.int(first), C.int(count), C.int(list_base))
}
Esempio n. 11
0
func Palette(ih *iup.Ihandle, index int, r, g, b float64) {
	C.IupGLPalette(ih.C(), C.int(index), C.float(r), C.float(g), C.float(b))
}
Esempio n. 12
0
func SwapBuffers(ih *iup.Ihandle) {
	C.IupGLSwapBuffers(ih.C())
}
Esempio n. 13
0
func IsCurrent(ih *iup.Ihandle) int {
	return int(C.IupGLIsCurrent(ih.C()))
}
Esempio n. 14
0
func MakeCurrent(ih *iup.Ihandle) {
	C.IupGLMakeCurrent(ih.C())
}