1#ifndef KORE_VIDEO_HEADER
2#define KORE_VIDEO_HEADER
6#include <kore3/backend/video.h>
Provides basic functionality that's used all over the place. There's usually no need to manually incl...
Provides functions for handling textures.
KORE_FUNC kore_gpu_texture * kore_video_current_image(kore_video *video)
Gets the current image of a playing video which can be rendered using Kore's GPU API.
KORE_FUNC int kore_video_width(kore_video *video)
Gets the width of the video in pixels.
KORE_FUNC bool kore_video_finished(kore_video *video)
Returns whether the video reached its end.
KORE_FUNC double kore_video_position(kore_video *video)
Returns the current playback-position of the video in seconds.
KORE_FUNC void kore_video_pause(kore_video *video)
Pauses a video.
KORE_FUNC void kore_video_play(kore_video *video, bool loop)
Starts playing a video.
KORE_FUNC double kore_video_duration(kore_video *video)
Gets the duration of the video in seconds.
KORE_FUNC void kore_video_update(kore_video *video, double time)
Call this every frame to update the video. This is not required on all targets but where it's not req...
KORE_FUNC bool kore_video_paused(kore_video *video)
Returns whether the video is currently paused.
KORE_FUNC int kore_video_height(kore_video *video)
Gets the height of the video in pixels.
KORE_FUNC const char ** kore_video_formats(void)
Returns the list of video formats which are supported on the current system.
KORE_FUNC void kore_video_destroy(kore_video *video)
Destroys a video object.
KORE_FUNC void kore_video_stop(kore_video *video)
Stops a video which is equivalent to pausing it and setting the position to 0.
KORE_FUNC void kore_video_init(kore_video *video, const char *filename)
Prepares a video object based on an encoded video-file.