summaryrefslogtreecommitdiff
path: root/modules/opengles/opengles.h
blob: 9eac3fbb5f27e9f444ec4de5f31afa7f7ec73bd7 (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
/**
 * @file opengles.h Internal API to OpenGLES module
 *
 * Copyright (C) 2010 Creytiv.com
 */


struct vidisp_st {
	struct vidisp *vd;
	struct vidframe *vf;

	/* GLES: */
	GLuint framebuffer;
	GLuint renderbuffer;
	GLuint texture_id;
	GLfloat vertices[4 * 3];

	void *view;
};


void opengles_addbuffers(struct vidisp_st *st);
void opengles_render(struct vidisp_st *st);


int  context_init(struct vidisp_st *st);
void context_destroy(struct vidisp_st *st);
void context_render(struct vidisp_st *st);