| 33 | } Shaders; |
| 34 | |
| 35 | GLenum dtype2gl(const forge::dtype pValue) |
| 36 | { |
| 37 | switch(pValue) { |
| 38 | case s8: return GL_BYTE; |
| 39 | case u8: return GL_UNSIGNED_BYTE; |
| 40 | case s32: return GL_INT; |
| 41 | case u32: return GL_UNSIGNED_INT; |
| 42 | case s16: return GL_SHORT; |
| 43 | case u16: return GL_UNSIGNED_SHORT; |
| 44 | default: return GL_FLOAT; |
| 45 | } |
| 46 | } |
| 47 | |
| 48 | GLenum ctype2gl(const ChannelFormat pMode) |
| 49 | { |
no outgoing calls
no test coverage detected