I am working onin OpenGL, and I am trying to create terrains using heightmapsheight maps. I
I am using my own functions to load a tgaTGA image, and in order to pass data to heightmap vertex shader iI need to retrieve RGB componentcomponents from the TGA image.
I am not quite sure how to do that, I saw in one tutorial that SDL library can be used to retrieve RGB component from a TGA image, but I do not want to use any such libraries because I am already able to load a TGA.
So, how do weI recover RGB information per pixel from a TGA that we loaded?