Unuk/src/libUnuk/Sprite/ApplySurface.h

17 lines
630 B
C

#pragma once
#include <SDL/SDL.h>
#include <assert.h>
#include "../System/Debug.h"
#include "../../Unuk/Globals.h"
/* Use for objects.
* Blit a surface to another surface. An
* optioanl clip argument can be given. The surface
* will be applied to the destination, taking into
* account the position of the camera.
*/
void ApplySurface(int x, int y, SDL_Surface* source, SDL_Surface* destination, SDL_Rect* clip = NULL);
// This one won't take the camera into account, so we could use it for GUI stuff.
void ApplySurfaceLiteral(int x, int y, SDL_Surface* source, SDL_Surface* destination, SDL_Rect* clip = NULL);