glfw/examples/ShadowMaps/source/Model/SphereModel.h
2017-09-22 11:01:51 +08:00

21 lines
363 B
C++

#pragma once
#include "IModel.h"
/**
* A simple sphere model that is easy to render
*/
class SphereModel : public IModel
{
public:
// Methods
SphereModel(const std::string& sVSFileName, const std::string& sFSFileName, float radius, unsigned int meshPrecision);
void render() const;
private:
// Fields
float m_radius;
unsigned int m_meshPrecision;
};