Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | RSS feed

  1. #ifndef _DRISW_API_H_
  2. #define _DRISW_API_H_
  3.  
  4. #include "pipe/p_compiler.h"
  5.  
  6. struct pipe_screen;
  7. struct dri_drawable;
  8.  
  9. /**
  10.  * This callback struct is intended for the winsys to call the loader.
  11.  */
  12. struct drisw_loader_funcs
  13. {
  14.    void (*put_image) (struct dri_drawable *dri_drawable,
  15.                       void *data, unsigned width, unsigned height);
  16.    void (*put_image2) (struct dri_drawable *dri_drawable,
  17.                        void *data, int x, int y, unsigned width, unsigned height, unsigned stride);
  18. };
  19.  
  20. /**
  21.  * Implemented by the drisw target.
  22.  */
  23. struct pipe_screen * drisw_create_screen(struct drisw_loader_funcs *lf);
  24.  
  25. #endif
  26.