GetOpenGLTextureFromRHITexture

Given a pointer to a RHI texture that was created by the OpenGL RHI, returns a pointer to the [FOpenGLTextureBase](API\Runtime\OpenGLDrv\FOpenGLTextureBase) it encapsulates.

Choose your operating system:

Windows

macOS

Linux

References

Module

OpenGLDrv

Header

/Engine/Source/Runtime/OpenGLDrv/Public/OpenGLResources.h

Include

#include "OpenGLResources.h"

Syntax

FOpenGLTextureBase * GetOpenGLTextureFromRHITexture
(
    FRHITexture * Texture
)

Remarks

Given a pointer to a RHI texture that was created by the OpenGL RHI, returns a pointer to the FOpenGLTextureBase it encapsulates.