4 #include "include_opengl.h"
15 Texture(GLuint textureHandle, GLuint width=0.f, GLuint height=0.f,
bool hasMipmaps=
false,
bool isSingleChannel=
false,
float anisotropy=1.f);
18 bool hasMipmaps()
const;
19 bool isSingleChannel()
const;
20 float getAnisotropy()
const;
22 GLuint getTextureHandle()
const;
24 static Texture* createFromPNG(std::string& path,
bool mipmaps=
false,
bool singleChannel=
false,
float anisotropy=1.0f);
25 static Texture* createFromPNG(
const std::vector<std::string>& paths);
28 unsigned _width, _height;
33 static double evalScatteringIntegrand(
double u,
double xi);
36 bool _isSingleChannel;
39 GLuint _textureHandle;
43 static GLuint loadPNG(std::string& path,
bool mipmaps,
bool singleChannel,
float anisotropy,
unsigned* width=
nullptr,
unsigned* height=
nullptr);