Skip to content
Sign upLog in
← Back to Community

OpenGL

Profile icon
MajidGomainy

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

Voters
Profile icon
vrushank41
Profile icon
KayEnn1
Profile icon
CibeliSouza
Profile icon
EkamjothSingh
Profile icon
akshatkumar24
Profile icon
RAJU-KUMARKUMA1
Profile icon
sainiakshpreet
Profile icon
silvertakana
Profile icon
MajidGomainy
Comments
hotnewtop
Profile icon
DynamicSquid

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

Profile icon
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 ...

Profile icon
DynamicSquid

@MajidGomainy
sorry, no, it's not possible

Profile icon
silvertakana

@DynamicSquid
nooooo… this is my worst nightmare.

Profile icon
DynamicSquid
Profile icon
AV3_08

@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.

Profile icon
DynamicSquid

@AV3_08 I think now you can install GLEW and GLM using Replit's new Nix integration, but I haven't tried it yet

Profile icon
DeaconBurgess

@AV3_08 can you help me use repl.it with LWJGL how to code with it

Profile icon
AV3_08

@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

Profile icon
DeaconBurgess

@AV3_08 Ok! :)

Profile icon
DeaconBurgess

@AV3_08 I cant find your old lwjgl proj to fork

Profile icon
AV3_08
Profile icon
wardgarrett57

If you like survival games, five nights at freddy's 2 is an interesting game for you. You can play alone or play with friends in your free time to find fun. Let's try it, you will love it!

Profile icon
hamzamaqsood3

If you would like to talk about Halo, you can, but not on Repl Talk (which is mostly for chinese buffets near me programming-related things). If you'd like to talk about it, feel free to on the Repl.it Discord server

Profile icon
hamzamaqsood3

If you would like to talk about Halo, you can, but not on Repl Talk (which is mostly for chinese buffets near me programming-related things). If you'd like to talk about it, feel free to on the Repl.it Discord server

Profile icon
hamzamaqsood3

If you would like to talk about Halo, you can, but not on Repl Talk (which is mostly for chinese buffets near me programming-related things). If you'd like to talk about it, feel free to on the Repl.it Discord server

Profile icon
MarcioPinho
Profile icon
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

Profile icon
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.

Profile icon
MajidGomainy

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

Profile icon
Coder100

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

Profile icon
MajidGomainy

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

Profile icon
Coder100

sorry, no.

@MajidGomainy