Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
#include <Siv3D.hpp>
// hqx : https://code.google.com/archive/p/hqx/
extern "C" {
#include "hqx.h"
};
void Main()
{
Image imgSrc(L"s3dkundot.png");
Image imgDst(imgSrc.size * 3);
hqxInit();
StopwatchMicrosec stopwatch(true);
hq3x_32((uint32_t*)imgSrc.data(), (uint32_t*)imgDst.data(), imgSrc.width, imgSrc.height);
stopwatch.pause();
const Texture texSrc(imgSrc);
const Texture texDst(imgDst);
while (System::Update())
{
texSrc.draw(10, 30).drawFrame();
texDst.draw(10 + texSrc.width + 10, 30).drawFrame();
PutText(stopwatch.ms(), L" msec").from(10, 0);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment