shattered_ogre 0.3.3-windows

Sign up to get free protection for your applications and to get access to all the features.
data/lib/platform.rb ADDED
@@ -0,0 +1,34 @@
1
+ # Used to create common directories for differing OS versions. (darwin8.1 vs darwin8.0.2, etc)
2
+
3
+ def simplified_platform
4
+ # intel mac
5
+ return "universal-darwin" if PLATFORM =~ /i686-darwin/ || PLATFORM == "universal-darwin8.0"
6
+ # powerpc mac
7
+ return `ruby -e "puts PLATFORM"`.chomp if mac?
8
+ # Linux distrobutions can be i386 - i686, so just treat it as linux
9
+ # TODO 64 bit support?
10
+ return 'linux' if linux?
11
+ # windows
12
+ return 'windows' if windows?
13
+ raise StandardError, "Could not determine platform #{PLATFORM.inspect}, please report this at http://forum.shatteredruby.com."
14
+ end
15
+
16
+ def mac?
17
+ return PLATFORM =~ /darwin/
18
+ end
19
+
20
+ def windows?
21
+ return PLATFORM =~ /mswin/
22
+ end
23
+
24
+ def linux?
25
+ PLATFORM =~ /linux/
26
+ end
27
+
28
+ # Determines which build file to load
29
+ def short_platform
30
+ return "osx" if mac?
31
+ return "windows" if windows?
32
+ return "linux" if linux?
33
+ raise StandardError, "Could not determine platform #{PLATFORM.inspect}, please report this at http://forum.shatteredruby.com ."
34
+ end
@@ -0,0 +1,24 @@
1
+ require 'platform'
2
+
3
+ SHATTERED_OGRE_DLLS = File.expand_path(File.dirname(__FILE__)+"/"+simplified_platform)
4
+
5
+ $: << SHATTERED_OGRE_DLLS + "/"
6
+
7
+ if windows?
8
+ # ShatteredOgre.dll will search all ENV["PATH"]s for OgreMain.dll.
9
+ ENV["PATH"] += ";" + SHATTERED_OGRE_DLLS
10
+ elsif linux? and ENV["LD_PATH_SET"] != "true"
11
+ # Linux likes the LD_LIBRARY_PATH variable when looking for libraries.
12
+ # However, the path needs to be set, and then the app restarted for this
13
+ # to take effect. Without this, ShatteredOgre won't load, and the app
14
+ # would crash with a 'missing constant ResourceLoader'
15
+ ENV["LD_LIBRARY_PATH"] ||= ""
16
+ ENV["LD_LIBRARY_PATH"] = SHATTERED_OGRE_DLLS + ":" + ENV["LD_LIBRARY_PATH"]
17
+ ENV["LD_PATH_SET"] = "true"
18
+
19
+ # And please don't chomp ARGV
20
+ exec "ruby #{$0} #{ARGV.join(' ')}"
21
+ end
22
+
23
+ require "ShatteredOgre"
24
+
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,8 @@
1
+ <?xml version='1.0' encoding='UTF-8' standalone='yes'?>
2
+ <assembly xmlns='urn:schemas-microsoft-com:asm.v1' manifestVersion='1.0'>
3
+ <dependency>
4
+ <dependentAssembly>
5
+ <assemblyIdentity type='win32' name='Microsoft.VC80.CRT' version='8.0.50608.0' processorArchitecture='x86' publicKeyToken='1fc8b3b9a1e18e3b' />
6
+ </dependentAssembly>
7
+ </dependency>
8
+ </assembly>
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
metadata ADDED
@@ -0,0 +1,68 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.8.11
3
+ specification_version: 1
4
+ name: shattered_ogre
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.3.3
7
+ date: 2006-07-18 00:00:00 -05:00
8
+ summary: "Shattered Ogre: Ogre/Swig bindings for any language."
9
+ require_paths:
10
+ - lib
11
+ - lib/windows
12
+ email:
13
+ homepage: http://www.hastilymade.com
14
+ rubyforge_project:
15
+ description: Shattered Ogre is not specific to any language, and is a set of C++ facades around Ogre3d's core. It is an integral part of Shattered View.
16
+ autorequire: shattered_ogre
17
+ default_executable:
18
+ bindir: bin
19
+ has_rdoc: true
20
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
21
+ requirements:
22
+ - - ">"
23
+ - !ruby/object:Gem::Version
24
+ version: 0.0.0
25
+ version:
26
+ platform: windows
27
+ signing_key:
28
+ cert_chain:
29
+ authors: []
30
+
31
+ files:
32
+ - lib/windows/cg.dll
33
+ - lib/windows/devil.dll
34
+ - lib/windows/ilu.dll
35
+ - lib/windows/ILUT.dll
36
+ - lib/windows/msvcm80.dll
37
+ - lib/windows/msvcp80.dll
38
+ - lib/windows/msvcr80.dll
39
+ - lib/windows/OgreGUIRenderer.dll
40
+ - lib/windows/OgreMain.dll
41
+ - lib/windows/OgrePlatform.dll
42
+ - lib/windows/Plugin_BSPSceneManager.dll
43
+ - lib/windows/Plugin_CgProgramManager.dll
44
+ - lib/windows/Plugin_OctreeSceneManager.dll
45
+ - lib/windows/Plugin_ParticleFX.dll
46
+ - lib/windows/RenderSystem_Direct3D7.dll
47
+ - lib/windows/RenderSystem_Direct3D9.dll
48
+ - lib/windows/RenderSystem_GL.dll
49
+ - lib/windows/ShatteredOgre.dll
50
+ - lib/windows/ShatteredOgre.dll.manifest
51
+ - lib/windows/xerces-c_2_5_0.dll
52
+ - lib/windows/zlib1.dll
53
+ - lib/platform.rb
54
+ - lib/shattered_ogre.rb
55
+ test_files: []
56
+
57
+ rdoc_options: []
58
+
59
+ extra_rdoc_files: []
60
+
61
+ executables: []
62
+
63
+ extensions: []
64
+
65
+ requirements:
66
+ - Ogre3d should be installed on the development system(except windows)
67
+ dependencies: []
68
+