GL2D.h 587 B

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