| 28 | } |
| 29 | |
| 30 | GLenum ncFormatToNonInternal(Texture::Format format) |
| 31 | { |
| 32 | switch (format) { |
| 33 | case Texture::Format::R8: |
| 34 | return GL_RED; |
| 35 | case Texture::Format::RG8: |
| 36 | return GL_RG; |
| 37 | case Texture::Format::RGB8: |
| 38 | return GL_RGB; |
| 39 | case Texture::Format::RGBA8: |
| 40 | default: |
| 41 | return GL_RGBA; |
| 42 | } |
| 43 | } |
| 44 | |
| 45 | Texture::Format internalFormatToNc(GLenum format) |
| 46 | { |
no outgoing calls
no test coverage detected