gzdoom-gles/src/gl/textures/gl_bitmap.h

44 lines
959 B
C++

#ifndef __GL_BITMAP_H
#define __GL_BITMAP_H
#include "textures/bitmap.h"
#include "gl/textures/gl_material.h"
class FGLBitmap : public FBitmap
{
bool alphatex;
int translation;
public:
FGLBitmap()
{
alphatex = false;
translation = 0;
}
FGLBitmap(BYTE *buffer, int pitch, int width, int height)
: FBitmap(buffer, pitch, width, height)
{
alphatex = false;
translation = 0;
}
void SetTranslationInfo(int _trans)
{
if (_trans == -1) alphatex = true;
else if (_trans != -1337) translation = _trans;
}
void SetAlphaTex()
{
alphatex = true;
}
virtual void CopyPixelDataRGB(int originx, int originy, const BYTE *patch, int srcwidth,
int srcheight, int step_x, int step_y, int rotate, int ct, FCopyInfo *inf = NULL);
virtual void CopyPixelData(int originx, int originy, const BYTE * patch, int srcwidth, int srcheight,
int step_x, int step_y, int rotate, PalEntry * palette, FCopyInfo *inf = NULL);
};
#endif