- 101
- 4
Пытаюсь отрисовать картинку - не получается .Подскажите пожалуйста в чём дело
code:
@SubscribeEvent(priority = EventPriority.LOWEST)
public void eventHandler(RenderGameOverlayEvent.Post event) throws IOException {
Minecraft mc = Minecraft.getMinecraft();
mc.renderEngine.bindTexture(textures);
if(needRender) {
GL11.glPushMatrix();
GL11.glScaled(0.3, 0.1, 0.1);
mc.getTextureManager().bindTexture(textures);
Tessellator tessellator = Tessellator.instance;
tessellator.startDrawingQuads();
tessellator.addVertexWithUV(11,20,31,0.3,0.1);
tessellator.addVertexWithUV(11,21,31,0.3,0.0);
tessellator.addVertexWithUV(10,21,31,0.2,0.0);
tessellator.addVertexWithUV(10,20,31,0.2,0.1);
tessellator.draw();
GL11.glPopMatrix();
}