group2 0.1.0
CSE 125 Group 2
Loading...
Searching...
No Matches
CrosshairStyle Struct Reference

Crosshair appearance parameters. More...

#include <HudTypes.hpp>

Collaboration diagram for CrosshairStyle:
[legend]

Public Attributes

float gap = 3.f
 Gap from center to start of each line (pixels).
float length = 6.f
 Length of each crosshair arm (pixels).
float thickness = 2.f
 Line thickness (pixels).
HudColor color {0.168627f, 0.694118f, 0.741176f, 0.85f}
 Default primary palette color.
bool dot = true
 Draw center dot.
float reloadRadius = 20.f
 Radius of circular reload indicator (pixels).
float reloadThickness = 2.f
 Thickness of reload indicator (pixels).
HudColor reloadColor {0.168627f, 0.694118f, 0.741176f, 0.85f}
 Color of reload indicator.

Detailed Description

Crosshair appearance parameters.

Member Data Documentation

◆ color

HudColor CrosshairStyle::color {0.168627f, 0.694118f, 0.741176f, 0.85f}

Default primary palette color.

◆ dot

bool CrosshairStyle::dot = true

Draw center dot.

◆ gap

float CrosshairStyle::gap = 3.f

Gap from center to start of each line (pixels).

◆ length

float CrosshairStyle::length = 6.f

Length of each crosshair arm (pixels).

◆ reloadColor

HudColor CrosshairStyle::reloadColor {0.168627f, 0.694118f, 0.741176f, 0.85f}

Color of reload indicator.

◆ reloadRadius

float CrosshairStyle::reloadRadius = 20.f

Radius of circular reload indicator (pixels).

◆ reloadThickness

float CrosshairStyle::reloadThickness = 2.f

Thickness of reload indicator (pixels).

◆ thickness

float CrosshairStyle::thickness = 2.f

Line thickness (pixels).


The documentation for this struct was generated from the following file: