mirror of
https://github.com/libretro/Play-.git
synced 2024-12-04 15:26:23 +00:00
41 lines
955 B
C++
41 lines
955 B
C++
#ifndef _GSH_SOFTWARE_H_
|
|
#define _GSH_SOFTWARE_H_
|
|
|
|
#include "../GSHandler.h"
|
|
#include "win32/Window.h"
|
|
#include <ddraw.h>
|
|
|
|
class CGSH_Software : public CGSHandler
|
|
{
|
|
public:
|
|
CGSH_Software(Framework::Win32::CWindow*);
|
|
virtual ~CGSH_Software();
|
|
|
|
static FactoryFunction GetFactoryFunction(Framework::Win32::CWindow*);
|
|
|
|
private:
|
|
static CGSHandler* GSHandlerFactory(Framework::Win32::CWindow*);
|
|
|
|
virtual void InitializeImpl();
|
|
virtual void ReleaseImpl();
|
|
virtual void UpdateViewportImpl();
|
|
virtual void FlipImpl();
|
|
virtual void ProcessImageTransfer(uint32, uint32);
|
|
virtual void ReadFramebuffer(uint32, uint32, void*);
|
|
|
|
void RecreateFrameBuffer(unsigned int, unsigned int);
|
|
|
|
LPDIRECTDRAW m_pDirectDraw;
|
|
LPDIRECTDRAWSURFACE m_pPrimarySurface;
|
|
LPDIRECTDRAWSURFACE m_pFrameBufferSurface;
|
|
LPDIRECTDRAWCLIPPER m_pClipper;
|
|
|
|
unsigned int m_nWidth;
|
|
unsigned int m_nHeight;
|
|
|
|
Framework::Win32::CWindow* m_pOutputWnd;
|
|
uint32* m_pFrameBuffer;
|
|
};
|
|
|
|
#endif
|