SDL::Gfx

Public Class Methods

rotozoomSurfaceSize( width, height, angle, zoom ) click to toggle source
# File lib/ruby-sdl-ffi/gfx/rotozoom.rb, line 59
def self.rotozoomSurfaceSize( width, height, angle, zoom )
  w = FFI::Buffer.new( :int )
  h = FFI::Buffer.new( :int )
  __rotozoomSurfaceSize( width, height, angle, zoom, w, h )
  return [w.get_int(0), h.get_int(0)]
end
rotozoomSurfaceSizeXY( width, height, angle, zoomx, zoomy ) click to toggle source
# File lib/ruby-sdl-ffi/gfx/rotozoom.rb, line 75
def self.rotozoomSurfaceSizeXY( width, height, angle, zoomx, zoomy )
  w = FFI::Buffer.new( :int )
  h = FFI::Buffer.new( :int )
  __rotozoomSurfaceSizeXY( width, height, angle, zoomx, zoomy, w, h )
  return [w.get_int(0), h.get_int(0)]
end
sdl_func( name, args, ret ) click to toggle source
# File lib/ruby-sdl-ffi/gfx.rb, line 42
def self.sdl_func( name, args, ret )
  func name, "SDL_#{name}", args, ret
end
zoomSurfaceSize( width, height, zoomx, zoomy ) click to toggle source
# File lib/ruby-sdl-ffi/gfx/rotozoom.rb, line 91
def self.zoomSurfaceSize( width, height, zoomx, zoomy )
  w = FFI::Buffer.new( :int )
  h = FFI::Buffer.new( :int )
  __zoomSurfaceSize( width, height, zoomx, zoomy, w, h )
  return [w.get_int(0), h.get_int(0)]
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.