initial commit

This commit is contained in:
NeilClack
2026-08-07 14:51:41 -05:00
commit 9251b3a196
604 changed files with 464448 additions and 0 deletions
+21
View File
@@ -0,0 +1,21 @@
package sdl
// #include "sdl_wrapper.h"
import "C"
import "unsafe"
// Texture contains an efficient, driver-specific representation of pixel data.
// (https://wiki.libsdl.org/SDL_Texture)
type Texture C.SDL_Texture
// Renderer contains a rendering state.
// (https://wiki.libsdl.org/SDL_Renderer)
type Renderer C.SDL_Renderer
func (t *Texture) cptr() *C.SDL_Texture {
return (*C.SDL_Texture)(unsafe.Pointer(t))
}
func (r *Renderer) cptr() *C.SDL_Renderer {
return (*C.SDL_Renderer)(unsafe.Pointer(r))
}