Comment updated
This commit is contained in:
parent
c3738608cf
commit
8a6cf52891
1 changed files with 2 additions and 2 deletions
|
@ -1175,13 +1175,13 @@ func TabBar(bounds rl.Rectangle, text []string, active *int32) int32 {
|
||||||
return int32(C.GuiTabBar(cbounds, (**C.char)(ctext.Pointer), count, &cactive))
|
return int32(C.GuiTabBar(cbounds, (**C.char)(ctext.Pointer), count, &cactive))
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set gui custom font (global state)
|
// SetFont - set custom font (global state)
|
||||||
func SetFont(font rl.Font) {
|
func SetFont(font rl.Font) {
|
||||||
cfont := (*C.Font)(unsafe.Pointer(&font))
|
cfont := (*C.Font)(unsafe.Pointer(&font))
|
||||||
C.GuiSetFont(*cfont)
|
C.GuiSetFont(*cfont)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get gui custom font (global state)
|
// GetFont - get custom font (global state)
|
||||||
func GetFont() rl.Font {
|
func GetFont() rl.Font {
|
||||||
ret := C.GuiGetFont()
|
ret := C.GuiGetFont()
|
||||||
ptr := unsafe.Pointer(&ret)
|
ptr := unsafe.Pointer(&ret)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue