예제 #1
0
func CreateDisplay(width, height, flags int) *Display {
	var d *Display

	C.al_set_new_display_flags((C.int)(flags))
	ptr := C.al_create_display((C.int)(width), (C.int)(height))
	d = (*Display)(ptr)

	return d
}
예제 #2
0
func CreateDisplay(w, h int32) *Display {
	return (*Display)(unsafe.Pointer(C.al_create_display(C.int(w), C.int(h))))
}
예제 #3
0
파일: display.go 프로젝트: beoran/algo
// Creates a new dosplay with the given size. Influenced by SetNewDisplayFlags.
func CreateDisplay(width, height int) *Display {
	return wrapDisplay(C.al_create_display(C.int(width), C.int(height)))
}