GNU Radio's FOSPHOR Package
gl.h
Go to the documentation of this file.
1/*
2 * gl.h
3 *
4 * OpenGL part of fosphor
5 *
6 * Copyright (C) 2013-2014 Sylvain Munaut
7 *
8 * This program is free software: you can redistribute it and/or modify
9 * it under the terms of the GNU General Public License as published by
10 * the Free Software Foundation, either version 3 of the License, or
11 * (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public License
19 * along with this program. If not, see <http://www.gnu.org/licenses/>.
20 */
21
22#ifndef __FOSPHOR_GL_H__
23#define __FOSPHOR_GL_H__
24
25/*! \defgroup gl
26 * @{
27 */
28
29/*! \file gl.h
30 * \brief OpenGL part of fosphor
31 */
32
33#include "gl_platform.h"
34
35struct fosphor;
36struct fosphor_render;
37
38int fosphor_gl_init(struct fosphor *self);
39void fosphor_gl_release(struct fosphor *self);
40
41
46};
47
49 enum fosphor_gl_id id);
50
51void fosphor_gl_refresh(struct fosphor *self);
52void fosphor_gl_draw(struct fosphor *self, struct fosphor_render *render);
53
54/*! @} */
55
56#endif /* __FOSPHOR_GL_H__ */
Wrapper to select proper OpenGL headers for various platforms.
void fosphor_gl_release(struct fosphor *self)
fosphor_gl_id
Definition: gl.h:42
int fosphor_gl_init(struct fosphor *self)
void fosphor_gl_draw(struct fosphor *self, struct fosphor_render *render)
GLuint fosphor_gl_get_shared_id(struct fosphor *self, enum fosphor_gl_id id)
void fosphor_gl_refresh(struct fosphor *self)
@ GL_ID_VBO_SPECTRUM
Definition: gl.h:45
@ GL_ID_TEX_HISTOGRAM
Definition: gl.h:44
@ GL_ID_TEX_WATERFALL
Definition: gl.h:43
fosphor render options
Definition: fosphor.h:76
Definition: private.h:44