class Roglew::Query

Attributes

handle[R]
id[R]

Public Class Methods

finalize(handle, id) click to toggle source
# File lib/roglew/extensions/GL_VERSION_1_5/query.rb, line 12
def self.finalize(handle, id)
  proc do
    #puts "releasing query #{id}"
    handle.bind { |context| context.delete_queries(id) }
  end
end
new(handle) click to toggle source
# File lib/roglew/extensions/GL_VERSION_1_5/query.rb, line 6
def initialize(handle)
  @handle = handle
  @id = handle.bind { |context| context.gen_queries }
  ObjectSpace.define_finalizer(self, self.class.finalize(@handle, @id))
end