Class MinecraftHelios
java.lang.Object
lol.trq.helios.minecraft.MinecraftHelios
The Minecraft 1.8.9 hook: every reference to Minecraft's own classes lives in this package, reached by reflection,
so the rest of Helios compiles and tests without the game.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic Helioscreate()Creates a Helios instance for the running game: the OpenGL 4.1 core backend (which checks the context), theGlStateManagercache and the window's framebuffer size.static booleanGives the main Minecraft framebuffer a stencil buffer, through Forge'sFramebuffer.enableStencil().static SurfaceSizesurface(ClassLoader loader) Returns the game window's framebuffer size, read fromMinecraft.displayWidthanddisplayHeight, which are framebuffer pixels (on LWJGL 3 through Lazarus, also on high-DPI screens).
-
Field Details
-
SHADER_DIR_PROPERTY
-
-
Method Details
-
create
Creates a Helios instance for the running game: the OpenGL 4.1 core backend (which checks the context), theGlStateManagercache and the window's framebuffer size. Call it on the render thread once the window exists.- Returns:
- the instance
-
enableStencil
public static boolean enableStencil()Gives the main Minecraft framebuffer a stencil buffer, through Forge'sFramebuffer.enableStencil(). Call it once, on the render thread, before usingHelios.stencil()on screen. The framebuffer is recreated, so what was drawn so far this frame is lost.- Returns:
- whether the framebuffer now has a stencil buffer
-
surface
Returns the game window's framebuffer size, read fromMinecraft.displayWidthanddisplayHeight, which are framebuffer pixels (on LWJGL 3 through Lazarus, also on high-DPI screens).- Parameters:
loader- the class loader Minecraft's classes load through- Returns:
- the size source
-