2013-10-13 20:05:38 +00:00
|
|
|
/*
|
|
|
|
* gl.h
|
|
|
|
*
|
|
|
|
* OpenGL part of fosphor
|
|
|
|
*
|
2014-07-22 19:45:31 +00:00
|
|
|
* Copyright (C) 2013-2014 Sylvain Munaut
|
2013-10-13 20:05:38 +00:00
|
|
|
*
|
|
|
|
* 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"
|
|
|
|
|
2013-11-07 22:46:29 +00:00
|
|
|
struct fosphor;
|
2014-01-21 09:07:05 +00:00
|
|
|
struct fosphor_render;
|
2013-10-13 20:05:38 +00:00
|
|
|
|
2013-11-07 22:46:29 +00:00
|
|
|
int fosphor_gl_init(struct fosphor *self);
|
|
|
|
void fosphor_gl_release(struct fosphor *self);
|
2013-10-13 20:05:38 +00:00
|
|
|
|
|
|
|
|
|
|
|
enum fosphor_gl_id {
|
|
|
|
GL_ID_TEX_WATERFALL,
|
|
|
|
GL_ID_TEX_HISTOGRAM,
|
|
|
|
GL_ID_VBO_SPECTRUM,
|
|
|
|
};
|
|
|
|
|
2013-11-07 22:46:29 +00:00
|
|
|
GLuint fosphor_gl_get_shared_id(struct fosphor *self,
|
2013-10-13 20:05:38 +00:00
|
|
|
enum fosphor_gl_id id);
|
|
|
|
|
2014-01-21 09:07:05 +00:00
|
|
|
void fosphor_gl_draw(struct fosphor *self, struct fosphor_render *render);
|
2013-10-13 20:05:38 +00:00
|
|
|
|
|
|
|
/*! @} */
|
|
|
|
|
|
|
|
#endif /* __FOSPHOR_GL_H__ */
|