Skip to content
Snippets Groups Projects
Point.h 777 B
#ifndef MAKE_POINT_H_
#define MAKE_POINT_H_

#include <vector>

#include "utility/VertexArray.h"
#include "utility/VertexBuffer.h"
#include "utility/IndexBuffer.h"
#include "utility/Shader.h"
#include "utility/vecx.h"

class Point
{
private:

    VertexArray *Va;
    VertexBuffer *Vb;
    IndexBuffer *Ibo;
    Shader *S;

    glm::vec3 scale;

    std::vector<float> sphere_vertices;
    std::vector<float> sphere_normals;
    std::vector<float> sphere_texcoords;
    std::vector<unsigned int> sphere_indices;

    vec3f location = {0, 0, 0};

    void CreateCircleArray(unsigned int rings, unsigned int sectors);
public:
    Point(float size);
    Point();
    ~Point();
    void Draw(float x, float y, float z, glm::mat4 proj, glm::mat4 camera);
};

#endif // MAKE_POINT_H_