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
|
|
@ -552,6 +552,15 @@ DEFINE_ACTION_FUNCTION_NATIVE(_TexMan, UseGamePalette, UseGamePalette)
|
|||
ACTION_RETURN_INT(UseGamePalette(texid));
|
||||
}
|
||||
|
||||
FCanvas* GetTextureCanvas(const FString& texturename);
|
||||
|
||||
DEFINE_ACTION_FUNCTION(_TexMan, GetCanvas)
|
||||
{
|
||||
PARAM_PROLOGUE;
|
||||
PARAM_STRING(texturename);
|
||||
ACTION_RETURN_POINTER(GetTextureCanvas(texturename));
|
||||
}
|
||||
|
||||
//=====================================================================================
|
||||
//
|
||||
// FFont exports
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue