fromValue static method

RlCullMode fromValue(
  1. int value
)

Returns the RlCullMode for the given native value.

Throws ArgumentError if value does not correspond to a known entry.

Implementation

static RlCullMode fromValue(int value) => switch (value) {
  0 => RL_CULL_FACE_FRONT,
  1 => RL_CULL_FACE_BACK,
  _ => throw ArgumentError('Unknown value for $RlCullMode: $value'),
};