1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00
DDrawCompat/DDrawCompat/DDraw/RealPrimarySurface.h
2018-12-08 21:53:40 +01:00

35 lines
779 B
C++

#pragma once
#define CINTERFACE
#include <ddraw.h>
#include "Common/CompatWeakPtr.h"
#include "Common/CompatRef.h"
namespace DDraw
{
class RealPrimarySurface
{
public:
template <typename DirectDraw>
static HRESULT create(CompatRef<DirectDraw> dd);
static void disableUpdates();
static void enableUpdates();
static HRESULT flip(DWORD flags);
static HRESULT getGammaRamp(DDGAMMARAMP* rampData);
static CompatWeakPtr<IDirectDrawSurface7> getSurface();
static void init();
static bool isFullScreen();
static bool isLost();
static void release();
static void removeUpdateThread();
static HRESULT restore();
static HRESULT setGammaRamp(DDGAMMARAMP* rampData);
static void setPalette();
static void update();
static void updatePalette();
};
}