- (move-rectangle source-x source-y source-width source-height (car *texture-cache-rectangles*))
- (move-rectangle dest-x dest-y dest-width dest-height (cdr *texture-cache-rectangles*))
- (sdl2:render-copy *renderer* texture
- (car *texture-cache-rectangles*)
+ "Given two list of four numbers (x y width height) or empty lists it render
+them on screen. When given an empty list it uses the whole source or destination
+to print the result. If source-list is nil then the whole texture is displayed,
+if destination-list is nil then the selected texture is displayed on the whole
+window or destination screen buffer."
+ (when source-list
+ (move-rectangle (nth 0 source-list) (nth 1 source-list)
+ (nth 2 source-list) (nth 3 source-list)
+ (car *texture-cache-rectangles*)))
+ (when destination-list
+ (move-rectangle (nth 0 destination-list) (nth 1 destination-list)
+ (nth 2 destination-list) (nth 3 destination-list)