Пример #1
0
func (h *HGE) getStateString(state StringState) string {
	return C.GoString(C.HGE_System_GetStateString(h.HGE, C.HGE_StringState_t(state)))
}
Пример #2
0
func (h *HGE) setStateString(state StringState, value string) {
	val := C.CString(value)
	defer C.free(unsafe.Pointer(val))

	C.HGE_System_SetStateString(h.HGE, C.HGE_StringState_t(state), val)
}