Ei kuvausta

Karl Zylinski d3d79cf1d1 Fix batched drawing always drawing too much 7 kuukautta sitten
examples 689b8b4a0e Rotated texture drawing, but something is wrong with batched drawing 7 kuukautta sitten
.gitignore 55530943ce gitignore 7 kuukautta sitten
LICENSE 361c3c9672 Snake example 7 kuukautta sitten
README.md 9d50f1de25 Update README.md 7 kuukautta sitten
karl2d.odin eb0d4a3b6b Work on getting textured rects to work 7 kuukautta sitten
karl2d_raylib.odin ef2e77b4f0 Win32: Open window, clear background, basic keyboard input things. 7 kuukautta sitten
karl2d_windows.odin d3d79cf1d1 Fix batched drawing always drawing too much 7 kuukautta sitten
shader.hlsl eb0d4a3b6b Work on getting textured rects to work 7 kuukautta sitten

README.md

This library is NOT ready for use!

Karl2D is a work-in-progress library for creating 2D games using the Odin Programming Language.

The API is based on Raylib because I like that API. But the implementation is meant to have as few dependencies as possible (only core libs and rendering APIs in vendor). The API will not be identical to Raylib. I'll modify to fit Odin better etc.

What features of Raylib will not be included?

  • 3D
  • Some maths things that can be found in Odin's core libs

Might not be included:

  • Time management (use core:time instead)

TODO

Here follows my near-future TODO list

  • Do proper checks of vertex count and dispatch rendering when full
  • Should we sort by depth?
  • Load textures and somehow bind to shader -- split draw calls on texture switch -- needs a start of a batch system.

DONE

  • Make 0, 0 be at top left (should vertex data be flipped, or is it a transformation thingy?)
  • Construct vertex buffer from k2.draw_blabla calls. Do we need index buffer? 🤷‍
  • Organize the d3d11 things neatly. It's just a hack right now!
    • enable debug layers
    • asserting on hresult and checking errors
    • clean up on shutdown