Posted March 19, 201312 yr How do you make dynamic textures in 1.5? Not GIFs, not many-by-many image. A dynamic texture that converts 1024 byte array into an OGL texture. Once again, pre-made textures are not an option.
March 19, 201312 yr MapItemRenderer uses a texture in memory these lines par2RenderEngine.createTextureFromBytes(this.intArray, 128, 128, this.bufferedImage); with bufferedImage being an int GL11.glBindTexture(GL11.GL_TEXTURE_2D, this.bufferedImage); would probably be how it does this. TileEntitySpecialRenderer and Render has references to RenderEngine as; this.renderManager.renderEngine; for Render and this.tileEntityRenderer.renderEngine; for TileEntitySpecialRenderer Edit: I realise I was looking at 1.4.7 but I assume it is still present in 1.5.
March 19, 201312 yr Author Thanks! It helped! The function itself isn't exactly what I was looking for, but, modifying its code a bit helped.
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.