Taking into account the position of the square (in this case, a wall), the position and rotation of the "camera" and other factors, I know how to calculate where the four points of the square should be when rendered to a 2D canvas.
What I don't know, however, is how to actually render the square. If I have an image, how do I draw it so that its four corners are positioned on the four points I've calculated?
More information: What I'm actually trying to do is render a view inside a maze. I have previously done this using raycasting, similar to Doom and Wolfenstein 3D. However, this only worked well for smaller views (320x240 being the one I settled on). I'd like to render this in fullscreen. Any advice for rendering such a scene (square walls, sprite-based objects, etc.) would be appreciated.