Advertisement

How to start learning OpenGl once again

Started by December 04, 2018 06:16 PM
13 comments, last by JaredBGreat 6 years ago
On 12/18/2018 at 8:56 PM, test opty said:

1- Is OpenGL mainly for creating games? 3D games for both Windows and smartphones platforms?

Yes, but OpenGL API is used for graphics only. For example, you can display your game objects like squares or images. There are more things in games then graphics in games. You cannot create a window or create keyboard/mouse handlers using OpenGL. You need to use some library (or framework) for creating a window, for example (if you use C++): WinAPI (for Windows only), or cross-platform libraries: GLFW, FreeGLUT, SDL2, SFML, Qt and so on. You need to choose a library for creating a window and keyboard/mouse handlers.

You cannot play a background music and sounds using OpenGL. I like two free libraries for playing audio files:

  • OpenAL (free for commercial projects)
  • irrKlang (free for non-commercial projects)

I do not know how to create projects for smartphones with C++ and OpenGL. I study WebGL (JS/ES5 and TypeScript) for cross-platform development.

On 12/18/2018 at 8:56 PM, test opty said:

2- Aren't there any tutorial videos you have watched previously and know they're good for beginners, but in C++.

Practice with creating simple games everyday. You can start learning C++ here: http://noobtuts.com/cpp and you can start learing the development of simple clone games here: https://noobtuts.com/cpp/2d-pong-game

Do not forget that studying of Math is very important. Start here: Math for Game Developers

Make small Games

Advertisement

In the past i have written a C/C++ single-header-file platform abstraction library, which is meant to be a replacement for GLUT/GLFW/SDL.

Its great for prototyping any kind of OpenGL application and its cross-platform as well. Also it does not require any kind of linking or third party libraries. You can find it here: https://www.libfpl.org

On the webpage you can find a easy and extensive documentation, but If you need help, just write me a PM.

There is a project page as well: 

 

Thanks, this might be useful for the little engine I'm working on.  I was planning on using SDL and later add GLFW when I go 3D, I'll look into it.

This topic is closed to new replies.

Advertisement