Skip to content

Commit 326c753

Browse files
committed
Added CMake build for the networking module, removed CMake build from Examples (switching to manual projects for simplicity's sake), various bugfixes to physics modules, reorganized packing of assets into release directories
1 parent 7f2d13b commit 326c753

324 files changed

Lines changed: 103113 additions & 8173 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Assets/Templates/C++/Xcode/PolycodeTemplate.xcodeproj/project.pbxproj

Lines changed: 371 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<Scheme
3+
version = "1.3">
4+
<BuildAction
5+
parallelizeBuildables = "YES"
6+
buildImplicitDependencies = "YES">
7+
<BuildActionEntries>
8+
<BuildActionEntry
9+
buildForTesting = "YES"
10+
buildForRunning = "YES"
11+
buildForProfiling = "YES"
12+
buildForArchiving = "YES"
13+
buildForAnalyzing = "YES">
14+
<BuildableReference
15+
BuildableIdentifier = "primary"
16+
BlueprintIdentifier = "6D2800B613760D3E00BD8D0D"
17+
BuildableName = "PolycodeTemplate.app"
18+
BlueprintName = "PolycodeTemplate"
19+
ReferencedContainer = "container:PolycodeTemplate.xcodeproj">
20+
</BuildableReference>
21+
</BuildActionEntry>
22+
</BuildActionEntries>
23+
</BuildAction>
24+
<TestAction
25+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
26+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
27+
shouldUseLaunchSchemeArgsEnv = "YES"
28+
buildConfiguration = "Debug">
29+
<Testables>
30+
</Testables>
31+
</TestAction>
32+
<LaunchAction
33+
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.GDB"
34+
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.GDB"
35+
displayScaleIsEnabled = "NO"
36+
displayScale = "1.00"
37+
launchStyle = "0"
38+
useCustomWorkingDirectory = "NO"
39+
buildConfiguration = "Debug">
40+
<BuildableProductRunnable>
41+
<BuildableReference
42+
BuildableIdentifier = "primary"
43+
BlueprintIdentifier = "6D2800B613760D3E00BD8D0D"
44+
BuildableName = "PolycodeTemplate.app"
45+
BlueprintName = "PolycodeTemplate"
46+
ReferencedContainer = "container:PolycodeTemplate.xcodeproj">
47+
</BuildableReference>
48+
</BuildableProductRunnable>
49+
<AdditionalOptions>
50+
</AdditionalOptions>
51+
</LaunchAction>
52+
<ProfileAction
53+
displayScaleIsEnabled = "NO"
54+
displayScale = "1.00"
55+
shouldUseLaunchSchemeArgsEnv = "YES"
56+
savedToolIdentifier = ""
57+
useCustomWorkingDirectory = "NO"
58+
buildConfiguration = "Release">
59+
<BuildableProductRunnable>
60+
<BuildableReference
61+
BuildableIdentifier = "primary"
62+
BlueprintIdentifier = "6D2800B613760D3E00BD8D0D"
63+
BuildableName = "PolycodeTemplate.app"
64+
BlueprintName = "PolycodeTemplate"
65+
ReferencedContainer = "container:PolycodeTemplate.xcodeproj">
66+
</BuildableReference>
67+
</BuildableProductRunnable>
68+
</ProfileAction>
69+
<AnalyzeAction
70+
buildConfiguration = "Debug">
71+
</AnalyzeAction>
72+
<ArchiveAction
73+
buildConfiguration = "Release"
74+
revealArchiveInOrganizer = "YES">
75+
</ArchiveAction>
76+
</Scheme>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>SchemeUserState</key>
6+
<dict>
7+
<key>PolycodeTemplate.xcscheme</key>
8+
<dict>
9+
<key>orderHint</key>
10+
<integer>0</integer>
11+
</dict>
12+
</dict>
13+
<key>SuppressBuildableAutocreation</key>
14+
<dict>
15+
<key>6D2800B613760D3E00BD8D0D</key>
16+
<dict>
17+
<key>primary</key>
18+
<true/>
19+
</dict>
20+
</dict>
21+
</dict>
22+
</plist>
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>CFBundleDevelopmentRegion</key>
6+
<string>en</string>
7+
<key>CFBundleExecutable</key>
8+
<string>${EXECUTABLE_NAME}</string>
9+
<key>CFBundleIconFile</key>
10+
<string></string>
11+
<key>CFBundleIdentifier</key>
12+
<string>org.polycode.${PRODUCT_NAME:rfc1034identifier}</string>
13+
<key>CFBundleInfoDictionaryVersion</key>
14+
<string>6.0</string>
15+
<key>CFBundleName</key>
16+
<string>${PRODUCT_NAME}</string>
17+
<key>CFBundlePackageType</key>
18+
<string>APPL</string>
19+
<key>CFBundleShortVersionString</key>
20+
<string>1.0</string>
21+
<key>CFBundleSignature</key>
22+
<string>????</string>
23+
<key>CFBundleVersion</key>
24+
<string>1</string>
25+
<key>LSMinimumSystemVersion</key>
26+
<string>${MACOSX_DEPLOYMENT_TARGET}</string>
27+
<key>NSMainNibFile</key>
28+
<string>MainMenu</string>
29+
<key>NSPrincipalClass</key>
30+
<string>NSApplication</string>
31+
</dict>
32+
</plist>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
//
2+
// Prefix header for all source files of the 'PolycodeTemplate' target in the 'PolycodeTemplate' project
3+
//
4+
5+
#ifdef __OBJC__
6+
#import <Cocoa/Cocoa.h>
7+
#endif
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
//
2+
// Polycode template. Write your code here.
3+
//
4+
5+
#import "PolycodeView.h"
6+
#include "Polycode.h"
7+
8+
using namespace Polycode;
9+
10+
class PolycodeTemplateApp {
11+
public:
12+
PolycodeTemplateApp(PolycodeView *view);
13+
~PolycodeTemplateApp();
14+
15+
bool Update();
16+
17+
private:
18+
Core *core;
19+
};
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
//
2+
// Polycode template. Write your code here.
3+
//
4+
5+
#include "PolycodeTemplateApp.h"
6+
7+
8+
PolycodeTemplateApp::PolycodeTemplateApp(PolycodeView *view) {
9+
core = new CocoaCore(view, 640,480,false,0,60);
10+
CoreServices::getInstance()->getResourceManager()->addArchive("default.pak");
11+
CoreServices::getInstance()->getResourceManager()->addDirResource("default");
12+
13+
// Write your code here!
14+
}
15+
16+
PolycodeTemplateApp::~PolycodeTemplateApp() {
17+
18+
}
19+
20+
bool PolycodeTemplateApp::Update() {
21+
return core->Update();
22+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
/*
2+
Copyright (C) 2011 by Ivan Safrin
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy
5+
of this software and associated documentation files (the "Software"), to deal
6+
in the Software without restriction, including without limitation the rights
7+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the Software is
9+
furnished to do so, subject to the following conditions:
10+
11+
The above copyright notice and this permission notice shall be included in
12+
all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20+
THE SOFTWARE.
21+
*/
22+
23+
#import <Cocoa/Cocoa.h>
24+
#import "PolycodeView.h"
25+
#include "PolycodeTemplateApp.h"
26+
27+
@interface PolycodeTemplateAppDelegate : NSObject <NSApplicationDelegate> {
28+
@private
29+
NSWindow *window;
30+
PolycodeView *mainView;
31+
PolycodeTemplateApp *app;
32+
NSTimer *timer;
33+
}
34+
35+
@property (assign) IBOutlet NSWindow *window;
36+
@property (assign) IBOutlet PolycodeView *mainView;
37+
38+
@end
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
/*
2+
Copyright (C) 2011 by Ivan Safrin
3+
4+
Permission is hereby granted, free of charge, to any person obtaining a copy
5+
of this software and associated documentation files (the "Software"), to deal
6+
in the Software without restriction, including without limitation the rights
7+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8+
copies of the Software, and to permit persons to whom the Software is
9+
furnished to do so, subject to the following conditions:
10+
11+
The above copyright notice and this permission notice shall be included in
12+
all copies or substantial portions of the Software.
13+
14+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
20+
THE SOFTWARE.
21+
*/
22+
23+
#import "PolycodeTemplateAppDelegate.h"
24+
25+
@implementation PolycodeTemplateAppDelegate
26+
27+
@synthesize window;
28+
@synthesize mainView;
29+
30+
- (void)applicationDidFinishLaunching:(NSNotification *)aNotification
31+
{
32+
app = new PolycodeTemplateApp(mainView);
33+
timer = [NSTimer timerWithTimeInterval:(1.0f/60.0f)
34+
target:self
35+
selector:@selector(animationTimer:)
36+
userInfo:nil
37+
repeats:YES];
38+
[[NSRunLoop currentRunLoop] addTimer:timer forMode:NSDefaultRunLoopMode];
39+
[[NSRunLoop currentRunLoop] addTimer:timer forMode:NSEventTrackingRunLoopMode];
40+
}
41+
42+
- (BOOL)applicationShouldTerminateAfterLastWindowClosed:(NSApplication *)theApplication
43+
{
44+
return YES;
45+
}
46+
47+
- (void)animationTimer:(NSTimer *)timer
48+
{
49+
if(!app->Update()) {
50+
[[NSApplication sharedApplication] stop:self];
51+
}
52+
}
53+
54+
@end
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
{\rtf0\ansi{\fonttbl\f0\fswiss Helvetica;}
2+
{\colortbl;\red255\green255\blue255;}
3+
\paperw9840\paperh8400
4+
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural
5+
6+
\f0\b\fs24 \cf0 Engineering:
7+
\b0 \
8+
Some people\
9+
\
10+
11+
\b Human Interface Design:
12+
\b0 \
13+
Some other people\
14+
\
15+
16+
\b Testing:
17+
\b0 \
18+
Hopefully not nobody\
19+
\
20+
21+
\b Documentation:
22+
\b0 \
23+
Whoever\
24+
\
25+
26+
\b With special thanks to:
27+
\b0 \
28+
Mom\
29+
}

0 commit comments

Comments
 (0)