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
35 struct fosphor;
36 struct fosphor_render;
37
38 int fosphor_gl_init(struct fosphor *self);
39 void fosphor_gl_release(struct fosphor *self);
40
41
42 enum fosphor_gl_id {
43 GL_ID_TEX_WATERFALL,
44 GL_ID_TEX_HISTOGRAM,
45 GL_ID_VBO_SPECTRUM,
46};
47
48GLuint fosphor_gl_get_shared_id(struct fosphor *self,
49 enum fosphor_gl_id id);
50
51 void fosphor_gl_refresh(struct fosphor *self);
52 void fosphor_gl_draw(struct fosphor *self, struct fosphor_render *render);
53
54/*! @} */
55
56#endif /* __FOSPHOR_GL_H__ */
gl_platform.h
Wrapper to select proper OpenGL headers for various platforms.
fosphor_gl_release
void fosphor_gl_release(struct fosphor *self)
fosphor_gl_id
fosphor_gl_id
Definition: gl.h:42
fosphor_gl_init
int fosphor_gl_init(struct fosphor *self)
fosphor_gl_draw
void fosphor_gl_draw(struct fosphor *self, struct fosphor_render *render)
fosphor_gl_get_shared_id
GLuint fosphor_gl_get_shared_id(struct fosphor *self, enum fosphor_gl_id id)
fosphor_gl_refresh
void fosphor_gl_refresh(struct fosphor *self)
GL_ID_VBO_SPECTRUM
@ GL_ID_VBO_SPECTRUM
Definition: gl.h:45
GL_ID_TEX_HISTOGRAM
@ GL_ID_TEX_HISTOGRAM
Definition: gl.h:44
GL_ID_TEX_WATERFALL
@ GL_ID_TEX_WATERFALL
Definition: gl.h:43
fosphor_render
fosphor render options
Definition: fosphor.h:76
fosphor
Definition: private.h:44