Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse

LiquidBounce Forum

  1. Home
  2. ScriptAPI
  3. How to render images on screen

How to render images on screen

Scheduled Pinned Locked Moved Solved ScriptAPI
5 Posts 3 Posters 1.2k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Purpl3 YTP Offline
    Purpl3 YTP Offline
    Purpl3 YT
    wrote on last edited by
    #1

    How to render image on screen, i find to do this 30 minutes.
    Help pls.

    Plumer ManP 1 Reply Last reply
    0
    • Purpl3 YTP Purpl3 YT

      How to render image on screen, i find to do this 30 minutes.
      Help pls.

      Plumer ManP Offline
      Plumer ManP Offline
      Plumer Man
      wrote on last edited by
      #2

      @purpl3-yt use the image assest

      Purpl3 YTP 1 Reply Last reply
      0
      • Plumer ManP Plumer Man

        @purpl3-yt use the image assest

        Purpl3 YTP Offline
        Purpl3 YTP Offline
        Purpl3 YT
        wrote on last edited by
        #3

        @plumer-man I'm sorry I do not know how it works can you show an example code?

        T 1 Reply Last reply
        0
        • Purpl3 YTP Purpl3 YT

          @plumer-man I'm sorry I do not know how it works can you show an example code?

          T Offline
          T Offline
          ThrowAway39234
          wrote on last edited by
          #4

          @purpl3-yt You can use GL11.GL_QUADS to render an image, you just need to bind the image, in minecraft you bind the image like so mc.getTextureManager().bindTexture(new ResourceLocation("path to resource or image inside /assets/minecraft/"))

          and render the quads like so:

          GL11.glBegin(GL11.GL_QUADS);
          GL11.glTexCoord(0, 0);
          GL11.glVertex2d(x, y);
          GL11.glTexCoord(1, 0);
          GL11.glVertex2d(x2, y);
          GL11.glTexCoord(1, 1);
          GL11.glVertex2d(x2, y2);
          GL11.glTexCoord(0, 1);
          GL11.glVertex2d(x, y2);
          GL11.glEnd();
          
          Purpl3 YTP 1 Reply Last reply
          1
          • T ThrowAway39234

            @purpl3-yt You can use GL11.GL_QUADS to render an image, you just need to bind the image, in minecraft you bind the image like so mc.getTextureManager().bindTexture(new ResourceLocation("path to resource or image inside /assets/minecraft/"))

            and render the quads like so:

            GL11.glBegin(GL11.GL_QUADS);
            GL11.glTexCoord(0, 0);
            GL11.glVertex2d(x, y);
            GL11.glTexCoord(1, 0);
            GL11.glVertex2d(x2, y);
            GL11.glTexCoord(1, 1);
            GL11.glVertex2d(x2, y2);
            GL11.glTexCoord(0, 1);
            GL11.glVertex2d(x, y2);
            GL11.glEnd();
            
            Purpl3 YTP Offline
            Purpl3 YTP Offline
            Purpl3 YT
            wrote on last edited by
            #5

            @throwaway39234 Thank you

            1 Reply Last reply
            0
            • Purpl3 YTP Purpl3 YT has marked this topic as solved on

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            About
            • Terms of Service
            • Privacy Policy
            • Status
            • Contact Us
            Downloads
            • Releases
            • Source code
            • License
            Docs
            • Tutorials
            • CustomHUD
            • AutoSettings
            • ScriptAPI
            Community
            • Forum
            • Guilded
            • YouTube
            • Twitter
            • D.Tube
            • Login

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • Users
            • Groups