gzdoom-gles/src/gl/textures/gl_texture.h
2017-03-11 11:01:30 -05:00

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__