Reorganizing examples.
This commit is contained in:
parent
4e5b5abd6f
commit
73c54c580d
|
@ -0,0 +1 @@
|
||||||
|
*.o
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
An updated version of the [irrNetLite](http://irrlicht.sourceforge.net/forum/viewtopic.php?f=6&t=22658) networking library compiled against recent versions of [enet](https://github.com/lsalzman/enet) and [zlib](https://github.com/madler/zlib).
|
An updated version of the [irrNetLite](http://irrlicht.sourceforge.net/forum/viewtopic.php?f=6&t=22658) networking library compiled against recent versions of [enet](https://github.com/lsalzman/enet) and [zlib](https://github.com/madler/zlib).
|
||||||
|
|
||||||
|
|
||||||
## Compiling for Linux
|
## Compiling for Linux
|
||||||
|
|
||||||
When cloning use the `--recurse-submodules` flag to retrieve the enet and zlib libraries needed by the project:
|
When cloning use the `--recurse-submodules` flag to retrieve the enet and zlib libraries needed by the project:
|
||||||
|
@ -10,6 +11,7 @@ When cloning use the `--recurse-submodules` flag to retrieve the enet and zlib l
|
||||||
|
|
||||||
Then run `make` in the `source/` directory to build the library.
|
Then run `make` in the `source/` directory to build the library.
|
||||||
|
|
||||||
|
|
||||||
## Building examples
|
## Building examples
|
||||||
|
|
||||||
Navigate to `examples/` and run:
|
Navigate to `examples/` and run:
|
||||||
|
@ -23,5 +25,6 @@ or to build them with optimizations:
|
||||||
The compiled binaries will be found in `examples/bin/`
|
The compiled binaries will be found in `examples/bin/`
|
||||||
|
|
||||||
|
|
||||||
|
## License
|
||||||
|
|
||||||
Original code by Ahmed Hilali.
|
Refer to `source/ReadMe.txt`
|
||||||
|
|
2
enet
2
enet
|
@ -1 +1 @@
|
||||||
Subproject commit 7900e72b709798ac285431bf1860014c6e1caf91
|
Subproject commit 236e8a6428d8e7c85956305859f0918d75cc9964
|
|
@ -1,5 +1,5 @@
|
||||||
CXX = g++
|
CXX = g++
|
||||||
Target := Example1
|
Target := 01.Tutorial
|
||||||
TargetPath := ../bin/
|
TargetPath := ../bin/
|
||||||
Sources := main.cpp
|
Sources := main.cpp
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
/*
|
/*
|
||||||
|
Example 1: Tutorial.
|
||||||
|
|
||||||
Welcome to the simple, introductory tutorial for irrNetLite. This will show you the
|
Welcome to the simple, introductory tutorial for irrNetLite. This will show you the
|
||||||
very basics of setting up a client and server, and sending and receiving packets.
|
very basics of setting up a client and server, and sending and receiving packets.
|
||||||
Because irrNetLite is so easy to use, I think you will not find many actual lines of
|
Because irrNetLite is so easy to use, I think you will not find many actual lines of
|
||||||
code in this example, rather most of it is documentation.
|
code in this example, rather most of it is documentation.
|
||||||
|
|
||||||
For much more sophisticated use of irrNetLite, I recommend taking a look in the
|
|
||||||
examples subdirectory.
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// Include the main irrNet.h header for irrNetLite.
|
// Include the main irrNet.h header for irrNetLite.
|
|
@ -1,5 +1,5 @@
|
||||||
CXX = g++
|
CXX = g++
|
||||||
Target := Example2
|
Target := 02.PacketIdentification
|
||||||
TargetPath := ../bin/
|
TargetPath := ../bin/
|
||||||
Sources := main.cpp
|
Sources := main.cpp
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
/*
|
/*
|
||||||
Example 1: Packet Identification.
|
Example 2: Packet Identification.
|
||||||
|
|
||||||
In this example I will expain the basics of packet identification.
|
In this example I will expain the basics of packet identification.
|
||||||
For a more basic introduction please refer to Tutorial.cpp first.
|
For a more basic introduction please refer to the tutorial first.
|
||||||
(Recommended)
|
(Recommended)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
CXX = g++
|
CXX = g++
|
||||||
Target := Tutorial
|
Target := 03.ClientManagement
|
||||||
TargetPath := ../bin/
|
TargetPath := ../bin/
|
||||||
Sources := main.cpp
|
Sources := main.cpp
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
/*
|
/*
|
||||||
Example 2: Client management.
|
Example 3: Client management.
|
||||||
|
|
||||||
In this example I will demonstrate client management.
|
In this example I will demonstrate client management.
|
||||||
For a more basic introduction please refer to Tutorial.cpp first.
|
For a more basic introduction please refer to the Tutorial first.
|
||||||
(Recommended)
|
(Recommended)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,15 +1,8 @@
|
||||||
#! /bin/bash
|
#! /bin/bash
|
||||||
[ -z $1 ] || TARGET=$1
|
[ -z $1 ] || TARGET=$1
|
||||||
[ -z $TARGET ] && TARGET=debug
|
[ -z $TARGET ] && TARGET=debug
|
||||||
for i in Tutorial Example* ; do
|
for i in [0123456789]* ; do
|
||||||
echo "Building $i";
|
echo "Building $i";
|
||||||
pushd $i && make clean $TARGET;
|
pushd $i && make clean $TARGET;
|
||||||
popd;
|
popd;
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#g++ Tutorial.cpp -I../irrnet -L../lib -lirrnet -o Tutorial
|
|
||||||
#g++ Example1.cpp -I../irrnet -L../lib -lirrnet -o Example1
|
|
||||||
#g++ Example2.cpp -I../irrnet -L../lib -lirrnet -o Example2
|
|
||||||
|
|
Binary file not shown.
BIN
source/SPacket.o
BIN
source/SPacket.o
Binary file not shown.
Loading…
Reference in New Issue