Balh balh blah
This commit is contained in:
commit
8d1adbcc25
17
.vscode/settings.json
vendored
Normal file
17
.vscode/settings.json
vendored
Normal file
@ -0,0 +1,17 @@
|
|||||||
|
{
|
||||||
|
"makefile.launchConfigurations": [
|
||||||
|
{
|
||||||
|
"cwd": "/build",
|
||||||
|
"binaryPath": "/build/main",
|
||||||
|
"binaryArgs": []
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cwd": "/home/xircon/Documents/Devel/opengl-test/build",
|
||||||
|
"binaryPath": "/home/xircon/Documents/Devel/opengl-test/build/main",
|
||||||
|
"binaryArgs": []
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"files.associations": {
|
||||||
|
"stdint.h": "c"
|
||||||
|
}
|
||||||
|
}
|
||||||
16
Makefile
Normal file
16
Makefile
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
CC=gcc
|
||||||
|
LIB_DIR=lib
|
||||||
|
BUILD_DIR=build
|
||||||
|
SRC_DIR=src
|
||||||
|
.PHONY: all always clean
|
||||||
|
|
||||||
|
all: main
|
||||||
|
|
||||||
|
main: always
|
||||||
|
$(CC) -g $(SRC_DIR)/main.c -o $(BUILD_DIR)/main
|
||||||
|
chmod +x $(BUILD_DIR)/main
|
||||||
|
always:
|
||||||
|
mkdir -p $(BUILD_DIR)
|
||||||
|
|
||||||
|
clean:
|
||||||
|
rm -rf $(BUILD_DIR)
|
||||||
BIN
build/main
Executable file
BIN
build/main
Executable file
Binary file not shown.
21
src/main.c
Normal file
21
src/main.c
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
/*==============*\
|
||||||
|
| Copyright 2024 |
|
||||||
|
| Tyler McGurrin |
|
||||||
|
\*==============*/
|
||||||
|
|
||||||
|
//include files
|
||||||
|
#include <stdio.h>
|
||||||
|
#include <stdint.h>
|
||||||
|
#include <GL/gl.h>
|
||||||
|
#include <GL/glut.h>
|
||||||
|
|
||||||
|
//Definitions and Vars
|
||||||
|
#define true 1;
|
||||||
|
#define false 0;
|
||||||
|
|
||||||
|
|
||||||
|
int main()
|
||||||
|
{
|
||||||
|
glutInit;
|
||||||
|
return true;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user