Home | History | Annotate | Download | only in glshared

Lines Matching refs:m_value

244 		static WrappedType<Type>	create			(Type value)							{ WrappedType<Type> v; v.m_value = value; return v; }
245 inline Type getValue (void) const { return m_value; }
247 inline WrappedType<Type> operator+ (const WrappedType<Type>& other) const { return WrappedType<Type>::create(m_value + other.getValue()); }
248 inline WrappedType<Type> operator* (const WrappedType<Type>& other) const { return WrappedType<Type>::create(m_value * other.getValue()); }
249 inline WrappedType<Type> operator/ (const WrappedType<Type>& other) const { return WrappedType<Type>::create(m_value / other.getValue()); }
250 inline WrappedType<Type> operator- (const WrappedType<Type>& other) const { return WrappedType<Type>::create(m_value - other.getValue()); }
252 inline WrappedType<Type>& operator+= (const WrappedType<Type>& other) { m_value += other.getValue(); return *this; }
253 inline WrappedType<Type>& operator*= (const WrappedType<Type>& other) { m_value *= other.getValue(); return *this; }
254 inline WrappedType<Type>& operator/= (const WrappedType<Type>& other) { m_value /= other.getValue(); return *this; }
255 inline WrappedType<Type>& operator-= (const WrappedType<Type>& other) { m_value -= other.getValue(); return *this; }
257 inline bool operator== (const WrappedType<Type>& other) const { return m_value == other.m_value; }
258 inline bool operator!= (const WrappedType<Type>& other) const { return m_value != other.m_value; }
259 inline bool operator< (const WrappedType<Type>& other) const { return m_value < other.m_value; }
260 inline bool operator> (const WrappedType<Type>& other) const { return m_value > other.m_value; }
261 inline bool operator<= (const WrappedType<Type>& other) const { return m_value <= other.m_value; }
262 inline bool operator>= (const WrappedType<Type>& other) const { return m_value >= other.m_value; }
264 inline operator Type (void) const { return m_value; }
266 inline T to (void) const { return (T)m_value; }
268 Type m_value;
286 static Half create (float value) { Half h; h.m_value = floatToHalf(value); return h; }
287 inline deFloat16 getValue (void) const { return m_value; }
289 inline Half operator+ (const Half& other) const { return create(halfToFloat(m_value) + halfToFloat(other.getValue())); }
290 inline Half operator* (const Half& other) const { return create(halfToFloat(m_value) * halfToFloat(other.getValue())); }
291 inline Half operator/ (const Half& other) const { return create(halfToFloat(m_value) / halfToFloat(other.getValue())); }
292 inline Half operator- (const Half& other) const { return create(halfToFloat(m_value) - halfToFloat(other.getValue())); }
294 inline Half& operator+= (const Half& other) { m_value = floatToHalf(halfToFloat(other.getValue()) + halfToFloat(m_value)); return *this; }
295 inline Half& operator*= (const Half& other) { m_value = floatToHalf(halfToFloat(other.getValue()) * halfToFloat(m_value)); return *this; }
296 inline Half& operator/= (const Half& other) { m_value = floatToHalf(halfToFloat(other.getValue()) / halfToFloat(m_value)); return *this; }
297 inline Half& operator-= (const Half& other) { m_value = floatToHalf(halfToFloat(other.getValue()) - halfToFloat(m_value)); return *this; }
299 inline bool operator== (const Half& other) const { return m_value == other.m_value; }
300 inline bool operator!= (const Half& other) const { return m_value != other.m_value; }
301 inline bool operator< (const Half& other) const { return halfToFloat(m_value) < halfToFloat(other.m_value); }
302 inline bool operator> (const Half& other) const { return halfToFloat(m_value) > halfToFloat(other.m_value); }
303 inline bool operator<= (const Half& other) const { return halfToFloat(m_value) <= halfToFloat(other.m_value); }
304 inline bool operator>= (const Half& other) const { return halfToFloat(m_value) >= halfToFloat(other.m_value); }
307 inline T to (void) const { return (T)halfToFloat(m_value); }
312 deFloat16 m_value;
318 static Fixed create (deInt32 value) { Fixed v; v.m_value = value; return v; }
319 inline deInt32 getValue (void) const { return m_value; }
321 inline Fixed operator+ (const Fixed& other) const { return create(m_value + other.getValue()); }
322 inline Fixed operator* (const Fixed& other) const { return create(m_value * other.getValue()); }
323 inline Fixed operator/ (const Fixed& other) const { return create(m_value / other.getValue()); }
324 inline Fixed operator- (const Fixed& other) const { return create(m_value - other.getValue()); }
326 inline Fixed& operator+= (const Fixed& other) { m_value += other.getValue(); return *this; }
327 inline Fixed& operator*= (const Fixed& other) { m_value *= other.getValue(); return *this; }
328 inline Fixed& operator/= (const Fixed& other) { m_value /= other.getValue(); return *this; }
329 inline Fixed& operator-= (const Fixed& other) { m_value -= other.getValue(); return *this; }
331 inline bool operator== (const Fixed& other) const { return m_value == other.m_value; }
332 inline bool operator!= (const Fixed& other) const { return m_value != other.m_value; }
333 inline bool operator< (const Fixed& other) const { return m_value < other.m_value; }
334 inline bool operator> (const Fixed& other) const { return m_value > other.m_value; }
335 inline bool operator<= (const Fixed& other) const { return m_value <= other.m_value; }
336 inline bool operator>= (const Fixed& other) const { return m_value >= other.m_value; }
338 inline operator deInt32 (void) const { return m_value; }
340 inline T to (void) const { return (T)m_value; }
342 deInt32 m_value;