mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-02-14 11:44:33 +01:00
54 lines
884 B
C++
54 lines
884 B
C++
#pragma once
|
|
#include "sysutil_video.h"
|
|
#include "GSRender.h"
|
|
|
|
struct GSInfo
|
|
{
|
|
CellVideoOutResolution outresolution;
|
|
CellVideoOutDisplayMode mode;
|
|
|
|
GSInfo()
|
|
{
|
|
outresolution.width = 740;
|
|
outresolution.height = 480;
|
|
|
|
mode.resolutionId = CELL_VIDEO_OUT_RESOLUTION_576;
|
|
mode.scanMode = CELL_VIDEO_OUT_SCAN_MODE_INTERLACE;
|
|
mode.conversion = CELL_VIDEO_OUT_DISPLAY_CONVERSION_NONE;
|
|
mode.aspect = CELL_VIDEO_OUT_ASPECT_4_3;
|
|
mode.refreshRates = CELL_VIDEO_OUT_REFRESH_RATE_50HZ;
|
|
}
|
|
};
|
|
|
|
struct gcmBuffer
|
|
{
|
|
u32 offset;
|
|
u32 pitch;
|
|
u32 width;
|
|
u32 height;
|
|
bool update;
|
|
|
|
gcmBuffer() : update(false)
|
|
{
|
|
}
|
|
};
|
|
|
|
extern gcmBuffer gcmBuffers[2];
|
|
|
|
class GSManager
|
|
{
|
|
GSInfo m_info;
|
|
GSRender* m_render;
|
|
|
|
public:
|
|
GSManager();
|
|
|
|
void Init();
|
|
void Close();
|
|
|
|
GSInfo& GetInfo() { return m_info; }
|
|
GSRender& GetRender() { return *m_render; }
|
|
|
|
u8 GetState();
|
|
u8 GetColorSpace();
|
|
}; |