Definition at line 80 of file pong.cpp.
◆ Paddle()
| anonymous_namespace{pong.cpp}::Paddle::Paddle |
( |
const glm::vec3 & | pos, |
|
|
const glm::vec3 & | sz ) |
|
inline |
◆ modelMatrix()
| glm::mat4 anonymous_namespace{pong.cpp}::Paddle::modelMatrix |
( |
| ) |
const |
|
inlinenodiscard |
Definition at line 109 of file pong.cpp.
109 {
110 glm::mat4 model(1.0f);
111 model = glm::translate(model,
position);
112 model = glm::rotate(model, glm::radians(
rotationAngle), glm::vec3(0.0f, 1.0f, 0.0f));
113 model = glm::scale(model,
size);
114 return model;
115 }
◆ startRotation()
| void anonymous_namespace{pong.cpp}::Paddle::startRotation |
( |
float | speed | ) |
|
|
inline |
◆ update()
| void anonymous_namespace{pong.cpp}::Paddle::update |
( |
float | deltaTime | ) |
|
|
inline |
Definition at line 91 of file pong.cpp.
91 {
93 return;
94 }
99 }
100 }
◆ isRotating
| bool anonymous_namespace{pong.cpp}::Paddle::isRotating = false |
◆ position
| glm::vec3 anonymous_namespace{pong.cpp}::Paddle::position |
◆ rotationAngle
| float anonymous_namespace{pong.cpp}::Paddle::rotationAngle = 0.0f |
◆ rotationSpeed
| float anonymous_namespace{pong.cpp}::Paddle::rotationSpeed = 0.0f |
◆ size
| glm::vec3 anonymous_namespace{pong.cpp}::Paddle::size |
The documentation for this class was generated from the following file: