add raylib and test window
This commit is contained in:
18
README.md
18
README.md
@@ -4,10 +4,20 @@ Work in progress.
|
||||
|
||||
Goals are: parsing an IGC file containing flight data, giving analytics about the flight, and if I really have time to kill, making some kind of (3D??) view of the flight..
|
||||
|
||||
TODO:
|
||||
- header parsing
|
||||
- data point doubly linked list
|
||||
- Raylib 3d 3rd person flight line visualization????
|
||||
# Dependencies
|
||||
|
||||
These are mainly for Raylib (the 3D library):
|
||||
|
||||
```
|
||||
sudo apt install libasound2-dev libx11-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev libxinerama-dev libwayland-dev libxkbcommon-dev
|
||||
```
|
||||
|
||||
# Compilation & Usage
|
||||
|
||||
```
|
||||
make
|
||||
./a.out <file>
|
||||
```
|
||||
|
||||
# License
|
||||
|
||||
|
||||
1
igc.c
1
igc.c
@@ -9,6 +9,7 @@
|
||||
* @license GNU GPL v3
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <errno.h>
|
||||
|
||||
1728
include/raylib.h
Normal file
1728
include/raylib.h
Normal file
File diff suppressed because it is too large
Load Diff
BIN
lib/libraylib.a
Normal file
BIN
lib/libraylib.a
Normal file
Binary file not shown.
16
main.c
16
main.c
@@ -9,6 +9,8 @@
|
||||
* @license GNU GPL v3
|
||||
*/
|
||||
|
||||
#include "raylib.h"
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@@ -41,5 +43,19 @@ int main(int argc, char* argv[])
|
||||
|
||||
print_datapoint_list(head);
|
||||
|
||||
// Raylib test window
|
||||
SetTraceLogLevel(4);
|
||||
const int screenWidth = 800;
|
||||
const int screenHeight = 600;
|
||||
InitWindow(screenWidth, screenHeight, "Raylib basic window");
|
||||
SetTargetFPS(60);
|
||||
while (!WindowShouldClose()) {
|
||||
BeginDrawing();
|
||||
ClearBackground(RAYWHITE);
|
||||
DrawText("It works!", 20, 20, 20, BLACK);
|
||||
EndDrawing();
|
||||
}
|
||||
CloseWindow();
|
||||
|
||||
return EXIT_SUCCESS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user