Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
cmake_minimum_required(VERSION 2.8)

project(cyclone-physics)

option(UPDATE_PACKAGED_EXECUTABLES "Set to on to update the executables under ${CMAKE_SOURCE_DIR}/bin/" OFF)
if(UPDATE_PACKAGED_EXECUTABLES)
if(WIN32)
set(PLATFORM_BIN_SUFFIX "win32")
else()
set(PLATFORM_BIN_SUFFIX "unix")
endif()

set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/bin/${PLATFORM_BIN_SUFFIX}/)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_SOURCE_DIR}/bin/${PLATFORM_BIN_SUFFIX}/)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_SOURCE_DIR}/bin/${PLATFORM_BIN_SUFFIX}/)
endif()

add_subdirectory(src)

Binary file modified bin/win32/ballistic.exe
Binary file not shown.
Binary file modified bin/win32/bigballistic.exe
Binary file not shown.
Binary file modified bin/win32/blob.exe
Binary file not shown.
Binary file modified bin/win32/bridge.exe
Binary file not shown.
Binary file added bin/win32/explosion.exe
Binary file not shown.
Binary file modified bin/win32/fireworks.exe
Binary file not shown.
Binary file added bin/win32/flightsim.exe
Binary file not shown.
Binary file modified bin/win32/fracture.exe
Binary file not shown.
Binary file added bin/win32/freeglut.dll
Binary file not shown.
Binary file removed bin/win32/glut.dll
Binary file not shown.
Binary file removed bin/win32/glut32.dll
Binary file not shown.
Binary file modified bin/win32/platform.exe
Binary file not shown.
Binary file modified bin/win32/ragdoll.exe
Binary file not shown.
Binary file modified bin/win32/sailboat.exe
Binary file not shown.
27 changes: 27 additions & 0 deletions contrib/freeglut/Copying.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@

Freeglut Copyright
------------------

Freeglut code without an explicit copyright is covered by the following
copyright:

Copyright (c) 1999-2000 Pawel W. Olszta. All Rights Reserved.
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies or substantial portions of the Software.

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
PAWEL W. OLSZTA BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the name of Pawel W. Olszta shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from Pawel W. Olszta.
106 changes: 106 additions & 0 deletions contrib/freeglut/Readme.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
freeglut 3.0.0-1.mp for MSVC

This package contains freeglut import libraries, headers, and Windows DLLs.
These allow 32 and 64 bit GLUT applications to be compiled on Windows using
Microsoft Visual C++.

For more information on freeglut, visit http://freeglut.sourceforge.net/.


Installation

Create a folder on your PC which is readable by all users, for example
�C:\Program Files\Common Files\MSVC\freeglut\� on a typical Windows system. Copy
the �lib\� and �include\� folders from this zip archive to that location.

The appropriate freeglut DLL can either be placed in the same folder as your
application, or can be installed in a system-wide folder which appears in your
%PATH% environment variable. Be careful not to mix the 32 bit DLL up with the 64
bit DLL, as they are not interchangeable.


Compiling 32 bit Applications

To create a 32 bit freeglut application, create a new Win32 C++ project in MSVC.
From the �Win32 Application Wizard�, choose a �Windows application�, check the
�Empty project� box, and submit.

You�ll now need to configure the compiler and linker settings. Open up the
project properties, and select �All Configurations� (this is necessary to ensure
our changes are applied for both debug and release builds). Open up the
�general� section under �C/C++�, and configure the �include\� folder you created
above as an �Additional Include Directory�. If you have more than one GLUT
package which contains a �glut.h� file, it�s important to ensure that the
freeglut include folder appears above all other GLUT include folders.

Now open up the �general� section under �Linker�, and configure the �lib\�
folder you created above as an �Additional Library Directory�. A freeglut
application depends on the import libraries �freeglut.lib� and �opengl32.lib�,
which can be configured under the �Input� section. However, it shouldn�t be
necessary to explicitly state these dependencies, since the freeglut headers
handle this for you. Now open the �Advanced� section, and enter �mainCRTStartup�
as the �Entry Point� for your application. This is necessary because GLUT
applications use �main� as the application entry point, not �WinMain��without it
you�ll get an undefined reference when you try to link your application.

That�s all of your project properties configured, so you can now add source
files to your project and build the application. If you want your application to
be compatible with GLUT, you should �#include <GL/glut.h>�. If you want to use
freeglut specific extensions, you should �#include <GL/freeglut.h>� instead.

Don�t forget to either include the freeglut DLL when distributing applications,
or provide your users with some method of obtaining it if they don�t already
have it!


Compiling 64 bit Applications

Building 64 bit applications is almost identical to building 32 bit applications.
When you use the configuration manager to add the x64 platform, it�s easiest to
copy the settings from the Win32 platform. If you do so, it�s then only necessary
to change the �Additional Library Directories� configuration so that it
references the directory containing the 64 bit import library rather
than the 32 bit one.


Problems?

If you have problems using this package (compiler / linker errors etc.), please
check that you have followed all of the steps in this readme file correctly.
Almost all of the problems which are reported with these packages are due to
missing a step or not doing it correctly, for example trying to build a 32 bit
app against the 64 bit import library. If you have followed all of the steps
correctly but your application still fails to build, try building a very simple
but functional program (the example at
http://www.transmissionzero.co.uk/computing/using-glut-with-mingw/ works fine
with MSVC). A lot of people try to build very complex applications after
installing these packages, and often the error is with the application code or
other library dependencies rather than freeglut.

If you still can�t get it working after trying to compile a simple application,
then please get in touch via http://www.transmissionzero.co.uk/contact/,
providing as much detail as you can. Please don�t complain to the freeglut guys
unless you�re sure it�s a freeglut bug, and have reproduced the issue after
compiling freeglut from the latest SVN version�if that�s still the case, I�m
sure they would appreciate a bug report or a patch.


Changelog

2015�07�22: Release 3.0.0-2.mp

� Modified the freeglut_std.h file so that it doesn�t try to link against the
freeglutd.lib import library.

2015�03�15: Release 3.0.0-1.mp

� First 3.0.0 MSVC release. I�ve built the package using Visual Studio 2013,
and the only change I�ve made is to the DLL version resource�I�ve changed
the description so that my MinGW and MSVC builds are distinguishable from
each other (and other builds) using Windows Explorer.


Transmission Zero
2015�07�22

http://www.transmissionzero.co.uk/
Binary file added contrib/freeglut/bin/freeglut.dll
Binary file not shown.
Binary file added contrib/freeglut/bin/x64/freeglut.dll
Binary file not shown.
22 changes: 22 additions & 0 deletions contrib/freeglut/include/GL/freeglut.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
#ifndef __FREEGLUT_H__
#define __FREEGLUT_H__

/*
* freeglut.h
*
* The freeglut library include file
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
* PAWEL W. OLSZTA BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
* IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

#include "freeglut_std.h"
#include "freeglut_ext.h"

/*** END OF FILE ***/

#endif /* __FREEGLUT_H__ */
Loading