OpenGL
How is possible to use OpenGL in repl.it for C++ codes?
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
You can't. OpenGL requires a window to open, repl.it doesn't support that. Try using Visual Studio for that
@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 ...
@MajidGomainy sorry, no, it's not possible
@DynamicSquid nooooo… this is my worst nightmare.
@silvertakana Actually, I think @qcm found a way here: https://replit.com/@qcm/repl-freeglut-cpp
@DynamicSquid replit actually does now, but at the time I’m writing this there is no obvious way to install GLEW and GLM. Replit works with LWJGL, a Java wrapper for OpenGL that includes all dependencies, though.
@AV3_08 I think now you can install GLEW and GLM using Replit's new Nix integration, but I haven't tried it yet
@AV3_08 can you help me use repl.it with LWJGL how to code with it
@DeaconBurgess Sorry for the late reply, you can just follow the steps on the LWJGL “Getting Started” page (or you can fork my old LWJGL project to start, pardon the extreme mess)
Also, if you use the gradle build script generator on the LWJGL website you have to add “plugins { id ‘java’ }” to it for it to work.
There are also several good LWJGL tutorials on the internet that use Maven or Gradle, so they can be followed on repl.it.
Hope this helps somewhat :D
@AV3_08 Ok! :)
@AV3_08 I cant find your old lwjgl proj to fork
@DeaconBurgess https://replit.com/@AV3_08/generic-LWJGL-project
This is one of them, hope it works :)