Aura

Graphics Engines (render.asm)

_View

Draws the view from (x0,y0) looking in direction aa at 320x200x32-bit to _Video buffer. Calls _Line to draw each voxel "scanline" from back to front.

_Line

Used by _View to draw each voxel (easier said than done, but it works :).

_RefreshVideoBuffer

Copies the rendering buffer to the display buffer. In ModeX, the display buffer is then copied (in the main loop) to video memory. In VESA, the display buffer IS the video memory.

_ScaleImage

Assumes that es=VideoBlock. Performs linear scaling of a source bitmap onto the backbuffer. Very fast, uses only integers (no FP).

_RenderPlayer

Renders a sprite to the screen representing the position of a different player. Calls _ScaleImage to put the image on the screen. Does quite a bit of math to do distance and height calculations and to position the image correctly on the screen with the proper orientation.

_RenderPlayers

Renders sprites to the screen representing the positions of the other players. Calls _RenderPlayer once per player.