Add a 2d drawer to canvas textures

This commit is contained in:
Magnus Norddahl 2022-07-23 18:18:54 +02:00 committed by Christoph Oelckers
commit 4f0b02b396
11 changed files with 354 additions and 2 deletions

View file

@ -102,6 +102,17 @@ DEFINE_ACTION_FUNCTION_NATIVE(_TexMan, SetCameraTextureAspectRatio, SetCameraTex
return 0;
}
void SetCanvasToTexture(FCanvas* canvas, const FString& texturename);
DEFINE_ACTION_FUNCTION_NATIVE(_TexMan, SetCanvasToTexture, SetCanvasToTexture)
{
PARAM_PROLOGUE;
PARAM_OBJECT(canvas, FCanvas);
PARAM_STRING(texturename);
SetCanvasToTexture(canvas, texturename);
return 0;
}
//=====================================================================================
//
// sector_t exports