Initial release: RadiantWave v1.0

This commit is contained in:
NeilClack
2026-03-12 08:05:10 -05:00
commit 403ec4db89
555 changed files with 437856 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))
}