-4
\$\begingroup\$

I am a computer science major interested in learning how to create games. I know c++ very well and I am familiar with opengl. I want to know if opengl is just for graphics or can it be used for things like networking, collision detection, and sound for designing a game?

\$\endgroup\$
3
  • 2
    \$\begingroup\$ If you are familiar with OpenGL then you know that it is simply a graphics API, all OpenGL does is let you draw pictures. \$\endgroup\$ – Patrick Hughes Nov 23 '13 at 5:44
  • \$\begingroup\$ So what will I have to learn if I want to make a game? \$\endgroup\$ – Ralph Lee Stone Nov 23 '13 at 5:45
  • 1
    \$\begingroup\$ The "GL" stands for "graphics library", and any OpenGL specification will tell you: "OpenGL is a software interface to graphics hardware". \$\endgroup\$ – Maximus Minimus Nov 23 '13 at 11:56
1
\$\begingroup\$

OpenGL is just for drawing graphics. It cannot help you with any of the things you mention, eg networking, collision detection, sound, etc.

Look for a game engine in C++ that uses OpenGL and has facilities for those sorts of things.

\$\endgroup\$
1
\$\begingroup\$

OpenGL is a Graphics API. It provides functions and methods for rending high performance graphic images; more information here.

However, things like collision can be implemented for use with OpenGL rendered objects using third party libraries or, of course, you can write you're own, which isn't recommended seems it would take too long; there are already many resources available; one that comes recommended is Havok or there is Bullet Physics for real-time simulation, (you might have more luck asking questions about collision using bullet here).

There are also cross-platform Audio APIs like PortAudio for example.

Ideally, you would just use a third party games/physics engine and include it's libraries much like you would include OpenGL libraries.

\$\endgroup\$

Not the answer you're looking for? Browse other questions tagged or ask your own question.