blob: 22fa5b1c8c2c8ad18bce05991710bbc21bc3745e [file] [log] [blame]
Geoff Lang49be2ad2014-02-28 13:05:51 -05001//
2// Copyright (c) 2014 The ANGLE Project Authors. All rights reserved.
3// Use of this source code is governed by a BSD-style license that can be
4// found in the LICENSE file.
5//
6
7#ifndef SAMPLE_UTIL_TGA_UTILS_HPP
8#define SAMPLE_UTIL_TGA_UTILS_HPP
9
10#include <GLES2/gl2.h>
11
12#include <array>
13#include <vector>
14
15typedef std::array<unsigned char, 4> Byte4;
16
17struct TGAImage
18{
19 size_t width;
20 size_t height;
21 std::vector<Byte4> data;
22
23 TGAImage();
24};
25
26bool LoadTGAImageFromFile(const std::string &path, TGAImage *image);
27GLuint LoadTextureFromTGAImage(const TGAImage &image);
28
29#endif // SAMPLE_UTIL_TGA_UTILS_HPP