thennequin / ImWindow

Window and GUI system based on Dear ImGui from OCornut
MIT License
852 stars 119 forks source link

Drawing scenes based on opengl in ImwWindow #45

Closed WangMuMuMuMuMu closed 1 week ago

WangMuMuMuMuMu commented 3 months ago

Hi, thank you for this great project want to ask you, how to draw 3D images based on opengl in a certain ImwWindow? GLFWwindow* seems unable to obtain and bind

thennequin commented 3 months ago

Hi, you need to render your 3D scene into a Texture/RenderTarget, then display the Texture via ImGui::Image, in an ImWindow::OnGui.