Create gfx/gl_common.c

This commit is contained in:
twinaphex 2014-10-02 13:32:42 +02:00
parent b2f6a025c8
commit 6c675e6580
8 changed files with 17 additions and 40 deletions

View File

@ -342,11 +342,11 @@ endif
ifeq ($(HAVE_OPENGL), 1)
DEFINES += -DHAVE_OPENGL -DHAVE_GLSL
OBJ += gfx/gl.o \
gfx/gl_common.o \
gfx/gfx_context.o \
gfx/fonts/gl_font.o \
gfx/fonts/gl_raster_font.o \
gfx/math/matrix.o \
gfx/shader/shader_gl_common.o \
gfx/state_tracker.o \
gfx/glsym/rglgen.o

View File

@ -26,7 +26,7 @@
#include "menu_display.h"
#include "../../../general.h"
#include "../../../gfx/gfx_common.h"
#include "../../../gfx/shader/shader_gl_common.h"
#include "../../../gfx/gl_common.h"
#include "../../../config.def.h"
#include "../../../file.h"
#include "../../../dynamic.h"

View File

@ -14,7 +14,7 @@
* If not, see <http://www.gnu.org/licenses/>.
*/
#include "shader_gl_common.h"
#include "gl_common.h"
void gl_load_texture_data(GLuint obj, const struct texture_image *img,
GLenum wrap, bool linear, bool mipmap)

View File

@ -382,5 +382,10 @@ void gl_set_viewport(gl_t *gl, unsigned width, unsigned height,
void gl_shader_set_coords(gl_t *gl,
const struct gl_coords *coords, const math_matrix *mat);
#endif
void gl_load_texture_data(GLuint obj, const struct texture_image *img,
GLenum wrap, bool linear, bool mipmap);
bool gl_load_luts(const struct gfx_shader *generic_shader,
GLuint *lut_textures);
#endif

View File

@ -18,14 +18,16 @@
#pragma comment(lib, "cggl")
#endif
#ifdef HAVE_OPENGL
#include "shader_gl_common.h"
#endif
#include <stdint.h>
#include "shader_context.h"
#include <Cg/cg.h>
#ifdef HAVE_OPENGL
#include "../gl_common.h"
#include <Cg/cgGL.h>
#endif
#include "../../general.h"
#include <string.h>
#include "../../compat/strl.h"

View File

@ -1,28 +0,0 @@
/* RetroArch - A frontend for libretro.
* Copyright (C) 2010-2014 - Hans-Kristian Arntzen
* Copyright (C) 2011-2014 - Daniel De Matteis
*
* RetroArch 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 Found-
* ation, either version 3 of the License, or (at your option) any later version.
*
* RetroArch 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 RetroArch.
* If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef SHADERS_GL_COMMON_H__
#define SHADERS_GL_COMMON_H__
#include "../gl_common.h"
void gl_load_texture_data(GLuint obj, const struct texture_image *img,
GLenum wrap, bool linear, bool mipmap);
bool gl_load_luts(const struct gfx_shader *generic_shader,
GLuint *lut_textures);
#endif

View File

@ -33,7 +33,7 @@
#include <stdlib.h>
#ifdef HAVE_OPENGL
#include "shader_gl_common.h"
#include "../gl_common.h"
#endif
#ifdef HAVE_OPENGLES2

View File

@ -145,9 +145,6 @@ VIDEO CONTEXT
/*============================================================
VIDEO SHADERS
============================================================ */
#ifdef HAVE_OPENGL
#include "../gfx/shader/shader_gl_common.c"
#endif
#ifdef HAVE_SHADERS
#include "../gfx/shader/shader_context.c"
@ -213,6 +210,7 @@ VIDEO DRIVER
#ifdef HAVE_OPENGL
#include "../gfx/gl.c"
#include "../gfx/gl_common.c"
#ifndef HAVE_PSGL
#include "../gfx/glsym/rglgen.c"