nw::Effect
-
struct Effect : public nw::RuntimeObject
Public Functions
-
Effect()
-
explicit Effect(EffectType type_)
-
virtual ~Effect()
-
void reset()
Clears the effect such that it’s as if default constructed.
-
float get_float(size_t index) const noexcept
Gets a floating point value.
-
int get_int(size_t index) const noexcept
Gets an integer point value.
-
StringView get_string(size_t index) const noexcept
Gets a string value.
-
inline int *ints()
-
inline const int *ints() const
-
inline float *floats()
-
inline const float *floats() const
-
inline String *strings()
-
inline const String *strings() const
-
EffectHandle &handle() noexcept
Gets the effect’s handle.
-
const EffectHandle &handle() const noexcept
Gets the effect’s handle.
-
void set_float(size_t index, float value)
Sets a floating point value.
-
void set_int(size_t index, int value)
Sets an integer point value.
-
void set_string(size_t index, String value)
Sets a string value.
Public Static Functions
-
static inline constexpr size_t total_size()
Total size including header and inline data.
-
Effect()