fxruby 1.6.45-x86-mingw32 → 1.6.47-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
Files changed (338) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/binary.yml +89 -0
  3. data/.github/workflows/ci.yml +68 -0
  4. data/.yardopts +2 -2
  5. data/Gemfile +1 -1
  6. data/History.md +13 -0
  7. data/{README.rdoc → README.md} +13 -14
  8. data/Rakefile +22 -4
  9. data/appveyor.yml +5 -8
  10. data/doap.rdf +2 -2
  11. data/docs/Fox/Canvas/CanvasError.html +3 -3
  12. data/docs/Fox/Canvas/CircleShape.html +3 -3
  13. data/docs/Fox/Canvas/ImageShape.html +3 -3
  14. data/docs/Fox/Canvas/LineShape.html +3 -3
  15. data/docs/Fox/Canvas/PolygonShape.html +3 -3
  16. data/docs/Fox/Canvas/RectangleShape.html +3 -3
  17. data/docs/Fox/Canvas/SelectionPolicy.html +3 -3
  18. data/docs/Fox/Canvas/Shape.html +5 -5
  19. data/docs/Fox/Canvas/ShapeCanvas.html +6 -6
  20. data/docs/Fox/Canvas/ShapeGroup.html +3 -3
  21. data/docs/Fox/Canvas/SingleSelectionPolicy.html +3 -3
  22. data/docs/Fox/Canvas/TextShape.html +3 -3
  23. data/docs/Fox/Canvas.html +6 -6
  24. data/docs/Fox/FTNonModal.html +3 -3
  25. data/docs/Fox/FX4Splitter.html +3 -3
  26. data/docs/Fox/FX7Segment.html +3 -3
  27. data/docs/Fox/FXAccelTable.html +7 -7
  28. data/docs/Fox/FXApp.html +24 -24
  29. data/docs/Fox/FXArc.html +7 -7
  30. data/docs/Fox/FXArrowButton.html +3 -3
  31. data/docs/Fox/FXBMPIcon.html +3 -3
  32. data/docs/Fox/FXBMPImage.html +3 -3
  33. data/docs/Fox/FXBitmap.html +3 -3
  34. data/docs/Fox/FXBitmapFrame.html +3 -3
  35. data/docs/Fox/FXBitmapView.html +3 -3
  36. data/docs/Fox/FXButton.html +3 -3
  37. data/docs/Fox/FXCURCursor.html +3 -3
  38. data/docs/Fox/FXCalendar.html +3 -3
  39. data/docs/Fox/FXCanvas.html +3 -3
  40. data/docs/Fox/FXCheckButton.html +3 -3
  41. data/docs/Fox/FXChoiceBox.html +4 -4
  42. data/docs/Fox/FXColor.html +3 -3
  43. data/docs/Fox/FXColorBar.html +3 -3
  44. data/docs/Fox/FXColorDialog.html +4 -4
  45. data/docs/Fox/FXColorItem.html +3 -3
  46. data/docs/Fox/FXColorList.html +3 -3
  47. data/docs/Fox/FXColorRing.html +3 -3
  48. data/docs/Fox/FXColorSelector.html +3 -3
  49. data/docs/Fox/FXColorWell.html +5 -5
  50. data/docs/Fox/FXColorWheel.html +3 -3
  51. data/docs/Fox/FXComboBox.html +6 -6
  52. data/docs/Fox/FXComboTableItem.html +3 -3
  53. data/docs/Fox/FXCommand.html +4 -4
  54. data/docs/Fox/FXComposite.html +5 -5
  55. data/docs/Fox/FXCursor.html +3 -3
  56. data/docs/Fox/FXDC.html +9 -9
  57. data/docs/Fox/FXDCPrint.html +3 -3
  58. data/docs/Fox/FXDCWindow.html +3 -3
  59. data/docs/Fox/FXDataTarget.html +10 -10
  60. data/docs/Fox/FXDebugTarget.html +3 -3
  61. data/docs/Fox/FXDelegator.html +3 -3
  62. data/docs/Fox/FXDial.html +8 -8
  63. data/docs/Fox/FXDialogBox.html +4 -4
  64. data/docs/Fox/FXDict.html +3 -3
  65. data/docs/Fox/FXDirBox.html +3 -3
  66. data/docs/Fox/FXDirDialog.html +5 -5
  67. data/docs/Fox/FXDirItem.html +3 -3
  68. data/docs/Fox/FXDirList.html +7 -7
  69. data/docs/Fox/FXDirSelector.html +5 -5
  70. data/docs/Fox/FXDockBar.html +6 -6
  71. data/docs/Fox/FXDockHandler.html +3 -3
  72. data/docs/Fox/FXDockSite.html +6 -6
  73. data/docs/Fox/FXDockTitle.html +3 -3
  74. data/docs/Fox/FXDocument.html +3 -3
  75. data/docs/Fox/FXDragCorner.html +3 -3
  76. data/docs/Fox/FXDrawable.html +3 -3
  77. data/docs/Fox/FXDriveBox.html +3 -3
  78. data/docs/Fox/FXEvent.html +3 -3
  79. data/docs/Fox/FXExtentd.html +5 -5
  80. data/docs/Fox/FXExtentf.html +5 -5
  81. data/docs/Fox/FXFileAssoc.html +3 -3
  82. data/docs/Fox/FXFileDialog.html +8 -8
  83. data/docs/Fox/FXFileDict.html +3 -3
  84. data/docs/Fox/FXFileItem.html +3 -3
  85. data/docs/Fox/FXFileList.html +7 -7
  86. data/docs/Fox/FXFileSelector.html +11 -11
  87. data/docs/Fox/FXFileStream.html +3 -3
  88. data/docs/Fox/FXFoldingItem.html +5 -5
  89. data/docs/Fox/FXFoldingList.html +38 -38
  90. data/docs/Fox/FXFont.html +4 -4
  91. data/docs/Fox/FXFontDesc.html +3 -3
  92. data/docs/Fox/FXFontDialog.html +3 -3
  93. data/docs/Fox/FXFontSelector.html +3 -3
  94. data/docs/Fox/FXFrame.html +3 -3
  95. data/docs/Fox/FXGIFCursor.html +3 -3
  96. data/docs/Fox/FXGIFIcon.html +3 -3
  97. data/docs/Fox/FXGIFImage.html +3 -3
  98. data/docs/Fox/FXGLCanvas.html +5 -5
  99. data/docs/Fox/FXGLCone.html +54 -61
  100. data/docs/Fox/FXGLContext.html +3 -3
  101. data/docs/Fox/FXGLCube.html +73 -79
  102. data/docs/Fox/FXGLCylinder.html +63 -70
  103. data/docs/Fox/FXGLGroup.html +58 -59
  104. data/docs/Fox/FXGLLine.html +45 -51
  105. data/docs/Fox/FXGLObject.html +10 -10
  106. data/docs/Fox/FXGLPoint.html +31 -37
  107. data/docs/Fox/FXGLShape.html +3 -3
  108. data/docs/Fox/FXGLSphere.html +39 -46
  109. data/docs/Fox/FXGLViewer.html +3 -3
  110. data/docs/Fox/FXGLVisual.html +3 -3
  111. data/docs/Fox/FXGradient.html +3 -3
  112. data/docs/Fox/FXGradientBar.html +17 -17
  113. data/docs/Fox/FXGroupBox.html +5 -5
  114. data/docs/Fox/FXHeader.html +17 -17
  115. data/docs/Fox/FXHeaderItem.html +15 -15
  116. data/docs/Fox/FXHiliteStyle.html +3 -3
  117. data/docs/Fox/FXHorizontalFrame.html +4 -4
  118. data/docs/Fox/FXHorizontalSeparator.html +3 -3
  119. data/docs/Fox/FXICOIcon.html +3 -3
  120. data/docs/Fox/FXICOImage.html +3 -3
  121. data/docs/Fox/FXIcon.html +3 -3
  122. data/docs/Fox/FXIconDict.html +3 -3
  123. data/docs/Fox/FXIconItem.html +5 -5
  124. data/docs/Fox/FXIconList.html +19 -19
  125. data/docs/Fox/FXIconSource.html +7 -7
  126. data/docs/Fox/FXId.html +3 -3
  127. data/docs/Fox/FXImage.html +6 -6
  128. data/docs/Fox/FXImageFrame.html +3 -3
  129. data/docs/Fox/FXImageView.html +3 -3
  130. data/docs/Fox/FXInputDialog.html +5 -5
  131. data/docs/Fox/FXIrb.html +6 -6
  132. data/docs/Fox/FXJPGIcon.html +3 -3
  133. data/docs/Fox/FXJPGImage.html +3 -3
  134. data/docs/Fox/FXKnob.html +7 -7
  135. data/docs/Fox/FXLabel.html +5 -5
  136. data/docs/Fox/FXLight.html +3 -3
  137. data/docs/Fox/FXList.html +24 -24
  138. data/docs/Fox/FXListBox.html +7 -7
  139. data/docs/Fox/FXListItem.html +5 -5
  140. data/docs/Fox/FXMDIChild.html +6 -6
  141. data/docs/Fox/FXMDIClient.html +4 -4
  142. data/docs/Fox/FXMDIDeleteButton.html +3 -3
  143. data/docs/Fox/FXMDIMaximizeButton.html +3 -3
  144. data/docs/Fox/FXMDIMenu.html +3 -3
  145. data/docs/Fox/FXMDIMinimizeButton.html +3 -3
  146. data/docs/Fox/FXMDIRestoreButton.html +3 -3
  147. data/docs/Fox/FXMDIWindowButton.html +3 -3
  148. data/docs/Fox/FXMainWindow.html +3 -3
  149. data/docs/Fox/FXMaterial.html +3 -3
  150. data/docs/Fox/FXMatrix.html +3 -3
  151. data/docs/Fox/FXMemoryBuffer.html +3 -3
  152. data/docs/Fox/FXMemoryStream.html +3 -3
  153. data/docs/Fox/FXMenuBar.html +3 -3
  154. data/docs/Fox/FXMenuButton.html +6 -6
  155. data/docs/Fox/FXMenuCaption.html +5 -5
  156. data/docs/Fox/FXMenuCascade.html +3 -3
  157. data/docs/Fox/FXMenuCheck.html +3 -3
  158. data/docs/Fox/FXMenuCommand.html +3 -3
  159. data/docs/Fox/FXMenuPane.html +3 -3
  160. data/docs/Fox/FXMenuRadio.html +3 -3
  161. data/docs/Fox/FXMenuSeparator.html +3 -3
  162. data/docs/Fox/FXMenuTitle.html +3 -3
  163. data/docs/Fox/FXMessageBox.html +5 -5
  164. data/docs/Fox/FXObject.html +4 -4
  165. data/docs/Fox/FXOption.html +3 -3
  166. data/docs/Fox/FXOptionMenu.html +3 -3
  167. data/docs/Fox/FXPCXIcon.html +3 -3
  168. data/docs/Fox/FXPCXImage.html +3 -3
  169. data/docs/Fox/FXPNGIcon.html +3 -3
  170. data/docs/Fox/FXPNGImage.html +3 -3
  171. data/docs/Fox/FXPPMIcon.html +3 -3
  172. data/docs/Fox/FXPPMImage.html +3 -3
  173. data/docs/Fox/FXPSBounds.html +3 -3
  174. data/docs/Fox/FXPacker.html +3 -3
  175. data/docs/Fox/FXPicker.html +3 -3
  176. data/docs/Fox/FXPopup.html +3 -3
  177. data/docs/Fox/FXPrintDialog.html +3 -3
  178. data/docs/Fox/FXPrinter.html +3 -3
  179. data/docs/Fox/FXProgressBar.html +3 -3
  180. data/docs/Fox/FXProgressDialog.html +3 -3
  181. data/docs/Fox/FXPseudoKeyboard.html +3 -3
  182. data/docs/Fox/FXPseudoMouse.html +3 -3
  183. data/docs/Fox/FXPseudoTarget.html +3 -3
  184. data/docs/Fox/FXQuatd.html +3 -3
  185. data/docs/Fox/FXQuatf.html +3 -3
  186. data/docs/Fox/FXRGBIcon.html +3 -3
  187. data/docs/Fox/FXRGBImage.html +3 -3
  188. data/docs/Fox/FXRadioButton.html +3 -3
  189. data/docs/Fox/FXRanged.html +3 -3
  190. data/docs/Fox/FXRangef.html +3 -3
  191. data/docs/Fox/FXRealSlider.html +3 -3
  192. data/docs/Fox/FXRealSpinner.html +16 -16
  193. data/docs/Fox/FXRecentFiles.html +3 -3
  194. data/docs/Fox/FXRectangle.html +11 -11
  195. data/docs/Fox/FXRegion.html +3 -3
  196. data/docs/Fox/FXRegistry.html +5 -5
  197. data/docs/Fox/FXReplaceDialog.html +3 -3
  198. data/docs/Fox/FXRootWindow.html +3 -3
  199. data/docs/Fox/FXRuler.html +3 -3
  200. data/docs/Fox/FXRulerView.html +26 -26
  201. data/docs/Fox/FXScintilla.html +21 -21
  202. data/docs/Fox/FXScrollArea.html +5 -5
  203. data/docs/Fox/FXScrollBar.html +3 -3
  204. data/docs/Fox/FXScrollCorner.html +3 -3
  205. data/docs/Fox/FXScrollPane.html +3 -3
  206. data/docs/Fox/FXScrollWindow.html +4 -4
  207. data/docs/Fox/FXSearchDialog.html +3 -3
  208. data/docs/Fox/FXSegment.html +3 -3
  209. data/docs/Fox/FXSeparator.html +4 -4
  210. data/docs/Fox/FXSettings.html +3 -3
  211. data/docs/Fox/FXShell.html +3 -3
  212. data/docs/Fox/FXShutter.html +4 -4
  213. data/docs/Fox/FXShutterItem.html +3 -3
  214. data/docs/Fox/FXSize.html +3 -3
  215. data/docs/Fox/FXSlider.html +3 -3
  216. data/docs/Fox/FXSphered.html +3 -3
  217. data/docs/Fox/FXSpheref.html +3 -3
  218. data/docs/Fox/FXSpinner.html +16 -16
  219. data/docs/Fox/FXSplashScreen.html +3 -3
  220. data/docs/Fox/FXSplashWindow.html +5 -5
  221. data/docs/Fox/FXSplitter.html +3 -3
  222. data/docs/Fox/FXSpring.html +3 -3
  223. data/docs/Fox/FXStatusBar.html +3 -3
  224. data/docs/Fox/FXStatusLine.html +4 -4
  225. data/docs/Fox/FXStream.html +4 -4
  226. data/docs/Fox/FXStreamAllocError.html +3 -3
  227. data/docs/Fox/FXStreamEndError.html +3 -3
  228. data/docs/Fox/FXStreamError.html +3 -3
  229. data/docs/Fox/FXStreamFailureError.html +3 -3
  230. data/docs/Fox/FXStreamFormatError.html +3 -3
  231. data/docs/Fox/FXStreamFullError.html +4 -4
  232. data/docs/Fox/FXStreamNoReadError.html +3 -3
  233. data/docs/Fox/FXStreamNoWriteError.html +3 -3
  234. data/docs/Fox/FXStreamUnknownError.html +3 -3
  235. data/docs/Fox/FXStringDict.html +4 -4
  236. data/docs/Fox/FXSwitcher.html +8 -8
  237. data/docs/Fox/FXTGAIcon.html +3 -3
  238. data/docs/Fox/FXTGAImage.html +3 -3
  239. data/docs/Fox/FXTIFIcon.html +3 -3
  240. data/docs/Fox/FXTIFImage.html +3 -3
  241. data/docs/Fox/FXTabBar.html +8 -8
  242. data/docs/Fox/FXTabBook.html +4 -4
  243. data/docs/Fox/FXTabItem.html +3 -3
  244. data/docs/Fox/FXTable.html +27 -27
  245. data/docs/Fox/FXTableItem.html +5 -5
  246. data/docs/Fox/FXTablePos.html +3 -3
  247. data/docs/Fox/FXTableRange.html +3 -3
  248. data/docs/Fox/FXText.html +25 -25
  249. data/docs/Fox/FXTextChange.html +3 -3
  250. data/docs/Fox/FXTextField.html +5 -5
  251. data/docs/Fox/FXToggleButton.html +7 -7
  252. data/docs/Fox/FXToolBar.html +3 -3
  253. data/docs/Fox/FXToolBarGrip.html +3 -3
  254. data/docs/Fox/FXToolBarShell.html +3 -3
  255. data/docs/Fox/FXToolBarTab.html +5 -5
  256. data/docs/Fox/FXToolTip.html +5 -5
  257. data/docs/Fox/FXTopWindow.html +4 -4
  258. data/docs/Fox/FXTranslator.html +3 -3
  259. data/docs/Fox/FXTreeItem.html +19 -19
  260. data/docs/Fox/FXTreeList.html +40 -40
  261. data/docs/Fox/FXTreeListBox.html +27 -27
  262. data/docs/Fox/FXTriStateButton.html +9 -9
  263. data/docs/Fox/FXUndoList.html +8 -8
  264. data/docs/Fox/FXVec2d.html +7 -7
  265. data/docs/Fox/FXVec2f.html +7 -7
  266. data/docs/Fox/FXVec3d.html +7 -7
  267. data/docs/Fox/FXVec3f.html +7 -7
  268. data/docs/Fox/FXVec4d.html +7 -7
  269. data/docs/Fox/FXVec4f.html +7 -7
  270. data/docs/Fox/FXVerticalFrame.html +4 -4
  271. data/docs/Fox/FXVerticalSeparator.html +3 -3
  272. data/docs/Fox/FXViewport.html +3 -3
  273. data/docs/Fox/FXVisual.html +3 -3
  274. data/docs/Fox/FXWindow.html +36 -36
  275. data/docs/Fox/FXWizard.html +3 -3
  276. data/docs/Fox/FXXBMIcon.html +3 -3
  277. data/docs/Fox/FXXBMImage.html +3 -3
  278. data/docs/Fox/FXXPMIcon.html +3 -3
  279. data/docs/Fox/FXXPMImage.html +3 -3
  280. data/docs/Fox/NotifyHeader.html +3 -3
  281. data/docs/Fox/SCNotification.html +3 -3
  282. data/docs/Fox/TextRange.html +3 -3
  283. data/docs/Fox.html +7 -7
  284. data/docs/IRB.html +3 -3
  285. data/docs/Responder.html +4 -4
  286. data/docs/Responder2.html +3 -3
  287. data/docs/_index.html +3 -3
  288. data/docs/css/style.css +1 -0
  289. data/docs/file.History.html +75 -52
  290. data/docs/file.README.html +7 -7
  291. data/docs/index.html +487 -501
  292. data/docs/top-level-namespace.html +3 -3
  293. data/examples/gltest.rb +104 -105
  294. data/examples/glviewer.rb +3 -3
  295. data/ext/fox16_c/core_wrap.cpp +1 -1
  296. data/ext/fox16_c/dc_wrap.cpp +1 -1
  297. data/ext/fox16_c/dialogs_wrap.cpp +1 -1
  298. data/ext/fox16_c/extconf.rb +13 -13
  299. data/ext/fox16_c/frames_wrap.cpp +1 -1
  300. data/ext/fox16_c/fx3d_wrap.cpp +1 -1
  301. data/ext/fox16_c/iconlist_wrap.cpp +1 -1
  302. data/ext/fox16_c/icons_wrap.cpp +1 -1
  303. data/ext/fox16_c/image_wrap.cpp +1 -1
  304. data/ext/fox16_c/label_wrap.cpp +1 -1
  305. data/ext/fox16_c/layout_wrap.cpp +1 -1
  306. data/ext/fox16_c/list_wrap.cpp +1 -1
  307. data/ext/fox16_c/mdi_wrap.cpp +1 -1
  308. data/ext/fox16_c/menu_wrap.cpp +1 -1
  309. data/ext/fox16_c/scintilla_wrap.cpp +1 -1
  310. data/ext/fox16_c/swigruby.h +1 -1
  311. data/ext/fox16_c/table_wrap.cpp +1 -1
  312. data/ext/fox16_c/text_wrap.cpp +1 -1
  313. data/ext/fox16_c/treelist_wrap.cpp +1 -1
  314. data/ext/fox16_c/ui_wrap.cpp +1 -1
  315. data/fxruby.gemspec +9 -1
  316. data/lib/2.6/fox16_c.so +0 -0
  317. data/lib/2.7/fox16_c.so +0 -0
  318. data/lib/3.0/fox16_c.so +0 -0
  319. data/lib/3.1/fox16_c.so +0 -0
  320. data/lib/3.2/fox16_c.so +0 -0
  321. data/lib/3.3/fox16_c.so +0 -0
  322. data/lib/fox16/glgroup.rb +3 -4
  323. data/lib/fox16/glshapes.rb +85 -100
  324. data/lib/fox16/kwargs.rb +891 -891
  325. data/lib/fox16/version.rb +1 -1
  326. data/ports/x86-mingw32/bin/libFOX-1.6-0.dll +0 -0
  327. data/ports/x86-mingw32/bin/libfxscintilla-20.dll +0 -0
  328. data/ports/x86-mingw32/bin/libjpeg-62.dll +0 -0
  329. data/ports/x86-mingw32/bin/libpng16-16.dll +0 -0
  330. data/ports/x86-mingw32/bin/libtiff-6.dll +0 -0
  331. data/ports/x86-mingw32/bin/zlib1.dll +0 -0
  332. data/scripts/iface.rb +8 -12
  333. data/test/TC_FXDCPrint.rb +1 -1
  334. metadata +254 -17
  335. data/lib/2.4/fox16_c.so +0 -0
  336. data/lib/2.5/fox16_c.so +0 -0
  337. data/ports/x86-mingw32/bin/libtiff-5.dll +0 -0
  338. data/rdoc-sources/Makefile +0 -23
@@ -204,9 +204,9 @@
204
204
  </div>
205
205
 
206
206
  <div id="footer">
207
- Generated on Fri Nov 27 21:10:33 2020 by
208
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
209
- 0.9.24 (ruby-2.7.2).
207
+ Generated on Sun May 14 21:55:15 2023 by
208
+ <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
209
+ 0.9.34 (ruby-3.2.0).
210
210
  </div>
211
211
 
212
212
  </div>
data/examples/gltest.rb CHANGED
@@ -6,8 +6,8 @@ begin
6
6
  rescue LoadError
7
7
  require 'fox16/missingdep'
8
8
  MSG = <<EOM
9
- Sorry, this example depends on the opengl-bindings gems. Please execute:
10
- gem install opengl-bindings
9
+ Sorry, this example depends on the opengl-bindings2 gems. Please execute:
10
+ gem install opengl-bindings2
11
11
  EOM
12
12
  missingDependency(MSG)
13
13
  end
@@ -16,67 +16,66 @@ end
16
16
 
17
17
  class GLTestWindow < Fox::FXMainWindow
18
18
  include Fox
19
- include OpenGL
20
19
 
21
20
  # How often our timer will fire (in milliseconds)
22
21
  TIMER_INTERVAL = 100
23
22
 
24
23
  # Draws a simple box using the given corners
25
24
  def drawBox(xmin, ymin, zmin, xmax, ymax, zmax)
26
- glBegin(GL_TRIANGLE_STRIP)
27
- glNormal3d(0.0, 0.0, -1.0)
28
- glVertex3d(xmin, ymin, zmin)
29
- glVertex3d(xmin, ymax, zmin)
30
- glVertex3d(xmax, ymin, zmin)
31
- glVertex3d(xmax, ymax, zmin)
32
- glEnd()
33
-
34
- glBegin(GL_TRIANGLE_STRIP)
35
- glNormal3d(1.0, 0.0, 0.0)
36
- glVertex3d(xmax, ymin, zmin)
37
- glVertex3d(xmax, ymax, zmin)
38
- glVertex3d(xmax, ymin, zmax)
39
- glVertex3d(xmax, ymax, zmax)
40
- glEnd()
41
-
42
- glBegin(GL_TRIANGLE_STRIP)
43
- glNormal3d(0.0, 0.0, 1.0)
44
- glVertex3d(xmax, ymin, zmax)
45
- glVertex3d(xmax, ymax, zmax)
46
- glVertex3d(xmin, ymin, zmax)
47
- glVertex3d(xmin, ymax, zmax)
48
- glEnd()
49
-
50
- glBegin(GL_TRIANGLE_STRIP)
51
- glNormal3d(-1.0, 0.0, 0.0)
52
- glVertex3d(xmin, ymin, zmax)
53
- glVertex3d(xmin, ymax, zmax)
54
- glVertex3d(xmin, ymin, zmin)
55
- glVertex3d(xmin, ymax, zmin)
56
- glEnd()
57
-
58
- glBegin(GL_TRIANGLE_STRIP)
59
- glNormal3d(0.0, 1.0, 0.0)
60
- glVertex3d(xmin, ymax, zmin)
61
- glVertex3d(xmin, ymax, zmax)
62
- glVertex3d(xmax, ymax, zmin)
63
- glVertex3d(xmax, ymax, zmax)
64
- glEnd()
65
-
66
- glBegin(GL_TRIANGLE_STRIP)
67
- glNormal3d(0.0, -1.0, 0.0)
68
- glVertex3d(xmax, ymin, zmax)
69
- glVertex3d(xmax, ymin, zmin)
70
- glVertex3d(xmin, ymin, zmax)
71
- glVertex3d(xmin, ymin, zmin)
72
- glEnd()
25
+ GL.Begin(GL::TRIANGLE_STRIP)
26
+ GL.Normal3d(0.0, 0.0, -1.0)
27
+ GL.Vertex3d(xmin, ymin, zmin)
28
+ GL.Vertex3d(xmin, ymax, zmin)
29
+ GL.Vertex3d(xmax, ymin, zmin)
30
+ GL.Vertex3d(xmax, ymax, zmin)
31
+ GL.End()
32
+
33
+ GL.Begin(GL::TRIANGLE_STRIP)
34
+ GL.Normal3d(1.0, 0.0, 0.0)
35
+ GL.Vertex3d(xmax, ymin, zmin)
36
+ GL.Vertex3d(xmax, ymax, zmin)
37
+ GL.Vertex3d(xmax, ymin, zmax)
38
+ GL.Vertex3d(xmax, ymax, zmax)
39
+ GL.End()
40
+
41
+ GL.Begin(GL::TRIANGLE_STRIP)
42
+ GL.Normal3d(0.0, 0.0, 1.0)
43
+ GL.Vertex3d(xmax, ymin, zmax)
44
+ GL.Vertex3d(xmax, ymax, zmax)
45
+ GL.Vertex3d(xmin, ymin, zmax)
46
+ GL.Vertex3d(xmin, ymax, zmax)
47
+ GL.End()
48
+
49
+ GL.Begin(GL::TRIANGLE_STRIP)
50
+ GL.Normal3d(-1.0, 0.0, 0.0)
51
+ GL.Vertex3d(xmin, ymin, zmax)
52
+ GL.Vertex3d(xmin, ymax, zmax)
53
+ GL.Vertex3d(xmin, ymin, zmin)
54
+ GL.Vertex3d(xmin, ymax, zmin)
55
+ GL.End()
56
+
57
+ GL.Begin(GL::TRIANGLE_STRIP)
58
+ GL.Normal3d(0.0, 1.0, 0.0)
59
+ GL.Vertex3d(xmin, ymax, zmin)
60
+ GL.Vertex3d(xmin, ymax, zmax)
61
+ GL.Vertex3d(xmax, ymax, zmin)
62
+ GL.Vertex3d(xmax, ymax, zmax)
63
+ GL.End()
64
+
65
+ GL.Begin(GL::TRIANGLE_STRIP)
66
+ GL.Normal3d(0.0, -1.0, 0.0)
67
+ GL.Vertex3d(xmax, ymin, zmax)
68
+ GL.Vertex3d(xmax, ymin, zmin)
69
+ GL.Vertex3d(xmin, ymin, zmax)
70
+ GL.Vertex3d(xmin, ymin, zmin)
71
+ GL.End()
73
72
  end
74
73
 
75
74
  def gluPerspective(fovY, aspect, zNear, zFar )
76
75
  fH = Math.tan( fovY / 360 * Math::PI ) * zNear;
77
76
  fW = fH * aspect;
78
77
 
79
- glFrustum( -fW, fW, -fH, fH, zNear, zFar );
78
+ GL.Frustum( -fW, fW, -fH, fH, zNear, zFar );
80
79
  end
81
80
 
82
81
  # Define our own version of gluLookAt() to avoid dependency to deprecated GLU library
@@ -122,8 +121,8 @@ class GLTestWindow < Fox::FXMainWindow
122
121
  x2,y2,z2,0,
123
122
  0, 0, 0,1,
124
123
  ].pack("d*")
125
- glMultMatrixd m4x4
126
- glTranslated -ex,-ey,-ez
124
+ GL.MultMatrixd m4x4
125
+ GL.Translated -ex,-ey,-ez
127
126
  end
128
127
 
129
128
  # Draw the GL scene
@@ -141,80 +140,80 @@ class GLTestWindow < Fox::FXMainWindow
141
140
  # Make context current
142
141
  @glcanvas.makeCurrent()
143
142
 
144
- glViewport(0, 0, @glcanvas.width, @glcanvas.height)
143
+ GL.Viewport(0, 0, @glcanvas.width, @glcanvas.height)
145
144
 
146
- glClearColor(1.0, 1.0, 1.0, 1.0)
147
- glClear(GL_COLOR_BUFFER_BIT|GL_DEPTH_BUFFER_BIT)
148
- glEnable(GL_DEPTH_TEST)
145
+ GL.ClearColor(1.0, 1.0, 1.0, 1.0)
146
+ GL.Clear(GL::COLOR_BUFFER_BIT|GL::DEPTH_BUFFER_BIT)
147
+ GL.Enable(GL::DEPTH_TEST)
149
148
 
150
- glDisable(GL_DITHER)
149
+ GL.Disable(GL::DITHER)
151
150
 
152
- glMatrixMode(GL_PROJECTION)
153
- glLoadIdentity()
151
+ GL.MatrixMode(GL::PROJECTION)
152
+ GL.LoadIdentity()
154
153
  gluPerspective(30.0, aspect, 1.0, 100.0)
155
154
 
156
- glMatrixMode(GL_MODELVIEW)
157
- glLoadIdentity()
155
+ GL.MatrixMode(GL::MODELVIEW)
156
+ GL.LoadIdentity()
158
157
  gluLookAt(5.0, 10.0, 15.0, 0.0, 0.0, 0.0, 0.0, 1.0, 0.0)
159
158
 
160
- glShadeModel(GL_SMOOTH)
161
- glLightfv(GL_LIGHT0, GL_POSITION, lightPosition.pack("f*"))
162
- glLightfv(GL_LIGHT0, GL_AMBIENT, lightAmbient.pack("f*"))
163
- glLightfv(GL_LIGHT0, GL_DIFFUSE, lightDiffuse.pack("f*"))
164
- glEnable(GL_LIGHT0)
165
- glEnable(GL_LIGHTING)
159
+ GL.ShadeModel(GL::SMOOTH)
160
+ GL.Lightfv(GL::LIGHT0, GL::POSITION, lightPosition.pack("f*"))
161
+ GL.Lightfv(GL::LIGHT0, GL::AMBIENT, lightAmbient.pack("f*"))
162
+ GL.Lightfv(GL::LIGHT0, GL::DIFFUSE, lightDiffuse.pack("f*"))
163
+ GL.Enable(GL::LIGHT0)
164
+ GL.Enable(GL::LIGHTING)
166
165
 
167
- glMaterialfv(GL_FRONT, GL_AMBIENT, blueMaterial.pack("f*"))
168
- glMaterialfv(GL_FRONT, GL_DIFFUSE, blueMaterial.pack("f*"))
166
+ GL.Materialfv(GL::FRONT, GL::AMBIENT, blueMaterial.pack("f*"))
167
+ GL.Materialfv(GL::FRONT, GL::DIFFUSE, blueMaterial.pack("f*"))
169
168
 
170
- glPushMatrix()
171
- glRotated(@angle, 0.0, 1.0, 0.0)
169
+ GL.PushMatrix()
170
+ GL.Rotated(@angle, 0.0, 1.0, 0.0)
172
171
  drawBox(-1, -1, -1, 1, 1, 1)
173
172
 
174
- glMaterialfv(GL_FRONT, GL_AMBIENT, redMaterial.pack("f*"))
175
- glMaterialfv(GL_FRONT, GL_DIFFUSE, redMaterial.pack("f*"))
173
+ GL.Materialfv(GL::FRONT, GL::AMBIENT, redMaterial.pack("f*"))
174
+ GL.Materialfv(GL::FRONT, GL::DIFFUSE, redMaterial.pack("f*"))
176
175
 
177
- glPushMatrix()
178
- glTranslated(0.0, 1.75, 0.0)
179
- glRotated(@angle, 0.0, 1.0, 0.0)
176
+ GL.PushMatrix()
177
+ GL.Translated(0.0, 1.75, 0.0)
178
+ GL.Rotated(@angle, 0.0, 1.0, 0.0)
180
179
  drawBox(-0.5, -0.5, -0.5, 0.5, 0.5, 0.5)
181
- glPopMatrix()
180
+ GL.PopMatrix()
182
181
 
183
- glPushMatrix()
184
- glTranslated(0.0, -1.75, 0.0)
185
- glRotated(@angle, 0.0, 1.0, 0.0)
182
+ GL.PushMatrix()
183
+ GL.Translated(0.0, -1.75, 0.0)
184
+ GL.Rotated(@angle, 0.0, 1.0, 0.0)
186
185
  drawBox(-0.5, -0.5, -0.5, 0.5, 0.5, 0.5)
187
- glPopMatrix()
186
+ GL.PopMatrix()
188
187
 
189
- glPushMatrix()
190
- glRotated(90.0, 1.0, 0.0, 0.0)
191
- glTranslated(0.0, 1.75, 0.0)
192
- glRotated(@angle, 0.0, 1.0, 0.0)
188
+ GL.PushMatrix()
189
+ GL.Rotated(90.0, 1.0, 0.0, 0.0)
190
+ GL.Translated(0.0, 1.75, 0.0)
191
+ GL.Rotated(@angle, 0.0, 1.0, 0.0)
193
192
  drawBox(-0.5,-0.5,-0.5,0.5,0.5,0.5)
194
- glPopMatrix()
193
+ GL.PopMatrix()
195
194
 
196
- glPushMatrix()
197
- glRotated(90.0, -1.0, 0.0, 0.0)
198
- glTranslated(0.0,1.75,0.0)
199
- glRotated(@angle, 0.0, 1.0, 0.0)
195
+ GL.PushMatrix()
196
+ GL.Rotated(90.0, -1.0, 0.0, 0.0)
197
+ GL.Translated(0.0,1.75,0.0)
198
+ GL.Rotated(@angle, 0.0, 1.0, 0.0)
200
199
  drawBox(-0.5,-0.5,-0.5,0.5,0.5,0.5)
201
- glPopMatrix()
200
+ GL.PopMatrix()
202
201
 
203
- glPushMatrix()
204
- glRotated(90.0, 0.0, 0.0, 1.0)
205
- glTranslated(0.0,1.75,0.0)
206
- glRotated(@angle, 0.0, 1.0, 0.0)
202
+ GL.PushMatrix()
203
+ GL.Rotated(90.0, 0.0, 0.0, 1.0)
204
+ GL.Translated(0.0,1.75,0.0)
205
+ GL.Rotated(@angle, 0.0, 1.0, 0.0)
207
206
  drawBox(-0.5,-0.5,-0.5,0.5,0.5,0.5)
208
- glPopMatrix()
207
+ GL.PopMatrix()
209
208
 
210
- glPushMatrix()
211
- glRotated(90.0, 0.0, 0.0, -1.0)
212
- glTranslated(0.0,1.75,0.0)
213
- glRotated(@angle, 0.0, 1.0, 0.0)
209
+ GL.PushMatrix()
210
+ GL.Rotated(90.0, 0.0, 0.0, -1.0)
211
+ GL.Translated(0.0,1.75,0.0)
212
+ GL.Rotated(@angle, 0.0, 1.0, 0.0)
214
213
  drawBox(-0.5,-0.5,-0.5,0.5,0.5,0.5)
215
- glPopMatrix()
214
+ GL.PopMatrix()
216
215
 
217
- glPopMatrix()
216
+ GL.PopMatrix()
218
217
 
219
218
  # Swap if it is double-buffered
220
219
  if @glvisual.isDoubleBuffer
@@ -229,7 +228,7 @@ class GLTestWindow < Fox::FXMainWindow
229
228
  # Invoke the base class initializer
230
229
  super(app, "OpenGL Test Application", :opts => DECOR_ALL, :width => 800, :height => 600)
231
230
 
232
- OpenGL.load_lib
231
+ GL.load_lib
233
232
 
234
233
  # Construct the main window elements
235
234
  frame = FXHorizontalFrame.new(self, LAYOUT_SIDE_TOP|LAYOUT_FILL_X|LAYOUT_FILL_Y)
@@ -263,7 +262,7 @@ class GLTestWindow < Fox::FXMainWindow
263
262
  @glcanvas.connect(SEL_PAINT) { drawScene }
264
263
  @glcanvas.connect(SEL_CONFIGURE) do
265
264
  if @glcanvas.makeCurrent
266
- glViewport(0, 0, @glcanvas.width, @glcanvas.height)
265
+ GL.Viewport(0, 0, @glcanvas.width, @glcanvas.height)
267
266
  @glcanvas.makeNonCurrent
268
267
  end
269
268
  end
data/examples/glviewer.rb CHANGED
@@ -7,8 +7,8 @@ begin
7
7
  rescue LoadError
8
8
  require 'fox16/missingdep'
9
9
  MSG = <<EOM
10
- Sorry, this example depends on the opengl-bindings gems. Please execute:
11
- gem install opengl-bindings
10
+ Sorry, this example depends on the opengl-bindings2 gems. Please execute:
11
+ gem install opengl-bindings2
12
12
  EOM
13
13
  missingDependency(MSG)
14
14
  end
@@ -161,7 +161,7 @@ class GLViewWindow < Fox::FXMainWindow
161
161
  # Initialize base class first
162
162
  super(app, "OpenGL Example Application", :opts => DECOR_ALL, :width => 800, :height => 600)
163
163
 
164
- OpenGL.load_lib
164
+ GL.load_lib
165
165
  GLU.load_lib
166
166
 
167
167
  # Define message identifiers for this class
@@ -1802,7 +1802,7 @@ SWIGRUNTIME void
1802
1802
  SWIG_Ruby_SetModule(swig_module_info *pointer)
1803
1803
  {
1804
1804
  /* register a new class */
1805
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1805
+ VALUE cl = rb_define_class("SWIG_RUNTIME_DATA", rb_cObject);rb_undef_alloc_func(cl);
1806
1806
  /* create and store the structure pointer to a global variable */
1807
1807
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1808
1808
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -1802,7 +1802,7 @@ SWIGRUNTIME void
1802
1802
  SWIG_Ruby_SetModule(swig_module_info *pointer)
1803
1803
  {
1804
1804
  /* register a new class */
1805
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1805
+ VALUE cl = rb_define_class("SWIG_RUNTIME_DATA", rb_cObject);rb_undef_alloc_func(cl);
1806
1806
  /* create and store the structure pointer to a global variable */
1807
1807
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1808
1808
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -1802,7 +1802,7 @@ SWIGRUNTIME void
1802
1802
  SWIG_Ruby_SetModule(swig_module_info *pointer)
1803
1803
  {
1804
1804
  /* register a new class */
1805
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1805
+ VALUE cl = rb_define_class("SWIG_RUNTIME_DATA", rb_cObject);rb_undef_alloc_func(cl);
1806
1806
  /* create and store the structure pointer to a global variable */
1807
1807
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1808
1808
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -20,19 +20,20 @@ def fxscintilla_support_suppressed?
20
20
  !with_config("fxscintilla", true)
21
21
  end
22
22
 
23
- LIBZ_VERSION = ENV['LIBZ_VERSION'] || '1.2.11'
23
+ LIBZ_VERSION = ENV['LIBZ_VERSION'] || '1.3.1'
24
24
  LIBZ_SOURCE_URI = "http://zlib.net/fossils/zlib-#{LIBZ_VERSION}.tar.gz"
25
25
 
26
- LIBPNG_VERSION = ENV['LIBPNG_VERSION'] || '1.6.37'
27
- LIBPNG_SOURCE_URI = "http://prdownloads.sourceforge.net/libpng/libpng-#{LIBPNG_VERSION}.tar.gz"
26
+ LIBPNG_VERSION = ENV['LIBPNG_VERSION'] || '1.6.42'
27
+ # LIBPNG_SOURCE_URI = "http://prdownloads.sourceforge.net/libpng/libpng-#{LIBPNG_VERSION}.tar.gz"
28
+ LIBPNG_SOURCE_URI = "https://netcologne.dl.sourceforge.net/project/libpng/libpng16/#{LIBPNG_VERSION}/libpng-#{LIBPNG_VERSION}.tar.xz"
28
29
 
29
30
  # LIBJPEG_VERSION = ENV['LIBJPEG_VERSION'] || '9b'
30
31
  # LIBJPEG_SOURCE_URI = "http://www.ijg.org/files/jpegsrc.v#{LIBJPEG_VERSION}.tar.gz"
31
32
 
32
- LIBJPEG_VERSION = ENV['LIBJPEG_VERSION'] || '2.1.2'
33
- LIBJPEG_SOURCE_URI = "https://downloads.sourceforge.net/libjpeg-turbo/libjpeg-turbo-#{LIBJPEG_VERSION}.tar.gz"
33
+ LIBJPEG_VERSION = ENV['LIBJPEG_VERSION'] || '3.0.2'
34
+ LIBJPEG_SOURCE_URI = "https://github.com/libjpeg-turbo/libjpeg-turbo/releases/download/#{LIBJPEG_VERSION}/libjpeg-turbo-#{LIBJPEG_VERSION}.tar.gz"
34
35
 
35
- LIBTIFF_VERSION = ENV['LIBTIFF_VERSION'] || '4.3.0'
36
+ LIBTIFF_VERSION = ENV['LIBTIFF_VERSION'] || '4.6.0'
36
37
  LIBTIFF_SOURCE_URI = "http://download.osgeo.org/libtiff/tiff-#{LIBTIFF_VERSION}.tar.gz"
37
38
 
38
39
  LIBFOX_VERSION = ENV['LIBFOX_VERSION'] || '1.6.57'
@@ -49,7 +50,7 @@ module BuildRecipeCommons
49
50
  self.files = files
50
51
  rootdir = File.expand_path('../../..', __FILE__)
51
52
  self.target = File.join(rootdir, "ports")
52
- self.host = RbConfig::CONFIG["host"]
53
+ self.host = RbConfig::CONFIG["CC"].match(/(.*)-/)[1]
53
54
  self.patch_files = Dir[File.join(rootdir, "patches", self.name, self.version, "*.diff")].sort
54
55
  end
55
56
 
@@ -190,12 +191,11 @@ def do_rake_compiler_setup
190
191
  "#{ENV['MAKE'] || "make"}"
191
192
  end
192
193
 
193
- def configure
194
- # This can be uncommented when fxscintilla is used from the source repository.
195
- #execute "bootstrap", "./bootstrap.sh"
196
- execute "rm custom pkg-config", "sudo rm -f /usr/bin/x86_64-w64-mingw32-pkg-config"
197
- super
198
- end
194
+ # # This can be uncommented when fxscintilla is used from the source repository.
195
+ # def configure
196
+ # execute "bootstrap", "./bootstrap.sh"
197
+ # super
198
+ # end
199
199
 
200
200
  def compile
201
201
  execute "compile_lexers", "cd lexers && #{mk}"
@@ -1802,7 +1802,7 @@ SWIGRUNTIME void
1802
1802
  SWIG_Ruby_SetModule(swig_module_info *pointer)
1803
1803
  {
1804
1804
  /* register a new class */
1805
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1805
+ VALUE cl = rb_define_class("SWIG_RUNTIME_DATA", rb_cObject);rb_undef_alloc_func(cl);
1806
1806
  /* create and store the structure pointer to a global variable */
1807
1807
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1808
1808
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -1802,7 +1802,7 @@ SWIGRUNTIME void
1802
1802
  SWIG_Ruby_SetModule(swig_module_info *pointer)
1803
1803
  {
1804
1804
  /* register a new class */
1805
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1805
+ VALUE cl = rb_define_class("SWIG_RUNTIME_DATA", rb_cObject);rb_undef_alloc_func(cl);
1806
1806
  /* create and store the structure pointer to a global variable */
1807
1807
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1808
1808
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -1802,7 +1802,7 @@ SWIGRUNTIME void
1802
1802
  SWIG_Ruby_SetModule(swig_module_info *pointer)
1803
1803
  {
1804
1804
  /* register a new class */
1805
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1805
+ VALUE cl = rb_define_class("SWIG_RUNTIME_DATA", rb_cObject);rb_undef_alloc_func(cl);
1806
1806
  /* create and store the structure pointer to a global variable */
1807
1807
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1808
1808
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -1802,7 +1802,7 @@ SWIGRUNTIME void
1802
1802
  SWIG_Ruby_SetModule(swig_module_info *pointer)
1803
1803
  {
1804
1804
  /* register a new class */
1805
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1805
+ VALUE cl = rb_define_class("SWIG_RUNTIME_DATA", rb_cObject);rb_undef_alloc_func(cl);
1806
1806
  /* create and store the structure pointer to a global variable */
1807
1807
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1808
1808
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -1802,7 +1802,7 @@ SWIGRUNTIME void
1802
1802
  SWIG_Ruby_SetModule(swig_module_info *pointer)
1803
1803
  {
1804
1804
  /* register a new class */
1805
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1805
+ VALUE cl = rb_define_class("SWIG_RUNTIME_DATA", rb_cObject);rb_undef_alloc_func(cl);
1806
1806
  /* create and store the structure pointer to a global variable */
1807
1807
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1808
1808
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -1802,7 +1802,7 @@ SWIGRUNTIME void
1802
1802
  SWIG_Ruby_SetModule(swig_module_info *pointer)
1803
1803
  {
1804
1804
  /* register a new class */
1805
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1805
+ VALUE cl = rb_define_class("SWIG_RUNTIME_DATA", rb_cObject);rb_undef_alloc_func(cl);
1806
1806
  /* create and store the structure pointer to a global variable */
1807
1807
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1808
1808
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -1802,7 +1802,7 @@ SWIGRUNTIME void
1802
1802
  SWIG_Ruby_SetModule(swig_module_info *pointer)
1803
1803
  {
1804
1804
  /* register a new class */
1805
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1805
+ VALUE cl = rb_define_class("SWIG_RUNTIME_DATA", rb_cObject);rb_undef_alloc_func(cl);
1806
1806
  /* create and store the structure pointer to a global variable */
1807
1807
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1808
1808
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -1802,7 +1802,7 @@ SWIGRUNTIME void
1802
1802
  SWIG_Ruby_SetModule(swig_module_info *pointer)
1803
1803
  {
1804
1804
  /* register a new class */
1805
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1805
+ VALUE cl = rb_define_class("SWIG_RUNTIME_DATA", rb_cObject);rb_undef_alloc_func(cl);
1806
1806
  /* create and store the structure pointer to a global variable */
1807
1807
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1808
1808
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -1802,7 +1802,7 @@ SWIGRUNTIME void
1802
1802
  SWIG_Ruby_SetModule(swig_module_info *pointer)
1803
1803
  {
1804
1804
  /* register a new class */
1805
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1805
+ VALUE cl = rb_define_class("SWIG_RUNTIME_DATA", rb_cObject);rb_undef_alloc_func(cl);
1806
1806
  /* create and store the structure pointer to a global variable */
1807
1807
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1808
1808
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -1802,7 +1802,7 @@ SWIGRUNTIME void
1802
1802
  SWIG_Ruby_SetModule(swig_module_info *pointer)
1803
1803
  {
1804
1804
  /* register a new class */
1805
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1805
+ VALUE cl = rb_define_class("SWIG_RUNTIME_DATA", rb_cObject);rb_undef_alloc_func(cl);
1806
1806
  /* create and store the structure pointer to a global variable */
1807
1807
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1808
1808
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -1803,7 +1803,7 @@ SWIGRUNTIME void
1803
1803
  SWIG_Ruby_SetModule(swig_module_info *pointer)
1804
1804
  {
1805
1805
  /* register a new class */
1806
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1806
+ VALUE cl = rb_define_class("SWIG_RUNTIME_DATA", rb_cObject);rb_undef_alloc_func(cl);
1807
1807
  /* create and store the structure pointer to a global variable */
1808
1808
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1809
1809
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -1641,7 +1641,7 @@ SWIGRUNTIME void
1641
1641
  SWIG_Ruby_SetModule(swig_module_info *pointer)
1642
1642
  {
1643
1643
  /* register a new class */
1644
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1644
+ VALUE cl = rb_define_class("SWIG_RUNTIME_DATA", rb_cObject);rb_undef_alloc_func(cl);
1645
1645
  /* create and store the structure pointer to a global variable */
1646
1646
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1647
1647
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -1802,7 +1802,7 @@ SWIGRUNTIME void
1802
1802
  SWIG_Ruby_SetModule(swig_module_info *pointer)
1803
1803
  {
1804
1804
  /* register a new class */
1805
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1805
+ VALUE cl = rb_define_class("SWIG_RUNTIME_DATA", rb_cObject);rb_undef_alloc_func(cl);
1806
1806
  /* create and store the structure pointer to a global variable */
1807
1807
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1808
1808
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -1802,7 +1802,7 @@ SWIGRUNTIME void
1802
1802
  SWIG_Ruby_SetModule(swig_module_info *pointer)
1803
1803
  {
1804
1804
  /* register a new class */
1805
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1805
+ VALUE cl = rb_define_class("SWIG_RUNTIME_DATA", rb_cObject);rb_undef_alloc_func(cl);
1806
1806
  /* create and store the structure pointer to a global variable */
1807
1807
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1808
1808
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -1802,7 +1802,7 @@ SWIGRUNTIME void
1802
1802
  SWIG_Ruby_SetModule(swig_module_info *pointer)
1803
1803
  {
1804
1804
  /* register a new class */
1805
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1805
+ VALUE cl = rb_define_class("SWIG_RUNTIME_DATA", rb_cObject);rb_undef_alloc_func(cl);
1806
1806
  /* create and store the structure pointer to a global variable */
1807
1807
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1808
1808
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
@@ -1802,7 +1802,7 @@ SWIGRUNTIME void
1802
1802
  SWIG_Ruby_SetModule(swig_module_info *pointer)
1803
1803
  {
1804
1804
  /* register a new class */
1805
- VALUE cl = rb_define_class("swig_runtime_data", rb_cObject);
1805
+ VALUE cl = rb_define_class("SWIG_RUNTIME_DATA", rb_cObject);rb_undef_alloc_func(cl);
1806
1806
  /* create and store the structure pointer to a global variable */
1807
1807
  swig_runtime_data_type_pointer = Data_Wrap_Struct(cl, 0, 0, pointer);
1808
1808
  rb_define_readonly_variable("$swig_runtime_data_type_pointer" SWIG_RUNTIME_VERSION SWIG_TYPE_TABLE_NAME, &swig_runtime_data_type_pointer);
data/fxruby.gemspec CHANGED
@@ -33,6 +33,8 @@ Gem::Specification.new do |spec|
33
33
  spec.summary = %q{FXRuby is the Ruby binding to the FOX GUI toolkit.}
34
34
  spec.homepage = "https://github.com/larskanis/fxruby"
35
35
  spec.license = 'LGPL-2.1'
36
+ spec.metadata["changelog_uri"] = "https://github.com/larskanis/fxruby/blob/1.6/History.md"
37
+ spec.metadata["documentation_uri"] = "https://rubydoc.info/gems/fxruby/frames"
36
38
 
37
39
  spec.files = `git ls-files -z`.split("\x0").reject do |f|
38
40
  f=~/^fox-includes|^web/
@@ -48,7 +50,13 @@ Gem::Specification.new do |spec|
48
50
  spec.require_paths = ["lib"]
49
51
  spec.extensions = ["ext/fox16_c/extconf.rb"]
50
52
  spec.metadata['msys2_mingw_dependencies'] = 'fox'
51
- spec.required_ruby_version = [">= 2.3", "< 4"]
53
+ spec.required_ruby_version = [">= 2.6", "< 4"]
52
54
 
53
55
  spec.add_runtime_dependency 'mini_portile2', '~> 2.1'
56
+
57
+ yardopts = File.read(".yardopts")
58
+ spec.rdoc_options = ["--main", "README.md",
59
+ "--title", "FXRuby API Documentation"]
60
+ docfiles = yardopts.lines.map(&:strip).select{|r| r=~/^[^-]/ }
61
+ spec.extra_rdoc_files = `git ls-files -z #{docfiles.join(" ")}`.split("\x0")
54
62
  end
data/lib/2.6/fox16_c.so CHANGED
Binary file
data/lib/2.7/fox16_c.so CHANGED
Binary file
data/lib/3.0/fox16_c.so CHANGED
Binary file
data/lib/3.1/fox16_c.so CHANGED
Binary file
Binary file
Binary file
data/lib/fox16/glgroup.rb CHANGED
@@ -9,7 +9,6 @@ module Fox
9
9
  # A group of OpenGL objects
10
10
  #
11
11
  class FXGLGroup < FXGLObject
12
- include OpenGL if defined?(OpenGL)
13
12
  include Enumerable
14
13
 
15
14
  FLT_MAX = 1.0e+20
@@ -80,12 +79,12 @@ module Fox
80
79
  #
81
80
  def hit(viewer)
82
81
  # GL.PushName(0xffffffff)
83
- glPushName(1000000)
82
+ GL.PushName(1000000)
84
83
  @list.each_with_index do |obj, i|
85
- glLoadName(i)
84
+ GL.LoadName(i)
86
85
  obj.hit(viewer)
87
86
  end
88
- glPopName
87
+ GL.PopName
89
88
  end
90
89
 
91
90
  #