Browse Source

Always define TextureFormat::RGB565.

Don't care if its defined or not, makes it very hard to use that value.
pull/278/head
Vladimír Vondruš 13 years ago
parent
commit
6346e128e1
  1. 8
      src/TextureFormat.h

8
src/TextureFormat.h

@ -517,14 +517,16 @@ enum class TextureFormat: GLenum {
RGB5 = GL_RGB5,
#endif
/* 1.5.6 <= GLEW < 1.8.0 doesn't have this, even if there is
GL_ARB_ES2_compatibility */
#if defined(GL_RGB565) || defined(DOXYGEN_GENERATING_OUTPUT)
/**
* RGB, normalized unsigned, red and blue component 5bit, green 6bit.
* @requires_gles30 %Extension @es_extension{OES,required_internalformat}
*/
/* 1.5.6 <= GLEW < 1.8.0 doesn't have this, even if there is
GL_ARB_ES2_compatibility */
#ifdef GL_RGB565
RGB565 = GL_RGB565,
#else
RGB565 = 0x8D62,
#endif
#ifndef MAGNUM_TARGET_GLES3

Loading…
Cancel
Save