Add GopherJS bindings for raylib.js

This commit is contained in:
Milan Nikolic 2017-12-08 05:38:13 +01:00
parent 6de595f396
commit 2bfca1f330
9 changed files with 1592 additions and 111 deletions

View file

@ -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()