RetroArch
Classes | Macros | Typedefs | Functions | Variables
cocoa_gl_ctx.m File Reference
#include <ApplicationServices/ApplicationServices.h>
#include <retro_assert.h>
#include <compat/apple_compat.h>
#import "../../ui/drivers/cocoa/cocoa_common.h"
#include "../video_driver.h"
#include "../../configuration.h"
#include "../../verbosity.h"
Include dependency graph for cocoa_gl_ctx.m:

Classes

category  NSScreen(IOSCompat)
 
struct  cocoa_ctx_data
 

Macros

#define BRIDGE
 
#define GLContextClass   NSOpenGLContext
 
#define GLFrameworkID   CFSTR("com.apple.opengl")
 
#define RAScreen   NSScreen
 

Typedefs

typedef struct cocoa_ctx_data cocoa_ctx_data_t
 

Functions

voidnsview_get_ptr (void)
 
voidglkitview_init (void)
 
static float get_from_selector (Class obj_class, id obj_id, SEL selector, CGFloat *ret)
 
voidget_chosen_screen (void)
 
float get_backing_scale_factor (void)
 
void cocoagl_gfx_ctx_update (void)
 
static voidcocoagl_gfx_ctx_init (video_frame_info_t *video_info, void *video_driver)
 
static void cocoagl_gfx_ctx_destroy (void *data)
 
static enum gfx_ctx_api cocoagl_gfx_ctx_get_api (void *data)
 
static bool cocoagl_gfx_ctx_bind_api (void *data, enum gfx_ctx_api api, unsigned major, unsigned minor)
 
static void cocoagl_gfx_ctx_swap_interval (void *data, int i)
 
static void cocoagl_gfx_ctx_show_mouse (void *data, bool state)
 
static bool cocoagl_gfx_ctx_set_video_mode (void *data, video_frame_info_t *video_info, unsigned width, unsigned height, bool fullscreen)
 
float cocoagl_gfx_ctx_get_native_scale (void)
 
static void cocoagl_gfx_ctx_get_video_size (void *data, unsigned *width, unsigned *height)
 
static bool cocoagl_gfx_ctx_get_metrics (void *data, enum display_metric_types type, float *value)
 
static bool cocoagl_gfx_ctx_has_focus (void *data)
 
static bool cocoagl_gfx_ctx_suppress_screensaver (void *data, bool enable)
 
static bool cocoagl_gfx_ctx_has_windowed (void *data)
 
static void cocoagl_gfx_ctx_swap_buffers (void *data, void *data2)
 
static gfx_ctx_proc_t cocoagl_gfx_ctx_get_proc_address (const char *symbol_name)
 
static void cocoagl_gfx_ctx_check_window (void *data, bool *quit, bool *resize, unsigned *width, unsigned *height, bool is_shutdown)
 
static void cocoagl_gfx_ctx_input_driver (void *data, const char *name, const input_driver_t **input, void **input_data)
 
static void cocoagl_gfx_ctx_bind_hw_render (void *data, bool enable)
 
static uint32_t cocoagl_gfx_ctx_get_flags (void *data)
 
static void cocoagl_gfx_ctx_set_flags (void *data, uint32_t flags)
 

Variables

static enum gfx_ctx_api cocoagl_api = GFX_CTX_NONE
 
static GLContextClassg_hw_ctx
 
static GLContextClassg_context
 
static int g_fast_forward_skips
 
static bool g_is_syncing = true
 
static bool g_use_hw_ctx = false
 
static unsigned g_minor = 0
 
static unsigned g_major = 0
 
const gfx_ctx_driver_t gfx_ctx_cocoagl
 

Macro Definition Documentation

◆ BRIDGE

#define BRIDGE

◆ GLContextClass

#define GLContextClass   NSOpenGLContext

◆ GLFrameworkID

#define GLFrameworkID   CFSTR("com.apple.opengl")

◆ RAScreen

#define RAScreen   NSScreen

Typedef Documentation

◆ cocoa_ctx_data_t

Function Documentation

◆ cocoagl_gfx_ctx_bind_api()

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

◆ cocoagl_gfx_ctx_bind_hw_render()

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

◆ cocoagl_gfx_ctx_check_window()

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

◆ cocoagl_gfx_ctx_destroy()

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

◆ cocoagl_gfx_ctx_get_api()

static enum gfx_ctx_api cocoagl_gfx_ctx_get_api ( void data)
static

◆ cocoagl_gfx_ctx_get_flags()

static uint32_t cocoagl_gfx_ctx_get_flags ( void data)
static

◆ cocoagl_gfx_ctx_get_metrics()

static bool cocoagl_gfx_ctx_get_metrics ( void data,
enum display_metric_types  type,
float *  value 
)
static
Here is the call graph for this function:

◆ cocoagl_gfx_ctx_get_native_scale()

float cocoagl_gfx_ctx_get_native_scale ( void  )
Here is the caller graph for this function:

◆ cocoagl_gfx_ctx_get_proc_address()

static gfx_ctx_proc_t cocoagl_gfx_ctx_get_proc_address ( const char *  symbol_name)
static

◆ cocoagl_gfx_ctx_get_video_size()

static void cocoagl_gfx_ctx_get_video_size ( void data,
unsigned *  width,
unsigned *  height 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ cocoagl_gfx_ctx_has_focus()

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

◆ cocoagl_gfx_ctx_has_windowed()

static bool cocoagl_gfx_ctx_has_windowed ( void data)
static

◆ cocoagl_gfx_ctx_init()

static void* cocoagl_gfx_ctx_init ( video_frame_info_t video_info,
void video_driver 
)
static

◆ cocoagl_gfx_ctx_input_driver()

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

◆ cocoagl_gfx_ctx_set_flags()

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

◆ cocoagl_gfx_ctx_set_video_mode()

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

◆ cocoagl_gfx_ctx_show_mouse()

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

◆ cocoagl_gfx_ctx_suppress_screensaver()

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

◆ cocoagl_gfx_ctx_swap_buffers()

static void cocoagl_gfx_ctx_swap_buffers ( void data,
void data2 
)
static

◆ cocoagl_gfx_ctx_swap_interval()

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

◆ cocoagl_gfx_ctx_update()

void cocoagl_gfx_ctx_update ( void  )

◆ get_backing_scale_factor()

float get_backing_scale_factor ( void  )
Here is the caller graph for this function:

◆ get_chosen_screen()

void* get_chosen_screen ( void  )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ get_from_selector()

static float get_from_selector ( Class  obj_class,
id  obj_id,
SEL  selector,
CGFloat *  ret 
)
static
Here is the caller graph for this function:

◆ glkitview_init()

void* glkitview_init ( void  )

◆ nsview_get_ptr()

void* nsview_get_ptr ( void  )
Here is the caller graph for this function:

Variable Documentation

◆ cocoagl_api

enum gfx_ctx_api cocoagl_api = GFX_CTX_NONE
static

◆ g_context

GLContextClass* g_context
static

◆ g_fast_forward_skips

int g_fast_forward_skips
static

◆ g_hw_ctx

GLContextClass* g_hw_ctx
static

◆ g_is_syncing

bool g_is_syncing = true
static

◆ g_major

unsigned g_major = 0
static

◆ g_minor

unsigned g_minor = 0
static

◆ g_use_hw_ctx

bool g_use_hw_ctx = false
static

◆ gfx_ctx_cocoagl

const gfx_ctx_driver_t gfx_ctx_cocoagl