RetroArch
Classes | Typedefs | Functions | Variables
cgl_ctx.c File Reference
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <ApplicationServices/ApplicationServices.h>
#include <OpenGL/CGLTypes.h>
#include <OpenGL/CGLCurrent.h>
#include <OpenGL/OpenGL.h>
#include <OpenGL/gl.h>
#include "../video_driver.h"
Include dependency graph for cgl_ctx.c:

Classes

struct  gfx_ctx_cgl_data
 

Typedefs

typedef int CGSConnectionID
 
typedef int CGSWindowID
 
typedef int CGSSurfaceID
 
typedef uint32_t _CGWindowID
 
typedef struct gfx_ctx_cgl_data gfx_ctx_cgl_data_t
 

Functions

CGSConnectionID CGSMainConnectionID (void)
 
CGError CGSAddSurface (CGSConnectionID cid, _CGWindowID wid, CGSSurfaceID *sid)
 
CGError CGSSetSurfaceBounds (CGSConnectionID cid, _CGWindowID wid, CGSSurfaceID sid, CGRect rect)
 
CGError CGSOrderSurface (CGSConnectionID cid, _CGWindowID wid, CGSSurfaceID sid, int a, int b)
 
CGLError CGLSetSurface (CGLContextObj gl, CGSConnectionID cid, CGSWindowID wid, CGSSurfaceID sid)
 
static void gfx_ctx_cgl_swap_interval (void *data, int interval)
 
static void gfx_ctx_cgl_get_video_size (void *data, unsigned *width, unsigned *height)
 
static void gfx_ctx_cgl_check_window (void *data, bool *quit, bool *resize, unsigned *width, unsigned *height, bool is_shutdown)
 
static void gfx_ctx_cgl_swap_buffers (void *data, void *data2)
 
static bool gfx_ctx_cgl_set_video_mode (void *data, video_frame_info_t *video_info, unsigned width, unsigned height, bool fullscreen)
 
static void gfx_ctx_cgl_destroy (void *data)
 
static void gfx_ctx_cgl_input_driver (void *data, const char *name, const input_driver_t **input, void **input_data)
 
static gfx_ctx_proc_t gfx_ctx_cgl_get_proc_address (const char *symbol_name)
 
static bool gfx_ctx_cgl_has_focus (void *data)
 
static bool gfx_ctx_cgl_suppress_screensaver (void *data, bool enable)
 
static enum gfx_ctx_api gfx_ctx_cgl_get_api (void *data)
 
static bool gfx_ctx_cgl_bind_api (void *data, enum gfx_ctx_api api, unsigned major, unsigned minor)
 
static void gfx_ctx_cgl_show_mouse (void *data, bool state)
 
static void gfx_ctx_cgl_bind_hw_render (void *data, bool enable)
 
static CGLContextObj gfx_ctx_cgl_init_create (void)
 
static CGSSurfaceID attach_gl_context_to_window (CGLContextObj glCtx, CGSWindowID wid, int *width, int *height)
 
static voidgfx_ctx_cgl_init (video_frame_info_t *video_info, void *video_driver)
 
static uint32_t gfx_ctx_cgl_get_flags (void *data)
 
static void gfx_ctx_cgl_set_flags (void *data, uint32_t flags)
 

Variables

static enum gfx_ctx_api cgl_api = GFX_CTX_NONE
 
const gfx_ctx_driver_t gfx_ctx_cgl
 

Typedef Documentation

◆ _CGWindowID

◆ CGSConnectionID

typedef int CGSConnectionID

◆ CGSSurfaceID

typedef int CGSSurfaceID

◆ CGSWindowID

typedef int CGSWindowID

◆ gfx_ctx_cgl_data_t

Function Documentation

◆ attach_gl_context_to_window()

static CGSSurfaceID attach_gl_context_to_window ( CGLContextObj  glCtx,
CGSWindowID  wid,
int *  width,
int *  height 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CGLSetSurface()

CGLError CGLSetSurface ( CGLContextObj  gl,
CGSConnectionID  cid,
CGSWindowID  wid,
CGSSurfaceID  sid 
)
Here is the caller graph for this function:

◆ CGSAddSurface()

CGError CGSAddSurface ( CGSConnectionID  cid,
_CGWindowID  wid,
CGSSurfaceID sid 
)
Here is the caller graph for this function:

◆ CGSMainConnectionID()

CGSConnectionID CGSMainConnectionID ( void  )
Here is the caller graph for this function:

◆ CGSOrderSurface()

CGError CGSOrderSurface ( CGSConnectionID  cid,
_CGWindowID  wid,
CGSSurfaceID  sid,
int  a,
int  b 
)
Here is the caller graph for this function:

◆ CGSSetSurfaceBounds()

CGError CGSSetSurfaceBounds ( CGSConnectionID  cid,
_CGWindowID  wid,
CGSSurfaceID  sid,
CGRect  rect 
)
Here is the caller graph for this function:

◆ gfx_ctx_cgl_bind_api()

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

◆ gfx_ctx_cgl_bind_hw_render()

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

◆ gfx_ctx_cgl_check_window()

static void gfx_ctx_cgl_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_cgl_destroy()

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

◆ gfx_ctx_cgl_get_api()

static enum gfx_ctx_api gfx_ctx_cgl_get_api ( void data)
static

◆ gfx_ctx_cgl_get_flags()

static uint32_t gfx_ctx_cgl_get_flags ( void data)
static

◆ gfx_ctx_cgl_get_proc_address()

static gfx_ctx_proc_t gfx_ctx_cgl_get_proc_address ( const char *  symbol_name)
static

◆ gfx_ctx_cgl_get_video_size()

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

◆ gfx_ctx_cgl_has_focus()

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

◆ gfx_ctx_cgl_init()

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

◆ gfx_ctx_cgl_init_create()

static CGLContextObj gfx_ctx_cgl_init_create ( void  )
static
Here is the caller graph for this function:

◆ gfx_ctx_cgl_input_driver()

static void gfx_ctx_cgl_input_driver ( void data,
const char *  name,
const input_driver_t **  input,
void **  input_data 
)
static
Here is the call graph for this function:

◆ gfx_ctx_cgl_set_flags()

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

◆ gfx_ctx_cgl_set_video_mode()

static bool gfx_ctx_cgl_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_cgl_show_mouse()

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

◆ gfx_ctx_cgl_suppress_screensaver()

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

◆ gfx_ctx_cgl_swap_buffers()

static void gfx_ctx_cgl_swap_buffers ( void data,
void data2 
)
static

◆ gfx_ctx_cgl_swap_interval()

static void gfx_ctx_cgl_swap_interval ( void data,
int  interval 
)
static

Variable Documentation

◆ cgl_api

enum gfx_ctx_api cgl_api = GFX_CTX_NONE
static

◆ gfx_ctx_cgl

const gfx_ctx_driver_t gfx_ctx_cgl