Mercurial > sdl-ios-xcode
comparison src/video/qnxgf/SDL_gf_opengles.c @ 3139:7f684f249ec9
indent
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 23 May 2009 22:41:08 +0000 |
parents | 7b3a09fb9c8b |
children | f7b03b6838cb |
comparison
equal
deleted
inserted
replaced
3125:d71d8ceda8b3 | 3139:7f684f249ec9 |
---|---|
28 #include <GLES/glext.h> | 28 #include <GLES/glext.h> |
29 | 29 |
30 /* This is OpenGL ES 1.0 helper functions from OpenGL ES 1.1 specification, */ | 30 /* This is OpenGL ES 1.0 helper functions from OpenGL ES 1.1 specification, */ |
31 /* which could be implemented independently from hardware, just wrappers */ | 31 /* which could be implemented independently from hardware, just wrappers */ |
32 | 32 |
33 GLAPI void APIENTRY glTexParameteri(GLenum target, GLenum pname, GLint param) | 33 GLAPI void APIENTRY |
34 glTexParameteri(GLenum target, GLenum pname, GLint param) | |
34 { | 35 { |
35 glTexParameterx(target, pname, (GLfixed)param); | 36 glTexParameterx(target, pname, (GLfixed) param); |
36 return; | 37 return; |
37 } | 38 } |
38 | 39 |
39 GLAPI void APIENTRY glTexParameteriv(GLenum target, GLenum pname, const GLint* params) | 40 GLAPI void APIENTRY |
41 glTexParameteriv(GLenum target, GLenum pname, const GLint * params) | |
40 { | 42 { |
41 /* Retrieve one parameter only */ | 43 /* Retrieve one parameter only */ |
42 glTexParameterx(target, pname, (GLfixed)*params); | 44 glTexParameterx(target, pname, (GLfixed) * params); |
43 return; | 45 return; |
44 } | 46 } |
45 | 47 |
46 GLAPI void APIENTRY glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha) | 48 GLAPI void APIENTRY |
49 glColor4ub(GLubyte red, GLubyte green, GLubyte blue, GLubyte alpha) | |
47 { | 50 { |
48 glColor4f(((GLfloat)red)/255.f, ((GLfloat)green)/255.f, ((GLfloat)blue)/255.f, ((GLfloat)alpha)/255.f); | 51 glColor4f(((GLfloat) red) / 255.f, ((GLfloat) green) / 255.f, |
49 return; | 52 ((GLfloat) blue) / 255.f, ((GLfloat) alpha) / 255.f); |
53 return; | |
50 } | 54 } |