6
1
Fork
You've already forked AxolotlClient-rendering
1
No description
  • Java 95.3%
  • GLSL 4.7%
2026年07月12日 16:01:27 +02:00
1.8.9 downgrade 1.8 shaders to version 120 2026年07月12日 18:35:25 +05:30
1.20 (1.20) fix tiny bug 2026年05月12日 23:15:27 +02:00
1.21 bump to 26.1-pre.1 2026年03月14日 13:22:23 +01:00
1.latest update to 26.2 2026年06月12日 21:00:40 +02:00
common add shader + methods for segments 2025年12月31日 19:06:26 +01:00
gradle/wrapper update dependencies 2026年05月12日 22:24:25 +02:00
.editorconfig init 2025年09月24日 12:58:18 +02:00
.gitattributes init 2025年09月24日 12:58:18 +02:00
.gitignore init 2025年09月24日 12:58:18 +02:00
build.gradle.kts update to OSL 0.19.0 2026年06月13日 00:53:57 +02:00
CHANGELOG.md init 2025年09月24日 12:58:18 +02:00
formatting.xml init 2025年09月24日 12:58:18 +02:00
gradle.properties update to OSL 0.19.0 2026年06月13日 00:53:57 +02:00
gradlew update dependencies and readme 2025年11月09日 16:56:01 +01:00
gradlew.bat update dependencies and readme 2025年11月09日 16:56:01 +01:00
HEADER add license headers 2025年10月11日 00:15:07 +02:00
LICENSE init 2025年09月24日 12:58:18 +02:00
README.md [skip] tweak test displays, update readme 2026年01月08日 00:27:03 +01:00
settings.gradle update dependencies and readme 2025年11月09日 16:56:01 +01:00

AxolotlClient Rendering

This library is also available on modrinth!

Small(-ish) rendering library integrated into Minecraft's rendering

Current features:

  • Shader-based rendering of rounded rectangles (and circles)
    • Also textured & outlined
  • Convenient rendering of TrueType fonts using FreeType
  • Convenient rendering of static SVG images using Apache Batik

This library is published to our maven: https://maven.axolotlclient.com/#/releases/io/github/axolotlclient/rendering/AxolotlClient-rendering

Examples

Examples on how to use the library can be found in the respective test source set for each version.

General Usage:

On 1.8.9, use DrawUtil.get() to obtain an instance. Otherwise, use GuiGraphics directly and the interface methods from GuiGraphicsExtension (prefixed with axolotlclient_rendering)

Fonts can be loaded using Font.read(...). If you're using a variant font this will automatically read the variants and make use of them appropriately, however the font features supported by FreeType directly are rather limited. If a specific feature is provided by a separate font file (for example an italic or bold variant) they can be added using Font#addSubFont, specifying in which conditions it should be used (some tags and values can be found as static definitions in the Font class).

This library includes the Inter font by default.

TODO

  • svg rasterization with fade-in after so there aren't any jarring jumps (currently it pops in, which is mostly only noticeable on larger/more complicated svgs)