ST_engine  0.3-ALPHA
Public Member Functions | Public Attributes | List of all members
ST::light Struct Reference

Contains the data needed to represent a light source. More...

#include <light.hpp>

Public Member Functions

 light (int32_t origin_x, int32_t origin_y, uint16_t radius, uint16_t intensity, uint16_t brightness)
 

Public Attributes

int32_t origin_x
 
int32_t origin_y
 
uint16_t radius
 
uint16_t intensity
 
uint16_t brightness
 
bool is_static = false
 
uint8_t padding_byte {}
 

Detailed Description

Contains the data needed to represent a light source.

Definition at line 17 of file light.hpp.

Constructor & Destructor Documentation

◆ light()

ST::light::light ( int32_t  origin_x,
int32_t  origin_y,
uint16_t  radius,
uint16_t  intensity,
uint16_t  brightness 
)

The constructor for a light object.

Parameters
origin_xThe X position of the light.
origin_yThe Y position of the light.
radiusThe radius of the light.
intensityThe intensity of the light.
brightnessThe brightness of the light.

Definition at line 20 of file light.cpp.


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