You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

ugeentitycube.h 803B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. #ifndef UGEENTITYCUBE_H
  2. #define UGEENTITYCUBE_H
  3. #include "ugeentity.h"
  4. class UGEEntityCube : public UGEEntity
  5. {
  6. Q_OBJECT
  7. public:
  8. explicit UGEEntityCube(QObject *parent = 0);
  9. double getSize() const;
  10. QVariant getTextureId() const;
  11. virtual void draw(AbstractRenderDevice* device);
  12. signals:
  13. void sizeChanged();
  14. void sizeChanged(double);
  15. void textureChanged();
  16. void textureChanged(const QVariant& textureId);
  17. public slots:
  18. void setSize(double size);
  19. void increaseSize(double size);
  20. void setTextureId(const QVariant &textureId);
  21. private slots:
  22. void updateFaces();
  23. private:
  24. double _size;
  25. QVariant _textureId;
  26. QList<QList<TextureVector3D> > _facesTexture;
  27. QList<QList<ColorVector3D> > _facesColor;
  28. };
  29. #endif // UGEENTITYCUBE_H