sprstk/examples/basic.cpp
2025-08-03 10:09:55 -04:00

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;
}