Move TexMan.GetCanvas and GetTextureCanvas to common
This commit is contained in:
parent
753822359e
commit
e2778ba442
9 changed files with 56 additions and 43 deletions
|
|
@ -102,17 +102,6 @@ DEFINE_ACTION_FUNCTION_NATIVE(_TexMan, SetCameraTextureAspectRatio, SetCameraTex
|
|||
return 0;
|
||||
}
|
||||
|
||||
FCanvas* GetTextureCanvas(const FString& texturename);
|
||||
|
||||
DEFINE_ACTION_FUNCTION(_TexMan, GetCanvas)
|
||||
{
|
||||
PARAM_PROLOGUE;
|
||||
PARAM_STRING(texturename);
|
||||
FCanvas* canvas = GetTextureCanvas(texturename);
|
||||
if (numret > 0) ret[0].SetPointer(canvas);
|
||||
return numret;
|
||||
}
|
||||
|
||||
//=====================================================================================
|
||||
//
|
||||
// sector_t exports
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue