mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-09 04:51:49 +00:00
test environment (sky)
This commit is contained in:
parent
c4d5812b4f
commit
a7ad219261
14 changed files with 421 additions and 196 deletions
|
|
@ -11,19 +11,21 @@ protected:
|
|||
uint id;
|
||||
uint width;
|
||||
uint height;
|
||||
uint format;
|
||||
public:
|
||||
Texture(uint id, uint width, uint height);
|
||||
Texture(uint id, uint width, uint height, ImageFormat imageFormat);
|
||||
Texture(const ubyte* data, uint width, uint height, ImageFormat format);
|
||||
virtual ~Texture();
|
||||
|
||||
virtual void bind() const;
|
||||
virtual void unbind() const;
|
||||
void reload(const ubyte* data, uint w, uint h);
|
||||
virtual void reload(const ubyte* data, uint w, uint h);
|
||||
void reloadPartial(const ImageData& image, uint x, uint y, uint w, uint h);
|
||||
|
||||
void setNearestFilter();
|
||||
|
||||
void reload(const ImageData& image);
|
||||
virtual void resize(uint w, uint h);
|
||||
|
||||
void setMipMapping(bool flag, bool pixelated);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue