animation struct with function pointer