GL2D.h 636 B

12345678910111213141516171819
  1. #pragma once
  2. namespace GL2D
  3. {
  4. void checkErrors(const std::string & place);
  5. void initVideo(ui32 w, ui32 h, bool fullscreen);
  6. void attachToCurrentThread();
  7. bool setScreenRes(ui32 w, ui32 h, bool fullscreen);
  8. inline ui32 getScreenWidth() { extern ui32 screenWidth; return screenWidth; };
  9. inline ui32 getScreenHeight() { extern ui32 screenHeight; return screenHeight; };
  10. void assignTexture(ui32 slot, ui32 type, ui32 handle);
  11. void useNoShader();
  12. void useColorizeShader(const float cm[3][3]);
  13. void usePaletteBitmapShader(si32 x, si32 y);
  14. void usePaletteBitmapShader(si32 x, si32 y, const float cm[3][3]);
  15. }