MCPcopy Create free account
hub / github.com/SFML/imgui-sfml / convertGLTextureHandleToImTextureID

Function convertGLTextureHandleToImTextureID

imgui-SFML.cpp:146–151  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

144}
145
146[[nodiscard]] ImTextureID convertGLTextureHandleToImTextureID(GLuint glTextureHandle)
147{
148 ImTextureID textureID{};
149 std::memcpy(&textureID, &glTextureHandle, sizeof(GLuint));
150 return textureID;
151}
152
153[[nodiscard]] GLuint convertImTextureIDToGLTextureHandle(ImTextureID textureID)
154{

Callers 4

getSpriteTextureDataFunction · 0.85
UpdateFontTextureFunction · 0.85
ImageFunction · 0.85
ImageButtonFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected