Method: Ray::GL::Buffer#size

Defined in:
ext/gl_buffer.c

#sizeInteger

Returns Size of the buffer (amount of vertices it contains).

Returns:

  • (Integer)

    Size of the buffer (amount of vertices it contains)



180
181
182
183
# File 'ext/gl_buffer.c', line 180

static
VALUE ray_gl_buffer_size(VALUE self) {
  return ULONG2NUM(say_buffer_get_size(ray_rb2buffer(self)));
}