rlGetGlTextureFormats method

(int, int, int) rlGetGlTextureFormats(
  1. RlPixelFormat format
)

Implementation

(int glInternalFormat, int glFormat, int glType) rlGetGlTextureFormats(
  RlPixelFormat format,
) => run(
  () => 'rlGetGlTextureFormats(${format.name})',
  () {
    final glInternalFormat = rl.Temp.UnsignedInt$.Ref1();
    final glFormat = rl.Temp.UnsignedInt$.Ref2();
    final glType = rl.Temp.UnsignedInt$.Ref3();
    rl.Rlgl.rlGetGlTextureFormats(
      format.value,
      glInternalFormat,
      glFormat,
      glType,
    );
    return (glInternalFormat.value, glFormat.value, glType.value);
  },
);