27 lines
413 B
C++
27 lines
413 B
C++
|
#include "Window.h"
|
||
|
#include "Entity.h"
|
||
|
#include <functional>
|
||
|
#include <SDL2/SDL.h>
|
||
|
|
||
|
bool my_Draw(Window* win){
|
||
|
SDL_Renderer* ren = win->GetRenderer();
|
||
|
|
||
|
SDL_SetRenderDrawColor(ren, 0xff, 0x00, 0x00, 0x00);
|
||
|
|
||
|
return true;
|
||
|
}
|
||
|
|
||
|
int main(int argc, char *argv[])
|
||
|
{
|
||
|
/* Window win("test", 100, 100); */
|
||
|
/* win.Draw(my_Draw); */
|
||
|
|
||
|
Entity t({0, 0}, {1, 1}, {0,0});
|
||
|
t.Debug();
|
||
|
t.Update();
|
||
|
t.Debug();
|
||
|
|
||
|
|
||
|
return 0;
|
||
|
}
|