Posted January 13, 201312 yr I made a custom IItemRenderer implementation to render items in inventory slots. Now I need to draw a simple 2D polygonal shape in the inventory item slot. The javadoc says: If rendering as a 2D texture, the rendering should be in GUI pixel coordinates from (0, 0, 0)-(16, 16, 0) So I thought the code should look something like this: // Draw a semi-transparent red square GL11.glColor4f(1.0f, 0f, 0f, 0.5f); GL11.glBegin(GL11.GL_QUADS); GL11.glVertex3f(0F, 0F, 0F); GL11.glVertex3f(16F, 0F, 0F); GL11.glVertex3f(16F, 16F, 0F); GL11.glVertex3f(0F, 16F, 0F); GL11.glEnd(); But nothing appears in the item slot. Can anyone help me with this? I made Moses Mod, Dota 2 Items Mod, Rings of Power and Antique Atlas.
January 13, 201312 yr Author Nvm, figured it out. Will post solution later. Maybe I'll make a wiki too I made Moses Mod, Dota 2 Items Mod, Rings of Power and Antique Atlas.
January 13, 201312 yr Author Here: http://www.minecraftforge.net/wiki/Custom_2D_Inventory_Item_Renderer *ENGINEER IS CREDIT TO TEAM* I made Moses Mod, Dota 2 Items Mod, Rings of Power and Antique Atlas.
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.