Flutter Engine
The Flutter Engine
|
Public Member Functions | |
CubeBaseSlide (Flags flags) | |
bool | onChar (SkUnichar uni) override |
virtual void | drawFace (SkCanvas *, SkColor, int face, bool front, const SkM44 &localToWorld)=0 |
void | draw (SkCanvas *canvas) override |
Click * | onFindClickHandler (SkScalar x, SkScalar y, skui::ModifierKey modi) override |
bool | onClick (Click *click) override |
bool | animate (double nanos) override |
Public Member Functions inherited from ThreeDSlide | |
void | concatCamera (SkCanvas *canvas, const SkRect &area, SkScalar zscale) |
Public Member Functions inherited from ClickHandlerSlide | |
bool | onMouse (SkScalar x, SkScalar y, skui::InputState clickState, skui::ModifierKey modifierKeys) final |
Public Member Functions inherited from Slide | |
virtual SkISize | getDimensions () const |
virtual void | gpuTeardown () |
virtual void | draw (SkCanvas *canvas)=0 |
virtual bool | animate (double nanos) |
virtual void | load (SkScalar winWidth, SkScalar winHeight) |
virtual void | resize (SkScalar winWidth, SkScalar winHeight) |
virtual void | unload () |
virtual bool | onChar (SkUnichar c) |
virtual bool | onMouse (SkScalar x, SkScalar y, skui::InputState state, skui::ModifierKey modifiers) |
virtual bool | onGetControls (SkMetaData *) |
virtual void | onSetControls (const SkMetaData &) |
const SkString & | getName () |
Public Member Functions inherited from SkRefCntBase | |
SkRefCntBase () | |
virtual | ~SkRefCntBase () |
bool | unique () const |
void | ref () const |
void | unref () const |
Protected Types | |
enum | Flags { kCanRunOnCPU = 1 << 0 , kShowLightDome = 1 << 1 } |
Protected Attributes | |
LightOnSphere | fLight = {{200 + DX, 200 + DY}, 800, 12} |
VSphere | fSphere |
Flags | fFlags |
Protected Attributes inherited from ThreeDSlide | |
float | fNear = 0.05f |
float | fFar = 4 |
float | fAngle = SK_ScalarPI / 12 |
SkV3 | fEye { 0, 0, 1.0f/std::tan(fAngle/2) - 1 } |
SkV3 | fCOA { 0, 0, 0 } |
SkV3 | fUp { 0, 1, 0 } |
Protected Attributes inherited from Slide | |
SkString | fName |
Additional Inherited Members | |
virtual Click * | onFindClickHandler (SkScalar x, SkScalar y, skui::ModifierKey modi)=0 |
virtual bool | onClick (Click *)=0 |
Definition at line 234 of file 3DSlide.cpp.
|
protected |
Enumerator | |
---|---|
kCanRunOnCPU | |
kShowLightDome |
Definition at line 245 of file 3DSlide.cpp.
|
inline |
Definition at line 256 of file 3DSlide.cpp.
|
inlineoverridevirtual |
Reimplemented from Slide.
Reimplemented in SkottieCubeSlide.
Definition at line 353 of file 3DSlide.cpp.
|
inlineoverridevirtual |
Implements Slide.
Definition at line 271 of file 3DSlide.cpp.
|
pure virtual |
Implemented in SkottieCubeSlide, and Bump3DSlide.
|
inlineoverridevirtual |
Reimplemented from Slide.
Definition at line 261 of file 3DSlide.cpp.
|
inlineoverridevirtual |
Override to track clicks. Return true as long as you want to track the pen/mouse.
Implements ClickHandlerSlide.
Definition at line 333 of file 3DSlide.cpp.
|
inlineoverridevirtual |
Return a Click object to handle the click. onClick will be called repeatedly with the latest mouse state tracked on the Click object until it returns false.
Implements ClickHandlerSlide.
Definition at line 316 of file 3DSlide.cpp.
|
protected |
Definition at line 253 of file 3DSlide.cpp.
|
protected |
Definition at line 250 of file 3DSlide.cpp.
|
protected |
Definition at line 252 of file 3DSlide.cpp.