| 1234567891011121314151617181920212223242526272829303132333435363738 |
- #ifndef TRIANGLESAMPLE_H_
- #define TRIANGLESAMPLE_H_
- #include "gameplay.h"
- #include "Sample.h"
- using namespace gameplay;
- /**
- * Sample creating and draw a single triangle.
- */
- class TriangleSample : public Sample
- {
- public:
- TriangleSample();
- void touchEvent(Touch::TouchEvent evt, int x, int y, unsigned int contactIndex);
- protected:
- void initialize();
- void finalize();
- void update(float elapsedTime);
- void render(float elapsedTime);
- private:
- Font* _font;
- Model* _model;
- float _spinDirection;
- Matrix _worldViewProjectionMatrix;
- };
- #endif
|