mirror of
				https://gitlab.freedesktop.org/wlroots/wlroots.git
				synced 2025-11-03 09:01:40 -05:00 
			
		
		
		
	Add wlr_pixman_buffer_get_current_image for wlr_pixman_renderer. Add wlr_gles2_buffer_get_current_fbo for wlr_gles2_renderer. Allow get the FBO/pixman_image_t, the compositor can be add some action for FBO(for eg, attach a depth buffer), or without pixman render to pixman_image_t(for eg, use QPainter of Qt instead of pixman).
		
			
				
	
	
		
			27 lines
		
	
	
	
		
			766 B
		
	
	
	
		
			C
		
	
	
	
	
	
			
		
		
	
	
			27 lines
		
	
	
	
		
			766 B
		
	
	
	
		
			C
		
	
	
	
	
	
/*
 | 
						|
 * This an unstable interface of wlroots. No guarantees are made regarding the
 | 
						|
 * future consistency of this API.
 | 
						|
 */
 | 
						|
#ifndef WLR_USE_UNSTABLE
 | 
						|
#error "Add -DWLR_USE_UNSTABLE to enable unstable wlroots features"
 | 
						|
#endif
 | 
						|
 | 
						|
#ifndef WLR_RENDER_PIXMAN_H
 | 
						|
#define WLR_RENDER_PIXMAN_H
 | 
						|
 | 
						|
#include <pixman.h>
 | 
						|
#include <wlr/backend.h>
 | 
						|
#include <wlr/render/wlr_renderer.h>
 | 
						|
 | 
						|
struct wlr_renderer *wlr_pixman_renderer_create(void);
 | 
						|
/**
 | 
						|
 * Returns the image of current buffer.
 | 
						|
 */
 | 
						|
pixman_image_t *wlr_pixman_renderer_get_current_image(
 | 
						|
	struct wlr_renderer *wlr_renderer);
 | 
						|
 | 
						|
bool wlr_renderer_is_pixman(struct wlr_renderer *wlr_renderer);
 | 
						|
bool wlr_texture_is_pixman(struct wlr_texture *texture);
 | 
						|
pixman_image_t *wlr_pixman_texture_get_image(struct wlr_texture *wlr_texture);
 | 
						|
 | 
						|
#endif
 |