HomeScreenBinding
|
#include <mutex>
#include <chrono>
#include <iostream>
#include <string>
#include <stdarg.h>
#include <sys/types.h>
#include <thread>
#include <exception>
#include <vector>
#include <sstream>
#include <assert.h>
#include <signal.h>
#include <wayland-client.h>
#include <wayland-egl.h>
#include <GLES2/gl2.h>
#include <EGL/egl.h>
#include <EGL/eglext.h>
#include <unistd.h>
#include <time.h>
#include <libwindowmanager.h>
#include <libhomescreen.hpp>
#include <ilm/ivi-application-client-protocol.h>
#include "hmi-debug.h"
#include "platform.h"
Go to the source code of this file.
Classes | |
struct | display |
struct | geometry |
struct | window |
Macros | |
#define | EGL_EXT_swap_buffers_with_damage 1 |
#define | EGL_EXT_buffer_age 1 |
#define | EGL_BUFFER_AGE_EXT 0x313D |
Typedefs | |
typedef EGLSurface | surface |
typedef EGLSurface EGLint * | rects |
typedef EGLSurface EGLint EGLint | n_rects |
Functions | |
typedef | EGLBoolean (EGLAPIENTRYP PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC)(EGLDisplay dpy |
static void | init_egl (struct display *display, struct window *window) |
static void | fini_egl (struct display *display) |
static GLuint | create_shader (struct window *window, const char *source, GLenum shader_type) |
static void | init_gl (struct window *window) |
static void | create_ivi_surface (struct window *window, struct display *display) |
static void | create_surface (struct window *window) |
static void | destroy_surface (struct window *window) |
static void | redraw (void *data, struct wl_callback *callback, uint32_t time) |
static void | registry_handle_global (void *data, struct wl_registry *registry, uint32_t name, const char *interface, uint32_t version) |
static void | registry_handle_global_remove (void *data, struct wl_registry *registry, uint32_t name) |
static void | signal_int (int signum) |
int | init_wm (LibWindowmanager *wm, struct window *window) |
int | init_hs (LibHomeScreen *hs) |
int | main (int argc, char **argv) |
Variables | |
const char * | log_prefix = "simple-egl" |
uint32_t | g_id_ivisurf = 9009 |
long | port = 1700 |
string | token = string("wm") |
string | app_name = string("Navigation") |
const char * | main_role = "navigation" |
LibHomeScreen * | hs |
LibWindowmanager * | wm |
static const struct wl_interface * | types [] |
static const struct wl_message | ivi_surface_requests [] |
static const struct wl_message | ivi_surface_events [] |
const struct wl_interface | ivi_surface_interface |
static const struct wl_message | ivi_application_requests [] |
const struct wl_interface | ivi_application_interface |
static const char * | vert_shader_text |
static const char * | frag_shader_text |
static int | running = 1 |
static const struct wl_registry_listener | registry_listener |
#define EGL_BUFFER_AGE_EXT 0x313D |
Definition at line 110 of file simple-egl.cpp.
#define EGL_EXT_buffer_age 1 |
Definition at line 109 of file simple-egl.cpp.
#define EGL_EXT_swap_buffers_with_damage 1 |
Definition at line 104 of file simple-egl.cpp.
typedef EGLSurface EGLint EGLint n_rects |
Definition at line 105 of file simple-egl.cpp.
typedef EGLSurface EGLint* rects |
Definition at line 105 of file simple-egl.cpp.
typedef EGLSurface surface |
Definition at line 105 of file simple-egl.cpp.
Definition at line 322 of file simple-egl.cpp.
|
static |
Definition at line 259 of file simple-egl.cpp.
|
static |
Definition at line 337 of file simple-egl.cpp.
|
static |
Definition at line 370 of file simple-egl.cpp.
typedef EGLBoolean | ( | EGLAPIENTRYP | PFNEGLSWAPBUFFERSWITHDAMAGEEXTPROC | ) |
|
static |
Definition at line 252 of file simple-egl.cpp.
Definition at line 174 of file simple-egl.cpp.
|
static |
Definition at line 285 of file simple-egl.cpp.
int init_hs | ( | LibHomeScreen * | hs | ) |
Definition at line 565 of file simple-egl.cpp.
int init_wm | ( | LibWindowmanager * | wm, |
struct window * | window | ||
) |
Definition at line 527 of file simple-egl.cpp.
int main | ( | int | argc, |
char ** | argv | ||
) |
Definition at line 589 of file simple-egl.cpp.
|
static |
Definition at line 389 of file simple-egl.cpp.
|
static |
Definition at line 493 of file simple-egl.cpp.
|
static |
Definition at line 510 of file simple-egl.cpp.
|
static |
Definition at line 521 of file simple-egl.cpp.
string app_name = string("Navigation") |
Definition at line 63 of file simple-egl.cpp.
|
static |
Definition at line 164 of file simple-egl.cpp.
uint32_t g_id_ivisurf = 9009 |
Definition at line 59 of file simple-egl.cpp.
LibHomeScreen* hs |
Definition at line 66 of file simple-egl.cpp.
const struct wl_interface ivi_application_interface |
Definition at line 95 of file simple-egl.cpp.
|
static |
Definition at line 91 of file simple-egl.cpp.
|
static |
Definition at line 81 of file simple-egl.cpp.
const struct wl_interface ivi_surface_interface |
Definition at line 85 of file simple-egl.cpp.
|
static |
Definition at line 77 of file simple-egl.cpp.
const char* log_prefix = "simple-egl" |
Definition at line 58 of file simple-egl.cpp.
const char* main_role = "navigation" |
Definition at line 64 of file simple-egl.cpp.
long port = 1700 |
Definition at line 60 of file simple-egl.cpp.
|
static |
Definition at line 515 of file simple-egl.cpp.
|
static |
Definition at line 171 of file simple-egl.cpp.
string token = string("wm") |
Definition at line 61 of file simple-egl.cpp.
|
static |
Definition at line 69 of file simple-egl.cpp.
|
static |
Definition at line 154 of file simple-egl.cpp.
LibWindowmanager* wm |
Definition at line 67 of file simple-egl.cpp.