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();
|
||||
|
|
|
@ -78,6 +78,7 @@ struct BlitImage;
|
|||
BlitImage *tglGenBlitImage();
|
||||
void tglUploadBlitImage(BlitImage *blitImage, const Graphics::Surface &surface, uint32 colorKey, bool applyColorKey);
|
||||
void tglDeleteBlitImage(BlitImage *blitImage);
|
||||
void tglGetBlitImageSize(BlitImage *blitImage, int &width, int &height);
|
||||
|
||||
void tglBlit(BlitImage *blitImage, const BlitTransform &transform);
|
||||
void tglBlit(BlitImage *blitImage, int x, int y);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue