Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
Skins
  • Light
  • 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 459 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
            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