MCPcopy Index your code
hub / github.com/Kode/Kha

github.com/Kode/Kha @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
3,097 symbols 7,859 edges 269 files 755 documented · 24%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Kha

Kha is a low level sdk for building games and media applications in a portable way. Think SDL, but super-charged. Based on the Haxe programming language and the krafix shader-compiler it can cross-compile your code and optimize your assets for even the most obscure systems. Kha is so portable, it can in fact run on top of other game engines and its generational graphics and audio api design gets the best out of every target, supporting super fast 2D graphics just as well as high end 3D graphics. Also, Kha probably added a new target while you were reading this text.

Community

Features

  • Great performance on each platform.
  • Generational graphical/audio API design.
  • Hardware accelerated 2D and high-end 3D graphics. Fallback support (i.e. html5 canvas).
  • Can run on top of other game engines (i.e. Unity3D).
  • Write shaders in GLSL and cross-compile to target specific shaders.
  • Kha apps can also be compiled to C# or Java libraries
  • Flexible and robust backend system. Adding your own takes little effort and is straight forward.
  • One API for all platforms!

Supported platforms

  • HTML5 (WebGL 2, WebGL and canvas or running in a WebWorker)
  • Windows (Direct3D 12, Direct3D 11, Direct3D 9, Vulkan or OpenGL)
  • Linux (Vulkan or OpenGL)
  • macOS (Metal or OpenGL)
  • FreeBSD
  • Android (Vulkan or OpenGL)
  • iOS (Metal or OpenGL)
  • tvOS
  • Raspberry Pi
  • Universal Windows Platform
  • Node.js (for automatically created server versions)
  • Java and AWT
  • C# and Windows Presentation Foundation
  • PlayStation 4*
  • PlayStation 5*
  • Xbox One*
  • Xbox Series X|S*
  • Nintendo Switch*
  • Nintendo Switch 2*

* The consoles code is not public. If you are a registered developer with Microsoft/Nintendo/Sony you can contact us to get access.

Core symbols most depended-on inside this repo

op64
called by 283
Backends/Kore-HL/hl/src/jit.c
add_jump
called by 235
Backends/Kore-HL/hl/include/pcre/pcre2_jit_compile.c
mbedtls_mpi_free
called by 177
Backends/Kore-HL/hl/include/mbedtls/library/bignum.c
mbedtls_mpi_init
called by 132
Backends/Kore-HL/hl/include/mbedtls/library/bignum.c
pmem
called by 123
Backends/Kore-HL/hl/src/jit.c
mbedtls_ssl_send_alert_message
called by 119
Backends/Kore-HL/hl/include/mbedtls/library/ssl_tls.c
mbedtls_mpi_cmp_int
called by 108
Backends/Kore-HL/hl/include/mbedtls/library/bignum.c
op32
called by 94
Backends/Kore-HL/hl/src/jit.c

Shape

Function 2,844
Class 248
Enum 5

Languages

C81%
C++19%

Modules by API surface

Backends/Kore-HL/hl/include/mbedtls/library/ssl_tls.c177 symbols
Backends/Kore-HL/hl/include/pcre/pcre2_jit_compile.c162 symbols
Backends/Kore-HL/hl/src/jit.c92 symbols
Sources/kha/graphics2/truetype/stb_truetype.h90 symbols
Backends/Kore-HL/hl/src/std/thread.c69 symbols
Backends/Kore-HL/hl/src/gc.c61 symbols
Backends/Kore-HL/hl/include/mbedtls/library/bignum.c57 symbols
Backends/Kore-HL/hl/include/mbedtls/library/md_wrap.c55 symbols
Backends/Kore-HL/hl/libs/ssl/ssl.c54 symbols
Backends/Kore-HL/hl/include/mbedtls/library/ecp.c53 symbols
Backends/Kore-HL/hl/include/mbedtls/library/cipher_wrap.c53 symbols
Backends/Kore-HL/hl/src/std/sys.c47 symbols

For agents

$ claude mcp add Kha \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact