Mercurial > mplayer.hg
comparison libvo/gl_common.c @ 29263:0f1b5b68af32
whitespace cosmetics: Remove all trailing whitespace.
author | diego |
---|---|
date | Wed, 13 May 2009 02:58:57 +0000 |
parents | edd77b4f699b |
children | 465247b46e39 |
comparison
equal
deleted
inserted
replaced
29262:7d545a6b8aff | 29263:0f1b5b68af32 |
---|---|
43 * \{ | 43 * \{ |
44 */ | 44 */ |
45 void (APIENTRY *GenBuffers)(GLsizei, GLuint *); | 45 void (APIENTRY *GenBuffers)(GLsizei, GLuint *); |
46 void (APIENTRY *DeleteBuffers)(GLsizei, const GLuint *); | 46 void (APIENTRY *DeleteBuffers)(GLsizei, const GLuint *); |
47 void (APIENTRY *BindBuffer)(GLenum, GLuint); | 47 void (APIENTRY *BindBuffer)(GLenum, GLuint); |
48 GLvoid* (APIENTRY *MapBuffer)(GLenum, GLenum); | 48 GLvoid* (APIENTRY *MapBuffer)(GLenum, GLenum); |
49 GLboolean (APIENTRY *UnmapBuffer)(GLenum); | 49 GLboolean (APIENTRY *UnmapBuffer)(GLenum); |
50 void (APIENTRY *BufferData)(GLenum, intptr_t, const GLvoid *, GLenum); | 50 void (APIENTRY *BufferData)(GLenum, intptr_t, const GLvoid *, GLenum); |
51 void (APIENTRY *CombinerParameterfv)(GLenum, const GLfloat *); | 51 void (APIENTRY *CombinerParameterfv)(GLenum, const GLfloat *); |
52 void (APIENTRY *CombinerParameteri)(GLenum, GLint); | 52 void (APIENTRY *CombinerParameteri)(GLenum, GLint); |
53 void (APIENTRY *CombinerInput)(GLenum, GLenum, GLenum, GLenum, GLenum, | 53 void (APIENTRY *CombinerInput)(GLenum, GLenum, GLenum, GLenum, GLenum, |
190 GLint dummy3; | 190 GLint dummy3; |
191 if (!bpp) bpp = &dummy1; | 191 if (!bpp) bpp = &dummy1; |
192 if (!gl_texfmt) gl_texfmt = &dummy3; | 192 if (!gl_texfmt) gl_texfmt = &dummy3; |
193 if (!gl_format) gl_format = &dummy2; | 193 if (!gl_format) gl_format = &dummy2; |
194 if (!gl_type) gl_type = &dummy2; | 194 if (!gl_type) gl_type = &dummy2; |
195 | 195 |
196 *bpp = IMGFMT_IS_BGR(fmt)?IMGFMT_BGR_DEPTH(fmt):IMGFMT_RGB_DEPTH(fmt); | 196 *bpp = IMGFMT_IS_BGR(fmt)?IMGFMT_BGR_DEPTH(fmt):IMGFMT_RGB_DEPTH(fmt); |
197 *gl_texfmt = 3; | 197 *gl_texfmt = 3; |
198 switch (fmt) { | 198 switch (fmt) { |
199 case IMGFMT_RGB24: | 199 case IMGFMT_RGB24: |
200 *gl_format = GL_RGB; | 200 *gl_format = GL_RGB; |
1438 } | 1438 } |
1439 | 1439 |
1440 #ifdef GL_WIN32 | 1440 #ifdef GL_WIN32 |
1441 #include "w32_common.h" | 1441 #include "w32_common.h" |
1442 /** | 1442 /** |
1443 * \brief little helper since wglGetProcAddress definition does not fit our | 1443 * \brief little helper since wglGetProcAddress definition does not fit our |
1444 * getProcAddress | 1444 * getProcAddress |
1445 * \param procName name of function to look up | 1445 * \param procName name of function to look up |
1446 * \return function pointer returned by wglGetProcAddress | 1446 * \return function pointer returned by wglGetProcAddress |
1447 */ | 1447 */ |
1448 static void *w32gpa(const GLubyte *procName) { | 1448 static void *w32gpa(const GLubyte *procName) { |