pidgin/plugins/crazychat/sharky.h

Sun, 05 Apr 2020 20:55:28 +0100

author
David Woodhouse <dwmw2@infradead.org>
date
Sun, 05 Apr 2020 20:55:28 +0100
branch
release-2.x.y
changeset 40394
3c8f61de927c
parent 15435
4b933b06d75e
child 16238
33bf2fd32108
child 18068
b6554e3c8224
child 20478
46933dc62880
permissions
-rw-r--r--

screenshare: Add XDP portal ScreenCast support

With Wayland we can't just share X11 windows/screens; we need to ask for
a stream from the compositor. Add support for that, falling back to the
direct mode if it isn't present (since *Pidgin* can be using X11 even
when the system is Wayland).

https://flatpak.github.io/xdg-desktop-portal/portal-docs.html

#include "glm.h"

struct shark_struct{
	GLint* faces, *lids, *fins, *eyes, *iris, *pupil;
	GLMmodel** m_faces, **m_lids, **m_fins, **m_eyes, **m_iris, **m_pupil;
	int curr_face, curr_fin, curr_left_lid, curr_right_lid, curr_right_eye, curr_left_eye, curr_pupil, eye_count;
	float curr_fin_angle;
};

void init_shark(FACE f);

mercurial