Example #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))
}
Example #2
0
File: ttf.go Project: badgerodon/go
func ByteSwappedUnicode(isSwapped bool) {
	c_swapped := C.int(0)
	if isSwapped {
		c_swapped = C.int(1)
	}
	C.TTF_ByteSwappedUNICODE(c_swapped)
}
Example #3
0
File: ttf.go Project: beoran/fungo
// 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)))
}
Example #4
0
File: ttf.go Project: willemvds/sdl
func ByteSwappedUnicode(swapped int) {
	C.TTF_ByteSwappedUNICODE(C.int(swapped))
}