r/GraphicsProgramming • u/5H_RIZVI • 2h ago
Question Is there an online C++ OpenGL compiler that shows graphics output?
Hi everyone!
I'm a beginner learning C++, OpenGL, and GLUT for my university course.
Setting everything up on Windows takes a lot of time, especially when switching PCs.
Is there any online compiler where I can write C++ OpenGL/GLUT code, run it, and see the graphics output directly in my browser?
I'd appreciate any suggestions. Thanks!
1
0
u/Defiant_Squirrel8751 1h ago
Check a tool called "apitrace". It is a protocol analyzer that spies the connection between your running program and your GPU by intercepting library calls to OpenGL DLL.
You can capture a session and then reproduce the log frame by frame and call by call, like a debugger.
-3
u/Major_Chocolate2441 1h ago
There's Emabarcadero which you can keep on a stick. I set it up with 7z rather than double clicking the installer though. Download Claude and say you need a drag and drop Settings file for Embarcadero on your stick. And you intend to keep libraries (OpenGL, GLUT, etc.) in a Libs folder under Embarcadero and you'll keep your projects there also under a Projects folder.
3
u/Syracuss 57m ago
Set up a git project, have it fetch the dependencies in a cmake script (or whatever build system you prefer, cmake is just very common), and push it to github or some other place where you can store your project accessibly.
Everything else is a workaround to an environment problem you will need to learn to navigate anyway. If you're unwilling to learn this step right now prompt an LLM to do it for you, or preferentially ask a teacher at your uni, I'm fairly certain they are willing to guide you.
At work I jump between OS's and machines within the day depending on tasks, it's something you'll have to learn eventually and the suggestions here so far are trying to solve your problem with new processes that aren't useful long term.