pmc/include/cube.hpp
author Markus Brökers <mbroeker@largo.homelinux.org>
Sun, 29 Aug 2010 16:36:19 +0200
changeset 145 63a5269fb113
parent 65 76514757b0d6
permissions -rw-r--r--
removed code without effect time_t represents the number of seconds since the birth of unix. to deal with microseconds and friends, use a) gettimeofday b) struct timeval

/**
 * test/demos/pmc/include/cube.h
 * Copyright (C) 2008 Markus Broeker
 */

#ifndef _CUBE_H
#define _CUBE_H

#include <surface.hpp>
#include <vector.hpp>
#include <rectangle.hpp>

class Cube:public Drawable {
  private:
    algebra::Vector * P[8];
    int height;

  public:
    Cube (Surface *, algebra::Vector &, algebra::Vector &, algebra::Vector &, algebra::Vector &, int);
    Cube (Surface *, algebra::Vector[4], int);
    Cube (Surface *);
    Cube (const Cube &);
    virtual ~ Cube ();

    void show ();
    void move (algebra::Vector);
};
#endif