MCPcopy Create free account
hub / github.com/DGVPSH/SlackOpen / drawImage

Method drawImage

src/main/java/cc/slack/utils/render/RenderUtil.java:93–98  ·  view source on GitHub ↗
(ResourceLocation image, int x, int y, int width, int height)

Source from the content-addressed store, hash-verified

91 }
92
93 public static void drawImage(ResourceLocation image, int x, int y, int width, int height) {
94 OpenGlHelper.glBlendFunc(770, 771, 1, 0);
95 GL11.glColor4f(1.0f, 1.0f, 1.0f, 1.0f);
96 Minecraft.getMinecraft().getTextureManager().bindTexture(image);
97 Gui.drawModalRectWithCustomSizedTexture(x, y, 0.0f, 0.0f, width, height, width, height);
98 }
99
100
101 public static Vector3d project(double x, double y, double z) {

Callers 9

renderLogoMethod · 0.95
drawScreenMethod · 0.95
scaleBufferedImageMethod · 0.80
parseCapeMethod · 0.80
fixTextureDimensionsMethod · 0.80
scaleImageMethod · 0.80
parseUserSkinMethod · 0.80
loadTextureMethod · 0.80
loadTextureMethod · 0.80

Calls 5

glBlendFuncMethod · 0.95
getMinecraftMethod · 0.95
bindTextureMethod · 0.45
getTextureManagerMethod · 0.45

Tested by

no test coverage detected