feat(render): halo neon proporcional al bounding_radius de la shape (opt-out a text)
This commit is contained in:
@@ -22,7 +22,8 @@ namespace Rendering {
|
||||
int y2,
|
||||
float brightness,
|
||||
float thickness,
|
||||
SDL_Color color) {
|
||||
SDL_Color color,
|
||||
float alpha) {
|
||||
if (renderer == nullptr) {
|
||||
return;
|
||||
}
|
||||
@@ -42,7 +43,7 @@ namespace Rendering {
|
||||
|
||||
const float W = (thickness > 0.0F) ? thickness : g_current_line_thickness;
|
||||
|
||||
renderer->pushLine(FX1, FY1, FX2, FY2, W, R, G, B, 1.0F);
|
||||
renderer->pushLine(FX1, FY1, FX2, FY2, W, R, G, B, alpha);
|
||||
}
|
||||
|
||||
void setLineColor(SDL_Color color) { g_current_line_color = color; }
|
||||
|
||||
Reference in New Issue
Block a user