Class: Plaything::OpenAL::Context

Inherits:
ManagedPointer show all
Defined in:
lib/plaything/objects/context.rb

Class Method Summary collapse

Class Method Details

.release(context) ⇒ Object



4
5
6
7
8
9
# File 'lib/plaything/objects/context.rb', line 4

def self.release(context)
  super do |pointer|
    OpenAL.make_context_current(nil)
    OpenAL.destroy_context(context)
  end
end