mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-11-13 07:58:04 +00:00
b1763a8f4a
Not in active use yet!
29 lines
572 B
C++
29 lines
572 B
C++
|
|
#ifndef __GLTEXTURE_H
|
|
#define __GLTEXTURE_H
|
|
|
|
|
|
class FHardwareTexture //: public IHardwareTexture
|
|
{
|
|
public:
|
|
|
|
private:
|
|
|
|
unsigned int glTexID = 0;
|
|
int glTextureBytes = 4;
|
|
bool mipmapped = true;
|
|
int mWidth = 0, mHeight = 0;
|
|
|
|
public:
|
|
|
|
~FHardwareTexture();
|
|
|
|
unsigned int Bind(int texunit, bool needmipmap);
|
|
//bool BindOrCreate(FTexture *tex, int texunit, int clampmode, int translation, int flags);
|
|
|
|
unsigned int CreateTexture(int w, int h, bool eightbit, bool mipmapped);
|
|
unsigned int LoadTexture(unsigned char * buffer);
|
|
unsigned int GetTextureHandle();
|
|
};
|
|
|
|
#endif
|