github karl-zylinski/karl2d beta-2026-12

2 hours ago

This release is verified to work well with Odin version dev-2026-12.

Big things

  • Android support! #331
    • New android platform layer.
    • OpenGL renderer has been made OpenGL ES compatible, and is used for Android. #330
    • build_android tool for building and running on android.
    • build_android/setup tool for downloading Android SDK and Java Runtime (portable versions).
    • See Running on Android section in README.md for details.
  • Shader compiler #333
    • Compiles GLSL "roughly version 330" straight to DXBC (D3D bytecode), GLSL, GLSL ES and SPIR-V (SPIR-V currently unused, therefore disabled).
    • Faster than DXC and d3dcompiler.
    • No dependencies.
    • Supports the GLSL 330 features that Karl2D needs. Only added feature is #include for including other files.
    • GLSL is now the only shader language for Karl2D. All platforms use it now.
    • See the compile_shader_from_files and load_shader procs of Karl2D API.
  • Faster drawing #336
    • Drawing is up to 4x faster
    • Uses a new vertex template that is recomputed when shader input overrides are set.
    • Less overhead when drawing thanks to a new batch_vertices procedure that takes the list of vertices and UVs for the geometry.
  • Image revamp #334
    • New procedures for editing images (CPU-side pictures).
    • Possibility to read images from screen and render textures.
    • Better allocation behavior: Images are now owned by the game programmer's allocator, not Karl2Ds internal allocator
  • Ports of stb_vorbis, stb_truetype and stb_rectpack #325 #327
    • The only do what Karl2D needs, which makes them smaller than the original libraries.
    • The ports are as fast, or faster, than the original libraries. This is due to optimizing for Karl2Ds use cases. In the case of the stb_vorbis port it also uses a more efficient decoder.
    • Now no platform needs to compile some vendor stb libs before using Karl2D.
  • Better outline rendering #335, based on #89
    • Outlines are no longer disjoint segments that overlap.
    • Outline can be inside, outside or centered on the edge of the shape.
    • Rect outlines can be rotated.

Breaking changes

  • load_shader_from_file / load_shader_from_bytes no longer exist. Use compile_shader_from_files or compile_shader_from_bytes + load_shader.
  • HLSL shaders no longer work.
  • Image management procedures now take an allocator parameter.
  • draw_circle_outline now defaults to drawing the outline inside the shape instead of on the edge.

Smaller things

Celebrating new Contributors

Full Changelog: beta-2026-11...beta-2026-12

Don't miss a new karl2d release

NewReleases is sending notifications on new releases.