mirror of
https://github.com/glfw/glfw.git
synced 2025-10-05 06:06:36 +00:00
20 lines
294 B
C++
20 lines
294 B
C++
#pragma once
|
|
#include "IModel.h"
|
|
|
|
/**
|
|
* A simple cube model that is easy to render
|
|
*/
|
|
class CubeModel : public IModel
|
|
{
|
|
public:
|
|
// Methods
|
|
CubeModel(const std::string& sVSFileName, const std::string& sFSFileName, float side);
|
|
|
|
void render() const;
|
|
|
|
protected:
|
|
// Fields
|
|
float m_side;
|
|
};
|
|
|