MCPcopy Create free account
hub / github.com/ZDoom/gzdoom / DEFINE_ACTION_FUNCTION_NATIVE

Function DEFINE_ACTION_FUNCTION_NATIVE

src/scripting/vmthunks.cpp:71–79  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69void SetCameraToTexture(AActor *viewpoint, const FString &texturename, double fov);
70
71DEFINE_ACTION_FUNCTION_NATIVE(_TexMan, SetCameraToTexture, SetCameraToTexture)
72{
73 PARAM_PROLOGUE;
74 PARAM_OBJECT(viewpoint, AActor);
75 PARAM_STRING(texturename); // [ZZ] there is no point in having this as FTextureID because it's easier to refer to a cameratexture by name and it isn't executed too often to cache it.
76 PARAM_FLOAT(fov);
77 SetCameraToTexture(viewpoint, texturename, fov);
78 return 0;
79}
80
81static void SetCameraTextureAspectRatio(const FString &texturename, double aspectScale, bool useTextureRatio)
82{

Callers

nothing calls this directly

Calls 15

SetCameraToTextureFunction · 0.85
FindNextHighestFloorFunction · 0.85
FindNextLowestFloorFunction · 0.85
FindNextLowestCeilingFunction · 0.85
FindNextHighestCeilingFunction · 0.85
FindMinSurroundingLightFunction · 0.85
FindHighestFloorPointFunction · 0.85

Tested by

no test coverage detected