RetroArch
Classes | Functions | Variables
emscriptenegl_ctx.c File Reference
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <emscripten/emscripten.h>
#include <emscripten/html5.h>
#include "../video_driver.h"
Include dependency graph for emscriptenegl_ctx.c:

Classes

struct  emscripten_ctx_data_t
 

Functions

static void gfx_ctx_emscripten_swap_interval (void *data, int interval)
 
static void gfx_ctx_emscripten_get_canvas_size (int *width, int *height)
 
static void gfx_ctx_emscripten_check_window (void *data, bool *quit, bool *resize, unsigned *width, unsigned *height, bool is_shutdown)
 
static void gfx_ctx_emscripten_swap_buffers (void *data, void *data2)
 
static void gfx_ctx_emscripten_get_video_size (void *data, unsigned *width, unsigned *height)
 
static void gfx_ctx_emscripten_destroy (void *data)
 
static voidgfx_ctx_emscripten_init (video_frame_info_t *video_info, void *video_driver)
 
static bool gfx_ctx_emscripten_set_video_mode (void *data, video_frame_info_t *video_info, unsigned width, unsigned height, bool fullscreen)
 
static enum gfx_ctx_api gfx_ctx_emscripten_get_api (void *data)
 
static bool gfx_ctx_emscripten_bind_api (void *data, enum gfx_ctx_api api, unsigned major, unsigned minor)
 
static void gfx_ctx_emscripten_input_driver (void *data, const char *name, const input_driver_t **input, void **input_data)
 
static bool gfx_ctx_emscripten_has_focus (void *data)
 
static bool gfx_ctx_emscripten_suppress_screensaver (void *data, bool enable)
 
static bool gfx_ctx_emscripten_has_windowed (void *data)
 
static float gfx_ctx_emscripten_translate_aspect (void *data, unsigned width, unsigned height)
 
static bool gfx_ctx_emscripten_init_egl_image_buffer (void *data, const video_info_t *video)
 
static bool gfx_ctx_emscripten_write_egl_image (void *data, const void *frame, unsigned width, unsigned height, unsigned pitch, bool rgb32, unsigned index, void **image_handle)
 
static gfx_ctx_proc_t gfx_ctx_emscripten_get_proc_address (const char *symbol)
 
static void gfx_ctx_emscripten_bind_hw_render (void *data, bool enable)
 
static uint32_t gfx_ctx_emscripten_get_flags (void *data)
 
static void gfx_ctx_emscripten_set_flags (void *data, uint32_t flags)
 

Variables

static int emscripten_initial_width
 
static int emscripten_initial_height
 
static enum gfx_ctx_api emscripten_api = GFX_CTX_NONE
 
const gfx_ctx_driver_t gfx_ctx_emscripten
 

Function Documentation

◆ gfx_ctx_emscripten_bind_api()

static bool gfx_ctx_emscripten_bind_api ( void data,
enum gfx_ctx_api  api,
unsigned  major,
unsigned  minor 
)
static
Here is the call graph for this function:

◆ gfx_ctx_emscripten_bind_hw_render()

static void gfx_ctx_emscripten_bind_hw_render ( void data,
bool  enable 
)
static
Here is the call graph for this function:

◆ gfx_ctx_emscripten_check_window()

static void gfx_ctx_emscripten_check_window ( void data,
bool quit,
bool resize,
unsigned *  width,
unsigned *  height,
bool  is_shutdown 
)
static
Here is the call graph for this function:

◆ gfx_ctx_emscripten_destroy()

static void gfx_ctx_emscripten_destroy ( void data)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ gfx_ctx_emscripten_get_api()

static enum gfx_ctx_api gfx_ctx_emscripten_get_api ( void data)
static

◆ gfx_ctx_emscripten_get_canvas_size()

static void gfx_ctx_emscripten_get_canvas_size ( int *  width,
int *  height 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ gfx_ctx_emscripten_get_flags()

static uint32_t gfx_ctx_emscripten_get_flags ( void data)
static

◆ gfx_ctx_emscripten_get_proc_address()

static gfx_ctx_proc_t gfx_ctx_emscripten_get_proc_address ( const char *  symbol)
static
Here is the call graph for this function:

◆ gfx_ctx_emscripten_get_video_size()

static void gfx_ctx_emscripten_get_video_size ( void data,
unsigned *  width,
unsigned *  height 
)
static

◆ gfx_ctx_emscripten_has_focus()

static bool gfx_ctx_emscripten_has_focus ( void data)
static
Here is the call graph for this function:

◆ gfx_ctx_emscripten_has_windowed()

static bool gfx_ctx_emscripten_has_windowed ( void data)
static
Here is the call graph for this function:

◆ gfx_ctx_emscripten_init()

static void* gfx_ctx_emscripten_init ( video_frame_info_t video_info,
void video_driver 
)
static
Here is the call graph for this function:

◆ gfx_ctx_emscripten_init_egl_image_buffer()

static bool gfx_ctx_emscripten_init_egl_image_buffer ( void data,
const video_info_t video 
)
static
Here is the call graph for this function:

◆ gfx_ctx_emscripten_input_driver()

static void gfx_ctx_emscripten_input_driver ( void data,
const char *  name,
const input_driver_t **  input,
void **  input_data 
)
static

◆ gfx_ctx_emscripten_set_flags()

static void gfx_ctx_emscripten_set_flags ( void data,
uint32_t  flags 
)
static
Here is the call graph for this function:

◆ gfx_ctx_emscripten_set_video_mode()

static bool gfx_ctx_emscripten_set_video_mode ( void data,
video_frame_info_t video_info,
unsigned  width,
unsigned  height,
bool  fullscreen 
)
static
Here is the call graph for this function:

◆ gfx_ctx_emscripten_suppress_screensaver()

static bool gfx_ctx_emscripten_suppress_screensaver ( void data,
bool  enable 
)
static
Here is the call graph for this function:

◆ gfx_ctx_emscripten_swap_buffers()

static void gfx_ctx_emscripten_swap_buffers ( void data,
void data2 
)
static
Here is the call graph for this function:

◆ gfx_ctx_emscripten_swap_interval()

static void gfx_ctx_emscripten_swap_interval ( void data,
int  interval 
)
static
Here is the call graph for this function:

◆ gfx_ctx_emscripten_translate_aspect()

static float gfx_ctx_emscripten_translate_aspect ( void data,
unsigned  width,
unsigned  height 
)
static
Here is the call graph for this function:

◆ gfx_ctx_emscripten_write_egl_image()

static bool gfx_ctx_emscripten_write_egl_image ( void data,
const void frame,
unsigned  width,
unsigned  height,
unsigned  pitch,
bool  rgb32,
unsigned  index,
void **  image_handle 
)
static
Here is the call graph for this function:

Variable Documentation

◆ emscripten_api

enum gfx_ctx_api emscripten_api = GFX_CTX_NONE
static

◆ emscripten_initial_height

int emscripten_initial_height
static

◆ emscripten_initial_width

int emscripten_initial_width
static

◆ gfx_ctx_emscripten

const gfx_ctx_driver_t gfx_ctx_emscripten