aboutsummaryrefslogtreecommitdiff
path: root/builtin/common/tests
ModeNameSize
-rw-r--r--misc_helpers_spec.lua2811logplain
-rw-r--r--serialize_spec.lua1462logplain
-rw-r--r--vector_spec.lua8502logplain
an class="hl com">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 Lesser General Public License for more details. You should have received a copy of the GNU Lesser 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. */ #ifndef _IMAGE_FILTERS_H_ #define _IMAGE_FILTERS_H_ #include "irrlichttypes_extrabloated.h" /* Fill in RGB values for transparent pixels, to correct for odd colors * appearing at borders when blending. This is because many PNG optimizers * like to discard RGB values of transparent pixels, but when blending then * with non-transparent neighbors, their RGB values will shpw up nonetheless. * * This function modifies the original image in-place. * * Parameter "threshold" is the alpha level below which pixels are considered * transparent. Should be 127 for 3d where alpha is threshold, but 0 for * 2d where alpha is blended. */ void imageCleanTransparent(video::IImage *src, u32 threshold);