Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
VideoBindings.hpp
Go to the documentation of this file.
1// SPDX-License-Identifier: Apache-2.0
2// SPDX-FileCopyrightText: Copyright (c) 2024-present ESEngine Team
23#pragma once
24
25#include <cstdint>
26
27extern "C" {
28
31int es_video_open(uintptr_t dataPtr, uint32_t size);
33void es_video_close(int handle);
34
35uint32_t es_video_width(int handle);
36uint32_t es_video_height(int handle);
37double es_video_duration(int handle);
38double es_video_framerate(int handle);
40double es_video_time(int handle);
41void es_video_set_loop(int handle, int loop);
42int es_video_has_ended(int handle);
43
45int es_video_advance(int handle, double dt);
47int es_video_frame_rgba(int handle, uintptr_t outPtr, uint32_t outSize);
49int es_video_seek(int handle, double time);
50
51} // extern "C"
void es_video_set_loop(int handle, int loop)
int es_video_has_ended(int handle)
uint32_t es_video_width(int handle)
uint32_t es_video_height(int handle)
int es_video_advance(int handle, double dt)
double es_video_duration(int handle)
int es_video_seek(int handle, double time)
double es_video_framerate(int handle)
int es_video_open(uintptr_t dataPtr, uint32_t size)
double es_video_time(int handle)
int es_video_frame_rgba(int handle, uintptr_t outPtr, uint32_t outSize)
void es_video_close(int handle)