comparison src/video/qnxgf/SDL_gf_render.c @ 3087:0b6f51c29267

Date: Wed, 4 Mar 2009 15:38:22 +0200 From: "Mike Gorchak" Subject: Re: About QNX support in SDL 1.3 Here is another batch of patches. 1) Makefile.in - added SDL_opengles.h header as header to install. 2) configure.in - Added special define to detect Common Lite OpenGL ES library in case if Common library is not installed. Added check for clock_gettime in libc (in QNX it is in libc). 3) SDL_config.h.in - Added SDL_VIDEO_RENDER_OPENGL_ES and SDL_VIDEO_OPENGL_ES declarations for configure script autodetection. 4) SDL_opengles.h - Added GL_API definition if it is not defined. Added extension GL_OES_draw_texture because OpenGL ES Renderer uses it without declaration. Added GL_OES_vertex_buffer_object extension, which is supported under QNX OpenGL ES. Added GL_OES_single_precision extension. 5) To the test directory I've added building OpenGL ES test applications through the autotools suite. Was support for iPhone IDE building only.
author Sam Lantinga <slouken@libsdl.org>
date Wed, 04 Mar 2009 15:10:47 +0000
parents
children cad1aefa2ed9
comparison
equal deleted inserted replaced
3086:0102ed19c21a 3087:0b6f51c29267
1 /*
2 SDL - Simple DirectMedia Layer
3 Copyright (C) 1997-2009 Sam Lantinga
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with this library; if not, write to the Free Software
17 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
18
19 Sam Lantinga
20 slouken@libsdl.org
21 */
22
23 #include "SDL_config.h"
24
25 #include "../SDL_pixels_c.h"
26 #include "../SDL_yuv_sw_c.h"
27
28 #include "SDL_video.h"
29
30 #include "SDL_gf_render.h"
31
32 static SDL_Renderer* GF_CreateRenderer(SDL_Window* window, Uint32 flags)
33 {
34 }
35
36 SDL_RenderDriver GF_RenderDriver=
37 {
38 GF_CreateRenderer,
39 {
40 "qnxgf",
41 (SDL_RENDERER_SINGLEBUFFER | SDL_RENDERER_PRESENTCOPY |
42 SDL_RENDERER_PRESENTFLIP2 | SDL_RENDERER_PRESENTFLIP3 |
43 SDL_RENDERER_PRESENTDISCARD | SDL_RENDERER_PRESENTVSYNC |
44 SDL_RENDERER_ACCELERATED),
45 (SDL_TEXTUREMODULATE_NONE | SDL_TEXTUREMODULATE_COLOR |
46 SDL_TEXTUREMODULATE_ALPHA),
47 (SDL_BLENDMODE_NONE | SDL_BLENDMODE_MASK |
48 SDL_BLENDMODE_BLEND | SDL_BLENDMODE_ADD | SDL_BLENDMODE_MOD),
49 (SDL_TEXTURESCALEMODE_NONE | SDL_TEXTURESCALEMODE_SLOW),
50 13,
51 {
52 SDL_PIXELFORMAT_INDEX8,
53 SDL_PIXELFORMAT_RGB555,
54 SDL_PIXELFORMAT_RGB565,
55 SDL_PIXELFORMAT_RGB888,
56 SDL_PIXELFORMAT_BGR888,
57 SDL_PIXELFORMAT_ARGB8888,
58 SDL_PIXELFORMAT_RGBA8888,
59 SDL_PIXELFORMAT_ABGR8888,
60 SDL_PIXELFORMAT_BGRA8888,
61 SDL_PIXELFORMAT_YV12,
62 SDL_PIXELFORMAT_YUY2,
63 SDL_PIXELFORMAT_UYVY,
64 SDL_PIXELFORMAT_YVYU
65 },
66 0,
67 0
68 }
69 };