blob: d24827829227d6d5133c92dad01bc5a094b36f50 (
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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
|
/*
* gl.h
*
* OpenGL part of fosphor
*
* Copyright (C) 2013-2014 Sylvain Munaut
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __FOSPHOR_GL_H__
#define __FOSPHOR_GL_H__
/*! \defgroup gl
* @{
*/
/*! \file gl.h
* \brief OpenGL part of fosphor
*/
#include "gl_platform.h"
struct fosphor;
struct fosphor_render;
int fosphor_gl_init(struct fosphor *self);
void fosphor_gl_release(struct fosphor *self);
enum fosphor_gl_id {
GL_ID_TEX_WATERFALL,
GL_ID_TEX_HISTOGRAM,
GL_ID_VBO_SPECTRUM,
};
GLuint fosphor_gl_get_shared_id(struct fosphor *self,
enum fosphor_gl_id id);
void fosphor_gl_refresh(struct fosphor *self);
void fosphor_gl_draw(struct fosphor *self, struct fosphor_render *render);
/*! @} */
#endif /* __FOSPHOR_GL_H__ */
|