21#ifndef GF_LIGHT_SHAPE_H
22#define GF_LIGHT_SHAPE_H
25#include "GraphicsApi.h"
28#include "Transformable.h"
30#include "VertexArray.h"
33#ifndef DOXYGEN_SHOULD_SKIP_THIS
95 void updateGeometry();
102 bool m_active =
true;
110#ifndef DOXYGEN_SHOULD_SKIP_THIS
Light shape.
Definition: LightShape.h:54
void draw(RenderTarget &target, const RenderStates &states) override
Draw the object to a render target.
void setActive(bool active=true)
Definition: LightShape.h:80
Vector2f getPrevPoint(std::size_t index) const
bool isActive() const
Definition: LightShape.h:84
std::size_t getPointCount() const
RectF getLocalBounds() const
Vector2f getPoint(std::size_t index) const
Vector2f getNextPoint(std::size_t index) const
LightShape(const RectF &rect, LightShapeVisibility visibility=LightShapeVisibility::Apparent)
LightShapeVisibility getVisibility() const
void setColor(const Color4f &color)
LightShape(const Polygon &polygon, LightShapeVisibility visibility=LightShapeVisibility::Apparent)
LightShape(Polygon &&polygon, LightShapeVisibility visibility=LightShapeVisibility::Apparent)
LightShape(const CircF &circ, LightShapeVisibility visibility=LightShapeVisibility::Apparent)
void setVisibility(LightShapeVisibility visibility)
void setAnchor(Anchor anchor)
A convex polygon.
Definition: Polygon.h:47
Base class for all render targets (window, texture, ...)
Definition: RenderTarget.h:102
A set of primitives.
Definition: VertexArray.h:65
Anchor
An anchor of a box.
Definition: Anchor.h:38
LightShapeVisibility
Light shape visibility.
Definition: LightShape.h:43
The namespace for gf classes.
Definition: Action.h:35
Utility class for manipulating circles.
Definition: Circ.h:61
Define the states used for drawing to a RenderTarget.
Definition: RenderStates.h:82
A 4D vector.
Definition: Vector.h:852