Class: Frusdl::Low::SDL::SDL_Surface

Inherits:
FFI::ManagedStruct
  • Object
show all
Defined in:
lib/frusdl/low/sdl.rb

Class Method Summary collapse

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