| 237 | |
| 238 | public: |
| 239 | void init() override |
| 240 | { |
| 241 | input_grab = std::make_unique<wf::input_grab_t>("cube", output, nullptr, this, nullptr); |
| 242 | input_grab->set_wants_raw_input(true); |
| 243 | |
| 244 | animation.cube_animation.offset_y.set(0, 0); |
| 245 | animation.cube_animation.offset_z.set(0, 0); |
| 246 | animation.cube_animation.rotation.set(0, 0); |
| 247 | animation.cube_animation.zoom.set(1, 1); |
| 248 | animation.cube_animation.ease_deformation.set(0, 0); |
| 249 | |
| 250 | animation.cube_animation.start(); |
| 251 | |
| 252 | reload_background(); |
| 253 | |
| 254 | output->connect(&on_cube_control); |
| 255 | wf::gles::run_in_context([&] |
| 256 | { |
| 257 | load_program(); |
| 258 | }); |
| 259 | } |
| 260 | |
| 261 | void handle_pointer_button(const wlr_pointer_button_event& event) override |
| 262 | { |
nothing calls this directly
no test coverage detected