blob: 5529f0ecfbe27e6c368bb96f85d5bae70a5b0551 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#ifndef SCENEFX_FX_OPENGL_H
#define SCENEFX_FX_OPENGL_H
#include <GLES2/gl2.h>
#include <GLES2/gl2ext.h>
#include <wlr/backend.h>
#include <wlr/render/interface.h>
#include <wlr/types/wlr_buffer.h>
struct fx_renderer;
struct wlr_renderer *fx_renderer_create_with_drm_fd(int drm_fd);
struct wlr_renderer *fx_renderer_create(struct wlr_backend *backend);
struct fx_renderer *fx_get_renderer(
struct wlr_renderer *wlr_renderer);
//
// fx_texture
//
struct fx_texture_attribs {
GLenum target; /* either GL_TEXTURE_2D or GL_TEXTURE_EXTERNAL_OES */
GLuint tex;
bool has_alpha;
};
struct wlr_texture *fx_texture_from_buffer(struct wlr_renderer *wlr_renderer,
struct wlr_buffer *buffer);
void fx_texture_get_attribs(struct wlr_texture *texture,
struct fx_texture_attribs *attribs);
#endif
|