| 13 | namespace nCine |
| 14 | { |
| 15 | GLenum ncFormatToInternal(Texture::Format format) |
| 16 | { |
| 17 | switch (format) { |
| 18 | case Texture::Format::R8: |
| 19 | return GL_R8; |
| 20 | case Texture::Format::RG8: |
| 21 | return GL_RG8; |
| 22 | case Texture::Format::RGB8: |
| 23 | return GL_RGB8; |
| 24 | case Texture::Format::RGBA8: |
| 25 | default: |
| 26 | return GL_RGBA8; |
| 27 | } |
| 28 | } |
| 29 | |
| 30 | GLenum ncFormatToNonInternal(Texture::Format format) |
| 31 | { |
no outgoing calls
no test coverage detected