I am writing a function that draw images to the screen. I already got the function to actually DRAW the images, but normally you would have to make a structure and load the images for EVERY function you make that draws pictures, I am making it to where you call this function, DrawSprite(), and it loads everything up and all that junk. One of the arguements is called sprite, which is a string. You put that arguement in, and there is a switch that will see what you put in (for example: T_grass) but for some reason the switch won't except strings, it says Case does not return an Integer. Is there any way I can make it read strings? I tried just making a bunch of if statements, but anything under a 200 MHz computer takes forever to draw the images. Now a switch would make it a LOT faster.
If a switch is not the answer for this, what else could I do?