/*
 * (C) Copyright 1992, ..., 2014 the "DOSEMU-Development-Team".
 *
 * for details see file COPYING in the DOSEMU distribution
 */

/* definitions for rendering graphics modes -- the middle layer
   between the graphics frontends and the remapper */
#ifndef RENDER_H
#define RENDER_H

#include "remap.h"

struct render_system
{
  void (*refresh_rect)(int x, int y, unsigned width, unsigned height);
  struct bitmap_desc (*lock)(void);
  void (*unlock)(void);
  const char *name;
#define RENDF_DISABLED 1
  unsigned flags;
};

int register_render_system(struct render_system *render_system);
enum { REMAP_DOSEMU, REMAP_PIXMAN };
int register_remapper(struct remap_calls *calls, int prio);
int remapper_init(int have_true_color, int have_shmap, int features,
	ColorSpaceDesc *csd);
void remapper_done(void);
struct vid_mode_params get_mode_parameters(void);
int render_update_vidmode(void);
int update_screen(void);
void color_space_complete(ColorSpaceDesc *color_space);
void render_blit(int x, int y, int width, int height);
int render_is_updating(void);
void redraw_text_screen(void);
void render_gain_focus(void);
void render_lose_focus(void);
int render_init(void);
void render_done(void);
void render_mode_lock(void);
void render_mode_lock_w(void);
void render_mode_unlock(void);
void render_enable(struct render_system *render);
void render_disable(struct render_system *render);

void render_disable_global(void);
void render_enable_global(void);

#endif
