eglutilsgles.h 825 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. /*
  2. * Copyright (c) 2011 Nokia Corporation.
  3. */
  4. #ifndef __EGLUTILS_GLES_H__
  5. #define __EGLUTILS_GLES_H__
  6. #include "eglutils.h"
  7. class EglUtilsGles : public EglUtils {
  8. public:
  9. EglUtilsGles();
  10. virtual ~EglUtilsGles();
  11. virtual void clear( float r=0, float g=0, float b=0);
  12. /*
  13. bool createWindow( int displayId, int handle );
  14. bool swapBuffers();
  15. // sets the context and surfaces as current
  16. virtual bool setCurrent();
  17. // clears the current context
  18. virtual bool clearContext();
  19. */
  20. /** Allocate and load texture from given file
  21. * @return rendering handle
  22. */
  23. virtual int loadTexture(const char *filename);
  24. /** Release allocated texture resource handle
  25. */
  26. virtual void releaseTexture(int textureHandle);
  27. };
  28. #endif