Add Seek for asset

This commit is contained in:
Milan Nikolic 2017-02-02 14:29:53 +01:00
parent e365f75e34
commit ea0628725d
5 changed files with 26 additions and 8 deletions

View file

@ -5,8 +5,12 @@ package raylib
#include <stdlib.h>
*/
import "C"
import "unsafe"
import "reflect"
import (
"io"
"reflect"
"unsafe"
)
// Some basic Defines
const (
@ -450,6 +454,12 @@ func NewBoundingBoxFromPointer(ptr unsafe.Pointer) BoundingBox {
return *(*BoundingBox)(ptr)
}
// Asset file
type Asset interface {
io.ReadSeeker
io.Closer
}
// Close Window and Terminate Context
func CloseWindow() {
C.CloseWindow()