RetroArch/ps3/ps3_video_psgl.h

50 lines
1.6 KiB
C
Raw Normal View History

2012-04-21 23:13:50 +02:00
/* RetroArch - A frontend for libretro.
2012-01-11 22:27:07 +01:00
* Copyright (C) 2010-2012 - Hans-Kristian Arntzen
* Copyright (C) 2011-2012 - Daniel De Matteis
*
2012-04-21 23:13:50 +02:00
* RetroArch is free software: you can redistribute it and/or modify it under the terms
2012-01-11 22:27:07 +01:00
* of the GNU General Public License as published by the Free Software Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
2012-04-21 23:13:50 +02:00
* RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
2012-01-11 22:27:07 +01:00
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
* PURPOSE. See the GNU General Public License for more details.
*
2012-04-21 23:31:57 +02:00
* You should have received a copy of the GNU General Public License along with RetroArch.
2012-01-11 22:27:07 +01:00
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef _PS3_VIDEO_PSGL_H
#define _PS3_VIDEO_PSGL_H
2012-01-25 04:38:19 +01:00
#include "../gfx/gl_common.h"
#include "../gfx/gfx_common.h"
2012-02-13 22:07:19 +01:00
#include "../gfx/image.h"
#include "../console/console_ext.h"
2012-01-11 22:27:07 +01:00
2012-05-26 15:57:59 +02:00
enum
{
FBO_DEINIT = 0,
FBO_INIT,
FBO_REINIT
};
2012-02-13 22:07:19 +01:00
#define MIN_SCALING_FACTOR (1.0f)
#define MAX_SCALING_FACTOR (4.0f)
const char * ps3_get_resolution_label(uint32_t resolution);
int ps3_check_resolution(uint32_t resolution_id);
2012-01-31 14:12:00 +01:00
void ps3_previous_resolution (void);
void ps3_next_resolution (void);
2012-05-27 19:29:10 +02:00
void gl_deinit_fbo(gl_t * gl);
void gl_init_fbo(gl_t * gl, unsigned width, unsigned height);
bool gl_cg_reinit(const char *path);
bool gl_cg_save_cgp(const char *path, const struct gl_cg_cgp_info *info);
bool gl_cg_load_shader(unsigned index, const char *path);
unsigned gl_cg_get_lut_info(struct gl_cg_lut_info *info, unsigned elems);
2012-01-11 22:27:07 +01:00
#endif