SWBF2-Classic-Msh-Viewer/MshViewer/Header/Texture.h
Anakin e1e8e165fe removed unused information from texture,
don't copy the data, give a pointer,
there is some data left, need to find out if it's from these changes
2016-11-24 19:40:17 +01:00

23 lines
386 B
C++

#pragma once
#include <vector>
class TextureTGA
{
public:
TextureTGA(const char* filePath);
~TextureTGA();
private:
std::vector<std::uint8_t>* vui8Pixels;
std::uint32_t ui32BpP;
std::uint32_t ui32Width;
std::uint32_t ui32Height;
public:
std::vector<std::uint8_t>* getData() const;
bool hasAlpha() const;
std::uint32_t getWidth() const;
std::uint32_t getHeight() const;
};