mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2024-11-13 07:57:51 +00:00
Added GetPixelStretch to LevelLocals struct.
This commit is contained in:
parent
2eb51e5f79
commit
1e7df5505e
3 changed files with 19 additions and 0 deletions
|
@ -1952,6 +1952,23 @@ DEFINE_ACTION_FUNCTION(FLevelLocals, SetInterMusic)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//==========================================================================
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//
|
||||||
|
//==========================================================================
|
||||||
|
|
||||||
|
float FLevelLocals::PixelStretch()
|
||||||
|
{
|
||||||
|
return level.info->pixelstretch;
|
||||||
|
}
|
||||||
|
|
||||||
|
DEFINE_ACTION_FUNCTION(FLevelLocals, GetPixelStretch)
|
||||||
|
{
|
||||||
|
PARAM_SELF_STRUCT_PROLOGUE(FLevelLocals);
|
||||||
|
ACTION_RETURN_FLOAT(self->PixelStretch());
|
||||||
|
}
|
||||||
|
|
||||||
//==========================================================================
|
//==========================================================================
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
|
|
|
@ -46,6 +46,7 @@ struct FLevelLocals
|
||||||
void Tick ();
|
void Tick ();
|
||||||
void AddScroller (int secnum);
|
void AddScroller (int secnum);
|
||||||
void SetInterMusic(const char *nextmap);
|
void SetInterMusic(const char *nextmap);
|
||||||
|
float PixelStretch();
|
||||||
|
|
||||||
uint8_t md5[16]; // for savegame validation. If the MD5 does not match the savegame won't be loaded.
|
uint8_t md5[16]; // for savegame validation. If the MD5 does not match the savegame won't be loaded.
|
||||||
int time; // time in the hub
|
int time; // time in the hub
|
||||||
|
|
|
@ -547,6 +547,7 @@ struct LevelLocals native
|
||||||
native static void WorldDone();
|
native static void WorldDone();
|
||||||
native static void RemoveAllBots(bool fromlist);
|
native static void RemoveAllBots(bool fromlist);
|
||||||
native void SetInterMusic(String nextmap);
|
native void SetInterMusic(String nextmap);
|
||||||
|
native double GetPixelStretch();
|
||||||
native String FormatMapName(int mapnamecolor);
|
native String FormatMapName(int mapnamecolor);
|
||||||
native bool IsJumpingAllowed() const;
|
native bool IsJumpingAllowed() const;
|
||||||
native bool IsCrouchingAllowed() const;
|
native bool IsCrouchingAllowed() const;
|
||||||
|
|
Loading…
Reference in a new issue