Hello, OnlineGDB Q&A section lets you put your programming query to fellow community users. Asking a solution for whole assignment is strictly not allowed. You may ask for help where you are stuck. Try to add as much information as possible so that fellow users can know about your problem statement easily.

closed How to use external header files

+3 votes
asked Sep 17, 2022 by gamelff (220 points)
closed Sep 27, 2022 by Admin
I want to import the graphics header file but I don't know how to get it in the project to import it. Does anyone know how to do that?
closed with the note: answered

1 Answer

0 votes
answered Sep 17, 2022 by Peter Minarik (88,520 points)
selected Sep 19, 2022 by gamelff
Best answer
What language?

In C/C++ you can use either OpenGL (https://www.khronos.org/opengl/wiki/Getting_Started) to be platform independent or use DirectX on Windows (https://learn.microsoft.com/en-us/windows/win32/getting-started-with-directx-graphics) or you can use Vulcan (https://vulkan-tutorial.com/)

Be mindful of OnlineDGB is running on a Linux server and what you see is only what your web browser (as a client) shows you. In short, you won't be able to run graphics applications via OnlineDGB.
commented Sep 19, 2022 by gamelff (220 points)
Thank you, you saved me a lot of trouble.
Welcome to OnlineGDB Q&A, where you can ask questions related to programming and OnlineGDB IDE and and receive answers from other members of the community.