com.primogemstudio.advancedfmk.mixin.WindowMixin Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of advancedfmk-animerenderer Show documentation
Show all versions of advancedfmk-animerenderer Show documentation
MMD renderer / Live2D renderer for Advanced Framework
package com.primogemstudio.advancedfmk.mixin;
import com.mojang.blaze3d.platform.DisplayData;
import com.mojang.blaze3d.platform.ScreenManager;
import com.mojang.blaze3d.platform.Window;
import com.mojang.blaze3d.platform.WindowEventHandler;
import com.primogemstudio.advancedfmk.live2d.Live2DNative;
import org.lwjgl.glfw.GLFW;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
import org.spongepowered.asm.mixin.injection.Inject;
import org.spongepowered.asm.mixin.injection.callback.CallbackInfo;
@Mixin(Window.class)
public class WindowMixin {
@Inject(method = "", at = @At("RETURN"))
private void init(WindowEventHandler eventHandler, ScreenManager screenManager, DisplayData displayData, String preferredFullscreenVideoMode, String title, CallbackInfo ci) {
Live2DNative.init(GLFW.Functions.GetProcAddress, GLFW.Functions.GetTime);
}
}