#ifndef SPHEREGLRENDERER_H #define SPHEREGLRENDERER_H #include #include #include /** * @brief Sphere renderer */ class SphereGlRenderer { public: SphereGlRenderer(); SphereGlRenderer(int nPoints); /** * @brief Init this renderer to draw a sphere with a finite number of points */ void init(int nPoints); /** * @brief Render a sphere */ void render(); /** * @brief Returns the array that contains values */ const std::vector& getValues() const; /** * @brief Returns the array that contains theta phi values of each vertex */ const std::vector& getThetaPhiValues() const; /** * @brief Returns the array that contains indices */ const std::vector& getIndices() const; private: std::vector m_values; std::vector m_thetaPhiValues; std::vector m_indices; void initWithGlLineStrip(int nPoints); }; #endif // SPHEREGLRENDERER_H