opengl 0.8.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (145) hide show
  1. checksums.yaml +7 -0
  2. checksums.yaml.gz.sig +1 -0
  3. data.tar.gz.sig +0 -0
  4. data/.gitignore +2 -1
  5. data/.travis.yml +19 -0
  6. data/History.rdoc +26 -0
  7. data/Manifest.txt +3 -23
  8. data/README.rdoc +43 -37
  9. data/Rakefile +6 -62
  10. data/examples/NeHe/nehe_lesson02.rb +3 -2
  11. data/examples/NeHe/nehe_lesson03.rb +3 -2
  12. data/examples/NeHe/nehe_lesson04.rb +3 -1
  13. data/examples/NeHe/nehe_lesson05.rb +4 -1
  14. data/examples/NeHe/nehe_lesson06.rb +9 -6
  15. data/examples/NeHe/nehe_lesson07.rb +9 -6
  16. data/examples/NeHe/nehe_lesson08.rb +9 -6
  17. data/examples/NeHe/nehe_lesson09.rb +10 -6
  18. data/examples/NeHe/nehe_lesson11.rb +9 -6
  19. data/examples/NeHe/nehe_lesson12.rb +9 -6
  20. data/examples/NeHe/nehe_lesson16.rb +50 -47
  21. data/examples/NeHe/nehe_lesson19.rb +10 -7
  22. data/examples/NeHe/nehe_lesson36.rb +234 -229
  23. data/examples/OrangeBook/brick.rb +227 -225
  24. data/examples/OrangeBook/particle.rb +233 -231
  25. data/examples/RedBook/aapoly.rb +71 -70
  26. data/examples/RedBook/aargb.rb +54 -52
  27. data/examples/RedBook/accanti.rb +96 -94
  28. data/examples/RedBook/accpersp.rb +106 -104
  29. data/examples/RedBook/alpha.rb +54 -52
  30. data/examples/RedBook/alpha3D.rb +90 -88
  31. data/examples/RedBook/bezcurve.rb +48 -46
  32. data/examples/RedBook/bezmesh.rb +71 -69
  33. data/examples/RedBook/checker.rb +57 -55
  34. data/examples/RedBook/clip.rb +41 -39
  35. data/examples/RedBook/colormat.rb +72 -70
  36. data/examples/RedBook/cube.rb +39 -37
  37. data/examples/RedBook/depthcue.rb +37 -35
  38. data/examples/RedBook/dof.rb +110 -109
  39. data/examples/RedBook/double.rb +40 -38
  40. data/examples/RedBook/drawf.rb +30 -28
  41. data/examples/RedBook/feedback.rb +79 -77
  42. data/examples/RedBook/fog.rb +90 -89
  43. data/examples/RedBook/font.rb +78 -76
  44. data/examples/RedBook/hello.rb +29 -27
  45. data/examples/RedBook/image.rb +57 -55
  46. data/examples/RedBook/jitter.rb +131 -131
  47. data/examples/RedBook/light.rb +2 -1
  48. data/examples/RedBook/lines.rb +70 -68
  49. data/examples/RedBook/list.rb +48 -46
  50. data/examples/RedBook/material.rb +200 -199
  51. data/examples/RedBook/mipmap.rb +84 -82
  52. data/examples/RedBook/model.rb +55 -53
  53. data/examples/RedBook/movelight.rb +52 -50
  54. data/examples/RedBook/pickdepth.rb +103 -101
  55. data/examples/RedBook/planet.rb +46 -44
  56. data/examples/RedBook/quadric.rb +97 -95
  57. data/examples/RedBook/robot.rb +55 -53
  58. data/examples/RedBook/select.rb +118 -116
  59. data/examples/RedBook/smooth.rb +35 -33
  60. data/examples/RedBook/stencil.rb +96 -94
  61. data/examples/RedBook/stroke.rb +75 -73
  62. data/examples/RedBook/surface.rb +93 -91
  63. data/examples/RedBook/teaambient.rb +71 -69
  64. data/examples/RedBook/teapots.rb +105 -103
  65. data/examples/RedBook/tess.rb +96 -94
  66. data/examples/RedBook/texbind.rb +79 -77
  67. data/examples/RedBook/texgen.rb +88 -86
  68. data/examples/RedBook/texturesurf.rb +57 -55
  69. data/examples/RedBook/varray.rb +85 -83
  70. data/examples/RedBook/wrap.rb +76 -74
  71. data/examples/misc/OGLBench.rb +114 -113
  72. data/examples/misc/anisotropic.rb +154 -152
  73. data/examples/misc/fbo_test.rb +37 -36
  74. data/examples/misc/font-glut.rb +47 -46
  75. data/examples/misc/glfwtest.rb +16 -16
  76. data/examples/misc/plane.rb +13 -13
  77. data/examples/misc/readpixel.rb +66 -65
  78. data/examples/misc/sdltest.rb +21 -19
  79. data/examples/misc/trislam.rb +548 -547
  80. data/ext/opengl/common.h +16 -38
  81. data/ext/opengl/conv.h +39 -41
  82. data/ext/opengl/extconf.rb +4 -31
  83. data/ext/opengl/funcdef.h +126 -124
  84. data/ext/opengl/gl-1.0-1.1.c +1917 -1917
  85. data/ext/opengl/gl-1.2.c +4 -667
  86. data/ext/opengl/gl-1.3.c +9 -9
  87. data/ext/opengl/gl-1.4.c +8 -8
  88. data/ext/opengl/gl-1.5.c +1 -1
  89. data/ext/opengl/gl-2.0.c +392 -388
  90. data/ext/opengl/gl-3.0.c +493 -0
  91. data/ext/opengl/gl-enums.c +1523 -5
  92. data/ext/opengl/gl-enums.h +4679 -122
  93. data/ext/opengl/gl-error.c +7 -7
  94. data/ext/opengl/gl-error.h +4 -4
  95. data/ext/opengl/gl-ext-arb.c +468 -464
  96. data/ext/opengl/gl-ext-ext.c +18 -18
  97. data/ext/opengl/gl-ext-nv.c +15 -15
  98. data/ext/opengl/gl.c +2 -0
  99. data/ext/opengl/gl_buffer.c +92 -92
  100. data/ext/opengl/opengl.c +1 -7
  101. data/lib/opengl.rb +23 -59
  102. data/lib/opengl/test_case.rb +1 -2
  103. data/test/dummy.xorg.conf +140 -0
  104. data/test/test_gl.rb +18 -22
  105. data/test/test_gl_10_11.rb +220 -220
  106. data/test/test_gl_12.rb +11 -122
  107. data/test/test_gl_13.rb +202 -210
  108. data/test/test_gl_14.rb +16 -19
  109. data/test/test_gl_15.rb +2 -4
  110. data/test/test_gl_20.rb +45 -58
  111. data/test/test_gl_21.rb +46 -163
  112. data/test/test_gl_ext_arb.rb +54 -72
  113. data/test/test_gl_ext_ati.rb +0 -2
  114. data/test/test_gl_ext_ext.rb +66 -66
  115. data/test/test_gl_ext_gremedy.rb +8 -15
  116. data/test/test_gl_ext_nv.rb +109 -112
  117. data/test/test_opengl_buffer.rb +8 -25
  118. data/utils/README +0 -5
  119. data/utils/enumgen.rb +72 -76
  120. data/utils/extlistgen.rb +55 -55
  121. metadata +87 -66
  122. metadata.gz.sig +2 -0
  123. data/Rakefile.cross +0 -107
  124. data/docs/build_install.txt +0 -119
  125. data/docs/extensions.txt.in +0 -348
  126. data/docs/history.txt +0 -66
  127. data/docs/requirements_and_design.txt +0 -117
  128. data/docs/roadmap.txt +0 -28
  129. data/docs/scientific_use.txt +0 -35
  130. data/docs/supplies/page_template.html +0 -71
  131. data/docs/thanks.txt +0 -29
  132. data/docs/tutorial.txt +0 -469
  133. data/ext/opengl/glu-enums.c +0 -164
  134. data/ext/opengl/glu-enums.h +0 -463
  135. data/ext/opengl/glu.c +0 -1534
  136. data/ext/opengl/glut.c +0 -1145
  137. data/ext/opengl/glut_callbacks.c +0 -845
  138. data/lib/glu.rb +0 -1
  139. data/lib/glut.rb +0 -1
  140. data/test/test_glu.rb +0 -309
  141. data/utils/mkdn2html.rb +0 -59
  142. data/utils/post-mkdn2html.rb +0 -91
  143. data/website/images/ogl.jpg +0 -0
  144. data/website/images/tab_bottom.gif +0 -0
  145. data/website/style.css +0 -198
Binary file
@@ -1,198 +0,0 @@
1
- /* CSS Document
2
- Template Title: Uncomplicated
3
- Author: J David Macor
4
- URL: http://www.jdavidmacor.com
5
-
6
- Note, John M. Gabriele darkened it a bit.
7
- */
8
-
9
- /* Main Body */
10
- body {
11
- font-family: verdana, sans-serif;
12
- font-size: 11px;
13
- background: #d3e3d3;
14
- }
15
-
16
- #container {
17
- width: 760px;
18
- padding: 30px;
19
- padding-bottom: 5px;
20
- border: 1px solid #ccc;
21
- background: #e8e8e8;
22
- margin: 0 auto;
23
- }
24
-
25
- /* Header */
26
- #header {
27
- width: 500px;
28
- border-left: 4px solid #ccc;
29
- border-right: 4px solid #ccc;
30
- margin: 0 auto;
31
- margin-bottom: 20px;
32
- font-family: Geneva, Arial, Helvetica, sans-serif;
33
- font-size: 36px;
34
- letter-spacing: 0.4em;
35
- text-align: center;
36
- }
37
-
38
- /* Navigation */
39
- #tabnav {
40
- height: 20px;
41
- margin: 0;
42
- padding-left: 10px;
43
- background: url(images/tab_bottom.gif) repeat-x bottom;
44
- }
45
-
46
- #tabnav li {
47
- margin: 0;
48
- padding: 0;
49
- display: inline;
50
- list-style-type: none;
51
- }
52
-
53
- #tabnav a:link, #tabnav a:visited {
54
- float: left;
55
- background: #f3f3f3;
56
- font-size: 10px;
57
- line-height: 14px;
58
- font-weight: bold;
59
- padding: 2px 10px 2px 10px;
60
- margin-right: 4px;
61
- border: 1px solid #ccc;
62
- text-decoration: none;
63
- color: #666;
64
- }
65
-
66
- #tabnav a:link.active, #tabnav a:visited.active {
67
- border-bottom: 1px solid #fff;
68
- background: #fff;
69
- color: #000;
70
- }
71
-
72
- #tabnav a:hover {
73
- background: #fff;
74
- }
75
-
76
- /* Main Content */
77
- #content {
78
- width: 550px;
79
- margin-top: 15px;
80
- }
81
-
82
- #content h2 {
83
- font-size: 20px;
84
- }
85
-
86
- #content p {
87
- font-size: 12px;
88
- }
89
-
90
- #content a, a:visited {
91
- color: #666666;
92
- text-decoration: underline;
93
- }
94
-
95
- #content a:hover {
96
- color: #000000;
97
- }
98
-
99
- /* Sidebar */
100
- #sidebar {
101
- width: 190px;
102
- float: right;
103
- clear: none;
104
- margin-top: 15px;
105
- }
106
-
107
- #sidebar h3 {
108
- border-bottom: 1px solid #ccc;
109
- font-size: 14px;
110
- }
111
-
112
- #sidebar ul {
113
- font-size: 12px;
114
- }
115
-
116
- #sidebar a, a:visited {
117
- color: #666666;
118
- text-decoration: underline;
119
- }
120
-
121
- #sidebar a:hover {
122
- color: #000000;
123
- }
124
-
125
- /* footer */
126
- #footer {
127
- color: #666;
128
- text-align: center;
129
- border-top: 1px solid #ccc;
130
- size: 11px;
131
- margin-top: 30px;
132
- margin-bottom: 0;
133
- }
134
-
135
- #footer a, a:visited {
136
- color: #666666;
137
- text-decoration: underline;
138
- }
139
-
140
- #footer a:hover {
141
- color: #000000;
142
- }
143
-
144
- pre{
145
- width: 100%;
146
- overflow: auto;
147
- border: 1px solid #CCC;
148
- background: #EEE;
149
- }
150
-
151
- .extlist{
152
- text-align: left;
153
- font-weight: normal;
154
- color: #404040;
155
- background-color: #fafafa;
156
- border: 1px #666666 solid;
157
- border-collapse: collapse;
158
- border-spacing: 1px;
159
- }
160
-
161
- .extlist th{
162
- text-align: center;
163
- border-bottom: 1px solid #666666;
164
- border-left: 1px solid #666666;
165
- background-color: #dddddd;
166
- font-weight: bold;
167
- color: #404040;
168
- }
169
-
170
- .extlist td,.extlist td.supported,.extlist td.unsupported,.extlist td.other{
171
- border: 1px solid #666666;
172
- text-align: center;
173
- text-indent: 1px;
174
- color: #404040;
175
- }
176
-
177
- .extlist td {
178
- text-align: left;
179
- }
180
-
181
- .extlist td.supported {
182
- background-color: #33ff33;
183
- }
184
-
185
- .extlist td.unsupported {
186
- /* background-color: #ff3333; */
187
- background-color: #cccccc;
188
- }
189
-
190
- .extlist td.other {
191
- background-color: #cccccc;
192
- }
193
-
194
- /* f << "<td class='supported'>YES</td>"
195
- elsif (ext[1]=="Other")
196
- f << "<td class='other'>NO</td>"
197
- else # unsupported
198
- f << "<td class='unsupported'>NO</td>" */