mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 12:22:35 +00:00
36 lines
529 B
C++
36 lines
529 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
#include <vector>
|
|
#include <map>
|
|
|
|
enum class CubeMapFace : int
|
|
{
|
|
PositiveX,
|
|
PositiveY,
|
|
PositiveZ,
|
|
NegativeX,
|
|
NegativeY,
|
|
NegativeZ
|
|
};
|
|
|
|
class Texture
|
|
{
|
|
public:
|
|
Texture();
|
|
|
|
void Set2DImage(int width, int height);
|
|
void SetCubeImage(int size);
|
|
|
|
void SetPixels(const void* data);
|
|
void SetCubePixels(CubeMapFace face, const void* data);
|
|
|
|
void* Lock();
|
|
void Unlock();
|
|
|
|
private:
|
|
int mWidth = 0;
|
|
int mHeight = 0;
|
|
bool mCubeTexture = false;
|
|
std::map<int, std::vector<uint32_t>> mPixels;
|
|
};
|