ASW Lib
A.D.S. Games SDL Wrapper Library. A library targeted at Allegro4 users who want to switch to SDL3 and use modern c++.
Loading...
Searching...
No Matches
lighting.h File Reference

2D lighting with a light map, shadows and tile lighting More...

#include <SDL3/SDL.h>
#include <cstddef>
#include <cstdint>
#include <utility>
#include <vector>
#include "./camera.h"
#include "./color.h"
#include "./geometry.h"
#include "./types.h"
Include dependency graph for lighting.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  asw::lighting::Light
 A light. Positions are in world space when the light map has a camera, otherwise in screen space. More...
 
class  asw::lighting::AmbientCycle
 Ambient colour that changes over a repeating cycle, such as a day. More...
 
class  asw::lighting::TileLight
 Light that spreads across a grid of tiles and stops at solid tiles. More...
 
struct  asw::lighting::TileLight::Source
 
class  asw::lighting::LightMap
 A screen sized texture of light, multiplied over the scene. More...
 
struct  asw::lighting::LightMap::Glow
 
struct  asw::lighting::LightMap::Tiles
 

Namespaces

namespace  asw
 
namespace  asw::lighting
 

Enumerations

enum class  asw::lighting::ShadowMode { asw::lighting::None , asw::lighting::Cast , asw::lighting::Visibility }
 How lights are blocked by occluders. More...
 

Detailed Description

2D lighting with a light map, shadows and tile lighting

Author
Allan Legemaate (alege.nosp@m.maat.nosp@m.e@gma.nosp@m.il.c.nosp@m.om)
Date
2026-09-30

Definition in file lighting.h.