Minecraft.getMinecraft().renderEngine.bindTexture(ringTexture) ![]() GL11.glColor3d(lineColour.R * ringColourIntensity, lineColour.G * ringColourIntensity, lineColour.B * ringColourIntensity) GL11.glBlendFunc(GL11.GL_SRC_ALPHA, GL11.GL_ONE_MINUS_SRC_ALPHA) Int height = scaledResolution.getScaledHeight() įinal float Z_LEVEL_FROM_GUI_IN_GAME_FORGE = -90.0F // taken from GuiInGameForge.renderCrossHairsįinal double CROSSHAIR_X_OFFSET = -CROSSHAIR_ICON_WIDTH / 2.0 įinal double CROSSHAIR_Y_OFFSET = -CROSSHAIR_ICON_HEIGHT / 2.0 Int width = scaledResolution.getScaledWidth() ScaledResolution scaledResolution = event.resolution ![]() The fragment below might give you some clues. how to subscribe your eventhandler to the event bus,Īnd how to use OpenGL to draw your custom cursor directly to the screen.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |