MCPcopy Create free account
hub / github.com/OGRECave/ogre / getGLTextureTarget

Method getGLTextureTarget

RenderSystems/GL/src/OgreGLTexture.cpp:66–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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)

Callers 2

GLTextureBufferMethod · 0.80
_setTextureMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected