|
#ifndef OAG_OAGCYLINDERMAPPING_H
#define OAG_OAGCYLINDERMAPPING_H
#include "..\TextureMapping\OAGTextureMapping.h"
namespace oag
{
class OAGCylinderMapping : public oag::OAGTextureMapping
{
public:
OAGCylinderMapping(void);
OAGCylinderMapping(float fBaseRadius, float fTopRadius, float fHeight);
virtual ~OAGCylinderMapping(void);
//Attributes
private:
GLUquadricObj* m_pQuadric;
float m_fBaseRadius, m_fTopRadius, m_fHeight; //Sizes for the cylinder
//Operations
//Virtual
public:
void OnDraw();
void ReadNodeXML(CXmlNode* pNode);
void SaveNodeXML(CXmlNode* pNode);
void SetTexture(oag::OAGTexture* pTexture);
};
};
#endif //OAG_OAGCYLINDERMAPPING_H
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
I live in Matão, a small city in Brazil. I studied as Programmer in a College for Software Development in Database.
After finishing the College I have been working with java, c# and Computer Graphics with searches for OpenGL.