mirror of
https://github.com/PoetryInCode/simple-rigid-sim.git
synced 2025-04-19 18:17:14 -04:00
circle set position
This commit is contained in:
parent
1b05983640
commit
8c0714c8c6
@ -41,6 +41,9 @@ void Circle::render(SDL_Renderer *renderer) {
|
||||
SDL_SetRenderDrawColor(renderer,r,g,b,a);
|
||||
}
|
||||
|
||||
void Circle::setPosition(Vector vec) {
|
||||
center = vec;
|
||||
}
|
||||
/*
|
||||
bool Circle::isInitialized() {
|
||||
if(center.x == NULL) {
|
||||
|
@ -28,6 +28,7 @@ class Circle {
|
||||
void render(SDL_Renderer *renderer);
|
||||
void translate(Vector vec);
|
||||
void setColor(Color c);
|
||||
void setPosition(Vector vec);
|
||||
//bool isInitialized();
|
||||
};
|
||||
#endif
|
Loading…
x
Reference in New Issue
Block a user