| 64 | } |
| 65 | |
| 66 | GLenum GLTexture::getGLTextureTarget(void) const |
| 67 | { |
| 68 | switch(mTextureType) |
| 69 | { |
| 70 | case TEX_TYPE_1D: |
| 71 | return GL_TEXTURE_1D; |
| 72 | case TEX_TYPE_2D: |
| 73 | return GL_TEXTURE_2D; |
| 74 | case TEX_TYPE_3D: |
| 75 | return GL_TEXTURE_3D; |
| 76 | case TEX_TYPE_CUBE_MAP: |
| 77 | return GL_TEXTURE_CUBE_MAP; |
| 78 | case TEX_TYPE_2D_ARRAY: |
| 79 | return GL_TEXTURE_2D_ARRAY_EXT; |
| 80 | default: |
| 81 | return 0; |
| 82 | }; |
| 83 | } |
| 84 | |
| 85 | //* Creation / loading methods ******************************************** |
| 86 | void GLTexture::createInternalResourcesImpl(void) |
no outgoing calls
no test coverage detected