I would like to store more than just one Texture in a (1) BMP file (e.g. for fonts) and I just dont know how…
I thought I could just write 32 instead of t.width() and it should give me the first 32 pixels of the bitmap. However its not working so far… Or is there a function like glTexCoord2 to set the width and height of the Texture later?
How about uploading the whole large texture as one texture object and use texture coordinates to select which sub texture you wish to use (this is how I do it for texture fonts)? This will be more efficient anyway as it reduces the number of texture binds.
it has nothing to do with ogl, but with c+ when you divide two integers, then the result is also an integer when at least one of them is float, then the result is float.