Commit Graph
5204 Commits
Author SHA1 Message Date
pupnewfster d6b27e95a2 Start removing need for keeping track of guiWidth and guiHeight, as they are equal to guiLeft and guiTop 2019-07-08 11:47:36 -04:00
pupnewfster a7b29c209f Deduplicate a bunch of code pertaining to drawing the background layer 2019-07-08 11:47:06 -04:00
pupnewfster 323eaf9c38 Continue work on cleaning up duplicated filter gui code 2019-07-08 11:47:05 -04:00
pupnewfster 2f49f58273 Continue work on cleaning up duplicated filter gui code 2019-07-08 11:47:05 -04:00
pupnewfster d9fa9dbd42 Continue work on cleaning up duplicated filter gui code 2019-07-08 11:47:05 -04:00
pupnewfster 6f9c7710a6 Continue work on cleaning up duplicated filter gui code 2019-07-08 11:47:05 -04:00
pupnewfster 6753fec4e8 Work more on cleaning up duplicated filter gui code 2019-07-08 11:47:05 -04:00
pupnewfster 9e06c0338a Inline a method 2019-07-08 11:47:04 -04:00
pupnewfster d30f4ca182 Add final to some things that should not be changed 2019-07-08 11:47:04 -04:00
pupnewfster 5dce92ef9f Add some null safety 2019-07-08 11:47:04 -04:00
pupnewfster 7b6c878833 Fix small typo 2019-07-08 11:47:04 -04:00
pupnewfster e720e19344 Use drawRect instead of drawGradientRect where appropriate. Also represent colors as hex to make them easier to read 2019-07-08 11:47:04 -04:00
pupnewfster 710348a61b Helper methods for drawTexturedModalRect to make code easier to read 2019-07-08 11:47:04 -04:00
pupnewfster 0aaab468fd Cleanup color overlaying in GUIs 2019-07-08 11:47:01 -04:00
pupnewfster adf2741aef For color only things manually handle resetting color to reduce GC from advanced helper 2019-07-08 11:46:21 -04:00
pupnewfster fbd4336139 Work on reducing GC overhead of stuff that can use the static helper and a manual push pop instead of the more advanced helper 2019-07-08 11:46:20 -04:00
pupnewfster 16e5c1250f Fix items in DM config gui appearing translucent 2019-07-08 11:46:20 -04:00
pupnewfster 002d96a797 Fix energy cube not blending the parts together properly 2019-07-08 11:46:20 -04:00
pupnewfster f8358417c2 Move comment, after having spent more time tracking down the issue 2019-07-08 11:46:20 -04:00
pupnewfster e0c51e6b8a Some minor cleanup 2019-07-08 11:46:20 -04:00
pupnewfster e3fbf55d34 Inline getBlocksTexture 2019-07-08 11:46:20 -04:00
pupnewfster f1c7196481 Some minor cleanup trying to fix what seems to be a state leak 2019-07-08 11:46:19 -04:00
pupnewfster aff3565fa3 Minor cleanup to energy cube rendering 2019-07-08 11:46:19 -04:00
pupnewfster 28b682d567 Fix rendering of missing replace stack for DM (use gradientRect rather than texture 2019-07-08 11:46:13 -04:00
pupnewfster b828a6103e Performance improvements of some of the impl of MekanismRenderHelper 2019-07-08 11:45:25 -04:00
pupnewfster d882ba266f Switch some stuff away from object creation 2019-07-08 11:45:24 -04:00
pupnewfster cfb1e63917 Minor clean 2019-07-08 11:45:24 -04:00
pupnewfster 87d04ee07f Fix wrong rotation on gas generator 2019-07-08 11:45:24 -04:00
pupnewfster 45ed55672b Couple minor comments 2019-07-08 11:45:24 -04:00
pupnewfster 17faa14534 Use helper wrapper methods for most usages of rotate 2019-07-08 11:45:24 -04:00
pupnewfster 72366473e5 Use helper wrapper methods for most usages of translate 2019-07-08 11:45:23 -04:00
pupnewfster b62995437a Color mask 2019-07-08 11:45:21 -04:00
pupnewfster 001d5b4575 Make it a bit easier to read GuiDigitalMinerConfig 2019-07-08 11:45:21 -04:00
pupnewfster c7e8b07275 Reorder things slightly to not have to enable disable glow as much, and add helper color wrapper for BaseTier 2019-07-08 11:45:21 -04:00
pupnewfster 7998d44288 MekanismRenderer.glowOn to MekanismRenderHelper.enableGlow 2019-07-08 11:45:21 -04:00
pupnewfster ef87190dd5 MekanismRenderer.blendOn to MekanismRenderHelper.enableBlendPreset 2019-07-08 11:45:20 -04:00
pupnewfster 5f899cdbfe Minor cleanup 2019-07-08 11:45:20 -04:00
pupnewfster 01f52b762f Helper methods for most of the scale calls 2019-07-08 11:45:20 -04:00
pupnewfster 0ea90e9352 Wrap calls to RenderHelper through MekanismRenderHelper 2019-07-08 11:45:18 -04:00
pupnewfster d687abd75e Convert remaining color calls 2019-07-08 11:45:18 -04:00
pupnewfster b1d7411b4b Convert a lot more color calls 2019-07-08 11:45:18 -04:00
pupnewfster f64b2a43a0 Fix accidental infinite recursion 2019-07-08 11:45:17 -04:00
pupnewfster cc2b6ee50f Start transitioning some of the color calls to MekanismRenderHelper 2019-07-08 11:45:17 -04:00
pupnewfster b79806ffcc Use MekanismRenderHelper for MekanismRenderer#blendOn 2019-07-08 11:45:17 -04:00
pupnewfster 21079e671e Minor fixes, seems the pushAttrib stuff is purely for saving the data and didn't change any states 2019-07-08 11:45:17 -04:00
pupnewfster 824f9c13e7 Initial transition to new MekanismRenderHelper 2019-07-08 11:45:17 -04:00
pupnewfster 598538a256 Remove some unneeded resetColors 2019-07-08 11:45:15 -04:00
pupnewfster 315f961bf2 Simplify now duplicated methods 2019-07-08 11:45:15 -04:00
pupnewfster de1bd30f38 Replace GL11 with GlStateManager, good bit of testing still needed 2019-07-08 11:45:10 -04:00
pupnewfster be268b5f87 Finish changing RenderLogisticalTransporter to GlStateManager 2019-07-08 11:44:09 -04:00