2014-07-12 11:54:27 +02:00
|
|
|
/* ResidualVM - A 3D game interpreter
|
|
|
|
*
|
|
|
|
* ResidualVM is the legal property of its developers, whose names
|
|
|
|
* are too numerous to list here. Please refer to the AUTHORS
|
|
|
|
* file distributed with this source distribution.
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2014-07-07 21:14:58 +02:00
|
|
|
#ifndef GRAPHICS_TINYGL_ZBLIT_H_
|
|
|
|
#define GRAPHICS_TINYGL_ZBLIT_H_
|
2014-07-02 19:08:47 +02:00
|
|
|
|
2014-07-07 21:14:58 +02:00
|
|
|
#include "common/rect.h"
|
2014-07-02 19:08:47 +02:00
|
|
|
|
2021-12-08 14:52:18 +01:00
|
|
|
#include "graphics/surface.h"
|
|
|
|
#include "graphics/tinygl/zblit_public.h"
|
2014-07-31 15:24:25 +02:00
|
|
|
|
2021-12-08 14:52:18 +01:00
|
|
|
namespace TinyGL {
|
2014-07-07 18:17:54 +02:00
|
|
|
|
2014-07-07 21:14:58 +02:00
|
|
|
struct BlitImage;
|
|
|
|
|
2014-07-23 15:18:57 +02:00
|
|
|
namespace Internal {
|
2014-08-09 14:33:23 +02:00
|
|
|
/**
|
|
|
|
@brief Performs a cleanup of disposed blit images.
|
|
|
|
*/
|
2014-07-23 21:37:45 +02:00
|
|
|
void tglCleanupImages(); // This function checks if any blit image is to be cleaned up and deletes it.
|
2021-05-04 11:45:03 +03:00
|
|
|
|
2014-08-09 14:33:23 +02:00
|
|
|
// Documentation for those is the same as the one before, only those function are the one that actually execute the correct code path.
|
2021-12-07 19:58:03 +01:00
|
|
|
void tglBlit(BlitImage *blitImage, const BlitTransform &transform);
|
2014-07-23 15:18:57 +02:00
|
|
|
|
|
|
|
// Disables blending explicitly.
|
2021-12-07 19:58:03 +01:00
|
|
|
void tglBlitNoBlend(BlitImage *blitImage, const BlitTransform &transform);
|
2014-07-23 15:18:57 +02:00
|
|
|
|
|
|
|
// Disables blending, transforms and tinting.
|
2021-12-07 19:58:03 +01:00
|
|
|
void tglBlitFast(BlitImage *blitImage, int x, int y);
|
2014-07-25 15:45:12 +02:00
|
|
|
|
2021-12-07 19:58:03 +01:00
|
|
|
void tglBlitZBuffer(BlitImage *blitImage, int x, int y);
|
2014-08-01 19:27:28 +02:00
|
|
|
|
2014-08-09 14:33:23 +02:00
|
|
|
/**
|
|
|
|
@brief Sets up a scissor rectangle for blit calls: every blit call is affected by this rectangle.
|
|
|
|
*/
|
2017-04-22 06:28:24 +00:00
|
|
|
void tglBlitSetScissorRect(const Common::Rect &rect);
|
|
|
|
void tglBlitResetScissorRect(void);
|
2014-07-23 15:18:57 +02:00
|
|
|
} // end of namespace Internal
|
2021-12-06 13:57:41 +01:00
|
|
|
} // end of namespace TinyGL
|
2014-07-12 11:41:55 +02:00
|
|
|
|
2014-07-07 21:14:58 +02:00
|
|
|
#endif // GRAPHICS_TINYGL_ZBLIT_H_
|