I’m working on a glyph system, it only has 26 textured letters “glyphs”. The code only refers to these 26 textures. But after 128 textures are displayed per frame swap, it doesn’t display 129 or more.
Is there a maximum number of times you can perform a texture bind before each frame swap?
I suggest you post some code here as this is almost certainly some bug in your code. Have you tried using http://glintercept.nutty.org/ to get some XML frame dumps of your rendering?
I would say there’s nothing wrong with this code (except, that you really should put all your sprite’s data into a struct and then create a vector of structs, instead of n vectors).
I would assume that one of your many arrays isn’t up-to-date. Maybe spriteWidth or xscale or one of all those arrays is simply only 128 elements wide.
OR did you actually intend to index all the other arrays like your texName array? Like “xscale[spritecount[i]]” etc. ? Than that might be your problem.