Commit Graph

6 Commits

Author SHA1 Message Date
df69b8e525 Functions to free up (SDL2) texture memory 2022-04-09 14:25:56 -07:00
d77f5056b7 Texturer to hold raw Go image.Image 2021-06-13 19:59:54 -07:00
87fabf6a8d Make it a Go module + minor tweaks 2020-03-09 17:28:49 -07:00
e758c46d70 Change public API to use int instead of int32 everywhere 2019-12-27 17:35:42 -08:00
ad9d14bdab Add WebAssembly Hello World Example 2019-12-22 16:26:33 -08:00
981b2b98e0 Refactor Render Texture-Cache Interface
Since SDL2 is using in-memory bitmaps the same as Canvas engine, the
function names of the render.Engine interface have been cleaned up:

* NewTexture(filename, image) -> StoreTexture(name, image)
  Create a new cached texture with a given name.
* NewBitmap(filename) -> LoadTexture(name)
  Recall a stored texture with a given name.
* level.Chunk.ToBitmap uses simpler names for the textures instead of
  userdir.CacheFilename file-like paths.
2019-06-27 13:01:01 -07:00