TINYGL: Added an utility function that gives the size of a previously loaded blitImage.
This commit is contained in:
parent
2e8b9b3f4e
commit
29efd03671
2 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue