I am currently writing a raycaster using G1 operations. Writing an untextured raycaster was easy, however I am having problems adding textures. I need to get the color of a pixel of my texture, however you can only set the pixel, (setPixel(x, y, etc...)), and you are not able to get a specific pixel (i.e. getPixel(x, y)) Does this feature exist, or am I missing something? I have checked the API, to no avail.
Just in case you want to see the code,
var texColor = textures[textureNum].g1.getPixel(Std.int(textureX), Std.int(textureY));