shattered 0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/bin/console +22 -0
- data/bin/generate +7 -0
- data/bin/runner +9 -0
- data/bin/shatter +29 -0
- data/lib/game_loader.rb +49 -0
- data/lib/rails_generator.rb +43 -0
- data/lib/rails_generator/base.rb +203 -0
- data/lib/rails_generator/commands.rb +445 -0
- data/lib/rails_generator/generators/applications/shattered_app/USAGE +10 -0
- data/lib/rails_generator/generators/applications/shattered_app/shattered_app_generator.rb +104 -0
- data/lib/rails_generator/generators/components/actor/actor_generator.rb +23 -0
- data/lib/rails_generator/generators/components/controller/USAGE +30 -0
- data/lib/rails_generator/generators/components/controller/controller_generator.rb +32 -0
- data/lib/rails_generator/generators/components/controller/templates/controller.rb +5 -0
- data/lib/rails_generator/generators/components/controller/templates/functional_test.rb +18 -0
- data/lib/rails_generator/generators/components/controller/templates/helper.rb +2 -0
- data/lib/rails_generator/generators/components/controller/templates/view.rhtml +2 -0
- data/lib/rails_generator/generators/components/model/USAGE +17 -0
- data/lib/rails_generator/generators/components/model/model_generator.rb +17 -0
- data/lib/rails_generator/generators/components/model/templates/fixtures.yml +5 -0
- data/lib/rails_generator/generators/components/model/templates/model.rb +2 -0
- data/lib/rails_generator/generators/components/model/templates/unit_test.rb +11 -0
- data/lib/rails_generator/generators/components/state/USAGE +30 -0
- data/lib/rails_generator/generators/components/state/state_generator.rb +19 -0
- data/lib/rails_generator/generators/components/state/templates/state.rb +4 -0
- data/lib/rails_generator/generators/components/view/USAGE +30 -0
- data/lib/rails_generator/generators/components/view/templates/material +4 -0
- data/lib/rails_generator/generators/components/view/templates/view.rb +3 -0
- data/lib/rails_generator/generators/components/view/view_generator.rb +18 -0
- data/lib/rails_generator/lookup.rb +206 -0
- data/lib/rails_generator/manifest.rb +53 -0
- data/lib/rails_generator/options.rb +135 -0
- data/lib/rails_generator/scripts.rb +83 -0
- data/lib/rails_generator/scripts/destroy.rb +7 -0
- data/lib/rails_generator/scripts/generate.rb +7 -0
- data/lib/rails_generator/scripts/update.rb +12 -0
- data/lib/rails_generator/simple_logger.rb +46 -0
- data/lib/rails_generator/spec.rb +44 -0
- data/lib/shatter.rb +11 -0
- data/lib/templates/MIT-LICENSE +20 -0
- data/lib/templates/README +35 -0
- data/lib/templates/Rakefile +15 -0
- data/lib/templates/configs/Mac/shattered.app/Contents/Info.plist +22 -0
- data/lib/templates/configs/Mac/shattered.app/Contents/MacOS/shattered_mac +0 -0
- data/lib/templates/configs/Mac/shattered.app/Contents/PkgInfo +1 -0
- data/lib/templates/configs/Mac/shattered.app/Contents/Resources/English.lproj/InfoPlist.strings +0 -0
- data/lib/templates/configs/Mac/shattered.app/Contents/Resources/English.lproj/MainMenu.nib/classes.nib +4 -0
- data/lib/templates/configs/Mac/shattered.app/Contents/Resources/English.lproj/MainMenu.nib/info.nib +20 -0
- data/lib/templates/configs/Mac/shattered.app/Contents/Resources/English.lproj/MainMenu.nib/objects.nib +0 -0
- data/lib/templates/configs/Mac/shattered.app/Contents/Resources/rb_main.rb +3 -0
- data/lib/templates/configs/Mac/shattered.app/Contents/pbdevelopment.plist +8 -0
- data/lib/templates/configs/Mac/shattered.app/OgreLeaks.log +144 -0
- data/lib/templates/configs/Mac/shattered.app/OgreMemory.log +29 -0
- data/lib/templates/configs/Mac/shattered.app/config +1 -0
- data/lib/templates/configs/boot.rb +33 -0
- data/lib/templates/configs/empty.log +0 -0
- data/lib/templates/configs/ogre.cfg +4 -0
- data/lib/templates/configs/plugins.cfg +16 -0
- data/lib/templates/configs/plugins.darwin.cfg +13 -0
- data/lib/templates/configs/plugins.linux.cfg +16 -0
- data/lib/templates/configs/plugins.win32.cfg +9 -0
- data/lib/templates/configs/runner.rb +5 -0
- data/lib/templates/doc/README_FOR_APP +2 -0
- data/lib/templates/environments/environment.rb +7 -0
- data/lib/templates/media/basic.rmaterial +17 -0
- data/lib/templates/media/offset_map.rmaterial +117 -0
- metadata +194 -0
@@ -0,0 +1,15 @@
|
|
1
|
+
# Add your own tasks in files placed in lib/tasks ending in .rake,
|
2
|
+
# for example lib/tasks/switchtower.rake, and they will automatically be available to Rake.
|
3
|
+
|
4
|
+
require(File.join(File.dirname(__FILE__), 'config', 'boot'))
|
5
|
+
|
6
|
+
require 'rake'
|
7
|
+
require 'rake/testtask'
|
8
|
+
require 'rake/rdoctask'
|
9
|
+
|
10
|
+
desc "Run the unit tests in test/unit"
|
11
|
+
Rake::TestTask.new(:test) do |t|
|
12
|
+
t.libs << "test"
|
13
|
+
t.pattern = 'test/unit/**/*_test.rb'
|
14
|
+
t.verbose = true
|
15
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//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>English</string>
|
7
|
+
<key>CFBundleExecutable</key>
|
8
|
+
<string>shattered_mac</string>
|
9
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
10
|
+
<string>6.0</string>
|
11
|
+
<key>CFBundlePackageType</key>
|
12
|
+
<string>APPL</string>
|
13
|
+
<key>CFBundleSignature</key>
|
14
|
+
<string>????</string>
|
15
|
+
<key>CFBundleVersion</key>
|
16
|
+
<string>0.1</string>
|
17
|
+
<key>NSMainNibFile</key>
|
18
|
+
<string>MainMenu</string>
|
19
|
+
<key>NSPrincipalClass</key>
|
20
|
+
<string>NSApplication</string>
|
21
|
+
</dict>
|
22
|
+
</plist>
|
@@ -0,0 +1 @@
|
|
1
|
+
APPL????
|
data/lib/templates/configs/Mac/shattered.app/Contents/Resources/English.lproj/InfoPlist.strings
ADDED
Binary file
|
data/lib/templates/configs/Mac/shattered.app/Contents/Resources/English.lproj/MainMenu.nib/info.nib
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>IBEditorPositions</key>
|
6
|
+
<dict>
|
7
|
+
<key>29</key>
|
8
|
+
<string>69 252 318 44 0 0 1024 746 </string>
|
9
|
+
</dict>
|
10
|
+
<key>IBFramework Version</key>
|
11
|
+
<string>283.0</string>
|
12
|
+
<key>IBOpenObjects</key>
|
13
|
+
<array>
|
14
|
+
<integer>21</integer>
|
15
|
+
<integer>29</integer>
|
16
|
+
</array>
|
17
|
+
<key>IBSystem Version</key>
|
18
|
+
<string>6C115</string>
|
19
|
+
</dict>
|
20
|
+
</plist>
|
Binary file
|
@@ -0,0 +1,8 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>PBXProjectSourcePath</key>
|
6
|
+
<string>/Users/martyn/projects/test_rbcocoa/test_rbcocoa.xcode</string>
|
7
|
+
</dict>
|
8
|
+
</plist>
|
@@ -0,0 +1,144 @@
|
|
1
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
2
|
+
| Memory leak report for: 12/20/2005 22:54:09 |
|
3
|
+
----------------------------------------------------------------------------------------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
134 memory leaks found:
|
7
|
+
|
8
|
+
Alloc. Addr Size Addr Size BreakOn BreakOn
|
9
|
+
Number Reported Reported Actual Actual Unused Method Dealloc Realloc Allocated by
|
10
|
+
------ ---------- ---------- ---------- ---------- ---------- -------- ------- ------- ---------------------------------------------------
|
11
|
+
007539 0x005ABCA0 0x00000010 0x005ABC90 0x00000030 0x00000000 new N N ??(0) ??
|
12
|
+
007897 0x01114210 0x00000010 0x01114200 0x00000030 0x00000000 new N N ??(0) ??
|
13
|
+
000038 0x01170BA0 0x00000010 0x01170B90 0x00000030 0x00000000 new N N ??(0) ??
|
14
|
+
000039 0x01170D20 0x00000089 0x01170D10 0x000000A9 0x00000000 new N N ??(0) ??
|
15
|
+
000041 0x01170F50 0x0000008A 0x01170F40 0x000000AA 0x00000000 new N N ??(0) ??
|
16
|
+
000043 0x01171250 0x0000008C 0x01171240 0x000000AC 0x00000000 new N N ??(0) ??
|
17
|
+
000045 0x01172230 0x0000008F 0x01172220 0x000000AF 0x00000000 new N N ??(0) ??
|
18
|
+
000046 0x011728A0 0x0000008D 0x01172890 0x000000AD 0x00000000 new N N ??(0) ??
|
19
|
+
000048 0x01172BD0 0x0000008F 0x01172BC0 0x000000AF 0x00000000 new N N ??(0) ??
|
20
|
+
000049 0x01172E60 0x0000008E 0x01172E50 0x000000AE 0x00000000 new N N ??(0) ??
|
21
|
+
000050 0x01173110 0x0000008D 0x01173100 0x000000AD 0x00000000 new N N ??(0) ??
|
22
|
+
000051 0x011732D0 0x0000008B 0x011732C0 0x000000AB 0x00000000 new N N ??(0) ??
|
23
|
+
000053 0x01173620 0x00000092 0x01173610 0x000000B2 0x00000000 new N N ??(0) ??
|
24
|
+
000054 0x01173910 0x0000008C 0x01173900 0x000000AC 0x00000000 new N N ??(0) ??
|
25
|
+
000055 0x01173BA0 0x00000093 0x01173B90 0x000000B3 0x00000000 new N N ??(0) ??
|
26
|
+
000056 0x01173E70 0x0000008E 0x01173E60 0x000000AE 0x00000000 new N N ??(0) ??
|
27
|
+
000057 0x01174330 0x00000092 0x01174320 0x000000B2 0x00000000 new N N ??(0) ??
|
28
|
+
000058 0x01174600 0x00000091 0x011745F0 0x000000B1 0x00000000 new N N ??(0) ??
|
29
|
+
000059 0x011748E0 0x0000008C 0x011748D0 0x000000AC 0x00000000 new N N ??(0) ??
|
30
|
+
000060 0x01174DB0 0x00000091 0x01174DA0 0x000000B1 0x00000000 new N N ??(0) ??
|
31
|
+
000061 0x01174E70 0x00000080 0x01174E60 0x000000A0 0x00000000 new N N ??(0) ??
|
32
|
+
004766 0x028E1E10 0x00000200 0x028E1E00 0x00000220 0x00000000 new N N ??(0) ??
|
33
|
+
004770 0x19C11630 0x00000018 0x19C11620 0x00000038 0x00000000 new N N ??(0) ??
|
34
|
+
004771 0x19C11670 0x00000018 0x19C11660 0x00000038 0x00000000 new N N ??(0) ??
|
35
|
+
004772 0x19C16630 0x00000018 0x19C16620 0x00000038 0x00000000 new N N ??(0) ??
|
36
|
+
004773 0x19C16670 0x00000018 0x19C16660 0x00000038 0x00000000 new N N ??(0) ??
|
37
|
+
004760 0x19C16840 0x00000004 0x19C16830 0x00000024 0x00000000 new N N ??(0) ??
|
38
|
+
004783 0x19C16980 0x00000018 0x19C16970 0x00000038 0x00000000 new N N ??(0) ??
|
39
|
+
004784 0x19C169C0 0x00000018 0x19C169B0 0x00000038 0x00000000 new N N ??(0) ??
|
40
|
+
004785 0x19C16A00 0x00000018 0x19C169F0 0x00000038 0x00000000 new N N ??(0) ??
|
41
|
+
004786 0x19C16A40 0x00000018 0x19C16A30 0x00000038 0x00000000 new N N ??(0) ??
|
42
|
+
004787 0x19C16A80 0x00000018 0x19C16A70 0x00000038 0x00000000 new N N ??(0) ??
|
43
|
+
004788 0x19C16AC0 0x00000018 0x19C16AB0 0x00000038 0x00000000 new N N ??(0) ??
|
44
|
+
004789 0x19C16B00 0x00000018 0x19C16AF0 0x00000038 0x00000000 new N N ??(0) ??
|
45
|
+
004872 0x19C16B40 0x0000000C 0x19C16B30 0x0000002C 0x00000000 new N N ??(0) ??
|
46
|
+
004767 0x19C16BB0 0x000000A4 0x19C16BA0 0x000000C4 0x00000000 new N N OgreSDLPlatform.cpp(46) ???
|
47
|
+
004769 0x19C16C80 0x00000018 0x19C16C70 0x00000038 0x00000000 new N N ??(0) ??
|
48
|
+
004901 0x19C16F80 0x00000014 0x19C16F70 0x00000034 0x00000000 new N N ??(0) ??
|
49
|
+
004774 0x19C17030 0x00000018 0x19C17020 0x00000038 0x00000000 new N N ??(0) ??
|
50
|
+
004775 0x19C17070 0x00000018 0x19C17060 0x00000038 0x00000000 new N N ??(0) ??
|
51
|
+
004776 0x19C170B0 0x00000018 0x19C170A0 0x00000038 0x00000000 new N N ??(0) ??
|
52
|
+
004777 0x19C170F0 0x00000018 0x19C170E0 0x00000038 0x00000000 new N N ??(0) ??
|
53
|
+
004861 0x19C17260 0x00000018 0x19C17250 0x00000038 0x00000000 new N N ??(0) ??
|
54
|
+
004862 0x19C172A0 0x00000018 0x19C17290 0x00000038 0x00000000 new N N ??(0) ??
|
55
|
+
004863 0x19C172E0 0x00000018 0x19C172D0 0x00000038 0x00000000 new N N ??(0) ??
|
56
|
+
004864 0x19C17320 0x00000018 0x19C17310 0x00000038 0x00000000 new N N ??(0) ??
|
57
|
+
004865 0x19C17360 0x00000018 0x19C17350 0x00000038 0x00000000 new N N ??(0) ??
|
58
|
+
004866 0x19C173A0 0x00000018 0x19C17390 0x00000038 0x00000000 new N N ??(0) ??
|
59
|
+
004867 0x19C173E0 0x00000018 0x19C173D0 0x00000038 0x00000000 new N N ??(0) ??
|
60
|
+
004868 0x19C17420 0x00000018 0x19C17410 0x00000038 0x00000000 new N N ??(0) ??
|
61
|
+
004869 0x19C17460 0x00000018 0x19C17450 0x00000038 0x00000000 new N N ??(0) ??
|
62
|
+
004870 0x19C174A0 0x000000A0 0x19C17490 0x000000C0 0x00000000 new N N OgreInput.cpp(54) ???
|
63
|
+
004873 0x19C175A0 0x00000014 0x19C17590 0x00000034 0x00000000 new N N ??(0) ??
|
64
|
+
004851 0x19C177B0 0x00000018 0x19C177A0 0x00000038 0x00000000 new N N ??(0) ??
|
65
|
+
004852 0x19C177F0 0x00000018 0x19C177E0 0x00000038 0x00000000 new N N ??(0) ??
|
66
|
+
004853 0x19C17830 0x00000018 0x19C17820 0x00000038 0x00000000 new N N ??(0) ??
|
67
|
+
004854 0x19C17870 0x00000018 0x19C17860 0x00000038 0x00000000 new N N ??(0) ??
|
68
|
+
004855 0x19C178B0 0x00000018 0x19C178A0 0x00000038 0x00000000 new N N ??(0) ??
|
69
|
+
004856 0x19C178F0 0x00000018 0x19C178E0 0x00000038 0x00000000 new N N ??(0) ??
|
70
|
+
004857 0x19C17930 0x00000018 0x19C17920 0x00000038 0x00000000 new N N ??(0) ??
|
71
|
+
004858 0x19C17970 0x00000018 0x19C17960 0x00000038 0x00000000 new N N ??(0) ??
|
72
|
+
004859 0x19C179B0 0x00000018 0x19C179A0 0x00000038 0x00000000 new N N ??(0) ??
|
73
|
+
004860 0x19C179F0 0x00000018 0x19C179E0 0x00000038 0x00000000 new N N ??(0) ??
|
74
|
+
004841 0x19C17AC0 0x00000018 0x19C17AB0 0x00000038 0x00000000 new N N ??(0) ??
|
75
|
+
004842 0x19C17B00 0x00000018 0x19C17AF0 0x00000038 0x00000000 new N N ??(0) ??
|
76
|
+
004843 0x19C17B40 0x00000018 0x19C17B30 0x00000038 0x00000000 new N N ??(0) ??
|
77
|
+
004844 0x19C17B80 0x00000018 0x19C17B70 0x00000038 0x00000000 new N N ??(0) ??
|
78
|
+
004845 0x19C17BC0 0x00000018 0x19C17BB0 0x00000038 0x00000000 new N N ??(0) ??
|
79
|
+
004846 0x19C17C00 0x00000018 0x19C17BF0 0x00000038 0x00000000 new N N ??(0) ??
|
80
|
+
004847 0x19C17C40 0x00000018 0x19C17C30 0x00000038 0x00000000 new N N ??(0) ??
|
81
|
+
004848 0x19C17C80 0x00000018 0x19C17C70 0x00000038 0x00000000 new N N ??(0) ??
|
82
|
+
004849 0x19C17CC0 0x00000018 0x19C17CB0 0x00000038 0x00000000 new N N ??(0) ??
|
83
|
+
004850 0x19C17D00 0x00000018 0x19C17CF0 0x00000038 0x00000000 new N N ??(0) ??
|
84
|
+
004778 0x19C17D80 0x00000018 0x19C17D70 0x00000038 0x00000000 new N N ??(0) ??
|
85
|
+
004779 0x19C17DC0 0x00000018 0x19C17DB0 0x00000038 0x00000000 new N N ??(0) ??
|
86
|
+
004780 0x19C17E00 0x00000018 0x19C17DF0 0x00000038 0x00000000 new N N ??(0) ??
|
87
|
+
004781 0x19C17E40 0x00000018 0x19C17E30 0x00000038 0x00000000 new N N ??(0) ??
|
88
|
+
004782 0x19C17E80 0x00000018 0x19C17E70 0x00000038 0x00000000 new N N ??(0) ??
|
89
|
+
004831 0x19C17F30 0x00000018 0x19C17F20 0x00000038 0x00000000 new N N ??(0) ??
|
90
|
+
004832 0x19C17F70 0x00000018 0x19C17F60 0x00000038 0x00000000 new N N ??(0) ??
|
91
|
+
004833 0x19C17FB0 0x00000018 0x19C17FA0 0x00000038 0x00000000 new N N ??(0) ??
|
92
|
+
004834 0x19C17FF0 0x00000018 0x19C17FE0 0x00000038 0x00000000 new N N ??(0) ??
|
93
|
+
004835 0x19C18030 0x00000018 0x19C18020 0x00000038 0x00000000 new N N ??(0) ??
|
94
|
+
004836 0x19C18070 0x00000018 0x19C18060 0x00000038 0x00000000 new N N ??(0) ??
|
95
|
+
004837 0x19C180B0 0x00000018 0x19C180A0 0x00000038 0x00000000 new N N ??(0) ??
|
96
|
+
004838 0x19C180F0 0x00000018 0x19C180E0 0x00000038 0x00000000 new N N ??(0) ??
|
97
|
+
004839 0x19C18130 0x00000018 0x19C18120 0x00000038 0x00000000 new N N ??(0) ??
|
98
|
+
004840 0x19C18170 0x00000018 0x19C18160 0x00000038 0x00000000 new N N ??(0) ??
|
99
|
+
004811 0x19C182A0 0x00000018 0x19C18290 0x00000038 0x00000000 new N N ??(0) ??
|
100
|
+
004812 0x19C182E0 0x00000018 0x19C182D0 0x00000038 0x00000000 new N N ??(0) ??
|
101
|
+
004813 0x19C18320 0x00000018 0x19C18310 0x00000038 0x00000000 new N N ??(0) ??
|
102
|
+
004814 0x19C18360 0x00000018 0x19C18350 0x00000038 0x00000000 new N N ??(0) ??
|
103
|
+
004815 0x19C183A0 0x00000018 0x19C18390 0x00000038 0x00000000 new N N ??(0) ??
|
104
|
+
004816 0x19C183E0 0x00000018 0x19C183D0 0x00000038 0x00000000 new N N ??(0) ??
|
105
|
+
004817 0x19C18420 0x00000018 0x19C18410 0x00000038 0x00000000 new N N ??(0) ??
|
106
|
+
004818 0x19C18460 0x00000018 0x19C18450 0x00000038 0x00000000 new N N ??(0) ??
|
107
|
+
004819 0x19C184A0 0x00000018 0x19C18490 0x00000038 0x00000000 new N N ??(0) ??
|
108
|
+
004820 0x19C184E0 0x00000018 0x19C184D0 0x00000038 0x00000000 new N N ??(0) ??
|
109
|
+
004821 0x19C18520 0x00000018 0x19C18510 0x00000038 0x00000000 new N N ??(0) ??
|
110
|
+
004822 0x19C18560 0x00000018 0x19C18550 0x00000038 0x00000000 new N N ??(0) ??
|
111
|
+
004823 0x19C185A0 0x00000018 0x19C18590 0x00000038 0x00000000 new N N ??(0) ??
|
112
|
+
004824 0x19C185E0 0x00000018 0x19C185D0 0x00000038 0x00000000 new N N ??(0) ??
|
113
|
+
004825 0x19C18620 0x00000018 0x19C18610 0x00000038 0x00000000 new N N ??(0) ??
|
114
|
+
004826 0x19C18660 0x00000018 0x19C18650 0x00000038 0x00000000 new N N ??(0) ??
|
115
|
+
004827 0x19C186A0 0x00000018 0x19C18690 0x00000038 0x00000000 new N N ??(0) ??
|
116
|
+
004828 0x19C186E0 0x00000018 0x19C186D0 0x00000038 0x00000000 new N N ??(0) ??
|
117
|
+
004829 0x19C18720 0x00000018 0x19C18710 0x00000038 0x00000000 new N N ??(0) ??
|
118
|
+
004830 0x19C18760 0x00000018 0x19C18750 0x00000038 0x00000000 new N N ??(0) ??
|
119
|
+
004790 0x19C187F0 0x00000018 0x19C187E0 0x00000038 0x00000000 new N N ??(0) ??
|
120
|
+
004791 0x19C18830 0x00000018 0x19C18820 0x00000038 0x00000000 new N N ??(0) ??
|
121
|
+
004792 0x19C18870 0x00000018 0x19C18860 0x00000038 0x00000000 new N N ??(0) ??
|
122
|
+
004793 0x19C188B0 0x00000018 0x19C188A0 0x00000038 0x00000000 new N N ??(0) ??
|
123
|
+
004794 0x19C188F0 0x00000018 0x19C188E0 0x00000038 0x00000000 new N N ??(0) ??
|
124
|
+
004795 0x19C18930 0x00000018 0x19C18920 0x00000038 0x00000000 new N N ??(0) ??
|
125
|
+
004796 0x19C18970 0x00000018 0x19C18960 0x00000038 0x00000000 new N N ??(0) ??
|
126
|
+
004797 0x19C189B0 0x00000018 0x19C189A0 0x00000038 0x00000000 new N N ??(0) ??
|
127
|
+
004798 0x19C189F0 0x00000018 0x19C189E0 0x00000038 0x00000000 new N N ??(0) ??
|
128
|
+
004799 0x19C18A30 0x00000018 0x19C18A20 0x00000038 0x00000000 new N N ??(0) ??
|
129
|
+
004800 0x19C18AD0 0x00000018 0x19C18AC0 0x00000038 0x00000000 new N N ??(0) ??
|
130
|
+
004801 0x19C18B10 0x00000018 0x19C18B00 0x00000038 0x00000000 new N N ??(0) ??
|
131
|
+
004802 0x19C18B50 0x00000018 0x19C18B40 0x00000038 0x00000000 new N N ??(0) ??
|
132
|
+
004803 0x19C18B90 0x00000018 0x19C18B80 0x00000038 0x00000000 new N N ??(0) ??
|
133
|
+
004804 0x19C18BD0 0x00000018 0x19C18BC0 0x00000038 0x00000000 new N N ??(0) ??
|
134
|
+
004805 0x19C18C10 0x00000018 0x19C18C00 0x00000038 0x00000000 new N N ??(0) ??
|
135
|
+
004806 0x19C18C50 0x00000018 0x19C18C40 0x00000038 0x00000000 new N N ??(0) ??
|
136
|
+
004807 0x19C18C90 0x00000018 0x19C18C80 0x00000038 0x00000000 new N N ??(0) ??
|
137
|
+
004808 0x19C18CD0 0x00000018 0x19C18CC0 0x00000038 0x00000000 new N N ??(0) ??
|
138
|
+
004809 0x19C18D10 0x00000018 0x19C18D00 0x00000038 0x00000000 new N N ??(0) ??
|
139
|
+
004810 0x19C18D50 0x00000018 0x19C18D40 0x00000038 0x00000000 new N N ??(0) ??
|
140
|
+
004761 0x19C18DE0 0x000000C0 0x19C18DD0 0x000000E0 0x00000000 new N N ??(0) ??
|
141
|
+
004768 0x19C18F40 0x00000018 0x19C18F30 0x00000038 0x00000000 new N N ??(0) ??
|
142
|
+
004762 0x19C18F80 0x00000030 0x19C18F70 0x00000050 0x00000000 new N N OgreEventProcessor.cpp(105) ???
|
143
|
+
004765 0x19C21B90 0x00000020 0x19C21B80 0x00000040 0x00000000 new N N ??(0) ??
|
144
|
+
004905 0x19C5CB40 0x00000010 0x19C5CB30 0x00000030 0x00000000 new N N ??(0) ??
|
@@ -0,0 +1,29 @@
|
|
1
|
+
--------------------------------------------------------------------------------
|
2
|
+
|
3
|
+
OgreMemory.log - Memory logging file created on Tue Dec 20 22:53:47 2005
|
4
|
+
|
5
|
+
--------------------------------------------------------------------------------
|
6
|
+
|
7
|
+
This file contains a log of all memory operations performed during the last run.
|
8
|
+
|
9
|
+
Interrogate this file to track errors or to help track down memory-related
|
10
|
+
issues. You can do this by tracing the allocations performed by a specific owner
|
11
|
+
or by tracking a specific address through a series of allocations and
|
12
|
+
reallocations.
|
13
|
+
|
14
|
+
There is a lot of useful information here which, when used creatively, can be
|
15
|
+
extremely helpful.
|
16
|
+
|
17
|
+
Note that the following guides are used throughout this file:
|
18
|
+
|
19
|
+
[!] - Error
|
20
|
+
[+] - Allocation
|
21
|
+
[~] - Reallocation
|
22
|
+
[-] - Deallocation
|
23
|
+
[I] - Generic information
|
24
|
+
[F] - Failure induced for the purpose of stress-testing your application
|
25
|
+
[D] - Information used for debugging this memory manager
|
26
|
+
|
27
|
+
...so, to find all errors in the file, search for "[!]"
|
28
|
+
|
29
|
+
--------------------------------------------------------------------------------
|
@@ -0,0 +1 @@
|
|
1
|
+
link ../../
|
@@ -0,0 +1,33 @@
|
|
1
|
+
|
2
|
+
SHATTERED_ROOT = File.join(File.dirname(__FILE__), '..')
|
3
|
+
|
4
|
+
def load_shattered_edge(path)
|
5
|
+
["shattered_ogre", "shattered_model", "shattered_view",
|
6
|
+
"shatter", "shattered_controller", "shattered_support"].each do |edge|
|
7
|
+
lib_path = "#{path}/#{edge}/lib"
|
8
|
+
next if not File.directory? lib_path
|
9
|
+
$: << lib_path
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
def load_plugins(path)
|
14
|
+
Dir.foreach(path) do |plugin|
|
15
|
+
next if plugin == ".." || plugin == "."
|
16
|
+
|
17
|
+
plugin_file = "#{path}/#{plugin}/init"
|
18
|
+
require plugin_file if File.exists? "#{plugin_file}.rb"
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
22
|
+
# Load the plugins, and Shattered Edge, if present
|
23
|
+
load_shattered_edge("#{SHATTERED_ROOT}/vendor/shattered")
|
24
|
+
|
25
|
+
begin
|
26
|
+
require 'shatter'
|
27
|
+
rescue LoadError
|
28
|
+
require 'rubygems'
|
29
|
+
require 'shatter'
|
30
|
+
end
|
31
|
+
|
32
|
+
load_plugins("#{SHATTERED_ROOT}/vendor/plugins")
|
33
|
+
|
File without changes
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Defines plugins to load
|
2
|
+
|
3
|
+
# Define plugin folder
|
4
|
+
# TODO: Define cross platform way of doing this
|
5
|
+
PluginFolder=/usr/local/lib/OGRE
|
6
|
+
#PluginFolder=view
|
7
|
+
|
8
|
+
# Define D3D rendering implementation plugin
|
9
|
+
Plugin=RenderSystem_GL
|
10
|
+
#Plugin=RenderSystem_Direct3D7
|
11
|
+
#Plugin=RenderSystem_Direct3D9
|
12
|
+
Plugin=Plugin_ParticleFX
|
13
|
+
Plugin=Plugin_BSPSceneManager
|
14
|
+
Plugin=Plugin_OctreeSceneManager
|
15
|
+
#Plugin=Plugin_CgProgramManager
|
16
|
+
|
@@ -0,0 +1,13 @@
|
|
1
|
+
# Defines plugins to load
|
2
|
+
|
3
|
+
# Define plugin folder -- Plugin folder is ignored
|
4
|
+
# in Project Builder build -- plugins are found in Resources/
|
5
|
+
# in the Main (Application) bundle, then in the Framework bundle
|
6
|
+
# PluginFolder=/usr/local/lib/OGRE
|
7
|
+
|
8
|
+
# Define D3D rendering implementation plugin
|
9
|
+
Plugin=RenderSystem_GL
|
10
|
+
Plugin=Plugin_ParticleFX
|
11
|
+
Plugin=Plugin_BSPSceneManager
|
12
|
+
Plugin=Plugin_OctreeSceneManager
|
13
|
+
Plugin=Plugin_CgProgramManager
|
@@ -0,0 +1,16 @@
|
|
1
|
+
# Defines plugins to load
|
2
|
+
|
3
|
+
# Define plugin folder
|
4
|
+
# TODO: Define cross platform way of doing this
|
5
|
+
PluginFolder=/usr/local/lib/OGRE
|
6
|
+
#PluginFolder=view
|
7
|
+
|
8
|
+
# Define D3D rendering implementation plugin
|
9
|
+
Plugin=RenderSystem_GL
|
10
|
+
#Plugin=RenderSystem_Direct3D7
|
11
|
+
#Plugin=RenderSystem_Direct3D9
|
12
|
+
Plugin=Plugin_ParticleFX
|
13
|
+
Plugin=Plugin_BSPSceneManager
|
14
|
+
Plugin=Plugin_OctreeSceneManager
|
15
|
+
#Plugin=Plugin_CgProgramManager
|
16
|
+
|
@@ -0,0 +1,9 @@
|
|
1
|
+
|
2
|
+
PluginFolder=C:\ruby\lib\ruby\gems\1.8\gems\shattered_ogre-0.3-i386-mswin32\lib\i386-mswin32
|
3
|
+
|
4
|
+
Plugin=RenderSystem_GL
|
5
|
+
Plugin=RenderSystem_Direct3D9
|
6
|
+
Plugin=Plugin_ParticleFX
|
7
|
+
Plugin=Plugin_BSPSceneManager
|
8
|
+
Plugin=Plugin_OctreeSceneManager
|
9
|
+
Plugin=Plugin_CgProgramManager
|
@@ -0,0 +1,17 @@
|
|
1
|
+
// This is an example rmaterial, a basic single textured, uniformly lit mesh.
|
2
|
+
// The only argument is texture, which defaults to <material_name>.png
|
3
|
+
|
4
|
+
<% @texture ||= "#{name}.png" %>
|
5
|
+
material <%= name %>
|
6
|
+
{
|
7
|
+
technique
|
8
|
+
{
|
9
|
+
pass
|
10
|
+
{
|
11
|
+
texture_unit
|
12
|
+
{
|
13
|
+
texture <%= texture %>
|
14
|
+
}
|
15
|
+
}
|
16
|
+
}
|
17
|
+
}
|
@@ -0,0 +1,117 @@
|
|
1
|
+
// Offset mapping options:
|
2
|
+
// texture: defaults to material_name.png.
|
3
|
+
// This specifies which texture (in the form of a file such as wall.png) will be
|
4
|
+
// applied to the material.
|
5
|
+
//
|
6
|
+
// offset_map: defaults to texture_filename_normals.texture_extension
|
7
|
+
// (example :texture => "wall.png" offset_map will be "wall_normals.png")
|
8
|
+
// The normal map (defined in tangent space) for the object( to simulate detail ).
|
9
|
+
//
|
10
|
+
// generate_tangents: defaults to true.
|
11
|
+
// This will generate the tangents for the loaded mesh, but if you do not move the
|
12
|
+
// mesh throughout the scene, there is no need.
|
13
|
+
//
|
14
|
+
|
15
|
+
<% @texture ||= "#{name}.png" %>
|
16
|
+
<% tangent_space = @generate_tangents %>
|
17
|
+
<% tangent_space = true if @generate_tangents.nil? %>
|
18
|
+
<% @offset_map ||= "#{texture.split('.')[0]}_normals.#{texture.split('.')[1]}"%>
|
19
|
+
|
20
|
+
material <%= name %>
|
21
|
+
{
|
22
|
+
|
23
|
+
// This is the preferred technique which uses both vertex and
|
24
|
+
// fragment programs, supports coloured lights
|
25
|
+
technique
|
26
|
+
{
|
27
|
+
// do the lighting and bump mapping with parallax pass
|
28
|
+
// NB we don't do decal texture here because this is repeated per light
|
29
|
+
pass
|
30
|
+
{
|
31
|
+
// Vertex program reference
|
32
|
+
vertex_program_ref OffsetMappingVP
|
33
|
+
{
|
34
|
+
param_named_auto lightPosition light_position_object_space 0
|
35
|
+
param_named_auto eyePosition camera_position_object_space
|
36
|
+
param_named_auto worldViewProj worldviewproj_matrix
|
37
|
+
}
|
38
|
+
|
39
|
+
// Fragment program
|
40
|
+
fragment_program_ref OffsetMappingFP
|
41
|
+
{
|
42
|
+
param_named_auto lightDiffuse light_diffuse_colour 0
|
43
|
+
param_named_auto lightSpecular light_specular_colour 0
|
44
|
+
// Parallax Height scale and bias
|
45
|
+
param_named scaleBias float4 0.04 -0.02 1 0
|
46
|
+
}
|
47
|
+
|
48
|
+
// Normal + height(alpha) map
|
49
|
+
texture_unit
|
50
|
+
{
|
51
|
+
texture <%= offset_map %>
|
52
|
+
}
|
53
|
+
|
54
|
+
// Base diffuse texture map
|
55
|
+
texture_unit
|
56
|
+
{
|
57
|
+
texture <%= texture %>
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
|
63
|
+
// This is the preferred technique which uses both vertex and
|
64
|
+
// fragment programs, supports coloured lights
|
65
|
+
technique
|
66
|
+
{
|
67
|
+
// do the lighting and bump mapping with parallax pass
|
68
|
+
// NB we don't do decal texture here because this is repeated per light
|
69
|
+
pass
|
70
|
+
{
|
71
|
+
|
72
|
+
// Vertex program reference
|
73
|
+
vertex_program_ref OffsetMappingVP
|
74
|
+
{
|
75
|
+
param_named_auto lightPosition light_position_object_space 0
|
76
|
+
param_named_auto eyePosition camera_position_object_space
|
77
|
+
param_named_auto worldViewProj worldviewproj_matrix
|
78
|
+
}
|
79
|
+
|
80
|
+
// Fragment program
|
81
|
+
fragment_program_ref OffsetMappingPS
|
82
|
+
{
|
83
|
+
param_indexed_auto 0 light_diffuse_colour 0
|
84
|
+
param_indexed_auto 1 light_specular_colour 0
|
85
|
+
// Parallax Height scale and bias
|
86
|
+
param_indexed 2 float4 0.04 -0.02 1 0
|
87
|
+
}
|
88
|
+
|
89
|
+
// Normal + height(alpha) map
|
90
|
+
texture_unit
|
91
|
+
{
|
92
|
+
texture <%= offset_map %>
|
93
|
+
}
|
94
|
+
|
95
|
+
// Base diffuse texture map
|
96
|
+
texture_unit
|
97
|
+
{
|
98
|
+
texture <%= texture %>
|
99
|
+
}
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
// Simple no-shader fallback
|
104
|
+
technique
|
105
|
+
{
|
106
|
+
pass
|
107
|
+
{
|
108
|
+
// Base diffuse texture map
|
109
|
+
texture_unit
|
110
|
+
{
|
111
|
+
texture <%= texture %>
|
112
|
+
}
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
}
|
117
|
+
|