Первый движок анимации
This commit is contained in:
9
wayland/include/figure-draw.h
Normal file
9
wayland/include/figure-draw.h
Normal file
@@ -0,0 +1,9 @@
|
||||
#ifndef FIGURE_DRAW_H
|
||||
#define FIGURE_ANFIGURE_DRAW_HIMATE_H
|
||||
|
||||
#include "window.h"
|
||||
|
||||
/* Нарисовать фигуру на холсте */
|
||||
void figure_draw(struct window_draw_info* draw_info, float border_thikness, uint32_t border_color, uint32_t fill_color);
|
||||
|
||||
#endif
|
||||
@@ -19,6 +19,10 @@ struct figure_animation_info {
|
||||
float angular_velocity;
|
||||
|
||||
float speed;
|
||||
/* Radius of the figure normalized for window width (0..1)
|
||||
* This field is used by animation code to check collisions
|
||||
* with the left/right/top/bottom borders. */
|
||||
float radius;
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user