Lines Matching refs:NativeT
27 template <typename QueryT, typename NativeT>
28 QueryT CastFromStateValueToInt(GLenum pname, NativeT value) in CastFromStateValueToInt()
30 GLenum nativeType = GLTypeToGLenum<NativeT>::value; in CastFromStateValueToInt()
57 template <typename NativeT, typename QueryT>
58 NativeT CastQueryValueToInt(GLenum pname, QueryT value) in CastQueryValueToInt()
73 return static_cast<NativeT>(static_cast<GLint64>(std::round(value))); in CastQueryValueToInt()
76 return static_cast<NativeT>(value); in CastQueryValueToInt()
103 template <typename QueryT, typename NativeT>
104 QueryT CastFromStateValue(GLenum pname, NativeT value) in CastFromStateValue()
114 return CastFromStateValueToInt<QueryT, NativeT>(pname, value); in CastFromStateValue()
118 return static_cast<QueryT>(value == static_cast<NativeT>(0) ? GL_FALSE : GL_TRUE); in CastFromStateValue()
141 template <typename NativeT, typename QueryT>
142 NativeT CastQueryValueTo(GLenum pname, QueryT value) in CastQueryValueTo()
144 GLenum nativeType = GLTypeToGLenum<NativeT>::value; in CastQueryValueTo()
152 return CastQueryValueToInt<NativeT, QueryT>(pname, value); in CastQueryValueTo()
154 return static_cast<NativeT>(value); in CastQueryValueTo()
156 return static_cast<NativeT>(value == static_cast<QueryT>(0) ? GL_FALSE : GL_TRUE); in CastQueryValueTo()