rays 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. data/ChangeLog +8 -0
  2. data/README +4 -0
  3. data/Rakefile +72 -0
  4. data/VERSION +1 -0
  5. data/ext/rays/bitmap.cpp +322 -0
  6. data/ext/rays/extconf.rb +61 -0
  7. data/ext/rays/font.cpp +125 -0
  8. data/ext/rays/image.cpp +166 -0
  9. data/ext/rays/native.cpp +24 -0
  10. data/ext/rays/painter.cpp +573 -0
  11. data/ext/rays/rays.cpp +61 -0
  12. data/ext/rays/rays.h +39 -0
  13. data/ext/rays/texture.cpp +130 -0
  14. data/include/rays.h +20 -0
  15. data/include/rays/bitmap.h +80 -0
  16. data/include/rays/colorspace.h +101 -0
  17. data/include/rays/defs.h +33 -0
  18. data/include/rays/font.h +49 -0
  19. data/include/rays/helpers.h +37 -0
  20. data/include/rays/image.h +68 -0
  21. data/include/rays/opengl.h +15 -0
  22. data/include/rays/painter.h +179 -0
  23. data/include/rays/rays.h +19 -0
  24. data/include/rays/ruby.h +15 -0
  25. data/include/rays/ruby/bitmap.h +39 -0
  26. data/include/rays/ruby/font.h +39 -0
  27. data/include/rays/ruby/image.h +39 -0
  28. data/include/rays/ruby/painter.h +39 -0
  29. data/include/rays/ruby/rays.h +21 -0
  30. data/include/rays/ruby/texture.h +39 -0
  31. data/include/rays/texture.h +56 -0
  32. data/include/rays/transform.h +35 -0
  33. data/lib/rays.rb +9 -0
  34. data/lib/rays/autoinit.rb +10 -0
  35. data/lib/rays/bitmap.rb +25 -0
  36. data/lib/rays/image.rb +15 -0
  37. data/lib/rays/module.rb +30 -0
  38. data/lib/rays/painter.rb +99 -0
  39. data/lib/rays/texture.rb +15 -0
  40. data/rays.gemspec +54 -0
  41. data/src/cocoa/bitmap.mm +286 -0
  42. data/src/cocoa/font.mm +193 -0
  43. data/src/cocoa/helpers.h +26 -0
  44. data/src/cocoa/helpers.mm +25 -0
  45. data/src/cocoa/rays.mm +40 -0
  46. data/src/colorspace.cpp +183 -0
  47. data/src/helpers.cpp +22 -0
  48. data/src/image.cpp +133 -0
  49. data/src/painter.cpp +769 -0
  50. data/src/texture.cpp +360 -0
  51. data/src/transform.cpp +88 -0
  52. data/src/win32/bitmap.cpp +212 -0
  53. data/src/win32/font.cpp +99 -0
  54. data/src/win32/gdi.cpp +771 -0
  55. data/src/win32/gdi.h +226 -0
  56. data/src/win32/rays.cpp +36 -0
  57. data/support.rb +58 -0
  58. data/task/ext.rake +41 -0
  59. data/task/gem.rake +33 -0
  60. data/task/git.rake +22 -0
  61. data/task/lib.rake +54 -0
  62. data/test/helpers.rb +15 -0
  63. data/test/test_painter.rb +11 -0
  64. data/test/test_rays.rb +19 -0
  65. data/test/test_texture.rb +11 -0
  66. metadata +153 -0
data/test/helpers.rb ADDED
@@ -0,0 +1,15 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+
4
+ %w[ext lib].each do |dir|
5
+ paths = ["..", dir]
6
+ $: << File.expand_path(File.join File.dirname(__FILE__), *paths)
7
+ end
8
+
9
+ require 'test/unit'
10
+ require 'rays'
11
+
12
+
13
+ unless $RAYS_NOAUTOINIT
14
+ def Rays.fin! (); end
15
+ end
@@ -0,0 +1,11 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+
4
+ $: << File.dirname(__FILE__)
5
+
6
+ require 'helpers'
7
+
8
+
9
+ class TestPainter < Test::Unit::TestCase
10
+
11
+ end# TestPainter
data/test/test_rays.rb ADDED
@@ -0,0 +1,19 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+
4
+ $: << File.dirname(__FILE__)
5
+
6
+ $RAYS_NOAUTOINIT = true
7
+ require 'helpers'
8
+
9
+
10
+ class TestRays < Test::Unit::TestCase
11
+
12
+ def test_init! ()
13
+ assert_raise(Rucy::NativeError) {Rays.fin!}
14
+ assert Rays.init!
15
+ assert_raise(Rucy::NativeError) {Rays.init!}
16
+ assert Rays.fin!
17
+ end
18
+
19
+ end# TestRays
@@ -0,0 +1,11 @@
1
+ # -*- coding: utf-8 -*-
2
+
3
+
4
+ $: << File.dirname(__FILE__)
5
+
6
+ require 'helpers'
7
+
8
+
9
+ class TestTexture < Test::Unit::TestCase
10
+
11
+ end# TestTexture
metadata ADDED
@@ -0,0 +1,153 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: rays
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.1.1
6
+ platform: ruby
7
+ authors:
8
+ - snori
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-08-28 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: rucy
17
+ prerelease: false
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ">="
22
+ - !ruby/object:Gem::Version
23
+ version: "0"
24
+ type: :runtime
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: rake
28
+ prerelease: false
29
+ requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ">="
33
+ - !ruby/object:Gem::Version
34
+ version: "0"
35
+ type: :development
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
+ name: gemcutter
39
+ prerelease: false
40
+ requirement: &id003 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ">="
44
+ - !ruby/object:Gem::Version
45
+ version: "0"
46
+ type: :development
47
+ version_requirements: *id003
48
+ description: This library helps you to develop graphics application with OpenGL.
49
+ email: snori@xord.org
50
+ executables: []
51
+
52
+ extensions:
53
+ - Rakefile
54
+ extra_rdoc_files:
55
+ - README
56
+ files:
57
+ - ChangeLog
58
+ - README
59
+ - Rakefile
60
+ - support.rb
61
+ - rays.gemspec
62
+ - VERSION
63
+ - task/ext.rake
64
+ - task/gem.rake
65
+ - task/git.rake
66
+ - task/lib.rake
67
+ - ext/rays/extconf.rb
68
+ - ext/rays/rays.h
69
+ - ext/rays/bitmap.cpp
70
+ - ext/rays/font.cpp
71
+ - ext/rays/image.cpp
72
+ - ext/rays/native.cpp
73
+ - ext/rays/painter.cpp
74
+ - ext/rays/rays.cpp
75
+ - ext/rays/texture.cpp
76
+ - include/rays/bitmap.h
77
+ - include/rays/colorspace.h
78
+ - include/rays/defs.h
79
+ - include/rays/font.h
80
+ - include/rays/helpers.h
81
+ - include/rays/image.h
82
+ - include/rays/opengl.h
83
+ - include/rays/painter.h
84
+ - include/rays/rays.h
85
+ - include/rays/ruby/bitmap.h
86
+ - include/rays/ruby/font.h
87
+ - include/rays/ruby/image.h
88
+ - include/rays/ruby/painter.h
89
+ - include/rays/ruby/rays.h
90
+ - include/rays/ruby/texture.h
91
+ - include/rays/ruby.h
92
+ - include/rays/texture.h
93
+ - include/rays/transform.h
94
+ - include/rays.h
95
+ - lib/rays/autoinit.rb
96
+ - lib/rays/bitmap.rb
97
+ - lib/rays/image.rb
98
+ - lib/rays/module.rb
99
+ - lib/rays/painter.rb
100
+ - lib/rays/texture.rb
101
+ - lib/rays.rb
102
+ - src/cocoa/helpers.h
103
+ - src/win32/gdi.h
104
+ - src/colorspace.cpp
105
+ - src/helpers.cpp
106
+ - src/image.cpp
107
+ - src/painter.cpp
108
+ - src/texture.cpp
109
+ - src/transform.cpp
110
+ - src/win32/bitmap.cpp
111
+ - src/win32/font.cpp
112
+ - src/win32/gdi.cpp
113
+ - src/win32/rays.cpp
114
+ - src/cocoa/bitmap.mm
115
+ - src/cocoa/font.mm
116
+ - src/cocoa/helpers.mm
117
+ - src/cocoa/rays.mm
118
+ - test/helpers.rb
119
+ - test/test_painter.rb
120
+ - test/test_rays.rb
121
+ - test/test_texture.rb
122
+ homepage: http://blog.xord.org/
123
+ licenses: []
124
+
125
+ post_install_message:
126
+ rdoc_options: []
127
+
128
+ require_paths:
129
+ - lib
130
+ - ext
131
+ required_ruby_version: !ruby/object:Gem::Requirement
132
+ none: false
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ version: 1.9.0
137
+ required_rubygems_version: !ruby/object:Gem::Requirement
138
+ none: false
139
+ requirements:
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ version: "0"
143
+ requirements: []
144
+
145
+ rubyforge_project:
146
+ rubygems_version: 1.8.1
147
+ signing_key:
148
+ specification_version: 3
149
+ summary: A Drawing Engine using OpenGL.
150
+ test_files:
151
+ - test/test_painter.rb
152
+ - test/test_rays.rb
153
+ - test/test_texture.rb