this post was submitted on 12 Oct 2024
7 points (88.9% liked)

Learn Programming

1657 readers
1 users here now

Posting Etiquette

  1. Ask the main part of your question in the title. This should be concise but informative.

  2. Provide everything up front. Don't make people fish for more details in the comments. Provide background information and examples.

  3. Be present for follow up questions. Don't ask for help and run away. Stick around to answer questions and provide more details.

  4. Ask about the problem you're trying to solve. Don't focus too much on debugging your exact solution, as you may be going down the wrong path. Include as much information as you can about what you ultimately are trying to achieve. See more on this here: https://xyproblem.info/

Icon base by Delapouite under CC BY 3.0 with modifications to add a gradient

founded 2 years ago
MODERATORS
 

I not only have hard time finding tutorials, but even if I do, I have a hard time getting them to not crash, let alone working. I don't know what's the reason, but I have a suspicion that some of these are now AI generated, hence the issues of them not working or outright crashing.

I know newer APIs exist. They're way too complicated for my usecase.

I've heard about WebGPU, but I don't want to touch it with a 10 meter long pole, due to its name. I'll have a lot of time convincing people that WASM isn't a web-only thing, and me using it for scripting won't mean my game engine is either Web-based, nor that it has any Web-capability, and I only stayed with it due to my inability of finding a well-supported scripting VM without "Web" in its name.

If you ask: My game engine is currently using CPU rendering, and used to use SDL2 for displaying the output. I decided to move away from them. Managed to find some basic OpenGL tutorials when I first write my replacement for the SDL2 window handling. The Windows API is well documented on that regard, I even was able to find X11 documentations (this one even required me to find code already implementing such things, since documentation on some features was scarce). However, it somehow became increasingly difficult to find them.

top 3 comments
sorted by: hot top controversial new old
[–] SuperFola 5 points 2 months ago

There is the famous https://learnopengl.com/ which isn’t ai generated as it was written before those weird bots started writing nonsense. And it’s great. I’ve followed it and learned a lot

[–] [email protected] 4 points 2 months ago* (last edited 2 months ago)

Lately I often recommend "the library". That's a place that's to this date still dedicated to sharing knowledge. I aquired a good amount of my knowledge by reading books. And there are good ones, written by smart people. You'll -of course- find many in a university library where computer science is taught. But even the public library where I live has one board of a shelf on game development. (On different platforms, frameworks etc.) Along with books on Arduino and most common programming languages. Maybe this helps.

What got me started was https://nehe.gamedev.net/ but that's super old and outdated.

[–] moonpiedumplings 1 points 2 months ago

OpenGL — Wikibooks

Sadly, it doesn't seem to be complete. But that site is usually the first place I check for questions like this.