1#ifndef _SDL_GPU_GLES_1_H__
2#define _SDL_GPU_GLES_1_H__
5#include "SDL_platform.h"
7#if !defined(SDL_GPU_DISABLE_GLES) && !defined(SDL_GPU_DISABLE_GLES_1)
10 #include <OpenGLES/ES1/gl.h>
11 #include <OpenGLES/ES1/glext.h>
14 #include "GLES/glext.h"
17 #define glFrustum glFrustumf
18 #define glOrtho glOrthof
19 #define glGenerateMipmap glGenerateMipmapOES
20 #define glDeleteFramebuffers glDeleteFramebuffersOES
21 #define glGenFramebuffers glGenFramebuffersOES
22 #define glFramebufferTexture2D glFramebufferTexture2DOES
23 #define glCheckFramebufferStatus glCheckFramebufferStatusOES
24 #define glBindFramebuffer glBindFramebufferOES
25 #define GL_FRAMEBUFFER GL_FRAMEBUFFER_OES
26 #define GL_FRAMEBUFFER_BINDING GL_FRAMEBUFFER_BINDING_OES
27 #define GL_COLOR_ATTACHMENT0 GL_COLOR_ATTACHMENT0_OES
28 #define GL_FRAMEBUFFER_COMPLETE GL_FRAMEBUFFER_COMPLETE_OES
34#ifdef ADD_MISSING_OES_FUNCTIONS
35 extern void glBlendEquation(GLenum mode);
36 extern void glBlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha);
37 extern void glBlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha);
39 #define glBlendEquation glBlendEquationOES
40 #define glBlendEquationSeparate glBlendEquationSeparateOES
41 #define glBlendFuncSeparate glBlendFuncSeparateOES
44 #define GL_FUNC_ADD GL_FUNC_ADD_OES
45 #define GL_FUNC_SUBTRACT GL_FUNC_SUBTRACT_OES
46 #define GL_FUNC_REVERSE_SUBTRACT GL_FUNC_REVERSE_SUBTRACT_OES
48 #define GL_MIRRORED_REPEAT GL_MIRRORED_REPEAT_OES
53#define GPU_CONTEXT_DATA ContextData_GLES_1
54#define GPU_IMAGE_DATA ImageData_GLES_1
55#define GPU_TARGET_DATA TargetData_GLES_1
62 GPU_bool last_use_texturing;
63 unsigned int last_shape;
64 GPU_bool last_use_blending;
68 GPU_bool last_camera_inverted;
70 GPU_bool last_depth_test;
71 GPU_bool last_depth_write;
76 unsigned short blit_buffer_num_vertices;
77 unsigned short blit_buffer_max_num_vertices;
78 unsigned short* index_buffer;
79 unsigned int index_buffer_num_vertices;
80 unsigned int index_buffer_max_num_vertices;
GPU_ComparisonEnum
Definition: SDL_gpu.h:183
Definition: SDL_gpu_GLES_1.h:60
Definition: SDL_gpu.h:227
Definition: SDL_gpu.h:380
Definition: SDL_gpu.h:334
Definition: SDL_gpu.h:138
Definition: SDL_gpu_GLES_1.h:84
Definition: SDL_gpu_GLES_1.h:92