MCPcopy Create free account
hub / github.com/LibreVR/Revive / CreateSharedTextureGL

Method CreateSharedTextureGL

Revive/TextureGL.cpp:137–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

135}
136
137bool TextureGL::CreateSharedTextureGL(unsigned int* outName)
138{
139 // We don't actually share a texture, we just create a new one in the current context
140 glCreateTextures(GL_TEXTURE_2D, 1, &m_InteropTexture);
141 glTextureParameteri(m_InteropTexture, GL_TEXTURE_BASE_LEVEL, 0);
142 glTextureParameteri(m_InteropTexture, GL_TEXTURE_MAX_LEVEL, 0);
143 glTextureStorage2D(m_InteropTexture, 1, GL_RGBA8, m_Width, m_Height);
144 *outName = m_InteropTexture;
145 return true;
146}
147
148void TextureGL::DeleteSharedTextureGL(unsigned int name)
149{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected