Building Game Engines
PhysicsComponent.hpp
Go to the documentation of this file.
1 #ifndef PHYSICSCOMPONENT_HPP
2 #define PHYSICSCOMPONENT_HPP
3 
4 #include "Component.hpp"
5 #include "TransformComponent.hpp"
6 
10 class PhysicsComponent : public Component {
11  public:
23  PhysicsComponent(TransformComponent* transform, bool do_gravity);
32  void Update();
36  void Render(SDL_Renderer* renderer);
37 
38  private:
42  TransformComponent* transform;
46  bool do_gravity;
47 };
48 #endif
PhysicsComponent(TransformComponent *transform)
Definition: PhysicsComponent.cpp:4
void Update()
Definition: PhysicsComponent.cpp:15
~PhysicsComponent()
Definition: PhysicsComponent.cpp:13
Definition: TransformComponent.hpp:9
void Render(SDL_Renderer *renderer)
Definition: PhysicsComponent.cpp:27
Definition: Component.hpp:10
Definition: PhysicsComponent.hpp:10