Подготовлены файлы фигуры
This commit is contained in:
21
wayland/include/figure.h
Normal file
21
wayland/include/figure.h
Normal file
@@ -0,0 +1,21 @@
|
||||
#ifndef FIGURE_H
|
||||
#define FIGURE_H
|
||||
|
||||
#include "geomerty.h"
|
||||
|
||||
enum figure_type
|
||||
{
|
||||
FIGURE_CIRCLE = 0,
|
||||
FIGURE_TRIANGLE = 1,
|
||||
FIGURE_SQUARE = 2
|
||||
};
|
||||
|
||||
struct figure_info {
|
||||
enum figure_type type;
|
||||
struct vec2 position;
|
||||
struct vec2 velocity;
|
||||
float rotation;
|
||||
float rotation_speed;
|
||||
};
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user