Class: Frusdl::Low::SDL::SDL_Surface
- Inherits:
-
FFI::ManagedStruct
- Object
- FFI::ManagedStruct
- Frusdl::Low::SDL::SDL_Surface
- Defined in:
- lib/frusdl/low/sdl.rb
Class Method Summary collapse
-
.release(ptr) ⇒ Object
the rest of the C struct is mostly private.
Class Method Details
.release(ptr) ⇒ Object
the rest of the C struct is mostly private
132 133 134 135 136 |
# File 'lib/frusdl/low/sdl.rb', line 132 def self.release(ptr) if ptr && (!ptr.null?) SDL.SDL_FreeSurface(ptr) end end |