Class: GLFW::VideoMode

Inherits:
Object
  • Object
show all
Defined in:
lib/glfw/stubs/video_mode.rb

Overview

Describes the video settings for a Monitor.

Instance Attribute Summary collapse

Instance Attribute Details

#blue_bitsInteger (readonly)

Returns the bit depth of the blue channel of the video mode.

Returns:

  • (Integer)

    the bit depth of the blue channel of the video mode.



26
27
28
# File 'lib/glfw/stubs/video_mode.rb', line 26

def blue_bits
  @blue_bits
end

#green_bitsInteger (readonly)

Returns the bit depth of the green channel of the video mode.

Returns:

  • (Integer)

    the bit depth of the green channel of the video mode.



22
23
24
# File 'lib/glfw/stubs/video_mode.rb', line 22

def green_bits
  @green_bits
end

#heightInteger (readonly)

Returns the height, in screen coordinates, of the video mode.

Returns:

  • (Integer)

    the height, in screen coordinates, of the video mode.



14
15
16
# File 'lib/glfw/stubs/video_mode.rb', line 14

def height
  @height
end

#red_bitsInteger (readonly)

Returns the bit depth of the red channel of the video mode.

Returns:

  • (Integer)

    the bit depth of the red channel of the video mode.



18
19
20
# File 'lib/glfw/stubs/video_mode.rb', line 18

def red_bits
  @red_bits
end

#refresh_rateInteger (readonly)

Returns the refresh rate, in Hz, of the video mode.

Returns:

  • (Integer)

    the refresh rate, in Hz, of the video mode.



30
31
32
# File 'lib/glfw/stubs/video_mode.rb', line 30

def refresh_rate
  @refresh_rate
end

#widthInteger (readonly)

Returns the width, in screen coordinates, of the video mode.

Returns:

  • (Integer)

    the width, in screen coordinates, of the video mode.



10
11
12
# File 'lib/glfw/stubs/video_mode.rb', line 10

def width
  @width
end