This repository has been archived on 2023-10-28. You can view files and clone it, but cannot push or open issues or pull requests.
frostbite/snowlib/Texture.h
2020-02-06 00:23:46 +00:00

30 lines
475 B
C++

#pragma once
class Texture
{
public:
Texture(int logw, int logh, int w, int h, unsigned char* dataIn, int dataLengthIn)
{
logicalWidth = logw;
logicalHeight = logh;
widthPixels = w;
heightPixels = h;
dataLength = dataLengthIn;
data = dataIn;
}
~Texture()
{
delete data;
}
int logicalWidth;
int logicalHeight;
int widthPixels;
int heightPixels;
int dataLength;
unsigned char* data;
};