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.cpp File Reference
#include "./asw/modules/lighting.h"
#include <SDL3/SDL.h>
#include <algorithm>
#include <array>
#include <cmath>
#include <numbers>
#include "./asw/modules/assets.h"
#include "./asw/modules/display.h"
#include "./asw/modules/draw.h"
#include "./asw/modules/easing.h"
Include dependency graph for lighting.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{lighting.cpp}
 

Functions

float anonymous_namespace{lighting.cpp}::hash (uint32_t x)
 
float anonymous_namespace{lighting.cpp}::noise (double x)
 
float anonymous_namespace{lighting.cpp}::wrap (float time, float length)
 
asw::Color anonymous_namespace{lighting.cpp}::scale_color (const asw::Color &color, float amount)
 
void anonymous_namespace{lighting.cpp}::textured_fan (const asw::Texture &texture, const Vec2< float > &center, float radius, const Polygonf &points, const asw::Color &color, bool closed)
 
Polygonf anonymous_namespace{lighting.cpp}::arc (const Vec2< float > &center, float radius, float direction, float cone)
 
std::size_t anonymous_namespace{lighting.cpp}::cell (int x, int y, int width)
 
bool anonymous_namespace{lighting.cpp}::is_spot (float cone)
 

Variables

constexpr float anonymous_namespace{lighting.cpp}::TAU = std::numbers::pi_v<float> * 2.0F
 
constexpr int anonymous_namespace{lighting.cpp}::GRADIENT_SIZE = 256
 
constexpr float anonymous_namespace{lighting.cpp}::SHADOW_FAR = 100000.0F