|
ShishGL
1.0
A simple modular cross-platform graphics library
|
|
Go to the documentation of this file.
2 #ifndef RAY_CASTING_SPHERE_CAST_HPP
3 #define RAY_CASTING_SPHERE_CAST_HPP
16 const int64_t& radius,
32 static constexpr
double ANGLE_STEP = 0.05;
33 static constexpr uint8_t BG_LIGHT_INTENSITY = 40;
35 const double SOURCE_RADIUS = light_source_position.
x;
36 double source_angle = 0;
38 const int64_t sphere_radius;
44 void onRender()
override;
63 #endif //RAY_CASTING_SPHERE_CAST_HPP
Definition: DefaultBehavior.hpp:14
~SphereCanvas() override=default
CanvasBehavior(Sh::UIWindow *target)
Definition: SphereCast.cpp:104
Definition: SphereCast.hpp:53
SomeWindow * target() const
Definition: Behavior.hpp:17
Definition: UICanvas.hpp:10
Definition: UIWindow.hpp:16
Definition: TimerEvent.hpp:11
bool onTimer(Sh::TimerEvent &event) override
Definition: SphereCast.cpp:112
T x
Definition: Vector3.hpp:15
Definition: SphereCast.hpp:12
SphereCanvas(const Sh::Frame &frame, const int64_t &radius, const Sh::Color &sphere_color, const Sh::Color &floor_color, const Sh::Color &light_color)
Definition: SphereCast.cpp:11