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 SDL_GPU_USE_BROADCOM_RASPBERRYPI_WORKAROUND
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;
73 unsigned short blit_buffer_num_vertices;
74 unsigned short blit_buffer_max_num_vertices;
75 unsigned short* index_buffer;
76 unsigned int index_buffer_num_vertices;
77 unsigned int index_buffer_max_num_vertices;
Definition: SDL_gpu_GLES_1.h:80
Definition: SDL_gpu.h:300
Definition: SDL_gpu_GLES_1.h:88
Definition: SDL_gpu_GLES_1.h:59
Definition: SDL_gpu.h:159
Definition: SDL_gpu.h:398
Definition: SDL_gpu.h:263