2016-09-06 13:15:29 +00:00
|
|
|
#pragma once
|
|
|
|
#include <vector>
|
|
|
|
|
|
|
|
|
|
|
|
class TextureTGA
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
TextureTGA(const char* filePath);
|
|
|
|
~TextureTGA();
|
|
|
|
|
|
|
|
private:
|
2016-11-24 18:40:17 +00:00
|
|
|
std::vector<std::uint8_t>* vui8Pixels;
|
|
|
|
std::uint32_t ui32BpP;
|
2016-09-06 13:15:29 +00:00
|
|
|
std::uint32_t ui32Width;
|
|
|
|
std::uint32_t ui32Height;
|
|
|
|
|
|
|
|
public:
|
2016-11-24 18:40:17 +00:00
|
|
|
std::vector<std::uint8_t>* getData() const;
|
2016-09-06 13:15:29 +00:00
|
|
|
bool hasAlpha() const;
|
|
|
|
std::uint32_t getWidth() const;
|
|
|
|
std::uint32_t getHeight() const;
|
|
|
|
};
|