| * Copyright 2019 Google LLC |
| * Use of this source code is governed by a BSD-style license that can be |
| * found in the LICENSE file. |
| #ifndef SkParticleData_DEFINED |
| #define SkParticleData_DEFINED |
| #include "include/private/SkTemplates.h" |
| #include "include/utils/SkRandom.h" |
| * Various structs used to communicate particle information among emitters, affectors, etc. |
| kLifetime, // During spawn, this is actual lifetime. Later, it's inverse lifetime. |
| kFlags, // This is the only non-float data (it's actually uint32_t) |
| SkAutoTMalloc<float> fData[kNumChannels]; |
| SkAutoTMalloc<SkRandom> fRandom; |
| #endif // SkParticleData_DEFINED |