fxruby 1.6.45-x64-mingw-ucrt → 1.6.47-x64-mingw-ucrt
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/binary.yml +89 -0
- data/.github/workflows/ci.yml +68 -0
- data/.yardopts +2 -2
- data/Gemfile +1 -1
- data/History.md +13 -0
- data/{README.rdoc → README.md} +13 -14
- data/Rakefile +22 -4
- data/appveyor.yml +5 -8
- data/doap.rdf +2 -2
- data/docs/Fox/Canvas/CanvasError.html +3 -3
- data/docs/Fox/Canvas/CircleShape.html +3 -3
- data/docs/Fox/Canvas/ImageShape.html +3 -3
- data/docs/Fox/Canvas/LineShape.html +3 -3
- data/docs/Fox/Canvas/PolygonShape.html +3 -3
- data/docs/Fox/Canvas/RectangleShape.html +3 -3
- data/docs/Fox/Canvas/SelectionPolicy.html +3 -3
- data/docs/Fox/Canvas/Shape.html +5 -5
- data/docs/Fox/Canvas/ShapeCanvas.html +6 -6
- data/docs/Fox/Canvas/ShapeGroup.html +3 -3
- data/docs/Fox/Canvas/SingleSelectionPolicy.html +3 -3
- data/docs/Fox/Canvas/TextShape.html +3 -3
- data/docs/Fox/Canvas.html +6 -6
- data/docs/Fox/FTNonModal.html +3 -3
- data/docs/Fox/FX4Splitter.html +3 -3
- data/docs/Fox/FX7Segment.html +3 -3
- data/docs/Fox/FXAccelTable.html +7 -7
- data/docs/Fox/FXApp.html +24 -24
- data/docs/Fox/FXArc.html +7 -7
- data/docs/Fox/FXArrowButton.html +3 -3
- data/docs/Fox/FXBMPIcon.html +3 -3
- data/docs/Fox/FXBMPImage.html +3 -3
- data/docs/Fox/FXBitmap.html +3 -3
- data/docs/Fox/FXBitmapFrame.html +3 -3
- data/docs/Fox/FXBitmapView.html +3 -3
- data/docs/Fox/FXButton.html +3 -3
- data/docs/Fox/FXCURCursor.html +3 -3
- data/docs/Fox/FXCalendar.html +3 -3
- data/docs/Fox/FXCanvas.html +3 -3
- data/docs/Fox/FXCheckButton.html +3 -3
- data/docs/Fox/FXChoiceBox.html +4 -4
- data/docs/Fox/FXColor.html +3 -3
- data/docs/Fox/FXColorBar.html +3 -3
- data/docs/Fox/FXColorDialog.html +4 -4
- data/docs/Fox/FXColorItem.html +3 -3
- data/docs/Fox/FXColorList.html +3 -3
- data/docs/Fox/FXColorRing.html +3 -3
- data/docs/Fox/FXColorSelector.html +3 -3
- data/docs/Fox/FXColorWell.html +5 -5
- data/docs/Fox/FXColorWheel.html +3 -3
- data/docs/Fox/FXComboBox.html +6 -6
- data/docs/Fox/FXComboTableItem.html +3 -3
- data/docs/Fox/FXCommand.html +4 -4
- data/docs/Fox/FXComposite.html +5 -5
- data/docs/Fox/FXCursor.html +3 -3
- data/docs/Fox/FXDC.html +9 -9
- data/docs/Fox/FXDCPrint.html +3 -3
- data/docs/Fox/FXDCWindow.html +3 -3
- data/docs/Fox/FXDataTarget.html +10 -10
- data/docs/Fox/FXDebugTarget.html +3 -3
- data/docs/Fox/FXDelegator.html +3 -3
- data/docs/Fox/FXDial.html +8 -8
- data/docs/Fox/FXDialogBox.html +4 -4
- data/docs/Fox/FXDict.html +3 -3
- data/docs/Fox/FXDirBox.html +3 -3
- data/docs/Fox/FXDirDialog.html +5 -5
- data/docs/Fox/FXDirItem.html +3 -3
- data/docs/Fox/FXDirList.html +7 -7
- data/docs/Fox/FXDirSelector.html +5 -5
- data/docs/Fox/FXDockBar.html +6 -6
- data/docs/Fox/FXDockHandler.html +3 -3
- data/docs/Fox/FXDockSite.html +6 -6
- data/docs/Fox/FXDockTitle.html +3 -3
- data/docs/Fox/FXDocument.html +3 -3
- data/docs/Fox/FXDragCorner.html +3 -3
- data/docs/Fox/FXDrawable.html +3 -3
- data/docs/Fox/FXDriveBox.html +3 -3
- data/docs/Fox/FXEvent.html +3 -3
- data/docs/Fox/FXExtentd.html +5 -5
- data/docs/Fox/FXExtentf.html +5 -5
- data/docs/Fox/FXFileAssoc.html +3 -3
- data/docs/Fox/FXFileDialog.html +8 -8
- data/docs/Fox/FXFileDict.html +3 -3
- data/docs/Fox/FXFileItem.html +3 -3
- data/docs/Fox/FXFileList.html +7 -7
- data/docs/Fox/FXFileSelector.html +11 -11
- data/docs/Fox/FXFileStream.html +3 -3
- data/docs/Fox/FXFoldingItem.html +5 -5
- data/docs/Fox/FXFoldingList.html +38 -38
- data/docs/Fox/FXFont.html +4 -4
- data/docs/Fox/FXFontDesc.html +3 -3
- data/docs/Fox/FXFontDialog.html +3 -3
- data/docs/Fox/FXFontSelector.html +3 -3
- data/docs/Fox/FXFrame.html +3 -3
- data/docs/Fox/FXGIFCursor.html +3 -3
- data/docs/Fox/FXGIFIcon.html +3 -3
- data/docs/Fox/FXGIFImage.html +3 -3
- data/docs/Fox/FXGLCanvas.html +5 -5
- data/docs/Fox/FXGLCone.html +54 -61
- data/docs/Fox/FXGLContext.html +3 -3
- data/docs/Fox/FXGLCube.html +73 -79
- data/docs/Fox/FXGLCylinder.html +63 -70
- data/docs/Fox/FXGLGroup.html +58 -59
- data/docs/Fox/FXGLLine.html +45 -51
- data/docs/Fox/FXGLObject.html +10 -10
- data/docs/Fox/FXGLPoint.html +31 -37
- data/docs/Fox/FXGLShape.html +3 -3
- data/docs/Fox/FXGLSphere.html +39 -46
- data/docs/Fox/FXGLViewer.html +3 -3
- data/docs/Fox/FXGLVisual.html +3 -3
- data/docs/Fox/FXGradient.html +3 -3
- data/docs/Fox/FXGradientBar.html +17 -17
- data/docs/Fox/FXGroupBox.html +5 -5
- data/docs/Fox/FXHeader.html +17 -17
- data/docs/Fox/FXHeaderItem.html +15 -15
- data/docs/Fox/FXHiliteStyle.html +3 -3
- data/docs/Fox/FXHorizontalFrame.html +4 -4
- data/docs/Fox/FXHorizontalSeparator.html +3 -3
- data/docs/Fox/FXICOIcon.html +3 -3
- data/docs/Fox/FXICOImage.html +3 -3
- data/docs/Fox/FXIcon.html +3 -3
- data/docs/Fox/FXIconDict.html +3 -3
- data/docs/Fox/FXIconItem.html +5 -5
- data/docs/Fox/FXIconList.html +19 -19
- data/docs/Fox/FXIconSource.html +7 -7
- data/docs/Fox/FXId.html +3 -3
- data/docs/Fox/FXImage.html +6 -6
- data/docs/Fox/FXImageFrame.html +3 -3
- data/docs/Fox/FXImageView.html +3 -3
- data/docs/Fox/FXInputDialog.html +5 -5
- data/docs/Fox/FXIrb.html +6 -6
- data/docs/Fox/FXJPGIcon.html +3 -3
- data/docs/Fox/FXJPGImage.html +3 -3
- data/docs/Fox/FXKnob.html +7 -7
- data/docs/Fox/FXLabel.html +5 -5
- data/docs/Fox/FXLight.html +3 -3
- data/docs/Fox/FXList.html +24 -24
- data/docs/Fox/FXListBox.html +7 -7
- data/docs/Fox/FXListItem.html +5 -5
- data/docs/Fox/FXMDIChild.html +6 -6
- data/docs/Fox/FXMDIClient.html +4 -4
- data/docs/Fox/FXMDIDeleteButton.html +3 -3
- data/docs/Fox/FXMDIMaximizeButton.html +3 -3
- data/docs/Fox/FXMDIMenu.html +3 -3
- data/docs/Fox/FXMDIMinimizeButton.html +3 -3
- data/docs/Fox/FXMDIRestoreButton.html +3 -3
- data/docs/Fox/FXMDIWindowButton.html +3 -3
- data/docs/Fox/FXMainWindow.html +3 -3
- data/docs/Fox/FXMaterial.html +3 -3
- data/docs/Fox/FXMatrix.html +3 -3
- data/docs/Fox/FXMemoryBuffer.html +3 -3
- data/docs/Fox/FXMemoryStream.html +3 -3
- data/docs/Fox/FXMenuBar.html +3 -3
- data/docs/Fox/FXMenuButton.html +6 -6
- data/docs/Fox/FXMenuCaption.html +5 -5
- data/docs/Fox/FXMenuCascade.html +3 -3
- data/docs/Fox/FXMenuCheck.html +3 -3
- data/docs/Fox/FXMenuCommand.html +3 -3
- data/docs/Fox/FXMenuPane.html +3 -3
- data/docs/Fox/FXMenuRadio.html +3 -3
- data/docs/Fox/FXMenuSeparator.html +3 -3
- data/docs/Fox/FXMenuTitle.html +3 -3
- data/docs/Fox/FXMessageBox.html +5 -5
- data/docs/Fox/FXObject.html +4 -4
- data/docs/Fox/FXOption.html +3 -3
- data/docs/Fox/FXOptionMenu.html +3 -3
- data/docs/Fox/FXPCXIcon.html +3 -3
- data/docs/Fox/FXPCXImage.html +3 -3
- data/docs/Fox/FXPNGIcon.html +3 -3
- data/docs/Fox/FXPNGImage.html +3 -3
- data/docs/Fox/FXPPMIcon.html +3 -3
- data/docs/Fox/FXPPMImage.html +3 -3
- data/docs/Fox/FXPSBounds.html +3 -3
- data/docs/Fox/FXPacker.html +3 -3
- data/docs/Fox/FXPicker.html +3 -3
- data/docs/Fox/FXPopup.html +3 -3
- data/docs/Fox/FXPrintDialog.html +3 -3
- data/docs/Fox/FXPrinter.html +3 -3
- data/docs/Fox/FXProgressBar.html +3 -3
- data/docs/Fox/FXProgressDialog.html +3 -3
- data/docs/Fox/FXPseudoKeyboard.html +3 -3
- data/docs/Fox/FXPseudoMouse.html +3 -3
- data/docs/Fox/FXPseudoTarget.html +3 -3
- data/docs/Fox/FXQuatd.html +3 -3
- data/docs/Fox/FXQuatf.html +3 -3
- data/docs/Fox/FXRGBIcon.html +3 -3
- data/docs/Fox/FXRGBImage.html +3 -3
- data/docs/Fox/FXRadioButton.html +3 -3
- data/docs/Fox/FXRanged.html +3 -3
- data/docs/Fox/FXRangef.html +3 -3
- data/docs/Fox/FXRealSlider.html +3 -3
- data/docs/Fox/FXRealSpinner.html +16 -16
- data/docs/Fox/FXRecentFiles.html +3 -3
- data/docs/Fox/FXRectangle.html +11 -11
- data/docs/Fox/FXRegion.html +3 -3
- data/docs/Fox/FXRegistry.html +5 -5
- data/docs/Fox/FXReplaceDialog.html +3 -3
- data/docs/Fox/FXRootWindow.html +3 -3
- data/docs/Fox/FXRuler.html +3 -3
- data/docs/Fox/FXRulerView.html +26 -26
- data/docs/Fox/FXScintilla.html +21 -21
- data/docs/Fox/FXScrollArea.html +5 -5
- data/docs/Fox/FXScrollBar.html +3 -3
- data/docs/Fox/FXScrollCorner.html +3 -3
- data/docs/Fox/FXScrollPane.html +3 -3
- data/docs/Fox/FXScrollWindow.html +4 -4
- data/docs/Fox/FXSearchDialog.html +3 -3
- data/docs/Fox/FXSegment.html +3 -3
- data/docs/Fox/FXSeparator.html +4 -4
- data/docs/Fox/FXSettings.html +3 -3
- data/docs/Fox/FXShell.html +3 -3
- data/docs/Fox/FXShutter.html +4 -4
- data/docs/Fox/FXShutterItem.html +3 -3
- data/docs/Fox/FXSize.html +3 -3
- data/docs/Fox/FXSlider.html +3 -3
- data/docs/Fox/FXSphered.html +3 -3
- data/docs/Fox/FXSpheref.html +3 -3
- data/docs/Fox/FXSpinner.html +16 -16
- data/docs/Fox/FXSplashScreen.html +3 -3
- data/docs/Fox/FXSplashWindow.html +5 -5
- data/docs/Fox/FXSplitter.html +3 -3
- data/docs/Fox/FXSpring.html +3 -3
- data/docs/Fox/FXStatusBar.html +3 -3
- data/docs/Fox/FXStatusLine.html +4 -4
- data/docs/Fox/FXStream.html +4 -4
- data/docs/Fox/FXStreamAllocError.html +3 -3
- data/docs/Fox/FXStreamEndError.html +3 -3
- data/docs/Fox/FXStreamError.html +3 -3
- data/docs/Fox/FXStreamFailureError.html +3 -3
- data/docs/Fox/FXStreamFormatError.html +3 -3
- data/docs/Fox/FXStreamFullError.html +4 -4
- data/docs/Fox/FXStreamNoReadError.html +3 -3
- data/docs/Fox/FXStreamNoWriteError.html +3 -3
- data/docs/Fox/FXStreamUnknownError.html +3 -3
- data/docs/Fox/FXStringDict.html +4 -4
- data/docs/Fox/FXSwitcher.html +8 -8
- data/docs/Fox/FXTGAIcon.html +3 -3
- data/docs/Fox/FXTGAImage.html +3 -3
- data/docs/Fox/FXTIFIcon.html +3 -3
- data/docs/Fox/FXTIFImage.html +3 -3
- data/docs/Fox/FXTabBar.html +8 -8
- data/docs/Fox/FXTabBook.html +4 -4
- data/docs/Fox/FXTabItem.html +3 -3
- data/docs/Fox/FXTable.html +27 -27
- data/docs/Fox/FXTableItem.html +5 -5
- data/docs/Fox/FXTablePos.html +3 -3
- data/docs/Fox/FXTableRange.html +3 -3
- data/docs/Fox/FXText.html +25 -25
- data/docs/Fox/FXTextChange.html +3 -3
- data/docs/Fox/FXTextField.html +5 -5
- data/docs/Fox/FXToggleButton.html +7 -7
- data/docs/Fox/FXToolBar.html +3 -3
- data/docs/Fox/FXToolBarGrip.html +3 -3
- data/docs/Fox/FXToolBarShell.html +3 -3
- data/docs/Fox/FXToolBarTab.html +5 -5
- data/docs/Fox/FXToolTip.html +5 -5
- data/docs/Fox/FXTopWindow.html +4 -4
- data/docs/Fox/FXTranslator.html +3 -3
- data/docs/Fox/FXTreeItem.html +19 -19
- data/docs/Fox/FXTreeList.html +40 -40
- data/docs/Fox/FXTreeListBox.html +27 -27
- data/docs/Fox/FXTriStateButton.html +9 -9
- data/docs/Fox/FXUndoList.html +8 -8
- data/docs/Fox/FXVec2d.html +7 -7
- data/docs/Fox/FXVec2f.html +7 -7
- data/docs/Fox/FXVec3d.html +7 -7
- data/docs/Fox/FXVec3f.html +7 -7
- data/docs/Fox/FXVec4d.html +7 -7
- data/docs/Fox/FXVec4f.html +7 -7
- data/docs/Fox/FXVerticalFrame.html +4 -4
- data/docs/Fox/FXVerticalSeparator.html +3 -3
- data/docs/Fox/FXViewport.html +3 -3
- data/docs/Fox/FXVisual.html +3 -3
- data/docs/Fox/FXWindow.html +36 -36
- data/docs/Fox/FXWizard.html +3 -3
- data/docs/Fox/FXXBMIcon.html +3 -3
- data/docs/Fox/FXXBMImage.html +3 -3
- data/docs/Fox/FXXPMIcon.html +3 -3
- data/docs/Fox/FXXPMImage.html +3 -3
- data/docs/Fox/NotifyHeader.html +3 -3
- data/docs/Fox/SCNotification.html +3 -3
- data/docs/Fox/TextRange.html +3 -3
- data/docs/Fox.html +7 -7
- data/docs/IRB.html +3 -3
- data/docs/Responder.html +4 -4
- data/docs/Responder2.html +3 -3
- data/docs/_index.html +3 -3
- data/docs/css/style.css +1 -0
- data/docs/file.History.html +75 -52
- data/docs/file.README.html +7 -7
- data/docs/index.html +487 -501
- data/docs/top-level-namespace.html +3 -3
- data/examples/gltest.rb +104 -105
- data/examples/glviewer.rb +3 -3
- data/ext/fox16_c/core_wrap.cpp +1 -1
- data/ext/fox16_c/dc_wrap.cpp +1 -1
- data/ext/fox16_c/dialogs_wrap.cpp +1 -1
- data/ext/fox16_c/extconf.rb +13 -13
- data/ext/fox16_c/frames_wrap.cpp +1 -1
- data/ext/fox16_c/fx3d_wrap.cpp +1 -1
- data/ext/fox16_c/iconlist_wrap.cpp +1 -1
- data/ext/fox16_c/icons_wrap.cpp +1 -1
- data/ext/fox16_c/image_wrap.cpp +1 -1
- data/ext/fox16_c/label_wrap.cpp +1 -1
- data/ext/fox16_c/layout_wrap.cpp +1 -1
- data/ext/fox16_c/list_wrap.cpp +1 -1
- data/ext/fox16_c/mdi_wrap.cpp +1 -1
- data/ext/fox16_c/menu_wrap.cpp +1 -1
- data/ext/fox16_c/scintilla_wrap.cpp +1 -1
- data/ext/fox16_c/swigruby.h +1 -1
- data/ext/fox16_c/table_wrap.cpp +1 -1
- data/ext/fox16_c/text_wrap.cpp +1 -1
- data/ext/fox16_c/treelist_wrap.cpp +1 -1
- data/ext/fox16_c/ui_wrap.cpp +1 -1
- data/fxruby.gemspec +9 -1
- data/lib/3.1/fox16_c.so +0 -0
- data/lib/3.2/fox16_c.so +0 -0
- data/lib/3.3/fox16_c.so +0 -0
- data/lib/fox16/glgroup.rb +3 -4
- data/lib/fox16/glshapes.rb +85 -100
- data/lib/fox16/kwargs.rb +891 -891
- data/lib/fox16/version.rb +1 -1
- data/ports/x64-mingw-ucrt/bin/libFOX-1.6-0.dll +0 -0
- data/ports/x64-mingw-ucrt/bin/libfxscintilla-20.dll +0 -0
- data/ports/x64-mingw-ucrt/bin/libjpeg-62.dll +0 -0
- data/ports/x64-mingw-ucrt/bin/libpng16-16.dll +0 -0
- data/ports/x64-mingw-ucrt/bin/libtiff-6.dll +0 -0
- data/ports/x64-mingw-ucrt/bin/zlib1.dll +0 -0
- data/scripts/iface.rb +8 -12
- data/test/TC_FXDCPrint.rb +1 -1
- metadata +254 -15
- data/ports/x64-mingw-ucrt/bin/libtiff-5.dll +0 -0
- data/rdoc-sources/Makefile +0 -23
data/lib/fox16/glshapes.rb
CHANGED
@@ -9,8 +9,6 @@ module Fox
|
|
9
9
|
# OpenGL point object
|
10
10
|
#
|
11
11
|
class FXGLPoint < FXGLObject
|
12
|
-
include OpenGL
|
13
|
-
|
14
12
|
# Point position, in model coordinates (a 3-element array)
|
15
13
|
attr_accessor :pos
|
16
14
|
|
@@ -48,20 +46,20 @@ module Fox
|
|
48
46
|
# Draw this point into _viewer_ (an FXGLViewer instance).
|
49
47
|
#
|
50
48
|
def draw(viewer)
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
49
|
+
GL.Color3d(0.0, 0.0, 1.0)
|
50
|
+
GL.PointSize(HANDLE_SIZE)
|
51
|
+
GL.Begin(GL::POINTS)
|
52
|
+
GL.Vertex3d(*@pos)
|
53
|
+
GL.End()
|
56
54
|
end
|
57
55
|
|
58
56
|
#
|
59
57
|
# Perform hit test for this point in _viewer_ (an FXGLViewer instance).
|
60
58
|
#
|
61
59
|
def hit(viewer)
|
62
|
-
|
63
|
-
|
64
|
-
|
60
|
+
GL.Begin(GL::POINTS)
|
61
|
+
GL.Vertex3d(*@pos)
|
62
|
+
GL.End()
|
65
63
|
end
|
66
64
|
end
|
67
65
|
|
@@ -69,8 +67,6 @@ module Fox
|
|
69
67
|
# OpenGL line object
|
70
68
|
#
|
71
69
|
class FXGLLine < FXGLObject
|
72
|
-
include OpenGL
|
73
|
-
|
74
70
|
# Starting point for line [FXGLPoint]
|
75
71
|
attr_accessor :fm
|
76
72
|
|
@@ -122,22 +118,22 @@ module Fox
|
|
122
118
|
# Draw this line into _viewer_ (an FXGLViewer instance).
|
123
119
|
#
|
124
120
|
def draw(viewer)
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
121
|
+
GL.Color3d(1.0, 0.0, 0.0)
|
122
|
+
GL.PointSize(HANDLE_SIZE)
|
123
|
+
GL.Begin(GL::LINES)
|
124
|
+
GL.Vertex3d(*@fm.pos)
|
125
|
+
GL.Vertex3d(*@to.pos)
|
126
|
+
GL.End()
|
131
127
|
end
|
132
128
|
|
133
129
|
#
|
134
130
|
# Perform hit-test for this line in _viewer_ (an FXGLViewer instance).
|
135
131
|
#
|
136
132
|
def hit(viewer)
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
133
|
+
GL.Begin(GL::LINES)
|
134
|
+
GL.Vertex3d(*@fm.pos)
|
135
|
+
GL.Vertex3d(*@to.pos)
|
136
|
+
GL.End()
|
141
137
|
end
|
142
138
|
end
|
143
139
|
|
@@ -145,8 +141,6 @@ module Fox
|
|
145
141
|
# OpenGL cube object
|
146
142
|
#
|
147
143
|
class FXGLCube < FXGLShape
|
148
|
-
include OpenGL
|
149
|
-
|
150
144
|
# Cube width [Float]
|
151
145
|
attr_accessor :width
|
152
146
|
|
@@ -198,58 +192,58 @@ module Fox
|
|
198
192
|
zmin, zmax = -0.5*@depth, 0.5*@depth
|
199
193
|
|
200
194
|
# Draw low face
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
195
|
+
GL.Begin(GL::TRIANGLE_STRIP)
|
196
|
+
GL.Normal3d(0.0, 0.0, -1.0)
|
197
|
+
GL.Vertex3d(xmin, ymin, zmin)
|
198
|
+
GL.Vertex3d(xmin, ymax, zmin)
|
199
|
+
GL.Vertex3d(xmax, ymin, zmin)
|
200
|
+
GL.Vertex3d(xmax, ymax, zmin)
|
201
|
+
GL.End()
|
208
202
|
|
209
203
|
# Draw east face
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
204
|
+
GL.Begin(GL::TRIANGLE_STRIP)
|
205
|
+
GL.Normal3d(1.0, 0.0, 0.0)
|
206
|
+
GL.Vertex3d(xmax, ymin, zmin)
|
207
|
+
GL.Vertex3d(xmax, ymax, zmin)
|
208
|
+
GL.Vertex3d(xmax, ymin, zmax)
|
209
|
+
GL.Vertex3d(xmax, ymax, zmax)
|
210
|
+
GL.End()
|
217
211
|
|
218
212
|
# Draw high face
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
213
|
+
GL.Begin(GL::TRIANGLE_STRIP)
|
214
|
+
GL.Normal3d(0.0, 0.0, 1.0)
|
215
|
+
GL.Vertex3d(xmax, ymin, zmax)
|
216
|
+
GL.Vertex3d(xmax, ymax, zmax)
|
217
|
+
GL.Vertex3d(xmin, ymin, zmax)
|
218
|
+
GL.Vertex3d(xmin, ymax, zmax)
|
219
|
+
GL.End()
|
226
220
|
|
227
221
|
# Draw west face
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
222
|
+
GL.Begin(GL::TRIANGLE_STRIP)
|
223
|
+
GL.Normal3d(-1.0, 0.0, 0.0)
|
224
|
+
GL.Vertex3d(xmin, ymin, zmax)
|
225
|
+
GL.Vertex3d(xmin, ymax, zmax)
|
226
|
+
GL.Vertex3d(xmin, ymin, zmin)
|
227
|
+
GL.Vertex3d(xmin, ymax, zmin)
|
228
|
+
GL.End()
|
235
229
|
|
236
230
|
# Draw north face
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
231
|
+
GL.Begin(GL::TRIANGLE_STRIP)
|
232
|
+
GL.Normal3d(0.0, 1.0, 0.0)
|
233
|
+
GL.Vertex3d(xmin, ymax, zmin)
|
234
|
+
GL.Vertex3d(xmin, ymax, zmax)
|
235
|
+
GL.Vertex3d(xmax, ymax, zmin)
|
236
|
+
GL.Vertex3d(xmax, ymax, zmax)
|
237
|
+
GL.End()
|
244
238
|
|
245
239
|
# Draw south face
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
240
|
+
GL.Begin(GL::TRIANGLE_STRIP)
|
241
|
+
GL.Normal3d(0.0, -1.0, 0.0)
|
242
|
+
GL.Vertex3d(xmin, ymin, zmax)
|
243
|
+
GL.Vertex3d(xmin, ymin, zmin)
|
244
|
+
GL.Vertex3d(xmax, ymin, zmax)
|
245
|
+
GL.Vertex3d(xmax, ymin, zmin)
|
246
|
+
GL.End()
|
253
247
|
end
|
254
248
|
end
|
255
249
|
|
@@ -257,9 +251,6 @@ module Fox
|
|
257
251
|
# OpenGL cone object
|
258
252
|
#
|
259
253
|
class FXGLCone < FXGLShape
|
260
|
-
include OpenGL
|
261
|
-
include GLU
|
262
|
-
|
263
254
|
# Cone fidelity
|
264
255
|
SLICES_NUMBER = 20
|
265
256
|
STACKS_NUMBER = 20
|
@@ -316,15 +307,15 @@ module Fox
|
|
316
307
|
# Draw this cone into _viewer_ (an FXGLViewer instance).
|
317
308
|
#
|
318
309
|
def drawshape(viewer)
|
319
|
-
quad =
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
310
|
+
quad = GLU.NewQuadric()
|
311
|
+
GLU.QuadricDrawStyle(quad, GLU::FILL)
|
312
|
+
GL.PushMatrix()
|
313
|
+
GL.Rotated(-90, 1, 0, 0)
|
314
|
+
GLU.Cylinder(quad, @radius, 0, @height, @slices, @stacks)
|
315
|
+
GLU.QuadricOrientation(quad, GLU::INSIDE)
|
316
|
+
GLU.Disk(quad, 0, @radius, @slices, @loops)
|
317
|
+
GLU.DeleteQuadric(quad)
|
318
|
+
GL.PopMatrix()
|
328
319
|
end
|
329
320
|
end
|
330
321
|
|
@@ -332,9 +323,6 @@ module Fox
|
|
332
323
|
# OpenGL cylinder object
|
333
324
|
#
|
334
325
|
class FXGLCylinder < FXGLShape
|
335
|
-
include OpenGL
|
336
|
-
include GLU
|
337
|
-
|
338
326
|
# Cylinder fidelity
|
339
327
|
SLICES_NUMBER = 20
|
340
328
|
STACKS_NUMBER = 20
|
@@ -391,18 +379,18 @@ module Fox
|
|
391
379
|
# Draw this cylinder into _viewer_ (an FXGLViewer instance).
|
392
380
|
#
|
393
381
|
def drawshape(viewer)
|
394
|
-
quad =
|
395
|
-
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
|
400
|
-
|
401
|
-
|
402
|
-
|
403
|
-
|
404
|
-
|
405
|
-
|
382
|
+
quad = GLU.NewQuadric()
|
383
|
+
GLU.QuadricDrawStyle(quad, GLU::FILL)
|
384
|
+
GL.PushMatrix()
|
385
|
+
GL.Rotated(-90, 1, 0, 0)
|
386
|
+
GLU.Cylinder(quad, @radius, @radius, @height, @slices, @stacks)
|
387
|
+
GLU.QuadricOrientation(quad, GLU::INSIDE)
|
388
|
+
GLU.Disk(quad, 0, @radius, @slices, @loops)
|
389
|
+
GL.Translated(0, 0, @height)
|
390
|
+
GLU.QuadricOrientation(quad, GLU::OUTSIDE)
|
391
|
+
GLU.Disk(quad, 0, @radius, @slices, @loops)
|
392
|
+
GL.PopMatrix()
|
393
|
+
GLU.DeleteQuadric(quad)
|
406
394
|
end
|
407
395
|
end
|
408
396
|
|
@@ -410,9 +398,6 @@ module Fox
|
|
410
398
|
# OpenGL sphere object
|
411
399
|
#
|
412
400
|
class FXGLSphere < FXGLShape
|
413
|
-
include OpenGL
|
414
|
-
include GLU
|
415
|
-
|
416
401
|
# Sphere fidelity
|
417
402
|
SLICES_NUMBER = 20
|
418
403
|
STACKS_NUMBER = 20
|
@@ -460,10 +445,10 @@ module Fox
|
|
460
445
|
# Draw this sphere into _viewer_ (an FXGLViewer instance).
|
461
446
|
#
|
462
447
|
def drawshape(viewer)
|
463
|
-
quad =
|
464
|
-
|
465
|
-
|
466
|
-
|
448
|
+
quad = GLU.NewQuadric()
|
449
|
+
GLU.QuadricDrawStyle(quad, GLU::FILL)
|
450
|
+
GLU.Sphere(quad, @radius, @slices, @stacks)
|
451
|
+
GLU.DeleteQuadric(quad)
|
467
452
|
end
|
468
453
|
end
|
469
454
|
end
|