Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
NetWorld
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Fatus
NetWorld
Commits
bdce40c0
Commit
bdce40c0
authored
Sep 23, 2020
by
GuillaumeLozenguez
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Makefile
parent
39b9f255
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
3 deletions
+38
-3
.gitignore
.gitignore
+2
-1
Makefile
Makefile
+14
-0
Makefile
src/Makefile
+21
-0
main-hello.c
src/main-hello.c
+0
-0
main-viewer.c
src/main-viewer.c
+0
-1
networld.h
src/networld.h
+1
-1
No files found.
.gitignore
View file @
bdce40c0
...
...
@@ -6,3 +6,4 @@ raylib
# Generated files:
nw-*
config
Makefile
0 → 100644
View file @
bdce40c0
all
:
config
make
-C
src
mv
src/nw-
*
.
config
:
echo
"# Configuration for make"
>
config
echo
"OS=
`
uname
`
"
>>
config
echo
"CC=gcc"
>>
config
echo
"CFLAGS=-std=c99 -Wall -Wextra
`
pkg-config
--cflags
raylib
`
"
>>
config
echo
"LIBS=
`
pkg-config
--libs
raylib
`
"
>>
config
clean
:
make
-C
src clean
src/Makefile
0 → 100644
View file @
bdce40c0
include
../config
all
:
hello viewer
hello
:
main-hello.o
$(CC)
-o
nw-
$@
$^
$(LIBS)
viewer
:
main-viewer.o networld.o
$(CC)
-o
nw-
$@
$^
$(LIBS)
%.o
:
%.c
$(CC)
-c
$<
$(CFLAGS)
config
:
rm
config
"OS=
`
uname
`
"
>>
config
clean
:
rm
-rf
*
.o
src/hello.c
→
src/
main-
hello.c
View file @
bdce40c0
File moved
src/main-viewer.c
View file @
bdce40c0
...
...
@@ -22,7 +22,6 @@ void game_draw(NetWorld * world);
//-----------------
bool
game_end
;
int
main
(
int
nbArg
,
char
**
arg
)
{
// Game Initialization
...
...
src/networld.h
View file @
bdce40c0
...
...
@@ -17,7 +17,7 @@ NetWorld * NetWorld_new(int aSize);
void
NetWorld_delete
(
NetWorld
*
aWorld
);
// Initialization
void
NetWorld_init
Position
(
NetWorld
*
self
,
float
**
position
);
// position must be an float[size][2] array...
void
NetWorld_init
NodePosition
(
NetWorld
*
self
,
int
iNode
,
double
x
,
double
y
);
// position must be an float[size][2] array...
// To String
void
NetWorld_print
(
NetWorld
*
self
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment