group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
HudIcons.cpp File Reference

Procedural vector icon implementations. More...

#include "HudIcons.hpp"
#include "HudContext.hpp"
#include <cmath>
#include <numbers>
#include <vector>
Include dependency graph for HudIcons.cpp:

Namespaces

namespace  voidfall
namespace  voidfall::icons

Functions

void voidfall::icons::filledPolygon (HudContext &ctx, const float *points, int n, HudColor color)
 Fill a closed polygon with n points using a triangle fan from the first vertex.
void voidfall::icons::strokedPolygon (HudContext &ctx, const float *points, int n, float thickness, HudColor color)
 Stroke a closed polygon (connects last point back to first).
void voidfall::icons::filledCircle (HudContext &ctx, float cx, float cy, float r, int sides, HudColor color)
 Fill a regular polygon approximating a circle.
void voidfall::icons::strokedCircle (HudContext &ctx, float cx, float cy, float r, float thickness, int sides, HudColor color)
 Stroke a circle as a sides-segment ring.
void voidfall::icons::hp (HudContext &ctx, float x, float y, float size, HudColor color)
 Medical-cross HP glyph (filled).
void voidfall::icons::shield (HudContext &ctx, float x, float y, float size, HudColor color)
 Shield silhouette: top-flat pentagon with curved bottom (stroked).
void voidfall::icons::skull (HudContext &ctx, float x, float y, float size, HudColor color)
 Skull silhouette (filled).
void voidfall::icons::headshot (HudContext &ctx, float x, float y, float size, HudColor color)
 Headshot reticle: circle + center pip + line below.
void voidfall::icons::gravityArrow (HudContext &ctx, float x, float y, float size, int direction, HudColor color)
 Gravity arrow inside a small dial. direction is 0=down, 1=left, 2=up, 3=right.
void voidfall::icons::fall (HudContext &ctx, float x, float y, float size, HudColor color)
 Upward filled triangle (used for "FALL" weapon kill icon).
void voidfall::icons::grenade (HudContext &ctx, float x, float y, float size, HudColor color)
 Grenade: round body + collar + lever (filled silhouette).
void voidfall::icons::grapple (HudContext &ctx, float x, float y, float size, HudColor color)
 Grapple hook: hook shape + diagonal rope (stroked).
void voidfall::icons::tactical (HudContext &ctx, float x, float y, float size, HudColor color)
 Tactical: dotted ring + center pip (stroked).
void voidfall::icons::playerArrow (HudContext &ctx, float cx, float cy, float size, HudColor color)
 Player arrow chevron used on the minimap (filled, with notch).
void voidfall::icons::enemyDiamond (HudContext &ctx, float cx, float cy, float size, HudColor color)
 Diamond marker for enemy positions on the minimap.

Detailed Description

Procedural vector icon implementations.