I was hoping you'd figure something out after asking @dotnka (and @fleabay in the other thread you created). I get that you're looking for lots of very specific answers, and likely complete solutions. You're not accustomed to programming, and that's fine.
I also started programming at a young age. Around 8, I was fortunate enough to have a father who taught me BASIC. The “Online help” in QBASIC wasn't online, but it was good, and I messed with a ton of the example code I copied from it.
You're probably in a different situation. You have easy-to-use game engines and the world wide web. You have tonnes of resources you can sift through. Some with good examples, some with outdated, bad examples. As you've already experienced wrt. using GLUT, it can be difficult to tell whether a resource/approach is outdated or recent. You'd need to go search the web for the source (often found on github) or the official website for the library. This will help you a lot to tell whether you're dealing with some outdated library. Often, if you add the right keywords.
Now, unless I'm already completely off about this since I started my latest project, GLFW3 and GLAD are the way to go when wanting to use OpenGL today. I personally top this off with SFML and Dear ImGui to make some things a lot easier. I think you can do this too, but please don't. Please don't mess with all this stuff yet.
I don't know if you want to do something really advanced - if the goal is to do something in a complex way, but it shouldn't be at this point. Pick up Godot. Follow the tutorial. Refer to the excellent online (and offline) resources and community. Make games.
And I promise you - it will let you drag and drop buttons just about anywhere you wish to have that bloody button.
I was hoping you'd figure something out after asking @dotnka (and @fleabay in the other thread you created). I get that you're looking for lots of very specific answers, and likely complete solutions. You're not accustomed to programming, and that's fine.
I also started programming at a young age. Around 8, I was fortunate enough to have a father who taught me BASIC. The “Online help” in QBASIC wasn't online, but it was good, and I messed with a ton of the example code I copied from it.
You're probably in a different situation. You have easy-to-use game engines and the world wide web. You have tonnes of resources you can sift through. Some with good examples, some with outdated, bad examples. As you've already experienced wrt. using GLUT, it can be difficult to tell whether a resource/approach is outdated or recent. You'd need to go search the web for the source (often found on github) or the official website for the library. This will help you a lot to tell whether you're dealing with some outdated library. Often, if you add the right keywords.
Now, unless I'm already completely off about this since I started my latest project, GLFW3 and GLAD are the way to go when wanting to use OpenGL today. I personally top this off with SFML and Dear ImGui to make some things a lot easier. I think you can do this too, but please don't. Please don't mess with all this stuff yet.
I don't know if you want to do something really advanced - if the goal is to do something in a complex way, but it shouldn't be at this point. Pick up Godot. Follow the tutorial. Refer to the excellent online (and offline) resources and community. Make games.
And I promise you - it will let you drag and drop buttons just about anywhere you wish to have that bloody button.
SuperVGA now I know why you have the best rating. You are one of the best programmer and teacher I have met. Thanks a lot for the websites and everything else. I will start using glfw3 and glad. I knew about them at the start, but I didn't use them as they didn't allow me to make a snake game.(thats what I thought). Thanks a lot. This topic is closed. I will not need your help on the snake game because, it is my job to figure out how to do it. I will use dear Imgui or sfml since they are better than glut. Thanks soooooooooooooooooooo much. FROM THE HEART
@SuperVGA I am currently trying to find an external gui library that lets me make buttons in x and y positions. I do not know how to make buttons from scratch. A video will be helpful.
Dear ImGui does that. Have you tried playing around with the examples included with ImGui, or looked for resources? It's very easy to find help online, although I haven't found (or searched thoroughly) videos describing just that. Here's a little snipped of ImGui that renders a button over whatever you drew before:
Limited the size of IDs that can be created over time (ImGui tracks them and becomes very slow after some time - Make sure to reuse IDs from previous frame). Added some frustum culling. Added some more flags so does not conflict with other windows to remain clickable.
I make a huge mesh that covers the entire level of a game, which i use to construct a surfel hierarchy for realtime GI.
So i need to divide into chunks to support out of core, multi threading, and regional updates on edits. But sometimes the remeshed chunks do not exactly match their neighbors, so i need to stitch and fix. And maintain data structure so i can traverse the chunks as if it would be one connected mesh. Yeah, and ofc. that's pretty error prone. Those debug labels will surely help a lot. : )