2014-07-02 19:08:47 +02:00
|
|
|
#ifndef _tgl_zblit_h_
|
|
|
|
#define _tgl_zblit_h_
|
|
|
|
|
|
|
|
#include "graphics/pixelbuffer.h"
|
|
|
|
|
|
|
|
namespace TinyGL {
|
|
|
|
|
2014-07-04 19:34:12 +02:00
|
|
|
int tglGenBlitTexture();
|
|
|
|
void tglUploadBlitTexture(int textureHandle, int width, int height, Graphics::PixelBuffer &buffer, int colorKey);
|
|
|
|
void tglDeleteBlitTexture(int textureHandle);
|
2014-07-02 19:08:47 +02:00
|
|
|
|
2014-07-04 19:34:12 +02:00
|
|
|
void tglBlit(int blitTextureHandle, int dstX, int dstY, int width, int height, int srcX, int srcY, int srcWidth, int srcHeight,
|
|
|
|
float rotation = 0, float originX = 0, float originY = 0, float rTint = 1.0f, float gTint = 1.0f, float bTint = 1.0f, float aTint = 1.0f);
|
2014-07-02 19:08:47 +02:00
|
|
|
|
|
|
|
// Disables blending explicitly.
|
|
|
|
void tglBlitNoBlend(int blitTextureHandle, int dstX, int dstY, int width, int height, int srcX, int srcY, int srcWidth, int srcHeight, float rotation, float rTint, float gTint, float bTint, float aTint);
|
|
|
|
|
|
|
|
// Disables blending, transforms and tinting.
|
|
|
|
void tglBlitFast(int blitTextureHandle, int x, int y, int width, int height);
|
|
|
|
}
|
|
|
|
|
|
|
|
#endif
|