| 1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- /*
- * PolyScreenMesh.h
- * Poly
- *
- * Created by Ivan Safrin on 5/6/08.
- * Copyright 2008 __MyCompanyName__. All rights reserved.
- *
- */
- // @package Screen
- #pragma once
- #include "PolyGlobals.h"
- #include "PolyCoreServices.h"
- #include "PolyScreenEntity.h"
- #include "PolyMesh.h"
- #include "PolyTexture.h"
- #include "PolyPolygon.h"
- #include <string>
- using std::string;
- namespace Polycode {
- class _PolyExport ScreenMesh : public ScreenEntity {
- public:
- ScreenMesh(string fileName);
- ScreenMesh(int meshType);
- ~ScreenMesh();
-
- void Render();
-
- Mesh *getMesh();
- Texture *getTexture();
- void loadTexture(string fileName);
- void loadTexture(Image *image);
- void setTexture(Texture *texture);
-
- protected:
-
- Mesh *mesh;
- Texture *texture;
- };
- }
|