Jump to content

[1.7.2] GUI? Can't more than 256*256?


minipopov1

Recommended Posts

Well its actually quite 'easy'.

 

Tessellator!!! I have made a drawing helper class I can post if you want it. All you have to do is bind the texture you want and figure out where you want to draw it! :)

 

Just say the word if you want the helper class. Otherwise, ask for hints on how to do it (aside from tessellator. I already gave that hint)

We all stuff up sometimes... But I seem to be at the bottom of that pot.

Link to comment
Share on other sites

Notch made it somewhere in the code that the max size is 256x256, so you need to call your own render method.

Don't PM me with questions. They will be ignored! Make a thread on the appropriate board for support.

 

1.12 -> 1.13 primer by williewillus.

 

1.7.10 and older versions of Minecraft are no longer supported due to it's age! Update to the latest version for support.

 

http://www.howoldisminecraft1710.today/

Link to comment
Share on other sites

  • 2 weeks later...

    public void drawTexturedRect(int x, int y, int u, int v, int width, int height, int textureWidth, int textureHeight)

    {

        float f = 1F / (float)textureWidth;

        float f1 = 1F / (float)textureHeight;

        Tessellator tessellator = Tessellator.instance;

        tessellator.startDrawingQuads();

        tessellator.addVertexWithUV((double)(x), (double)(y + height), 0, (double)((float)(u) * f), (double)((float)(v + height) * f1));

        tessellator.addVertexWithUV((double)(x + width), (double)(y + height), 0, (double)((float)(u + width) * f), (double)((float)(v + height) * f1));

        tessellator.addVertexWithUV((double)(x + width), (double)(y), 0, (double)((float)(u + width) * f), (double)((float)(v) * f1));

        tessellator.addVertexWithUV((double)(x), (double)(y), 0, (double)((float)(u) * f), (double)((float)(v) * f1));

        tessellator.draw();

    }

Link to comment
Share on other sites

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.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Announcements



×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.