Spaces:
Build error
Build error
File size: 853 Bytes
d46f4a3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 |
package com.mojang.blaze3d.platform;
import java.nio.Buffer;
import java.nio.ByteBuffer;
import net.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import org.lwjgl.system.MemoryUtil;
@OnlyIn(Dist.CLIENT)
public class GlUtil {
public static ByteBuffer allocateMemory(int p_166248_) {
return MemoryUtil.memAlloc(p_166248_);
}
public static void freeMemory(Buffer p_166252_) {
MemoryUtil.memFree(p_166252_);
}
public static String getVendor() {
return GlStateManager._getString(7936);
}
public static String getCpuInfo() {
return GLX._getCpuInfo();
}
public static String getRenderer() {
return GlStateManager._getString(7937);
}
public static String getOpenGLVersion() {
return GlStateManager._getString(7938);
}
} |