ocornut / ocornut/imgui

rotating entire ImGui window

Open
#8,917 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

backends
Dominant language
C++
Stars
76.3k
Forks
12k
Avg merge
40m
Merged PRs (30d)
1

Description

Version/Branch of Dear ImGui:

Version 1.92

Back-ends:

imgui_impl_opengl3.cpp + imgui_impl_sdl3.cpp

Compiler, OS:

Clang

Full config/build information:

No response

Details:

I am developing an Android app using ImGui with SDL and OpenGL.

I have everything working together nicely so far.

The app is started in "portrait" mode, and the issue is that sometimes I need to fake being in "landscape" mode.

This is all fine for SDL and OpenGL because I can change the view transform matrix and projection transform matrix as needed.

How would I be able to rotate the ImGui window so that is faked being run in "landscape"?

I'm not asking about widget layout or anything like that.

I assume there is a low-level way to achieve this, but I could not find anything.

Screenshots/Video:

No response

Minimal, Complete and Verifiable Example code:
// Here's some code anyone can copy and paste to reproduce your issue
ImGui::Begin("Example Bug");
MoreCodeToExplainMyIssue();
ImGui::End();

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review imgui_impl_opengl3.cpp and imgui_impl_sdl3.cpp, then inspect the ImGui::Begin example in the issue. The report asks for a low-level way to rotate an entire ImGui window but does not identify an implementation location, test, or agreed API; first establish the supported scope and a concrete completion criterion.

Written by the indexing model from the issue text.

Assessment

Tech stack
android, cpp
Domain
computer-graphics, mobile-dev
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.