|
|
@ -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); |
|
|
|
} |
|
|
|
} |