Newer
Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
module Fox
#
# OpenGL shape object.
#
# === Shape drawing options
#
# +SURFACE_SINGLESIDED+:: Single-sided [both sides same]
# +SURFACE_DUALSIDED+:: Dual-sided surface
# +SHADING_NONE+:: No light source
# +SHADING_SMOOTH+:: Smooth shaded
# +SHADING_FLAT+:: Flag shaded
# +FACECULLING_OFF+:: No face culling
# +FACECULLING_ON+:: Cull backward facing surfaces
# +STYLE_SURFACE+:: Draw filled surfaces
# +STYLE_WIREFRAME+:: Draw wire frame
# +STYLE_POINTS+:: Draw as points
# +STYLE_BOUNDBOX+:: Draw bounding box
#
# === Message identifiers
#
# +ID_SHADEOFF+:: x
# +ID_SHADEON+:: x
# +ID_SHADESMOOTH+:: x
# +ID_TOGGLE_SIDED+:: x
# +ID_TOGGLE_CULLING+:: x
# +ID_STYLE_POINTS+:: x
# +ID_STYLE_WIREFRAME+:: x
# +ID_STYLE_SURFACE+:: x
# +ID_STYLE_BOUNDINGBOX+:: x
# +ID_FRONT_MATERIAL+:: x
# +ID_BACK_MATERIAL+:: x
#
class FXGLShape < FXGLObject
# Tool tip message for this shape [String]
attr_accessor :tipText
# Position [FXVec3f]
attr_accessor :position
#
# Draws the shape in this GL viewer.
#
def drawshape(viewer); end
#
# Construct with specified origin, options and front and back materials.
#
def initialize(x, y, z, opts, front=nil, back=nil) # :yields: theGLShape
end
#
# Set the material for specified side, where _side_ = 0 or 1
# and _mtl_ is an FXMaterial instance.
#
def setMaterial(side, mtl); end
#
# Get the material for specified side (where _side_ = 0 or 1).
#
def getMaterial(side); end
#
# Set the range (an FXRangef instance) for this shape.
#
def setRange(box); end
end
end