Ask coding questions

← Back to all posts
OpenGL
MajidGomainy

How is possible to use OpenGL in repl.it for C++ codes?

Voters
silvertakana
MajidGomainy
Comments
hotnewtop
DynamicSquid

You can't. OpenGL requires a window to open, repl.it doesn't support that. Try using Visual Studio for that

MajidGomainy

@DynamicSquid Thanks for your reply, but for some reasons I should use web based IDE. do you have any idea that, is there any online IDE to support OpenGL? Many thanks ...

DynamicSquid

@MajidGomainy sorry, no, it's not possible

silvertakana

@DynamicSquid nooooo… this is my worst nightmare.

DynamicSquid
qcm

let me know if this helps you or if you need any changes or assistance - https://repl.it/@qcm/repl-freeglut-cpp , i also have a C example https://repl.it/@qcm/repl-freeglut-c

mwilki7

Search for a user named SPQR who has gotten SFML to work with a C++ repl. You could try basing your repl on his.

MajidGomainy

@mwilki7 Thanks, Yes I saw their works, but the last login was for 8 months ago! However I will contact ...

Coder100

Sorry, it is not possible at the moment. Repl.it has not added a way for a display/window.

MajidGomainy

@Coder100 Thanks for your reply, is there any online IDE to support it?

Coder100

sorry, no. @MajidGomainy