| 1234567891011121314151617181920212223242526272829303132 |
- #ifndef SURFACE_H
- #define SURFACE_H
- #include <Ogre.h>
- struct Surface
- {
- Surface();
- Surface( const Surface © );
- Surface& operator =( const Surface © );
- ~Surface();
- unsigned char *pixels;
- int width;
- int height;
- };
- Surface* CreateSurface( const int width, const int height );
- void CopyToSurface( Surface* dest, const int x_d, const int y_d, Surface* src );
- Surface* CreateSubSurface( const int x, const int y, const int width, const int height, Surface* surface );
- Surface* CreateSurfaceFrom( const int width, const int height, unsigned char* pixels );
- void SetSurfaceSize( Surface* &surface, const int &width, const int &height );
- #endif
|