master
BuildTools 4 years ago
parent 9f78bbb528
commit 004a7ac0f7
  1. 2
      demo/demo.cpp
  2. 1
      main.cpp

@ -10,10 +10,8 @@ void game::run(SDL_Renderer* renderer)
SDL_RenderDrawLine(renderer, ray2.start.x, ray2.start.y, ray2.end.x, ray2.end.y); SDL_RenderDrawLine(renderer, ray2.start.x, ray2.start.y, ray2.end.x, ray2.end.y);
} }
//demo rays with moving object
global::entList.at(0)->x = global::mousePos.x; global::entList.at(0)->x = global::mousePos.x;
global::entList.at(0)->y = global::mousePos.y; global::entList.at(0)->y = global::mousePos.y;
global::entList.run(renderer); global::entList.run(renderer);
global::entList3D.run(renderer); global::entList3D.run(renderer);
} }

@ -19,6 +19,7 @@ int main(int argc, char** argv)
SDL_Event eventHandler; SDL_Event eventHandler;
global::entList.push_back(&square(200, 200, 50)); global::entList.push_back(&square(200, 200, 50));
//global::entList3D.push_back(&cube(200, 200, 200, 50));
while (global::running) while (global::running)
{ {

Loading…
Cancel
Save