Browse Source

Merge branch 'master' into compatibility

Vladimír Vondruš 14 years ago
parent
commit
889e322122
  1. 4
      modules/FindOpenGLES2.cmake
  2. 4
      src/AbstractShaderProgram.h
  3. 4
      src/AbstractTexture.h
  4. 2
      src/Shaders/CMakeLists.txt

4
modules/FindOpenGLES2.cmake

@ -8,7 +8,9 @@
# #
# Library # Library
find_library(OPENGLES2_LIBRARY GLESv2) find_library(OPENGLES2_LIBRARY NAMES
GLESv2
ppapi_gles2) # NaCl
# Include dir # Include dir
find_path(OPENGLES2_INCLUDE_DIR find_path(OPENGLES2_INCLUDE_DIR

4
src/AbstractShaderProgram.h

@ -36,6 +36,8 @@ namespace Math {
template<std::size_t, class> class Vector; template<std::size_t, class> class Vector;
} }
template<class> class Color3;
template<class> class Color4;
class Context; class Context;
class Shader; class Shader;
@ -1211,8 +1213,6 @@ template<class T> struct Attribute<Math::Vector4<T>>: public Attribute<Math::Vec
template<class T> struct Attribute<Math::Point2D<T>>: public Attribute<Math::Vector3<T>> {}; template<class T> struct Attribute<Math::Point2D<T>>: public Attribute<Math::Vector3<T>> {};
template<class T> struct Attribute<Math::Point3D<T>>: public Attribute<Math::Vector4<T>> {}; template<class T> struct Attribute<Math::Point3D<T>>: public Attribute<Math::Vector4<T>> {};
template<class> class Color3;
template<class> class Color4;
template<class T> struct Attribute<Color3<T>>: public Attribute<Math::Vector3<T>> {}; template<class T> struct Attribute<Color3<T>>: public Attribute<Math::Vector3<T>> {};
template<class T> struct Attribute<Color4<T>>: public Attribute<Math::Vector4<T>> {}; template<class T> struct Attribute<Color4<T>>: public Attribute<Math::Vector4<T>> {};

4
src/AbstractTexture.h

@ -232,9 +232,11 @@ class MAGNUM_EXPORT AbstractTexture {
* are converted to range @f$ [-1.0; 1.0] @f$. * are converted to range @f$ [-1.0; 1.0] @f$.
* @requires_gl31 Extension @extension{EXT,texture_snorm} * @requires_gl31 Extension @extension{EXT,texture_snorm}
*/ */
NormalizedByte, NormalizedByte
#ifndef MAGNUM_TARGET_GLES #ifndef MAGNUM_TARGET_GLES
,
/** /**
* Normalized unsigned short, i.e. values from range @f$ [0; 65536] @f$ * Normalized unsigned short, i.e. values from range @f$ [0; 65536] @f$
* are converted to range @f$ [0.0; 1.0] @f$. * are converted to range @f$ [0.0; 1.0] @f$.

2
src/Shaders/CMakeLists.txt

@ -1,6 +1,6 @@
corrade_add_resource(MagnumShaders_RCS MagnumShaders corrade_add_resource(MagnumShaders_RCS MagnumShaders
FlatShader2D.vert FlatShader2D.frag FlatShader2D.vert FlatShader2D.frag
PhongShader.frag PhongShader.vert PhongShader.vert PhongShader.frag
compatibility.glsl) compatibility.glsl)
set(MagnumShaders_SRCS set(MagnumShaders_SRCS
FlatShader.cpp FlatShader.cpp

Loading…
Cancel
Save