mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-10-08 23:41:06 +00:00
Minor extensions to script interface:
- quad_setRepeatTexture() - quad_setRepeatScale() - quad_isRepeatTexture() (bone, entity, ... as well) - getOldDT() - return unmodified dt - getDT() - as passed to update(), for complicated edge cases where dt is unavailable but required.
This commit is contained in:
parent
8ac88b9749
commit
93c59fdb28
3 changed files with 41 additions and 2 deletions
|
@ -953,6 +953,7 @@ Core::Core(const std::string &filesystem, const std::string& extraDataDir, int n
|
|||
|
||||
srand(time(NULL));
|
||||
old_dt = 0;
|
||||
current_dt = 0;
|
||||
|
||||
aspectX = 4;
|
||||
aspectY = 3;
|
||||
|
@ -2956,6 +2957,7 @@ void Core::main(float runTime)
|
|||
if (verbose) debugLog("modify dt");
|
||||
modifyDt(dt);
|
||||
|
||||
current_dt = dt;
|
||||
|
||||
if (verbose) debugLog("check runtime/quit");
|
||||
|
||||
|
|
|
@ -1277,6 +1277,7 @@ public:
|
|||
float aspectX, aspectY;
|
||||
|
||||
float get_old_dt() { return old_dt; }
|
||||
float get_current_dt() { return current_dt; }
|
||||
|
||||
bool debugLogActive;
|
||||
|
||||
|
@ -1330,6 +1331,7 @@ protected:
|
|||
void initIcon();
|
||||
|
||||
float old_dt;
|
||||
float current_dt;
|
||||
|
||||
std::string debugLogPath;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue