GLES2.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. /*
  2. * GLES2Renderer.h
  3. * seven
  4. *
  5. * Created by jarnoh on 15.4.2009.
  6. * Copyright 2009 __MyCompanyName__. All rights reserved.
  7. *
  8. */
  9. #pragma once
  10. #include "utility.h"
  11. #include "TileInterfaces.h"
  12. typedef unsigned int TDWORD;
  13. class GLES2Renderer: public ITileRenderer
  14. {
  15. public:
  16. GLES2Renderer();
  17. virtual ~GLES2Renderer();
  18. void renderTile( int fixedx, int fixedy,
  19. int fixedWidth, int fixedHeight,
  20. int angle,
  21. int mode,
  22. unsigned int tileIndex, unsigned int arg );
  23. void renderBackground( unsigned int index );
  24. void renderForeground( unsigned int index ) ;
  25. void effectNotify( eTILEGAME_EFFECT effect, unsigned int arg1, unsigned int arg2 );
  26. int run( int fixedFrameTime16Bit );
  27. protected:
  28. void play(int id);
  29. int previousMode;
  30. GLuint pixelShader;
  31. GLuint vertexShader;
  32. GLuint program;
  33. GLuint vbo;
  34. GLuint angleAlphaLocation;
  35. GLuint sizeTScaleLocation;
  36. GLuint tposPositionLocation;
  37. };