| 1234567891011121314151617181920212223 |
- #ifndef TEXTURE_H
- #define TEXTURE_H
- #include <string>
- #include "vector3D.h"
- class Texture{
- public:
- Texture(std::string path, std::string type);
- ~Texture();
- Vector3f getPixelVal(float u, float v);
- float getIntensityVal(float u, float v);
- private:
- int bilinearFiltering(float u, float v);
- void tileData();
- float *pixelData;
- int width, height, channels, tileW = 32, tileH = 32, widthInTiles;
- };
- #endif
|