Add Seek for asset
This commit is contained in:
parent
e365f75e34
commit
ea0628725d
5 changed files with 26 additions and 8 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue