fromValue static method

RlDrawMode fromValue(
  1. int value
)

Implementation

static RlDrawMode fromValue(int value) => switch (value) {
  0x0001 => RL_LINES,
  0x0004 => RL_TRIANGLES,
  0x0007 => RL_QUADS,
  _ => throw ArgumentError('Unknown value for rlDrawMode: $value'),
};