GlesHelper.h 638 B

12345678910111213141516171819202122232425262728293031
  1. #pragma once
  2. #ifdef __OBJC__
  3. @class CAEAGLLayer;
  4. @class EAGLContext;
  5. #else
  6. typedef struct objc_object CAEAGLLayer;
  7. typedef struct objc_object EAGLContext;
  8. #endif
  9. #define MSAA_DEFAULT_SAMPLE_COUNT 1
  10. // in case of rendering to non-native resolution the texture filter we will use for upscale blit
  11. #define GLES_UPSCALE_FILTER GL_LINEAR
  12. //#define GLES_UPSCALE_FILTER GL_NEAREST
  13. // if gles support MSAA. We will need to recreate unity view if AA samples count was changed
  14. extern bool _supportsMSAA;
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. void CheckGLESError(const char* file, int line);
  19. #ifdef __cplusplus
  20. } // extern "C"
  21. #endif