PS2 Linux Programming
Drawing 2D Primitive with a Dynamic Packet 2
This tutorial is an extension of the previous tutorial demonstrating the drawing of four triangle primitives using the dynamic memory area.
In the example code, the vertex data for each of the four triangles are constructed in memory each frame. The NLOOP variable within the GIFTag has been changed to reflect the number of vertices that are being drawn.
This and the previous tutorial have demonstrated the writing of data into the dynamic memory area. The dynamic memory is used to store data that may change from frame to frame as the game proceeds. In the next tutorial, the use of the static memory area will be investigated.
Dr Henry S Fortuna
University of Abertay Dundee