projects
/
physics.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
graphics moved to folder, Make flags updated
[physics.git]
/
src
/
Entities
/
Ball.cpp
1
#include "Ball.h"
2
#include "../Vector2.h"
3
#include "../graphics/graphics.h"
4
5
/// ***** Public Class Methods *****
6
Ball::Ball(Vector2 pos, float radius)
7
: PhysicsEntity(pos), radius(radius)
8
{
9
10
}
11
Ball::~Ball()
12
{
13
14
}
15
16
void Ball::draw() const
17
{
18
// TODO
19
20
glDrawCircle(radius, &position);
21
}