Class: Glfw::VideoMode

Inherits:
Data
  • Object
show all
Defined in:
ext/glfw3/glfw3.c

Instance Method Summary collapse

Instance Method Details

#blue_bitsObject

The number of blue bits in the video mode.

call-seq:

blue_bits -> Fixed

Wraps GLFWvidmode.blueBits.



335
336
337
338
339
340
# File 'ext/glfw3/glfw3.c', line 335

static VALUE rb_videomode_blue_bits(VALUE self)
{
  GLFWvidmode *mode = NULL;
  Data_Get_Struct(self, GLFWvidmode, mode);
  return INT2FIX(mode->blueBits);
}

#green_bitsObject

The number of green bits in the video mode.

call-seq:

green_bits -> Fixed

Wraps GLFWvidmode.greenBits.



320
321
322
323
324
325
# File 'ext/glfw3/glfw3.c', line 320

static VALUE rb_videomode_green_bits(VALUE self)
{
  GLFWvidmode *mode = NULL;
  Data_Get_Struct(self, GLFWvidmode, mode);
  return INT2FIX(mode->greenBits);
}

#heightObject

The height of the video mode.

call-seq:

height -> Fixed

Wraps GLFWvidmode.height.



290
291
292
293
294
295
# File 'ext/glfw3/glfw3.c', line 290

static VALUE rb_videomode_height(VALUE self)
{
  GLFWvidmode *mode = NULL;
  Data_Get_Struct(self, GLFWvidmode, mode);
  return INT2FIX(mode->height);
}

#red_bitsObject

The number of red bits in the video mode.

call-seq:

red_bits -> Fixed

Wraps GLFWvidmode.redBits.



305
306
307
308
309
310
# File 'ext/glfw3/glfw3.c', line 305

static VALUE rb_videomode_red_bits(VALUE self)
{
  GLFWvidmode *mode = NULL;
  Data_Get_Struct(self, GLFWvidmode, mode);
  return INT2FIX(mode->redBits);
}

#refresh_rateObject

The video mode’s refresh rate.

call-seq:

refresh_rate -> Fixed

Wraps GLFWvidmode.refreshRate.



350
351
352
353
354
355
# File 'ext/glfw3/glfw3.c', line 350

static VALUE rb_videomode_refresh_rate(VALUE self)
{
  GLFWvidmode *mode = NULL;
  Data_Get_Struct(self, GLFWvidmode, mode);
  return INT2FIX(mode->refreshRate);
}

#widthObject

The width of the video mode.

call-seq:

width -> Fixed

Wraps GLFWvidmode.width.



275
276
277
278
279
280
# File 'ext/glfw3/glfw3.c', line 275

static VALUE rb_videomode_width(VALUE self)
{
  GLFWvidmode *mode = NULL;
  Data_Get_Struct(self, GLFWvidmode, mode);
  return INT2FIX(mode->width);
}