summaryrefslogtreecommitdiff
path: root/src/fruits/ctv
diff options
context:
space:
mode:
Diffstat (limited to 'src/fruits/ctv')
-rw-r--r--src/fruits/ctv/ctv.c26
-rw-r--r--src/fruits/ctv/meson.build6
2 files changed, 32 insertions, 0 deletions
diff --git a/src/fruits/ctv/ctv.c b/src/fruits/ctv/ctv.c
new file mode 100644
index 0000000..9c45637
--- /dev/null
+++ b/src/fruits/ctv/ctv.c
@@ -0,0 +1,26 @@
+#include <stl/window.h>
+#include <stl/platform.h>
+
+#include "../../sink/desktop.h"
+
+struct ctv {
+ struct aki_event_loop loop;
+ struct camu_desktop desktop;
+};
+
+static void onSurfaceDestroyed(GLFMDisplay *display) {
+}
+
+static void onDraw(GLFMDisplay *display) {
+}
+
+void glfmMain(GLFMDisplay *display) {
+ glfmSetDisplayConfig(display,
+ GLFMRenderingAPIOpenGLES2,
+ GLFMColorFormatRGBA8888,
+ GLFMDepthFormatNone,
+ GLFMStencilFormatNone,
+ GLFMMultisampleNone);
+ glfmSetRenderFunc(display, onDraw);
+ glfmSetSurfaceDestroyedFunc(display, onSurfaceDestroyed);
+}
diff --git a/src/fruits/ctv/meson.build b/src/fruits/ctv/meson.build
new file mode 100644
index 0000000..768f9e1
--- /dev/null
+++ b/src/fruits/ctv/meson.build
@@ -0,0 +1,6 @@
+ctv_src = ['ctv.c']
+ctv_deps = [desktop]
+ctv_args = []
+
+# https://github.com/google/ExoPlayer/issues/9933#issuecomment-1029775358
+shared_library('ctv', ctv_src, dependencies: ctv_deps, c_args: ctv_args, link_args: ['-Wl,-Bsymbolic', '-static-libstdc++'])