Implements affine texture mapping of triangles in mIRC using custom rasterization logic across flat-top, flat-bottom, and general triangle types. Includes four 2D examples, a rotatable 3D textured cube with mouse interaction, and detailed inline documentation of the underlying math.