Texture.h 386 Bytes
Newer Older
Anakin's avatar
Anakin committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#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;
};