AppleWin/source/linux/linuxvideo.cpp
Andrea Odetti 247b51b2ab Integration of GetVideo().
Part 1.

Signed-off-by: Andrea Odetti <mariofutire@gmail.com>
2020-12-28 19:42:04 +00:00

49 lines
978 B
C++

#include "StdAfx.h"
#include "linux/linuxvideo.h"
#include "NTSC.h"
void LinuxVideo::Initialize()
{
static_assert(sizeof(bgra_t) == 4, "Invalid size of bgra_t");
VideoResetState();
const int numberOfPixels = GetFrameBufferWidth() * GetFrameBufferHeight();
g_pFramebufferbits = static_cast<uint8_t *>(calloc(sizeof(bgra_t), numberOfPixels));
NTSC_VideoInit(g_pFramebufferbits);
}
void LinuxVideo::Destroy()
{
free(g_pFramebufferbits);
g_pFramebufferbits = nullptr;
NTSC_Destroy();
}
void LinuxVideo::VideoRedrawScreenDuringFullSpeed(DWORD dwCyclesThisFrame, bool bInit)
{
}
void LinuxVideo::VideoRedrawScreenAfterFullSpeed(DWORD dwCyclesThisFrame)
{
}
void LinuxVideo::VideoRefreshScreen(uint32_t uRedrawWholeScreenVideoMode, bool bRedrawWholeScreen)
{
}
void LinuxVideo::Video_RedrawAndTakeScreenShot(const char* pScreenshotFilename)
{
}
void LinuxVideo::ChooseMonochromeColor()
{
}
void LinuxVideo::Benchmark()
{
}
void LinuxVideo::DisplayLogo()
{
}