glut 8.2.0-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,84 @@
1
+ /*
2
+ * Copyright (C) 2013 Blaž Hrastnik <speed.the.bboy@gmail.com>
3
+ *
4
+ * This program is distributed under the terms of the MIT license.
5
+ * See the included COPYRIGHT file for the terms of this license.
6
+ *
7
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
8
+ * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
9
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
10
+ * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
11
+ * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
12
+ * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
13
+ * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
14
+ *
15
+ */
16
+
17
+ #include "common.h"
18
+
19
+ /*
20
+ * Process loop function, see freeglut_main.c
21
+ */
22
+ GLUT_SIMPLE_FUNCTION(MainLoopEvent)
23
+ GLUT_SIMPLE_FUNCTION(LeaveMainLoop)
24
+ GLUT_SIMPLE_FUNCTION(Exit)
25
+
26
+ /*
27
+ * Window management functions, see freeglut_window.c
28
+ */
29
+ GLUT_SIMPLE_FUNCTION(FullScreenToggle)
30
+ GLUT_SIMPLE_FUNCTION(LeaveFullScreen)
31
+
32
+ /* Initialization functions */
33
+ static VALUE
34
+ glut_InitContextVersion(VALUE obj, VALUE majorVersion, VALUE minorVersion)
35
+ {
36
+ glutInitContextVersion(NUM2INT(majorVersion), NUM2INT(minorVersion));
37
+ return Qnil;
38
+ }
39
+
40
+ static VALUE
41
+ glut_InitContextFlags(VALUE obj, VALUE flags)
42
+ {
43
+ glutInitContextFlags(NUM2INT(flags));
44
+ return Qnil;
45
+ }
46
+
47
+ static VALUE
48
+ glut_InitContextProfile(VALUE obj, VALUE profile)
49
+ {
50
+ glutInitContextProfile(NUM2INT(profile));
51
+ return Qnil;
52
+ }
53
+
54
+ void Init_glut_ext() {
55
+ VALUE mGlut = rb_path2class("Glut");
56
+
57
+ /* Process loop functions */
58
+ rb_define_module_function(mGlut, "glutMainLoopEvent", glut_MainLoopEvent, 0);
59
+ rb_define_module_function(mGlut, "glutLeaveMainLoop", glut_LeaveMainLoop, 0);
60
+ rb_define_module_function(mGlut, "glutExit", glut_Exit, 0);
61
+
62
+ /* Window management functions */
63
+ rb_define_module_function(mGlut, "glutFullScreenToggle", glut_FullScreenToggle, 0);
64
+ rb_define_module_function(mGlut, "glutLeaveFullScreen", glut_LeaveFullScreen, 0);
65
+
66
+ /* Initialization functions */
67
+ rb_define_module_function(mGlut, "glutInitContextVersion", glut_InitContextVersion, 2);
68
+ rb_define_module_function(mGlut, "glutInitContextFlags", glut_InitContextFlags, 1);
69
+ rb_define_module_function(mGlut, "glutInitContextProfile", glut_InitContextProfile, 1);
70
+
71
+ /* Context-related flags */
72
+ rb_define_const(mGlut, "GLUT_INIT_MAJOR_VERSION", INT2NUM(GLUT_INIT_MAJOR_VERSION));
73
+ rb_define_const(mGlut, "GLUT_INIT_MINOR_VERSION", INT2NUM(GLUT_INIT_MINOR_VERSION));
74
+ rb_define_const(mGlut, "GLUT_INIT_FLAGS", INT2NUM(GLUT_INIT_FLAGS));
75
+ rb_define_const(mGlut, "GLUT_INIT_PROFILE", INT2NUM(GLUT_INIT_PROFILE));
76
+
77
+ /* Flags for glutInitContextFlags */
78
+ rb_define_const(mGlut, "GLUT_FORWARD_COMPATIBLE", INT2NUM(GLUT_FORWARD_COMPATIBLE));
79
+ rb_define_const(mGlut, "GLUT_DEBUG", INT2NUM(GLUT_DEBUG));
80
+
81
+ /* Flags for glutInitContextProfile */
82
+ rb_define_const(mGlut, "GLUT_CORE_PROFILE", INT2NUM(GLUT_CORE_PROFILE));
83
+ rb_define_const(mGlut, "GLUT_COMPATIBILITY_PROFILE", INT2NUM(GLUT_COMPATIBILITY_PROFILE));
84
+ }
data/lib/glut.rb ADDED
@@ -0,0 +1,29 @@
1
+ begin
2
+ RUBY_VERSION =~ /(\d+.\d+)/
3
+ require "glut/#{$1}/glut"
4
+ rescue LoadError
5
+ require 'glut/glut'
6
+ end
7
+
8
+ # (Glut.)glutInit -> GLUT.Init
9
+ # (Glut::)GLUT_RGBA -> GLUT::RGBA
10
+ module GLUT
11
+ extend self
12
+ include Glut
13
+
14
+ Glut.constants.each do |cn|
15
+ n = cn.to_s.sub(/^GLUT_/,'')
16
+ next if n =~ /^[0-9]/
17
+ const_set( n, Glut.const_get( cn ) )
18
+ end
19
+
20
+ Glut.methods( false ).each do |mn|
21
+ n = mn.to_s.sub(/^glut/,'')
22
+ alias_method( n, mn )
23
+ public( n )
24
+ end
25
+ end
26
+
27
+ module Glut
28
+ VERSION = "8.2.0"
29
+ end
Binary file
Binary file
Binary file
data/lib/glut/dummy.rb ADDED
@@ -0,0 +1,2 @@
1
+ # Unless this file exists, rake-compiler/hoe won't create this folder
2
+ # and the extension won't build.
metadata ADDED
@@ -0,0 +1,150 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: glut
3
+ version: !ruby/object:Gem::Version
4
+ version: 8.2.0
5
+ platform: x86-mingw32
6
+ authors:
7
+ - Eric Hodel
8
+ - Lars Kanis
9
+ - Blaž Hrastnik
10
+ - Alain Hoang
11
+ - Jan Dvorak
12
+ - Minh Thu Vo
13
+ - James Adam
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain:
17
+ - |
18
+ -----BEGIN CERTIFICATE-----
19
+ MIIDLjCCAhagAwIBAgIBAjANBgkqhkiG9w0BAQUFADA9MQ4wDAYDVQQDDAVrYW5p
20
+ czEXMBUGCgmSJomT8ixkARkWB2NvbWNhcmQxEjAQBgoJkiaJk/IsZAEZFgJkZTAe
21
+ Fw0xNDAyMjYwOTMzMDBaFw0xNTAyMjYwOTMzMDBaMD0xDjAMBgNVBAMMBWthbmlz
22
+ MRcwFQYKCZImiZPyLGQBGRYHY29tY2FyZDESMBAGCgmSJomT8ixkARkWAmRlMIIB
23
+ IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEApop+rNmg35bzRugZ21VMGqI6
24
+ HGzPLO4VHYncWn/xmgPU/ZMcZdfj6MzIaZJ/czXyt4eHpBk1r8QOV3gBXnRXEjVW
25
+ 9xi+EdVOkTV2/AVFKThcbTAQGiF/bT1n2M+B1GTybRzMg6hyhOJeGPqIhLfJEpxn
26
+ lJi4+ENAVT4MpqHEAGB8yFoPC0GqiOHQsdHxQV3P3c2OZqG+yJey74QtwA2tLcLn
27
+ Q53c63+VLGsOjODl1yPn/2ejyq8qWu6ahfTxiIlSar2UbwtaQGBDFdb2CXgEufXT
28
+ L7oaPxlmj+Q2oLOfOnInd2Oxop59HoJCQPsg8f921J43NCQGA8VHK6paxIRDLQID
29
+ AQABozkwNzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQUvgTdT7fe
30
+ x17ugO3IOsjEJwW7KP4wDQYJKoZIhvcNAQEFBQADggEBAFmIAhRT0awqLQN9e4Uv
31
+ ZEk+jUWv4zkb+TWiKFJXlwjPyjGbZY9gVfOwAwMibYOK/t/+57ZzW3d0L12OUwvo
32
+ on84NVvYtIr1/iskJFWFkMoIquAFCdi9p68stSPMQK2XcrJJuRot29fJtropsZBa
33
+ 2cpaNd/sRYdK4oep2usdKifA1lI0hIkPb3r5nLfwG2lAqBH7WZsUICHcTgR0VEbG
34
+ z9Ug5qQp9Uz73xC9YdGvGiuOX53LYobHAR4MWi2xxDlHI+ER8mRz0eY2FUuNu/Wj
35
+ GrqF74zpLl7/KFdHC8VmzwZS18hvDjxeLVuVI2gIGnBInqnlqv05g/l4/1pISh5j
36
+ dS4=
37
+ -----END CERTIFICATE-----
38
+ date: 2014-03-14 00:00:00.000000000 Z
39
+ dependencies:
40
+ - !ruby/object:Gem::Dependency
41
+ name: rdoc
42
+ requirement: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ~>
45
+ - !ruby/object:Gem::Version
46
+ version: '4.0'
47
+ type: :development
48
+ prerelease: false
49
+ version_requirements: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: '4.0'
54
+ - !ruby/object:Gem::Dependency
55
+ name: rake-compiler
56
+ requirement: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ~>
59
+ - !ruby/object:Gem::Version
60
+ version: '0.7'
61
+ - - '>='
62
+ - !ruby/object:Gem::Version
63
+ version: 0.7.9
64
+ type: :development
65
+ prerelease: false
66
+ version_requirements: !ruby/object:Gem::Requirement
67
+ requirements:
68
+ - - ~>
69
+ - !ruby/object:Gem::Version
70
+ version: '0.7'
71
+ - - '>='
72
+ - !ruby/object:Gem::Version
73
+ version: 0.7.9
74
+ - !ruby/object:Gem::Dependency
75
+ name: hoe
76
+ requirement: !ruby/object:Gem::Requirement
77
+ requirements:
78
+ - - ~>
79
+ - !ruby/object:Gem::Version
80
+ version: '3.7'
81
+ type: :development
82
+ prerelease: false
83
+ version_requirements: !ruby/object:Gem::Requirement
84
+ requirements:
85
+ - - ~>
86
+ - !ruby/object:Gem::Version
87
+ version: '3.7'
88
+ description: Glut bindings for OpenGL. To be used with the {opengl}[https://github.com/larskanis/opengl]
89
+ gem.
90
+ email:
91
+ - drbrain@segment7.net
92
+ - ''
93
+ - speed.the.bboy@gmail.com
94
+ - ''
95
+ - ''
96
+ - ''
97
+ - ''
98
+ executables: []
99
+ extensions: []
100
+ extra_rdoc_files:
101
+ - History.rdoc
102
+ - Manifest.txt
103
+ - README.rdoc
104
+ files:
105
+ - .autotest
106
+ - .gemtest
107
+ - .gitignore
108
+ - .travis.yml
109
+ - History.rdoc
110
+ - MIT-LICENSE
111
+ - Manifest.txt
112
+ - README.rdoc
113
+ - Rakefile
114
+ - ext/glut/common.h
115
+ - ext/glut/extconf.rb
116
+ - ext/glut/glut.c
117
+ - ext/glut/glut_callbacks.c
118
+ - ext/glut/glut_ext.c
119
+ - lib/glut.rb
120
+ - lib/glut/1.9/glut.so
121
+ - lib/glut/2.0/glut.so
122
+ - lib/glut/2.1/glut.so
123
+ - lib/glut/dummy.rb
124
+ homepage:
125
+ licenses:
126
+ - MIT
127
+ metadata: {}
128
+ post_install_message:
129
+ rdoc_options:
130
+ - --main
131
+ - README.rdoc
132
+ require_paths:
133
+ - lib
134
+ required_ruby_version: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '>='
137
+ - !ruby/object:Gem::Version
138
+ version: 1.9.2
139
+ required_rubygems_version: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - '>='
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
144
+ requirements: []
145
+ rubyforge_project: glut
146
+ rubygems_version: 2.2.2
147
+ signing_key:
148
+ specification_version: 4
149
+ summary: Glut bindings for OpenGL
150
+ test_files: []
metadata.gz.sig ADDED
@@ -0,0 +1 @@
1
+ V�I۩Z�L��F�M�#Mk���k�.�w�I�-1���r�= �.q�#��s�h�ƭ;�+�H�$��q,�(W^����?^P�p�8Of_Àn ���H��/1e��&��rһ4�#��\R)� ��(R�մ ��p��@c�aR�;&��#����do�9��[���~Ѓl�N�ST,S�(�4��1�c�t��ݔ�0�"��6����@�: �ijL;\�W��f����7vK�r #�%�˛l¡� C�