Fix mirrors, poly draw (WIP), and game over screen. Temp disable high scores.

This commit is contained in:
elasota
2019-12-28 19:50:29 -05:00
parent d9e61cffac
commit 08fac98637
42 changed files with 666 additions and 333 deletions

View File

@@ -0,0 +1,40 @@
#include "ScanlineMaskIterator.h"
namespace PortabilityLayer
{
ScanlineMaskIterator::ScanlineMaskIterator(const void *data, ScanlineMaskDataStorage dataStorage)
: m_loc(data)
, m_storage(dataStorage)
{
}
size_t ScanlineMaskIterator::Next()
{
switch (m_storage)
{
case ScanlineMaskDataStorage_UInt8:
{
const uint8_t *loc = static_cast<const uint8_t*>(m_loc);
uint8_t value = *loc;
m_loc = loc + 1;
return value;
}
case ScanlineMaskDataStorage_UInt16:
{
const uint16_t *loc = static_cast<const uint16_t*>(m_loc);
uint16_t value = *loc;
m_loc = loc + 1;
return value;
}
case ScanlineMaskDataStorage_UInt32:
{
const uint32_t *loc = static_cast<const uint32_t*>(m_loc);
uint32_t value = *loc;
m_loc = loc + 1;
return value;
}
default:
return 0;
}
}
}