Class: Fox::FXGLVisual
- Defined in:
- rdoc-sources/FXGLVisual.rb
Overview
Visual describes pixel format of a drawable
Instance Attribute Summary collapse
-
#accumAlphaSize ⇒ Object
Requested number of bits of alpha for the accumulation buffer (default is zero) [Integer].
-
#accumBlueSize ⇒ Object
Requested number of bits of blue for the accumulation buffer (default is zero) [Integer].
-
#accumGreenSize ⇒ Object
Requested number of bits of green for the accumulation buffer (default is zero) [Integer].
-
#accumRedSize ⇒ Object
Requested number of bits of red for the accumulation buffer (default is zero) [Integer].
-
#actualAccumAlphaSize ⇒ Object
readonly
Actual number of bits of alpha for the accumulation buffer [Integer].
-
#actualAccumBlueSize ⇒ Object
readonly
Actual number of bits of blue for the accumulation buffer [Integer].
-
#actualAccumGreenSize ⇒ Object
readonly
Actual number of bits of green for the accumulation buffer [Integer].
-
#actualAccumRedSize ⇒ Object
readonly
Actual number of bits of red for the accumulation buffer [Integer].
-
#actualAlphaSize ⇒ Object
readonly
Actual number of bits of alpha [Integer].
-
#actualBlueSize ⇒ Object
readonly
Actual number of bits of blue [Integer].
-
#actualDepthSize ⇒ Object
readonly
Actual depth size [Integer].
-
#actualGreenSize ⇒ Object
readonly
Actual number of bits of green [Integer].
-
#actualRedSize ⇒ Object
readonly
Actual number of bits of red [Integer].
-
#actualStencilSize ⇒ Object
readonly
Actual stencil size [Integer].
-
#alphaSize ⇒ Object
Requested number of bits of alpha (default is zero) [Integer].
-
#blueSize ⇒ Object
Requested number of bits of blue (default is 8) [Integer].
-
#depthSize ⇒ Object
Requested depth size (default is 16) [Integer].
-
#greenSize ⇒ Object
Requested number of bits of green (default is 8) [Integer].
-
#redSize ⇒ Object
Requested number of bits of red (default is 8) [Integer].
-
#stencilSize ⇒ Object
Requested stencil size (default is zero) [Integer].
Attributes inherited from FXVisual
#depth, #flags, #maxColors, #numBlue, #numColors, #numGreen, #numRed, #visualType
Attributes inherited from FXId
Class Method Summary collapse
-
.supported(app) ⇒ Object
Test if OpenGL is possible, and what level is supported.
-
.supported?(app) ⇒ Boolean
Test if OpenGL is possible.
Instance Method Summary collapse
-
#accelerated? ⇒ Boolean
Return
true
if hardware-accelerated. -
#bufferSwapCopy? ⇒ Boolean
Return
true
if this visual “swaps” by copying instead of flipping buffers. -
#doubleBuffered? ⇒ Boolean
Return
true
if double-buffered. -
#initialize(app, flags) ⇒ FXGLVisual
constructor
Construct default visual.
-
#stereo? ⇒ Boolean
Return
true
if stereo.
Methods inherited from FXVisual
Methods inherited from FXId
#create, #created?, #destroy, #detach, #runOnUiThread
Methods inherited from FXObject
#bind, #handle, #load, #save, subclasses
Constructor Details
#initialize(app, flags) ⇒ FXGLVisual
Construct default visual
70 71 |
# File 'rdoc-sources/FXGLVisual.rb', line 70 def initialize(app, flags) # :yields: theGLVisual end |
Instance Attribute Details
#accumAlphaSize ⇒ Object
Requested number of bits of alpha for the accumulation buffer (default is zero) [Integer]
35 36 37 |
# File 'rdoc-sources/FXGLVisual.rb', line 35 def accumAlphaSize @accumAlphaSize end |
#accumBlueSize ⇒ Object
Requested number of bits of blue for the accumulation buffer (default is zero) [Integer]
32 33 34 |
# File 'rdoc-sources/FXGLVisual.rb', line 32 def accumBlueSize @accumBlueSize end |
#accumGreenSize ⇒ Object
Requested number of bits of green for the accumulation buffer (default is zero) [Integer]
29 30 31 |
# File 'rdoc-sources/FXGLVisual.rb', line 29 def accumGreenSize @accumGreenSize end |
#accumRedSize ⇒ Object
Requested number of bits of red for the accumulation buffer (default is zero) [Integer]
26 27 28 |
# File 'rdoc-sources/FXGLVisual.rb', line 26 def accumRedSize @accumRedSize end |
#actualAccumAlphaSize ⇒ Object (readonly)
Actual number of bits of alpha for the accumulation buffer [Integer]
65 66 67 |
# File 'rdoc-sources/FXGLVisual.rb', line 65 def actualAccumAlphaSize @actualAccumAlphaSize end |
#actualAccumBlueSize ⇒ Object (readonly)
Actual number of bits of blue for the accumulation buffer [Integer]
62 63 64 |
# File 'rdoc-sources/FXGLVisual.rb', line 62 def actualAccumBlueSize @actualAccumBlueSize end |
#actualAccumGreenSize ⇒ Object (readonly)
Actual number of bits of green for the accumulation buffer [Integer]
59 60 61 |
# File 'rdoc-sources/FXGLVisual.rb', line 59 def actualAccumGreenSize @actualAccumGreenSize end |
#actualAccumRedSize ⇒ Object (readonly)
Actual number of bits of red for the accumulation buffer [Integer]
56 57 58 |
# File 'rdoc-sources/FXGLVisual.rb', line 56 def actualAccumRedSize @actualAccumRedSize end |
#actualAlphaSize ⇒ Object (readonly)
Actual number of bits of alpha [Integer]
47 48 49 |
# File 'rdoc-sources/FXGLVisual.rb', line 47 def actualAlphaSize @actualAlphaSize end |
#actualBlueSize ⇒ Object (readonly)
Actual number of bits of blue [Integer]
44 45 46 |
# File 'rdoc-sources/FXGLVisual.rb', line 44 def actualBlueSize @actualBlueSize end |
#actualDepthSize ⇒ Object (readonly)
Actual depth size [Integer]
50 51 52 |
# File 'rdoc-sources/FXGLVisual.rb', line 50 def actualDepthSize @actualDepthSize end |
#actualGreenSize ⇒ Object (readonly)
Actual number of bits of green [Integer]
41 42 43 |
# File 'rdoc-sources/FXGLVisual.rb', line 41 def actualGreenSize @actualGreenSize end |
#actualRedSize ⇒ Object (readonly)
Actual number of bits of red [Integer]
38 39 40 |
# File 'rdoc-sources/FXGLVisual.rb', line 38 def actualRedSize @actualRedSize end |
#actualStencilSize ⇒ Object (readonly)
Actual stencil size [Integer]
53 54 55 |
# File 'rdoc-sources/FXGLVisual.rb', line 53 def actualStencilSize @actualStencilSize end |
#alphaSize ⇒ Object
Requested number of bits of alpha (default is zero) [Integer]
17 18 19 |
# File 'rdoc-sources/FXGLVisual.rb', line 17 def alphaSize @alphaSize end |
#blueSize ⇒ Object
Requested number of bits of blue (default is 8) [Integer]
14 15 16 |
# File 'rdoc-sources/FXGLVisual.rb', line 14 def blueSize @blueSize end |
#depthSize ⇒ Object
Requested depth size (default is 16) [Integer]
20 21 22 |
# File 'rdoc-sources/FXGLVisual.rb', line 20 def depthSize @depthSize end |
#greenSize ⇒ Object
Requested number of bits of green (default is 8) [Integer]
11 12 13 |
# File 'rdoc-sources/FXGLVisual.rb', line 11 def greenSize @greenSize end |
#redSize ⇒ Object
Requested number of bits of red (default is 8) [Integer]
8 9 10 |
# File 'rdoc-sources/FXGLVisual.rb', line 8 def redSize @redSize end |
#stencilSize ⇒ Object
Requested stencil size (default is zero) [Integer]
23 24 25 |
# File 'rdoc-sources/FXGLVisual.rb', line 23 def stencilSize @stencilSize end |
Class Method Details
.supported(app) ⇒ Object
Test if OpenGL is possible, and what level is supported. Because of remote display capability, the display server may support a different level of OpenGL than the client; it may even support no OpenGL at all! This function returns the lesser of the client support level and the display server support level.
Return an array with the following 3 elements: [supported, major, minor]
82 |
# File 'rdoc-sources/FXGLVisual.rb', line 82 def FXGLVisual.supported(app); end |
.supported?(app) ⇒ Boolean
Test if OpenGL is possible.
Same as supported, but returns the first element (true/false) only.
88 |
# File 'rdoc-sources/FXGLVisual.rb', line 88 def FXGLVisual.supported?(app); end |
Instance Method Details
#accelerated? ⇒ Boolean
Return true
if hardware-accelerated
97 |
# File 'rdoc-sources/FXGLVisual.rb', line 97 def accelerated?; end |
#bufferSwapCopy? ⇒ Boolean
Return true
if this visual “swaps” by copying instead of flipping buffers.
100 |
# File 'rdoc-sources/FXGLVisual.rb', line 100 def bufferSwapCopy?; end |
#doubleBuffered? ⇒ Boolean
Return true
if double-buffered
91 |
# File 'rdoc-sources/FXGLVisual.rb', line 91 def doubleBuffered?; end |
#stereo? ⇒ Boolean
Return true
if stereo
94 |
# File 'rdoc-sources/FXGLVisual.rb', line 94 def stereo?; end |