diff options
author | Jon Bergli Heier <snakebite@jvnv.net> | 2010-05-17 15:26:33 +0200 |
---|---|---|
committer | Jon Bergli Heier <snakebite@jvnv.net> | 2010-05-17 15:26:33 +0200 |
commit | 8b5a03ca3f4cfe19fd8b21da5163e8dd37a2172f (patch) | |
tree | 4f6a67b3c6ce76c127f2b354e92f660bc33c1f80 | |
parent | 19649941d59ad43aca2068f15249fd64fb0abff2 (diff) |
Removed unused functions.
-rw-r--r-- | main.cpp | 46 |
1 files changed, 0 insertions, 46 deletions
@@ -72,50 +72,6 @@ class BulletPattern1 : public BulletPattern { } }; -void create_pattern1(unsigned int base) { - for(int j = 0; j < 8; j++) { - for(float i = 0; i < M_PI; i += 0.1) { - bullets_queue.push(BulletAdder(base + j * 400 + (unsigned int)(i*100), - Bullet( - Vector3(50.0 + sinf(j % 2 ? M_PI_2 + i : M_PI - i + M_PI_2) * 9, 80 + cosf(M_PI_2 + i) * 10, 0), - Vector3(sinf(j % 2 ? M_PI_2 + i : M_PI - i + M_PI_2) / 150.0, -0.01, 0), - 5))); - } - } -} - -void create_pattern2(unsigned int base) { - -} - -void create_pattern2_2(unsigned int base) { - for(float i = 0; i < M_PI * 64; i += 0.1) { - bullets_queue.push(BulletAdder(base + (unsigned int)(i*40), - Bullet( - Vector3(50.0 + cosf(i) * 5, - 50.0 + sinf(i) * 5, 0), - Vector3(cosf(i + i / 50.0) / 100.0, sinf(i + i / 50.0) / 100.0, 0), - 5))); - } -} - -void create_pattern3(unsigned int base) { - for(float i = 0; i < 101; i++) { - bullets_queue.push(BulletAdder(base + i, - Bullet( - Vector3(i, 90.0 - sinf(i), 0), - Vector3(cosf(i) / 100.0, (-5.0 + sinf(i)) / 200.0, 0), - 5))); - } -} - -void create_bullets() { - //create_pattern1(50); - //create_pattern2(9000); - //create_pattern3(12000); - //create_pattern2_2(100); -} - bool fullscreen = false; void toggle_fullscreen() { fullscreen = !fullscreen; @@ -157,8 +113,6 @@ int main(int, char**) { glShadeModel(GL_SMOOTH); - create_bullets(); - std::vector<BulletPattern*> patterns; patterns.push_back(new BulletPattern()); |