Add GopherJS bindings for raylib.js
This commit is contained in:
parent
6de595f396
commit
2bfca1f330
9 changed files with 1592 additions and 111 deletions
|
@ -14,21 +14,11 @@ func (c *CharInfo) cptr() *C.CharInfo {
|
|||
return (*C.CharInfo)(unsafe.Pointer(c))
|
||||
}
|
||||
|
||||
// newCharInfoFromPointer - Returns new SpriteFont from pointer
|
||||
func newCharInfoFromPointer(ptr unsafe.Pointer) CharInfo {
|
||||
return *(*CharInfo)(ptr)
|
||||
}
|
||||
|
||||
// cptr returns C pointer
|
||||
func (s *SpriteFont) cptr() *C.SpriteFont {
|
||||
return (*C.SpriteFont)(unsafe.Pointer(s))
|
||||
}
|
||||
|
||||
// newSpriteFontFromPointer - Returns new SpriteFont from pointer
|
||||
func newSpriteFontFromPointer(ptr unsafe.Pointer) SpriteFont {
|
||||
return *(*SpriteFont)(ptr)
|
||||
}
|
||||
|
||||
// GetDefaultFont - Get the default SpriteFont
|
||||
func GetDefaultFont() SpriteFont {
|
||||
ret := C.GetDefaultFont()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue