Home
last modified time | relevance | path

Searched refs:fAngle (Results 1 – 23 of 23) sorted by relevance

/third_party/flutter/skia/samplecode/
DSampleMegaStroke.cpp17 fAngle = 0; in MegaStrokeView()
54 SkScalar x = SkScalarSin(fAngle * SK_ScalarPI / 180) * 200 + 250; in onDrawContent()
55 SkScalar y = SkScalarCos(fAngle * SK_ScalarPI / 180) * 200 + 250; in onDrawContent()
58 fAngle += 5; in onDrawContent()
60 fAngle -= 5; in onDrawContent()
77 int fAngle; member in MegaStrokeView
DSampleStringArt.cpp20 StringArtView() : fAngle(0.305f) {} in StringArtView()
26 SkScalar angle = fAngle*SK_ScalarPI + SkScalarHalf(SK_ScalarPI); in onDrawContent()
54 fAngle = x/width(); in onFindClickHandler()
59 SkScalar fAngle; member in StringArtView
DSampleThinAA.cpp274 fAngle = 0.f; in onOnceBeforeDraw()
296 " to 0, 'space' adds 15)", fAngle), 0, 36, font, text); in onDrawContent()
359 SkScalar newAngle = fAngle + dt * 15.f; in onAnimate()
360 bool completed = SkScalarMod(newAngle, 15.f) < SkScalarMod(fAngle, 15.f); in onAnimate()
361 fAngle = SkScalarMod(newAngle, 360.f); in onAnimate()
364 fAngle = 15.f * SkScalarRoundToScalar(fAngle / 15.f); in onAnimate()
403 case 'u': fAngle = 0.f; return true; in onChar()
404 case 'y': fAngle = 90.f; return true; in onChar()
405 case ' ': fAngle = SkScalarMod(fAngle + 15.f, 360.f); return true; in onChar()
436 SkScalar fAngle; member in skiagm::ThinAASample
[all …]
DSampleLayers.cpp183 SkScalar fAngle; member in BackdropView
189 fAngle = 0; in BackdropView()
205 m.setRotate(fAngle); in onDrawContent()
220 fAngle = SkDoubleToScalar(fmod(1e-9 * nanos * 360 / 5, 360)); in onAnimate()
DSampleFilterQuality.cpp142 AnimValue fScale, fAngle; member in FilterQualityView
153 fAngle.setMod(0, 360); in FilterQualityView()
173 case '1': fAngle.inc(-ANGLE_DELTA); return true; in onChar()
174 case '2': fAngle.inc( ANGLE_DELTA); return true; in onChar()
195 canvas->rotate(fAngle); in drawTheImage()
276 canvas->drawString(SkStringPrintf("%.8g", (float)fAngle), textX, 150, font, paint); in onDrawContent()
DSamplePatch.cpp208 SkScalar fAngle = 0; member
278 m.setRotate(fAngle); in onDrawContent()
286 fAngle = TimeUtils::Scaled(1e-9 * nanos, 60, 360); in onAnimate()
/third_party/skia/samplecode/
DSampleMegaStroke.cpp17 fAngle = 0; in MegaStrokeView()
54 SkScalar x = SkScalarSin(fAngle * SK_ScalarPI / 180) * 200 + 250; in onDrawContent()
55 SkScalar y = SkScalarCos(fAngle * SK_ScalarPI / 180) * 200 + 250; in onDrawContent()
58 fAngle += 5; in onDrawContent()
60 fAngle -= 5; in onDrawContent()
77 int fAngle; member in MegaStrokeView
DSampleStringArt.cpp20 StringArtView() : fAngle(0.305f) {} in StringArtView()
26 SkScalar angle = fAngle*SK_ScalarPI + SkScalarHalf(SK_ScalarPI); in onDrawContent()
54 fAngle = x/width(); in onFindClickHandler()
59 SkScalar fAngle; member in StringArtView
DSample3D.cpp48 SkScalar fAngle; member
87 float fAngle = SK_ScalarPI / 12; member in Sample3DView
89 SkV3 fEye { 0, 0, 1.0f/tan(fAngle/2) - 1 };
96 perspective = SkM44::Perspective(fNear, fFar, fAngle), in concatCamera()
171 SkScalar fAngle = 0, member in RotateAnimator
185 fPrevAngle = fAngle; in update()
186 fAngle = angle; in update()
201 fAngle += delta; in rotation()
207 return SkM44::Rotate(fAxis, fAngle); in rotation()
213 fAngleSpeed = (fAngle - fPrevAngle) / (fNow - fPrevNow); in start()
[all …]
DSampleThinAA.cpp278 fAngle = 0.f; in onOnceBeforeDraw()
300 " to 0, 'space' adds 15)", fAngle), 0, 36, font, text); in onDrawContent()
363 SkScalar newAngle = fAngle + dt * 15.f; in onAnimate()
364 bool completed = SkScalarMod(newAngle, 15.f) < SkScalarMod(fAngle, 15.f); in onAnimate()
365 fAngle = SkScalarMod(newAngle, 360.f); in onAnimate()
368 fAngle = 15.f * SkScalarRoundToScalar(fAngle / 15.f); in onAnimate()
407 case 'u': fAngle = 0.f; return true; in onChar()
408 case 'y': fAngle = 90.f; return true; in onChar()
409 case ' ': fAngle = SkScalarMod(fAngle + 15.f, 360.f); return true; in onChar()
440 SkScalar fAngle; member in skiagm::ThinAASample
[all …]
DSampleLayers.cpp173 SkScalar fAngle; member in BackdropView
179 fAngle = 0; in BackdropView()
195 m.setRotate(fAngle); in onDrawContent()
210 fAngle = SkDoubleToScalar(fmod(1e-9 * nanos * 360 / 5, 360)); in onAnimate()
DSamplePatch.cpp208 SkScalar fAngle = 0; member
277 m.setRotate(fAngle); in onDrawContent()
285 fAngle = TimeUtils::Scaled(1e-9 * nanos, 60, 360); in onAnimate()
DSampleClip.cpp432 float fAngle = SK_ScalarPI / 4; member in SampleCameraView
434 SkV3 fEye { 0, 0, 1.0f/tan(fAngle/2) - 1 };
459 perspective = SkM44::Perspective(fNear, fFar, fAngle), in get44()
/third_party/skia/gm/
D3d.cpp15 float fAngle = SK_ScalarPI / 4; member
17 SkV3 fEye { 0, 0, 1.0f/tan(fAngle/2) - 1 };
36 perspective = SkM44::Perspective(info.fNear, info.fFar, info.fAngle); in make_ctm()
/third_party/skia/modules/skottie/src/effects/
DLinearWipeEffect.cpp51 .bind( kAngle_Index, fAngle ) in LinearWipeAdapter()
69 angle = SkDegreesToRadians(90 - fAngle), in onMakeMask()
112 fAngle = 0, member in skottie::internal::__anon8b6728e70111::LinearWipeAdapter
DShadowStyles.cpp37 this->bind(abuilder, jstyle["a"], fAngle); in ShadowAdapter()
44 const auto rad = SkDegreesToRadians(180 + fAngle), // 0deg -> left (style) in onSync()
109 fAngle = 0, // degrees member in skottie::internal::__anon3c6e8d140111::ShadowAdapter
/third_party/flutter/skia/modules/skottie/gm/
D3dgm.cpp44 float fAngle = SK_ScalarPI / 4; member in GM3d
137 Sk3Perspective(&perspective, fNear, fFar, fAngle); in onDraw()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtx/
Dquaternion.inl156 T fAngle = atan(fSin, fCos); local
158 k0 = sin((static_cast<T>(1) - a) * fAngle) * fOneOverSin;
159 k1 = sin((static_cast<T>(0) + a) * fAngle) * fOneOverSin;
/third_party/flutter/skia/modules/skottie/src/effects/
DLinearWipeEffect.cpp48 angle = SkDegreesToRadians(90 - fAngle), in onMakeMask()
/third_party/flutter/skia/tests/
DPathOpsDebug.cpp860 const SkOpAngle* fAngle = span->fromAngle(); in dumpAngles() local
862 if (fAngle) { in dumpAngles()
863 SkDebugf(" span=%d from=%d ", span->debugID(), fAngle->debugID()); in dumpAngles()
864 fAngle->dumpTo(this, tAngle); in dumpAngles()
868 tAngle->dumpTo(this, fAngle); in dumpAngles()
/third_party/skia/tests/
DPathOpsDebug.cpp860 const SkOpAngle* fAngle = span->fromAngle(); in dumpAngles() local
862 if (fAngle) { in dumpAngles()
863 SkDebugf(" span=%d from=%d ", span->debugID(), fAngle->debugID()); in dumpAngles()
864 fAngle->dumpTo(this, tAngle); in dumpAngles()
868 tAngle->dumpTo(this, fAngle); in dumpAngles()
/third_party/flutter/skia/third_party/externals/sdl/src/render/opengles2/
DSDL_render_gles2.c1762 GLfloat fAngle[4]; in GLES2_RenderCopyEx() local
1773 fAngle[0] = fAngle[1] = fAngle[2] = fAngle[3] = (GLfloat)(360.0f - angle); in GLES2_RenderCopyEx()
1802 GLES2_UpdateVertexBuffer(renderer, GLES2_ATTRIBUTE_ANGLE, fAngle, 4 * sizeof(GLfloat)); in GLES2_RenderCopyEx()
/third_party/skia/third_party/externals/oboe/samples/RhythmGame/third_party/glm/gtc/
Dquaternion.inl423 T fAngle = atan(fSin, fCos);
425 k0 = sin((T(1) - a) * fAngle) * fOneOverSin;
426 k1 = sin((T(0) + a) * fAngle) * fOneOverSin;