19 lines
370 B
C
19 lines
370 B
C
|
#pragma once
|
||
|
|
||
|
#include <stdio.h>
|
||
|
|
||
|
#define GLEW_STATIC
|
||
|
#include <GL/glew.h>
|
||
|
|
||
|
#include <cglm/vec3.h>
|
||
|
|
||
|
struct Sphere
|
||
|
{
|
||
|
vec4 cr;
|
||
|
vec3 albedo;
|
||
|
};
|
||
|
|
||
|
struct Sphere makeSphere(vec3 center, float radius, vec3 albedo);
|
||
|
void updateSphereUniform(GLuint shaderProgram, struct Sphere sphere);
|
||
|
void updateSphereUniforms(GLuint shaderProgram, struct Sphere *spheres, int count);
|