mirror of
https://github.com/glfw/glfw.git
synced 2025-10-05 06:06:36 +00:00
21 lines
363 B
C++
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;
|
|
};
|
|
|