-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcreate.c
More file actions
34 lines (28 loc) · 706 Bytes
/
create.c
File metadata and controls
34 lines (28 loc) · 706 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
/*
** EPITECH PROJECT, 2024
** B-MUL-100-LYN-1-1-myradar-aurelien.demeusy
** File description:
** create.c
*/
#include <SFML/Graphics.h>
#include <SFML/Window.h>
#include <stdio.h>
#include <stdlib.h>
sfRenderWindow *create_window(void)
{
sfVideoMode mode = {1920, 1080, 32};
return sfRenderWindow_create(mode, "My Radar", sfResize | sfClose, NULL);
}
sfClock *create_clock(void)
{
return sfClock_create();
}
sfText *create_timer_text(sfFont *font)
{
sfText *text = sfText_create();
sfText_setFont(text, font);
sfText_setCharacterSize(text, 30);
sfText_setColor(text, sfColor_fromRGB(0, 0, 0));
sfText_setPosition(text, (sfVector2f){1600.f, 10.f});
return text;
}