mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-23 09:23:50 +00:00
31 lines
605 B
C++
31 lines
605 B
C++
|
#include <iostream>
|
||
|
#include <fstream>
|
||
|
|
||
|
using namespace std;
|
||
|
|
||
|
#include "../servers/sdl_driver.hpp"
|
||
|
|
||
|
using namespace Mangle::Rend2D;
|
||
|
|
||
|
int main()
|
||
|
{
|
||
|
SDLDriver sdl;
|
||
|
|
||
|
sdl.setVideoMode(640,480,0,false);
|
||
|
sdl.setWindowTitle("Testing 123");
|
||
|
Sprite *screen = sdl.getScreen();
|
||
|
const char* imgName = "tile1-blue.png";
|
||
|
Sprite *image = sdl.loadImage(imgName);
|
||
|
|
||
|
for(int frames=0; frames<170; frames++)
|
||
|
{
|
||
|
screen->fill(0);
|
||
|
for(int j=0; j<10; j++)
|
||
|
for(int i=0; i<25; i++)
|
||
|
screen->draw(image, 2*frames+30*j, 20*i);
|
||
|
sdl.update();
|
||
|
sdl.sleep(10);
|
||
|
}
|
||
|
return 0;
|
||
|
}
|