QuakeServer.Extensions.Polygons (quake_server v0.1.0)

Copy Markdown View Source

FTE's server polygon builtins, for drawing in the world from the server program: R_BeginPolygon(texture, flags, is2d), R_PolygonVertex(origin, texcoords, rgb, alpha) and R_EndPolygon(). Each finished polygon becomes the event {:polygon, %{texture:, flags:, flat?:, vertices: [{origin, texcoords, rgb, alpha}]}} (QuakeServer.Server.emit/2), and the next starts on the same texture.

The polygon being built is kept in the host's ext.polygon.

Summary

Functions

Run polygon builtin builtin.

Functions

call(s, int, argc)

@spec call(map(), integer(), non_neg_integer()) :: map()

Run polygon builtin builtin.