ENIGMA_talk:Todo - hpgDesigns/hpgdesigns-dev.io GitHub Wiki
Wouldn't const work for read-only variables? How does GM do them? ---RetroX 18:24, 27 March 2011 (CDT) IsmAvatar 13:35, 7 May 2011 (CDT)
-Implement tiles using GL lists - I was thinking about this, and if you really want to use lists then the tiles need to be passed in the order of backgrounds (because you can't change the drawing texture inside the list). So if you have 10 different tiles from 3 backgrounds, then the tile information (x,y, etc.) should be in the order of the backgrounds, like 4 tiles from background_1, then 5 tiles from background_2 and then 1 tile from background_3. Now LGM passes it by tile ID. I guess ENIGMA plugin can also reorder them before writing, so its not essentially LGM's issue. This way the number of lists drawn will equal the number of backgrounds used, which seems like the fastest way. Of course nowadays its more popular to use vertex lists or VBO's. So mby consider that? That would require arrays of tile coordinates, texture coordinates and so on to be created at startup. It would make tiles essentially static though (they are static now as well, as no one has made functions to modify tiles yet). --Harrikiri 04:32, 18 April 2012 (MDT)