opengl-core 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/ext/opengl-core/extconf.rb +3 -0
- data/ext/opengl-core/opengl_stub.c +51 -0
- data/lib/opengl-core/gl_commands.rb +6085 -0
- data/lib/opengl-core/gl_enums.rb +1284 -0
- data/lib/opengl-core/gl_sym.rb +26 -0
- data/lib/opengl-core.rb +7 -0
- metadata +65 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'fiddle'
|
2
|
+
require 'opengl-core/opengl_stub'
|
3
|
+
|
4
|
+
module GlSym
|
5
|
+
|
6
|
+
@@opengl_lib = nil
|
7
|
+
|
8
|
+
def self.load_gl_sym__(name)
|
9
|
+
if @@opengl_lib.nil?
|
10
|
+
lib_path = case
|
11
|
+
when apple?
|
12
|
+
'/System/Library/Frameworks/OpenGL.framework/OpenGL'
|
13
|
+
when unix? || linux?
|
14
|
+
'libGL.so.1'
|
15
|
+
when windows?
|
16
|
+
'opengl32.dll'
|
17
|
+
else
|
18
|
+
raise 'Unrecognized platform'
|
19
|
+
end
|
20
|
+
@@opengl_lib = Fiddle.dlopen(lib_path)
|
21
|
+
end
|
22
|
+
|
23
|
+
@@opengl_lib[name]
|
24
|
+
end
|
25
|
+
|
26
|
+
end # module GlSym
|
data/lib/opengl-core.rb
ADDED
metadata
ADDED
@@ -0,0 +1,65 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: opengl-core
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Noel Raymond Cower
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-06-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: nokogiri
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
description: OpenGL core profile (3.2 onward, no deprecated functionality) bindings
|
28
|
+
for Ruby 2.x. Generated from new XML spec files.
|
29
|
+
email: ncower@gmail.com
|
30
|
+
executables: []
|
31
|
+
extensions:
|
32
|
+
- ext/opengl-core/extconf.rb
|
33
|
+
extra_rdoc_files: []
|
34
|
+
files:
|
35
|
+
- lib/opengl-core/gl_commands.rb
|
36
|
+
- lib/opengl-core/gl_enums.rb
|
37
|
+
- lib/opengl-core/gl_sym.rb
|
38
|
+
- lib/opengl-core.rb
|
39
|
+
- ext/opengl-core/opengl_stub.c
|
40
|
+
- ext/opengl-core/extconf.rb
|
41
|
+
homepage: https://github.com/nilium/ruby-opengl
|
42
|
+
licenses:
|
43
|
+
- Simplified BSD
|
44
|
+
metadata: {}
|
45
|
+
post_install_message:
|
46
|
+
rdoc_options: []
|
47
|
+
require_paths:
|
48
|
+
- lib
|
49
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
55
|
+
requirements:
|
56
|
+
- - '>='
|
57
|
+
- !ruby/object:Gem::Version
|
58
|
+
version: '0'
|
59
|
+
requirements: []
|
60
|
+
rubyforge_project:
|
61
|
+
rubygems_version: 2.0.3
|
62
|
+
signing_key:
|
63
|
+
specification_version: 4
|
64
|
+
summary: OpenGL core profile bindings
|
65
|
+
test_files: []
|