Beispiel #1
0
// ByteSwappedUnicode (https://www.libsdl.org/projects/SDL_ttf/docs/SDL_ttf_20.html#SEC20)
func ByteSwappedUnicode(swap bool) {
	val := 0
	if swap {
		val = 1
	}
	C.TTF_ByteSwappedUNICODE(C.int(val))
}
Beispiel #2
0
func ByteSwappedUnicode(isSwapped bool) {
	c_swapped := C.int(0)
	if isSwapped {
		c_swapped = C.int(1)
	}
	C.TTF_ByteSwappedUNICODE(c_swapped)
}
Beispiel #3
0
// This function tells the library whether UNICODE text is generally
// byteswapped.  A UNICODE BOM character in a string will override
// this setting for the remainder of that string.
func TTFByteSwappedCode(swapped bool) {
	C.TTF_ByteSwappedUNICODE(C.int(b2i(swapped)))
}
Beispiel #4
0
func ByteSwappedUnicode(swapped int) {
	C.TTF_ByteSwappedUNICODE(C.int(swapped))
}