Exemple #1
0
bool video_driver_focus(void)
{
   driver_t            *driver = driver_get_ptr();
   const video_driver_t *video = video_driver_ctx_get_ptr();

   return video->focus(driver->video_data);
}
Exemple #2
0
bool video_driver_has_windowed(void)
{
   driver_t            *driver = driver_get_ptr();
   const video_driver_t *video = video_driver_ctx_get_ptr();

   return video->has_windowed(driver->video_data);
}
Exemple #3
0
bool video_driver_suppress_screensaver(bool enable)
{
   driver_t            *driver = driver_get_ptr();
   const video_driver_t *video = video_driver_ctx_get_ptr();

   return video->suppress_screensaver(driver->video_data, enable);
}
Exemple #4
0
bool video_driver_is_alive(void)
{
   driver_t *driver = driver_get_ptr();
   const video_driver_t *video = video_driver_ctx_get_ptr();

   return video->alive(driver->video_data);
}
Exemple #5
0
const char *video_driver_get_ident(void)
{
   const video_driver_t *video = video_driver_ctx_get_ptr();
   if (video)
      return video->ident;
   return NULL;
}
Exemple #6
0
void video_driver_set_nonblock_state(bool toggle)
{
   driver_t              *driver = driver_get_ptr();
   const video_driver_t  *video  = video_driver_ctx_get_ptr();

   if (video->set_nonblock_state)
      video->set_nonblock_state(driver->video_data, toggle);
}
Exemple #7
0
bool video_driver_read_viewport(uint8_t *buffer)
{
   driver_t            *driver = driver_get_ptr();
   const video_driver_t *video = video_driver_ctx_get_ptr();

   if (video->read_viewport)
      return video->read_viewport(driver->video_data,
            buffer);
   return false;
}
Exemple #8
0
bool video_driver_set_shader(enum rarch_shader_type type,
      const char *path)
{
   driver_t *driver = driver_get_ptr();
   const video_driver_t *video = video_driver_ctx_get_ptr();

   if (video->set_shader)
      return video->set_shader(driver->video_data, type, path);
   return false;
}
Exemple #9
0
bool video_driver_frame(const void *frame, unsigned width,
         unsigned height, unsigned pitch, const char *msg)
{
   driver_t            *driver = driver_get_ptr();
   const video_driver_t *video = video_driver_ctx_get_ptr();

   if (video->frame(driver->video_data, frame,
            width, height, pitch, msg))
      return true;
   return false;
}
Exemple #10
0
void * video_driver_read_frame_raw(unsigned *width,
   unsigned *height, size_t *pitch)
{
   driver_t            *driver = driver_get_ptr();
   const video_driver_t *video = video_driver_ctx_get_ptr();

   if (video->read_frame_raw)
      return video->read_frame_raw(driver->video_data, width,
            height, pitch);
   return NULL;
}
Exemple #11
0
bool video_driver_overlay_interface(const video_overlay_interface_t **iface)
{
   driver_t            *driver = driver_get_ptr();
   const video_driver_t *video = video_driver_ctx_get_ptr();

   if (video->overlay_interface)
   {
      video->overlay_interface(driver->video_data, iface);
      return true;
   }
   return false;
}
Exemple #12
0
bool video_driver_viewport_info(struct video_viewport *vp)
{
   driver_t            *driver = driver_get_ptr();
   const video_driver_t *video = video_driver_ctx_get_ptr();

   if (video->viewport_info)
   {
      video->viewport_info(driver->video_data, vp);
      return true;
   }
   return false;
}
Exemple #13
0
bool video_driver_set_rotation(unsigned rotation)
{
   driver_t                   *driver = driver_get_ptr();
   const video_driver_t        *video = video_driver_ctx_get_ptr();

   if (video->set_rotation)
   {
      video->set_rotation(driver->video_data, rotation);
      return true;
   }
   return false;
}
Exemple #14
0
bool video_driver_set_viewport(unsigned width, unsigned height,
      bool force_fullscreen, bool allow_rotate)
{
   driver_t                   *driver = driver_get_ptr();
   const video_driver_t        *video = video_driver_ctx_get_ptr();

   if (video->set_viewport)
   {
      video->set_viewport(driver->video_data, width, height,
            force_fullscreen, allow_rotate);
      return true;
   }
   return false;
}
Exemple #15
0
const char *video_driver_get_ident(void)
{
   driver_t *driver     = driver_get_ptr();
   const video_driver_t *video = video_driver_ctx_get_ptr(driver);
   return (video) ? video->ident : NULL;
}