mirror of
https://github.com/godotengine/godot-angle-static.git
synced 2026-01-06 02:09:55 +03:00
Now works when run in a sequence. Also saves RGB images to avoid issues with the alpha being inconsistent and also flips images vertically to fix the rendering. Bug: angleproject:4615 Change-Id: I8d3b38c5d914e0ca2227320ac42a0e28acd12c4d Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2187971 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by: Cody Northrop <cnorthrop@google.com>
25 lines
570 B
C++
25 lines
570 B
C++
//
|
|
// Copyright 2020 The ANGLE Project Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
//
|
|
// png_utils: Wrapper around libpng.
|
|
//
|
|
|
|
#ifndef UTIL_PNG_UTILS_H_
|
|
#define UTIL_PNG_UTILS_H_
|
|
|
|
#include <cstdint>
|
|
#include <vector>
|
|
|
|
namespace angle
|
|
{
|
|
bool SavePNGRGB(const char *fileName,
|
|
const char *title,
|
|
uint32_t width,
|
|
uint32_t height,
|
|
const std::vector<uint8_t> &rgbData);
|
|
} // namespace angle
|
|
|
|
#endif // UTIL_PNG_UTILS_H_
|