2010-12-22 21:39:39 +00:00
|
|
|
|
2011-07-28 14:26:00 +00:00
|
|
|
/*
|
|
|
|
* Copyright 2010 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
2010-12-22 21:39:39 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
2011-07-28 14:26:00 +00:00
|
|
|
|
2010-12-22 21:39:39 +00:00
|
|
|
#ifndef GrScalar_DEFINED
|
|
|
|
#define GrScalar_DEFINED
|
|
|
|
|
|
|
|
#include "GrTypes.h"
|
2011-05-06 17:30:45 +00:00
|
|
|
#include "SkScalar.h"
|
|
|
|
|
|
|
|
#define GR_Int32Min SK_NaN32
|
|
|
|
#define GR_Int32Max SK_MaxS32
|
|
|
|
|
|
|
|
#define GR_Fixed1 SK_Fixed1
|
|
|
|
#define GR_FixedHalf SK_FixedHalf
|
|
|
|
#define GrIntToFixed(a) SkIntToFixed(a)
|
|
|
|
#define GrFixedToFloat(a) SkFixedToFloat(a)
|
|
|
|
#define GrFixedFloorToInt(a) SkFixedFloor(a)
|
|
|
|
|
|
|
|
#define GrScalar SkScalar
|
|
|
|
#define GR_Scalar1 SK_Scalar1
|
|
|
|
#define GR_ScalarHalf SK_ScalarHalf
|
|
|
|
#define GR_ScalarMin SK_ScalarMin
|
|
|
|
#define GR_ScalarMax SK_ScalarMax
|
|
|
|
|
2011-05-06 19:26:26 +00:00
|
|
|
#define GrIntToScalar(a) SkIntToScalar(a)
|
2011-05-06 17:30:45 +00:00
|
|
|
#define GrScalarHalf(a) SkScalarHalf(a)
|
|
|
|
#define GrScalarAve(a,b) SkScalarAve(a,b)
|
2011-07-01 14:57:55 +00:00
|
|
|
#define GrMul(a,b) SkScalarMul(a,b) // deprecated, prefer GrScalarMul
|
|
|
|
#define GrScalarMul(a,b) SkScalarMul(a,b)
|
2011-05-20 19:11:50 +00:00
|
|
|
#define GrScalarDiv(a,b) SkScalarDiv(a, b)
|
2011-05-06 17:30:45 +00:00
|
|
|
#define GrScalarToFloat(a) SkScalarToFloat(a)
|
2012-07-10 17:30:58 +00:00
|
|
|
#define GrFloatToScalar(a) SkFloatToScalar(a)
|
2011-05-06 17:30:45 +00:00
|
|
|
#define GrIntToScalar(a) SkIntToScalar(a)
|
|
|
|
#define GrScalarAbs(a) SkScalarAbs(a)
|
|
|
|
#define GrScalarIsInt(a) SkScalarIsInt(a)
|
|
|
|
#define GrScalarMax(a,b) SkScalarMax(a,b)
|
|
|
|
#define GrScalarFloorToInt(a) SkScalarFloor(a)
|
|
|
|
#define GrScalarCeilToInt(a) SkScalarCeil(a)
|
|
|
|
#define GrFixedToScalar(a) SkFixedToScalar(a)
|
2010-12-22 21:39:39 +00:00
|
|
|
|
|
|
|
#endif
|
|
|
|
|