Surface.h 714 B

1234567891011121314151617181920212223242526272829303132
  1. #ifndef SURFACE_H
  2. #define SURFACE_H
  3. #include <Ogre.h>
  4. struct Surface
  5. {
  6. Surface();
  7. Surface( const Surface &copy );
  8. Surface& operator =( const Surface &copy );
  9. ~Surface();
  10. unsigned char *pixels;
  11. int width;
  12. int height;
  13. };
  14. Surface* CreateSurface( const int width, const int height );
  15. void CopyToSurface( Surface* dest, const int x_d, const int y_d, Surface* src );
  16. Surface* CreateSubSurface( const int x, const int y, const int width, const int height, Surface* surface );
  17. Surface* CreateSurfaceFrom( const int width, const int height, unsigned char* pixels );
  18. void SetSurfaceSize( Surface* &surface, const int &width, const int &height );
  19. #endif