--- a/pmc/main.cc
+++ b/pmc/main.cc
@@ -37,10 +37,11 @@
Vector p1 (0, 0);
Vector p2 (height, 0);
- Vector p3 (height, height);
- Vector p4 (0, height);
+ Vector p3 (height + 100, height + 100);
+ Vector p4 (100, height + 100);
- surface = new Surface (1024, 768, 16);
+ surface = new Surface (1024, 768, 32);
+ SDL_WM_SetCaption ("Pimp my Cube", NULL);
d[0] = new Rectangle (surface, p1, p2, p3, p4);
d[1] = new Cube (surface);
@@ -51,7 +52,7 @@
x = y = 0;
- d[1]->move (Vector (25, 25));
+ d[1]->move (Vector (3 * height, 25));
d[2]->move (Vector (290, 0));
while (running) {
@@ -64,7 +65,7 @@
surface->setColor (Surface::BLACK);
for (i = 0; i < MAX; i++)
d[i]->show ();
- surface->setColor (Surface::RED);
+ surface->setColor (Surface::GREEN);
switch (event.key.keysym.sym) {
case SDLK_ESCAPE: