implemented vsynch for d3d9 and glfw

This commit is contained in:
aap
2020-05-02 10:08:19 +02:00
parent 3704fe8a9f
commit b3ad490d1b
10 changed files with 35 additions and 15 deletions

View File

@@ -179,6 +179,8 @@ struct RasterLevels
struct Raster
{
enum { FLIPWAITVSYNCH = 1 };
PLUGINBASE
int32 platform;
@@ -219,6 +221,8 @@ struct Raster
static int32 calculateNumLevels(int32 width, int32 height);
static bool formatHasAlpha(int32 format);
void show(uint32 flags);
static Raster *pushContext(Raster *raster);
static Raster *popContext(void);
static Raster *getCurrentContext(void);
@@ -698,7 +702,7 @@ struct Camera
void beginUpdate(void) { this->beginUpdateCB(this); }
void endUpdate(void) { this->endUpdateCB(this); }
void clear(RGBA *col, uint32 mode);
void showRaster(void);
void showRaster(uint32 flags);
void setNearPlane(float32);
void setFarPlane(float32);
void setViewWindow(const V2d *window);