示例#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))
}
示例#2
0
文件: ttf.go 项目: badgerodon/go
func ByteSwappedUnicode(isSwapped bool) {
	c_swapped := C.int(0)
	if isSwapped {
		c_swapped = C.int(1)
	}
	C.TTF_ByteSwappedUNICODE(c_swapped)
}
示例#3
0
文件: ttf.go 项目: 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)))
}
示例#4
0
文件: ttf.go 项目: willemvds/sdl
func ByteSwappedUnicode(swapped int) {
	C.TTF_ByteSwappedUNICODE(C.int(swapped))
}