RetroArch
Classes | Typedefs | Functions | Variables
osmesa_ctx.c File Reference
#include <unistd.h>
#include <errno.h>
#include <stdlib.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <poll.h>
#include <compat/strl.h>
#include <GL/osmesa.h>
#include "../../configuration.h"
#include "../common/gl_common.h"
Include dependency graph for osmesa_ctx.c:

Classes

struct  gfx_osmesa_ctx_data
 

Typedefs

typedef struct gfx_osmesa_ctx_data gfx_ctx_osmesa_data_t
 

Functions

static void osmesa_fifo_open (gfx_ctx_osmesa_data_t *osmesa)
 
static void osmesa_fifo_accept (gfx_ctx_osmesa_data_t *osmesa)
 
static void osmesa_fifo_write (gfx_ctx_osmesa_data_t *osmesa)
 
static voidosmesa_ctx_init (video_frame_info_t *video_info, void *video_driver)
 
static void osmesa_ctx_destroy (void *data)
 
static enum gfx_ctx_api osmesa_ctx_get_api (void *data)
 
static bool osmesa_ctx_bind_api (void *data, enum gfx_ctx_api api, unsigned major, unsigned minor)
 
static void osmesa_ctx_swap_interval (void *data, int interval)
 
static bool osmesa_ctx_set_video_mode (void *data, video_frame_info_t *video_info, unsigned width, unsigned height, bool fullscreen)
 
static void osmesa_ctx_get_video_size (void *data, unsigned *width, unsigned *height)
 
static void osmesa_ctx_check_window (void *data, bool *quit, bool *resize, unsigned *width, unsigned *height, bool is_shutdown)
 
static bool osmesa_ctx_has_focus (void *data)
 
static bool osmesa_ctx_suppress_screensaver (void *data, bool enable)
 
static bool osmesa_ctx_has_windowed (void *data)
 
static void osmesa_ctx_swap_buffers (void *data, void *data2)
 
static void osmesa_ctx_input_driver (void *data, const char *name, const input_driver_t **input, void **input_data)
 
static gfx_ctx_proc_t osmesa_ctx_get_proc_address (const char *name)
 
static void osmesa_ctx_show_mouse (void *data, bool state)
 
static uint32_t osmesa_ctx_get_flags (void *data)
 
static void osmesa_ctx_set_flags (void *data, uint32_t flags)
 

Variables

static bool g_osmesa_profile = OSMESA_COMPAT_PROFILE
 
static int g_osmesa_major = 2
 
static int g_osmesa_minor = 1
 
static int g_osmesa_format = OSMESA_RGBA
 
static int g_osmesa_bpp = 4
 
static const char * g_osmesa_fifo = "/tmp/osmesa-retroarch.sock"
 
static enum gfx_ctx_api osmesa_api = GFX_CTX_NONE
 
const gfx_ctx_driver_t gfx_ctx_osmesa
 

Typedef Documentation

◆ gfx_ctx_osmesa_data_t

Function Documentation

◆ osmesa_ctx_bind_api()

static bool osmesa_ctx_bind_api ( void data,
enum gfx_ctx_api  api,
unsigned  major,
unsigned  minor 
)
static

◆ osmesa_ctx_check_window()

static void osmesa_ctx_check_window ( void data,
bool quit,
bool resize,
unsigned *  width,
unsigned *  height,
bool  is_shutdown 
)
static

◆ osmesa_ctx_destroy()

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

◆ osmesa_ctx_get_api()

static enum gfx_ctx_api osmesa_ctx_get_api ( void data)
static

◆ osmesa_ctx_get_flags()

static uint32_t osmesa_ctx_get_flags ( void data)
static
Here is the call graph for this function:

◆ osmesa_ctx_get_proc_address()

static gfx_ctx_proc_t osmesa_ctx_get_proc_address ( const char *  name)
static

◆ osmesa_ctx_get_video_size()

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

◆ osmesa_ctx_has_focus()

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

◆ osmesa_ctx_has_windowed()

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

◆ osmesa_ctx_init()

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

◆ osmesa_ctx_input_driver()

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

◆ osmesa_ctx_set_flags()

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

◆ osmesa_ctx_set_video_mode()

static bool osmesa_ctx_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:

◆ osmesa_ctx_show_mouse()

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

◆ osmesa_ctx_suppress_screensaver()

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

◆ osmesa_ctx_swap_buffers()

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

◆ osmesa_ctx_swap_interval()

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

◆ osmesa_fifo_accept()

static void osmesa_fifo_accept ( gfx_ctx_osmesa_data_t osmesa)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ osmesa_fifo_open()

static void osmesa_fifo_open ( gfx_ctx_osmesa_data_t osmesa)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ osmesa_fifo_write()

static void osmesa_fifo_write ( gfx_ctx_osmesa_data_t osmesa)
static
Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ g_osmesa_bpp

int g_osmesa_bpp = 4
static

◆ g_osmesa_fifo

const char* g_osmesa_fifo = "/tmp/osmesa-retroarch.sock"
static

◆ g_osmesa_format

int g_osmesa_format = OSMESA_RGBA
static

◆ g_osmesa_major

int g_osmesa_major = 2
static

◆ g_osmesa_minor

int g_osmesa_minor = 1
static

◆ g_osmesa_profile

bool g_osmesa_profile = OSMESA_COMPAT_PROFILE
static

◆ gfx_ctx_osmesa

const gfx_ctx_driver_t gfx_ctx_osmesa

◆ osmesa_api

enum gfx_ctx_api osmesa_api = GFX_CTX_NONE
static