Пример #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
// 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)))
}