mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-12-16 15:21:02 +00:00
36 lines
902 B
C++
36 lines
902 B
C++
#ifndef __GL_TEXTURE_H__
|
|
#define __GL_TEXTURE_H__
|
|
|
|
#include "r_defs.h"
|
|
#include "textures/textures.h"
|
|
|
|
class FBrightmapTexture : public FTexture
|
|
{
|
|
public:
|
|
FBrightmapTexture (FTexture *source);
|
|
~FBrightmapTexture ();
|
|
|
|
const uint8_t *GetColumn (unsigned int column, const Span **spans_out);
|
|
const uint8_t *GetPixels ();
|
|
void Unload ();
|
|
|
|
int CopyTrueColorPixels(FBitmap *bmp, int x, int y, int rotate, FCopyInfo *inf);
|
|
bool UseBasePalette() { return false; }
|
|
|
|
protected:
|
|
FTexture *SourcePic;
|
|
//uint8_t *Pixels;
|
|
//Span **Spans;
|
|
};
|
|
|
|
|
|
void gl_GenerateGlobalBrightmapFromColormap();
|
|
|
|
|
|
|
|
unsigned char *gl_CreateUpsampledTextureBuffer ( const FTexture *inputTexture, unsigned char *inputBuffer, const int inWidth, const int inHeight, int &outWidth, int &outHeight, bool hasAlpha );
|
|
int CheckDDPK3(FTexture *tex);
|
|
int CheckExternalFile(FTexture *tex, bool & hascolorkey);
|
|
|
|
#endif // __GL_HQRESIZE_H__
|
|
|