hornetseye-xorg 0.5.2 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +49 -1
- data/Rakefile +6 -7
- metadata +23 -23
data/README.md
CHANGED
@@ -1,4 +1,52 @@
|
|
1
1
|
hornetseye-xorg
|
2
|
-
|
2
|
+
===============
|
3
|
+
|
4
|
+
**Author**: Jan Wedekind
|
5
|
+
**Copyright**: 2010
|
6
|
+
**License**: GPL
|
7
|
+
|
8
|
+
Synopsis
|
9
|
+
--------
|
10
|
+
|
3
11
|
This Ruby extension provides graphical output under X.Org.
|
4
12
|
|
13
|
+
Installation
|
14
|
+
------------
|
15
|
+
|
16
|
+
*hornetseye-xorg* requires the X.Org and Mesa development headers. If you are running Debian or (K)ubuntu, you can install them like this:
|
17
|
+
|
18
|
+
$ sudo aptitude install xserver-xorg-dev libgl1-mesa-dev libglu1-mesa-dev
|
19
|
+
|
20
|
+
To install this Ruby extension, use the following command:
|
21
|
+
|
22
|
+
$ sudo gem install hornetseye-xorg
|
23
|
+
|
24
|
+
Alternatively you can build and install the Ruby extension from source as follows:
|
25
|
+
|
26
|
+
$ rake
|
27
|
+
$ sudo rake install
|
28
|
+
|
29
|
+
Usage
|
30
|
+
-----
|
31
|
+
|
32
|
+
Simply run Interactive Ruby:
|
33
|
+
|
34
|
+
$ irb
|
35
|
+
|
36
|
+
You can load and use the X.Org wrappers as shown below. This example shows how to display an image:
|
37
|
+
|
38
|
+
require 'rubygems'
|
39
|
+
require 'hornetseye_xorg'
|
40
|
+
include Hornetseye
|
41
|
+
img = lazy( 640, 480 ) { RGB 255, 0, 0 }
|
42
|
+
img.show
|
43
|
+
|
44
|
+
Here is another example. It demonstrates display of a video:
|
45
|
+
|
46
|
+
require 'rubygems'
|
47
|
+
require 'hornetseye_xorg'
|
48
|
+
include Hornetseye
|
49
|
+
X11Display.show do
|
50
|
+
lazy( 320, 240 ) { RGB ( Time.new.to_f * 256 ) % 256, 0, 0 }
|
51
|
+
end
|
52
|
+
|
data/Rakefile
CHANGED
@@ -7,7 +7,7 @@ require 'rake/loaders/makefile'
|
|
7
7
|
require 'rbconfig'
|
8
8
|
|
9
9
|
PKG_NAME = 'hornetseye-xorg'
|
10
|
-
PKG_VERSION = '0.
|
10
|
+
PKG_VERSION = '0.6.0'
|
11
11
|
CFG = RbConfig::CONFIG
|
12
12
|
CXX = ENV[ 'CXX' ] || 'g++'
|
13
13
|
RB_FILES = FileList[ 'lib/**/*.rb' ]
|
@@ -120,8 +120,7 @@ end
|
|
120
120
|
begin
|
121
121
|
require 'yard'
|
122
122
|
YARD::Rake::YardocTask.new :yard do |y|
|
123
|
-
y.
|
124
|
-
y.files << FileList[ 'lib/**/*.rb' ]
|
123
|
+
y.files << RB_FILES
|
125
124
|
end
|
126
125
|
rescue LoadError
|
127
126
|
STDERR.puts 'Please install \'yard\' if you want to generate documentation'
|
@@ -154,8 +153,8 @@ begin
|
|
154
153
|
s.extra_rdoc_files = []
|
155
154
|
s.rdoc_options = %w{--no-private}
|
156
155
|
s.add_dependency %<malloc>, [ '~> 1.1' ]
|
157
|
-
s.add_dependency %<multiarray>, [ '~> 0.
|
158
|
-
s.add_dependency %<hornetseye-frame>, [ '~> 0.
|
156
|
+
s.add_dependency %<multiarray>, [ '~> 0.23' ]
|
157
|
+
s.add_dependency %<hornetseye-frame>, [ '~> 0.11' ]
|
159
158
|
s.add_development_dependency %q{rake}
|
160
159
|
end
|
161
160
|
GEM_SOURCE = "#{PKG_NAME}-#{PKG_VERSION}.gem"
|
@@ -177,8 +176,8 @@ begin
|
|
177
176
|
s.extra_rdoc_files = []
|
178
177
|
s.rdoc_options = %w{--no-private}
|
179
178
|
s.add_dependency %<malloc>, [ '~> 1.1' ]
|
180
|
-
s.add_dependency %<multiarray>, [ '~> 0.
|
181
|
-
s.add_dependency %<hornetseye-frame>, [ '~> 0.
|
179
|
+
s.add_dependency %<multiarray>, [ '~> 0.23' ]
|
180
|
+
s.add_dependency %<hornetseye-frame>, [ '~> 0.11' ]
|
182
181
|
end
|
183
182
|
GEM_BINARY = "#{PKG_NAME}-#{PKG_VERSION}-#{$BINSPEC.platform}.gem"
|
184
183
|
desc "Build the gem file #{GEM_SOURCE}"
|
metadata
CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
6
|
- 0
|
7
|
-
-
|
8
|
-
-
|
9
|
-
version: 0.
|
7
|
+
- 6
|
8
|
+
- 0
|
9
|
+
version: 0.6.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jan Wedekind
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date:
|
17
|
+
date: 2011-06-17 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -41,8 +41,8 @@ dependencies:
|
|
41
41
|
- !ruby/object:Gem::Version
|
42
42
|
segments:
|
43
43
|
- 0
|
44
|
-
-
|
45
|
-
version: "0.
|
44
|
+
- 23
|
45
|
+
version: "0.23"
|
46
46
|
type: :runtime
|
47
47
|
version_requirements: *id002
|
48
48
|
- !ruby/object:Gem::Dependency
|
@@ -55,8 +55,8 @@ dependencies:
|
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
segments:
|
57
57
|
- 0
|
58
|
-
-
|
59
|
-
version: "0.
|
58
|
+
- 11
|
59
|
+
version: "0.11"
|
60
60
|
type: :runtime
|
61
61
|
version_requirements: *id003
|
62
62
|
- !ruby/object:Gem::Dependency
|
@@ -85,34 +85,34 @@ files:
|
|
85
85
|
- README.md
|
86
86
|
- COPYING
|
87
87
|
- .document
|
88
|
-
- lib/hornetseye-xorg/x11output.rb
|
89
|
-
- lib/hornetseye-xorg/frame.rb
|
90
|
-
- lib/hornetseye-xorg/ximageoutput.rb
|
91
88
|
- lib/hornetseye-xorg/node.rb
|
92
|
-
- lib/hornetseye-xorg/
|
89
|
+
- lib/hornetseye-xorg/ximageoutput.rb
|
90
|
+
- lib/hornetseye-xorg/x11output.rb
|
93
91
|
- lib/hornetseye-xorg/opengloutput.rb
|
92
|
+
- lib/hornetseye-xorg/x11display.rb
|
93
|
+
- lib/hornetseye-xorg/frame.rb
|
94
94
|
- lib/hornetseye_xorg_ext.rb
|
95
|
-
- ext/xvideoimagepainter.cc
|
96
95
|
- ext/x11output.cc
|
97
|
-
- ext/openglimagepainter.cc
|
98
96
|
- ext/timer.cc
|
99
|
-
- ext/
|
97
|
+
- ext/openglimagepainter.cc
|
100
98
|
- ext/init.cc
|
101
|
-
- ext/frame.cc
|
102
99
|
- ext/ximagepainter.cc
|
100
|
+
- ext/xvideoimagepainter.cc
|
101
|
+
- ext/x11window.cc
|
103
102
|
- ext/x11display.cc
|
104
|
-
- ext/
|
105
|
-
- ext/frame.hh
|
106
|
-
- ext/rubytools.hh
|
107
|
-
- ext/x11display.hh
|
103
|
+
- ext/frame.cc
|
108
104
|
- ext/openglimagepainter.hh
|
109
|
-
- ext/ximagepainter.hh
|
110
105
|
- ext/timer.hh
|
106
|
+
- ext/frame.hh
|
111
107
|
- ext/x11output.hh
|
112
|
-
- ext/
|
108
|
+
- ext/xvideoimagepainter.hh
|
109
|
+
- ext/rubytools.hh
|
110
|
+
- ext/ximagepainter.hh
|
113
111
|
- ext/error.hh
|
112
|
+
- ext/rubyinc.hh
|
114
113
|
- ext/x11painter.hh
|
115
|
-
- ext/
|
114
|
+
- ext/x11window.hh
|
115
|
+
- ext/x11display.hh
|
116
116
|
- ext/rubytools.tcc
|
117
117
|
has_rdoc: yard
|
118
118
|
homepage: http://wedesoft.github.com/hornetseye-xorg/
|