mirror of
https://forgejo.xatacraft.ru/Sunshine/mkxp-sunshine.git
synced 2026-08-19 13:29:54 +00:00
time in shaders
This commit is contained in:
parent
30b3136398
commit
1365577393
8 changed files with 5 additions and 9 deletions
|
|
@ -216,7 +216,7 @@ static void setGamePathInRegistry() {
|
|||
}
|
||||
int main(int argc, char *argv[]){
|
||||
SecurityManagerInit();
|
||||
starttime = boost::chrono::high_resolution_clock::now();
|
||||
startTime = boost::chrono::high_resolution_clock::now();
|
||||
loadLanguageMetadata(); //there will be a segfault on fclose if I don't move it here
|
||||
|
||||
SDL_SetHint(SDL_HINT_VIDEO_MINIMIZE_ON_FOCUS_LOSS, "0");
|
||||
|
|
|
|||
|
|
@ -34,6 +34,7 @@
|
|||
#include "etc-internal.h"
|
||||
#include "shader.h"
|
||||
#include "glstate.h"
|
||||
#include "sunshine.h"
|
||||
|
||||
#include <sigc++/connection.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -36,8 +36,6 @@ struct PlanePrivate;
|
|||
|
||||
class Plane : public ViewportElement, public Disposable{
|
||||
public:
|
||||
boost::chrono::high_resolution_clock::time_point startTime = boost::chrono::high_resolution_clock::now();
|
||||
|
||||
Plane(Viewport *viewport = 0);
|
||||
~Plane();
|
||||
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@
|
|||
#include "quadarray.h"
|
||||
#include "config.h"
|
||||
#include "debugwriter.h"
|
||||
#include "sunshine.h"
|
||||
|
||||
#include <math.h>
|
||||
|
||||
|
|
|
|||
|
|
@ -40,8 +40,6 @@ struct SpritePrivate;
|
|||
|
||||
class Sprite : public ViewportElement, public Flashable, public Disposable{
|
||||
public:
|
||||
boost::chrono::high_resolution_clock::time_point startTime = boost::chrono::high_resolution_clock::now();
|
||||
|
||||
Sprite(Viewport *viewport = 0);
|
||||
~Sprite();
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
#include <boost/chrono.hpp>
|
||||
//помойка ебаная
|
||||
inline boost::chrono::high_resolution_clock::time_point starttime;
|
||||
inline boost::chrono::high_resolution_clock::time_point startTime;
|
||||
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@
|
|||
#include "vertex.h"
|
||||
#include "tileatlas.h"
|
||||
#include "tilemap-common.h"
|
||||
#include "sunshine.h"
|
||||
|
||||
#include <sigc++/connection.h>
|
||||
#include <boost/chrono.hpp>
|
||||
|
|
@ -222,8 +223,6 @@ struct ZLayer : public ViewportElement {
|
|||
};
|
||||
|
||||
struct TilemapPrivate {
|
||||
boost::chrono::high_resolution_clock::time_point startTime = boost::chrono::high_resolution_clock::now();
|
||||
|
||||
Viewport *viewport;
|
||||
|
||||
Bitmap *autotiles[autotileCount];
|
||||
|
|
|
|||
|
|
@ -25,7 +25,6 @@
|
|||
#include "disposable.h"
|
||||
|
||||
#include "util.h"
|
||||
#include <boost/chrono.hpp>
|
||||
|
||||
class Viewport;
|
||||
class Bitmap;
|
||||
|
|
|
|||
Loading…
Reference in a new issue