2013-03-03 19:03:45 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
namespace GL2D
|
|
|
|
{
|
|
|
|
void initVideo(ui32 w, ui32 h, bool fullscreen);
|
|
|
|
void attachToCurrentThread();
|
|
|
|
bool setScreenRes(ui32 w, ui32 h, bool fullscreen);
|
|
|
|
|
|
|
|
inline ui32 getScreenWidth() { extern ui32 screenWidth; return screenWidth; };
|
|
|
|
inline ui32 getScreenHeight() { extern ui32 screenHeight; return screenHeight; };
|
|
|
|
|
|
|
|
void assignTexture(ui32 slot, ui32 type, ui32 handle);
|
|
|
|
void useNoShader();
|
2013-03-10 18:26:10 +00:00
|
|
|
void useColorizeShader(const float cm[3][3]);
|
2013-03-03 19:03:45 +00:00
|
|
|
void usePaletteBitmapShader(si32 x, si32 y);
|
2013-03-10 18:26:10 +00:00
|
|
|
void usePaletteBitmapShader(si32 x, si32 y, const float cm[3][3]);
|
2013-03-03 19:03:45 +00:00
|
|
|
}
|