Last night I realized that not only does Java not have unsigned primitives, bytes are 32 bit. Pretty different from C++… This situation is giving me some hell when it comes to storing a texture’s raster in memory.
If you guy’s wanted to store a texture using 8bits for r, 8bits for g, 8bits for b, and 8bits for a, how would you go at storing it? Usually this would be cake using an array of unsigned byte, but obviously you can’t do that in Java. Any suggestions would go a long way. Thanks!