mirror of
https://github.com/utmapp/angle.git
synced 2026-12-01 14:00:09 -10:00
Some compiler versions are unable to resolve std::string without including <string> header. Bug: angleproject:4651 Change-Id: Ie2b9d843b55dc46278ed5571d82fa9c413f6b3c9 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2213664 Commit-Queue: Jamie Madill <[email protected]> Reviewed-by: Jamie Madill <[email protected]>
31 lines
651 B
C++
31 lines
651 B
C++
//
|
|
// Copyright 2014 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.
|
|
//
|
|
|
|
#ifndef SAMPLE_UTIL_TGA_UTILS_HPP
|
|
#define SAMPLE_UTIL_TGA_UTILS_HPP
|
|
|
|
#include <array>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
#include "util/gles_loader_autogen.h"
|
|
|
|
typedef std::array<unsigned char, 4> Byte4;
|
|
|
|
struct TGAImage
|
|
{
|
|
size_t width;
|
|
size_t height;
|
|
std::vector<Byte4> data;
|
|
|
|
TGAImage();
|
|
};
|
|
|
|
bool LoadTGAImageFromFile(const std::string &path, TGAImage *image);
|
|
GLuint LoadTextureFromTGAImage(const TGAImage &image);
|
|
|
|
#endif // SAMPLE_UTIL_TGA_UTILS_HPP
|