Class: Fox::FXGLVisual

Inherits:
FXVisual show all
Defined in:
rdoc-sources/FXGLVisual.rb

Overview

Visual describes pixel format of a drawable

Instance Attribute Summary collapse

Attributes inherited from FXVisual

#depth, #flags, #maxColors, #numBlue, #numColors, #numGreen, #numRed, #visualType

Attributes inherited from FXId

#app, #userData, #xid

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from FXVisual

#getColor, #getPixel

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

#accumAlphaSizeObject

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

#accumBlueSizeObject

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

#accumGreenSizeObject

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

#accumRedSizeObject

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

#actualAccumAlphaSizeObject (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

#actualAccumBlueSizeObject (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

#actualAccumGreenSizeObject (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

#actualAccumRedSizeObject (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

#actualAlphaSizeObject (readonly)

Actual number of bits of alpha [Integer]



47
48
49
# File 'rdoc-sources/FXGLVisual.rb', line 47

def actualAlphaSize
  @actualAlphaSize
end

#actualBlueSizeObject (readonly)

Actual number of bits of blue [Integer]



44
45
46
# File 'rdoc-sources/FXGLVisual.rb', line 44

def actualBlueSize
  @actualBlueSize
end

#actualDepthSizeObject (readonly)

Actual depth size [Integer]



50
51
52
# File 'rdoc-sources/FXGLVisual.rb', line 50

def actualDepthSize
  @actualDepthSize
end

#actualGreenSizeObject (readonly)

Actual number of bits of green [Integer]



41
42
43
# File 'rdoc-sources/FXGLVisual.rb', line 41

def actualGreenSize
  @actualGreenSize
end

#actualRedSizeObject (readonly)

Actual number of bits of red [Integer]



38
39
40
# File 'rdoc-sources/FXGLVisual.rb', line 38

def actualRedSize
  @actualRedSize
end

#actualStencilSizeObject (readonly)

Actual stencil size [Integer]



53
54
55
# File 'rdoc-sources/FXGLVisual.rb', line 53

def actualStencilSize
  @actualStencilSize
end

#alphaSizeObject

Requested number of bits of alpha (default is zero) [Integer]



17
18
19
# File 'rdoc-sources/FXGLVisual.rb', line 17

def alphaSize
  @alphaSize
end

#blueSizeObject

Requested number of bits of blue (default is 8) [Integer]



14
15
16
# File 'rdoc-sources/FXGLVisual.rb', line 14

def blueSize
  @blueSize
end

#depthSizeObject

Requested depth size (default is 16) [Integer]



20
21
22
# File 'rdoc-sources/FXGLVisual.rb', line 20

def depthSize
  @depthSize
end

#greenSizeObject

Requested number of bits of green (default is 8) [Integer]



11
12
13
# File 'rdoc-sources/FXGLVisual.rb', line 11

def greenSize
  @greenSize
end

#redSizeObject

Requested number of bits of red (default is 8) [Integer]



8
9
10
# File 'rdoc-sources/FXGLVisual.rb', line 8

def redSize
  @redSize
end

#stencilSizeObject

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.

Returns:

  • (Boolean)


88
# File 'rdoc-sources/FXGLVisual.rb', line 88

def FXGLVisual.supported?(app); end

Instance Method Details

#accelerated?Boolean

Return true if hardware-accelerated

Returns:

  • (Boolean)


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.

Returns:

  • (Boolean)


100
# File 'rdoc-sources/FXGLVisual.rb', line 100

def bufferSwapCopy?; end

#doubleBuffered?Boolean

Return true if double-buffered

Returns:

  • (Boolean)


91
# File 'rdoc-sources/FXGLVisual.rb', line 91

def doubleBuffered?; end

#stereo?Boolean

Return true if stereo

Returns:

  • (Boolean)


94
# File 'rdoc-sources/FXGLVisual.rb', line 94

def stereo?; end