# How to use GLTEXTURE2D directly in C++

**URL:** <https://forums.unrealengine.com/t/how-to-use-gltexture2d-directly-in-c/413392>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine\
**Created:** [December 30, 2017, 6:52am UTC](https://forums.unrealengine.com/t/how-to-use-gltexture2d-directly-in-c/413392 "2017-12-30T06:52:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RikiLee](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RikiLee](https://forums.unrealengine.com/u/RikiLee)\
**Post date:** [December 30, 2017, 6:52am UTC](https://forums.unrealengine.com/t/how-to-use-gltexture2d-directly-in-c/413392/1 "2017-12-30T06:52:46Z")

</div>

Hello everyone, I want to use a texture that was created by the other SDK and it’s a gl\_texture\_2d target, I’ve found a class called FSlateOpenGLElementProgram, and this class has a function called SetTexture, void FSlateOpenGLElementProgram::SetTexture( GLuint Texture, uint32 AddressU, uint32 AddressV ) but I don’t know how to use it, thanks!
