(ColorSpace to, Color4f color)
| 35 | } |
| 36 | |
| 37 | public Color4f convert(ColorSpace to, Color4f color) { |
| 38 | to = to == null ? getSRGB() : to; |
| 39 | try { |
| 40 | return new Color4f(_nConvert(_ptr, Native.getPtr(to), color.getR(), color.getG(), color.getB(), color.getA())); |
| 41 | } finally { |
| 42 | Reference.reachabilityFence(this); |
| 43 | Reference.reachabilityFence(to); |
| 44 | } |
| 45 | } |
| 46 | |
| 47 | @ApiStatus.Internal |
| 48 | public ColorSpace(long ptr) { |