mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-07 12:01:50 +00:00
Cubemap class
This commit is contained in:
parent
87edb1d45e
commit
eefd327845
10 changed files with 105 additions and 41 deletions
|
|
@ -3,8 +3,7 @@
|
|||
|
||||
#include <string>
|
||||
#include "../typedefs.h"
|
||||
|
||||
class ImageData;
|
||||
#include "ImageData.h"
|
||||
|
||||
class Texture {
|
||||
protected:
|
||||
|
|
@ -13,10 +12,11 @@ protected:
|
|||
uint height;
|
||||
public:
|
||||
Texture(uint id, uint width, uint height);
|
||||
Texture(ubyte* data, uint width, uint height, uint format);
|
||||
Texture(ubyte* data, uint width, uint height, ImageFormat format);
|
||||
virtual ~Texture();
|
||||
|
||||
virtual void bind();
|
||||
virtual void unbind();
|
||||
virtual void reload(ubyte* data);
|
||||
|
||||
void setNearestFilter();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue