#ifndef KUGLA_H
#define KUGLA_H
#include <assert.h>
#include <stdlib.h>
#include <math.h>
#include <GL/gl.h>
#ifndef M_PI
#define M_PI 3.14159265358979323846264338327
#endif
struct kugla_t{
float r;
float m;
float n;
float h;
float s;
int vrhovi_hv_len;
GLfloat *vrhovi_hv;
int normale_hv_len;
GLfloat *normale_hv;
int indeksi_hv_len;
GLuint *indeksi_hv;
int vrhovi_sfera_len;
GLfloat *vrhovi_sfera;
int normale_sfera_len;
GLfloat *normale_sfera;
int indeksi_sfera_len;
GLuint *indeksi_sfera;
int vrhovi_hn_len;
GLfloat *vrhovi_hn;
int normale_hn_len;
GLfloat *normale_hn;
int indeksi_hn_len;
GLuint *indeksi_hn;
};
struct kugla_t* kugla_inicijaliziraj(float, float, float, float, float);
void kugla_crtaj(struct kugla_t*);
void kugla_oslobodi(struct kugla_t*);
#endif