# File lib/as_texture.rb, line 113
  def copy_rect(sx, sy, sw, sh, dx, dy, dw, dh)
    sright = sx + sw
    stop   = sy + sh

    dright = dx + dw
    dtop   = dy + dh

    GL.Begin(GL::QUADS)
                GL.TexCoord2f(    sx,   sy); GL.Vertex2f(    dx,   dy)
                GL.TexCoord2f(sright,   sy); GL.Vertex2f(dright,   dy)
                GL.TexCoord2f(sright, stop); GL.Vertex2f(dright, dtop)
                GL.TexCoord2f(    sx, stop); GL.Vertex2f(    dx, dtop)
    GL.End
  end