mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-11 15:21:51 +00:00
- adjustments for the DrawTexture interface changes.
This commit is contained in:
parent
bc42dd26c8
commit
1f0fd85d0e
4 changed files with 5 additions and 10 deletions
|
@ -299,7 +299,7 @@ void FGLRenderer::ClearBorders()
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
void FGLRenderer::DrawTexture(FTexture *img, DCanvas::DrawParms &parms)
|
||||
void FGLRenderer::DrawTexture(FTexture *img, DrawParms &parms)
|
||||
{
|
||||
double xscale = parms.destwidth / parms.texwidth;
|
||||
double yscale = parms.destheight / parms.texheight;
|
||||
|
|
|
@ -110,7 +110,7 @@ public:
|
|||
|
||||
void Begin2D();
|
||||
void ClearBorders();
|
||||
void DrawTexture(FTexture *img, DCanvas::DrawParms &parms);
|
||||
void DrawTexture(FTexture *img, DrawParms &parms);
|
||||
void DrawLine(int x1, int y1, int x2, int y2, int palcolor, uint32 color);
|
||||
void DrawPixel(int x1, int y1, int palcolor, uint32 color);
|
||||
void Dim(PalEntry color, float damount, int x1, int y1, int w, int h);
|
||||
|
|
|
@ -402,14 +402,9 @@ bool OpenGLFrameBuffer::Begin2D(bool)
|
|||
//
|
||||
//==========================================================================
|
||||
|
||||
void STACK_ARGS OpenGLFrameBuffer::DrawTextureV(FTexture *img, double x0, double y0, uint32 tag, va_list tags)
|
||||
void STACK_ARGS OpenGLFrameBuffer::DrawTextureParms(FTexture *img, DrawParms &parms)
|
||||
{
|
||||
DrawParms parms;
|
||||
|
||||
if (ParseDrawTextureTags(img, x0, y0, tag, tags, &parms, true))
|
||||
{
|
||||
if (GLRenderer != NULL) GLRenderer->DrawTexture(img, parms);
|
||||
}
|
||||
}
|
||||
|
||||
//==========================================================================
|
||||
|
|
|
@ -58,7 +58,7 @@ public:
|
|||
virtual void ReleaseScreenshotBuffer();
|
||||
|
||||
// 2D drawing
|
||||
void STACK_ARGS DrawTextureV(FTexture *img, double x, double y, uint32 tag, va_list tags);
|
||||
void DrawTextureParms(FTexture *img, DrawParms &parms);
|
||||
void DrawLine(int x1, int y1, int x2, int y2, int palcolor, uint32 color);
|
||||
void DrawPixel(int x1, int y1, int palcolor, uint32 color);
|
||||
void Clear(int left, int top, int right, int bottom, int palcolor, uint32 color);
|
||||
|
|
Loading…
Reference in a new issue