@@ -38,8 +38,6 @@ uint32_t circle_colors[] = {
static uint32_t pixels[WIDTH*HEIGHT];
static float angle = 0;
-void init(void) {}
-
uint32_t *render(float dt)
{
angle += 0.25*PI*dt;
@@ -12,10 +12,6 @@ float sinf(float);
uint32_t dst[WIDTH*HEIGHT];
float global_time = 0;
-void init(void)
-{
-}
#define SRC_SCALE 3
@@ -35,8 +35,6 @@ static inline void rotate_point(float *x, float *y)
*y = sinf(dir)*mag + HEIGHT/2;
}
Olivec_Canvas oc = olivec_canvas(pixels, WIDTH, HEIGHT, WIDTH);
@@ -17,8 +17,6 @@ int main(void)
SDL_Texture *texture = NULL;
- init();
if (SDL_Init(SDL_INIT_VIDEO) < 0) return_defer(1);
window = SDL_CreateWindow("Olivec", 0, 0, WIDTH, HEIGHT, 0);
@@ -145,8 +143,6 @@ SCALE_DOWN_FACTOR);
int main(void)
for (;;) {
compress_pixels(render(1.f/60.f));
for (size_t y = 0; y < SCALED_DOWN_HEIGHT; ++y) {
@@ -32,8 +32,6 @@ async function startDemo(elementId, wasmPath) {
"env": make_environment(libm)
});
- w.instance.exports.init();
let prev = null;
function first(timestamp) {
prev = timestamp;