26 lines
320 B
C++
26 lines
320 B
C++
#include <sprstk/sprstk.h>
|
|
|
|
namespace
|
|
{
|
|
|
|
void update(sprstk* instance, float dt, void* userdata)
|
|
{
|
|
for (int i = 0; i < 10; i += 2)
|
|
{
|
|
sprstk_put(instance, i, 0);
|
|
}
|
|
}
|
|
|
|
}
|
|
|
|
int main()
|
|
{
|
|
sprstk* instance = sprstk_new({.update = update}, nullptr);
|
|
|
|
sprstk_run(instance);
|
|
|
|
sprstk_stop(instance);
|
|
|
|
return 0;
|
|
}
|