New Resourcegen, FontGen and other needed requisites for this already massive utility library. #23
YalekW5435
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
As discussed many different times, we need a new resource gen, font builder and font tester in this library. We also need to implement a customized version of Todd Foley. One that doesnt use the source code from Plants vs Zombies, and one that can be totally ported to other custom projects.
I did generate some samples of some C++ code being generated from a bunch of
coutgenerated strings, but there needs to be a flat out console app for the resource generator instead of a gui so it can be terminal ready, with some parameters reading cols, rows, nobits, nopals, so it can read image strips and grids (say for bejeweled or match 3 games), (I believe nobits nopals were exclusive to memoryimage, and should be implemented for both GPU and memoryimage classes). Including custom made parameters in the xml. Lot of room for improvement which should be done someday. This library isnt actually completed yet, and still needs some work.We should also get rid of ImageFont class because I am SICK AND TIRED of using an image to draw text. In this case, when we read a single character from the already generated Font Image, it has to copy the texture size for the next character, and the WHOLE IMAGE, which the max allowed is 16384 (?). This is problematic for the larger fonts that use extended ASCII to 255 chars and unicode chars, because that space runs out quick. The new font generator should also allow for 3d vectors, and layers. So: In essence, we should techincally rename ImageFont and name it PopFont. It will be a lot easier to wrap everything into one class. We dont need ImageFont and Font separately as that is confusing. SysFont will however, need to be separated to preprocess into the PopFont class. We need to be able to draw characters, or let the keyup and keydown functions type a single character instead of copying an entire texture somehow...This was also discussed. Also, the enhancement for using TTF would indeed fit way better with the SDL stuff.
Beta Was this translation helpful? Give feedback.
All reactions