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

Method getGLES2TextureTarget

RenderSystems/GLES2/src/OgreGLES2Texture.cpp:54–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52 }
53
54 GLenum GLES2Texture::getGLES2TextureTarget(void) const
55 {
56 switch(mTextureType)
57 {
58 case TEX_TYPE_1D:
59 case TEX_TYPE_2D:
60 return GL_TEXTURE_2D;
61 case TEX_TYPE_CUBE_MAP:
62 return GL_TEXTURE_CUBE_MAP;
63 case TEX_TYPE_3D:
64 return GL_TEXTURE_3D_OES;
65 case TEX_TYPE_2D_ARRAY:
66 return GL_TEXTURE_2D_ARRAY;
67 case TEX_TYPE_EXTERNAL_OES:
68 return GL_TEXTURE_EXTERNAL_OES;
69 default:
70 return 0;
71 };
72 }
73
74 void GLES2Texture::_createGLTexResource()
75 {

Callers 2

GLES2TextureBufferMethod · 0.80
_setTextureMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected