class RbSDL2::RWOperator::RWOperatorPointer

Public Class Methods

release(ptr) click to toggle source
# File lib/rb_sdl2/rw_ops/rw_operator.rb, line 68
def release(ptr)
  # オブジェクトはクローズしない。(GC 回収の時には close コールバックオブジェクトは消えている)
  # SDL_AllocRW で確保したポインターのみ SDL_FreeRW で開放できる。
  ::SDL2.SDL_FreeRW(ptr)
end