TINYGL: Added an utility function that gives the size of a previously loaded blitImage.

This commit is contained in:
Stefano Musumeci 2014-07-27 19:51:16 +02:00
parent 2e8b9b3f4e
commit 29efd03671
2 changed files with 6 additions and 0 deletions

View file

@ -194,6 +194,11 @@ public:
Graphics::Surface _surface;
};
void tglGetBlitImageSize(BlitImage *blitImage, int &width, int &height) {
width = blitImage->_surface.w;
height = blitImage->_surface.h;
}
BlitImage *tglGenBlitImage() {
TinyGL::GLContext *c = TinyGL::gl_get_context();
BlitImage *image = new BlitImage();