C++ 2D Arrays vs 1D Arrays and 2D to 1D Mapping
Channel:
Subscribers:
2,640
Published on ● Video Link: https://www.youtube.com/watch?v=oVmLZ-jbehs
1D arrays kinda suck, but they are a lot more usable than 2D arrays, so it is common to hold 2D data in a 1D array, and use "2D to 1D mapping" (i.e. algebra) to pull data from the 1D array as if it was a 2D array.
Or you could, you know, just refactor your code to use a vector instead.
Other Videos By Bill Kerney
2022-10-27 | Modding Quake 1: Overview of Functions in QuakeC |
2022-10-26 | Image Gallery: Image Processing Assignment |
2022-10-25 | The Glory of Bugs: The Ultima Online Beta Test |
2022-10-21 | Making Image Filters in C++ |
2022-10-20 | UE5 Charged Laser Weapon |
2022-10-20 | UE5 Destructible Meshes |
2022-10-19 | C++ Classes Part 2 - Passing to Functions and Using in Vectors |
2022-10-18 | UE5 Dynamic Materials |
2022-10-17 | C++ Introduction to Classes Part 1 |
2022-10-17 | C++ Debugging with Debuggers vs. Cout All The Things |
2022-10-14 | C++ 2D Arrays vs 1D Arrays and 2D to 1D Mapping |
2022-10-14 | Modding Quake 1 (Part 2) |
2022-10-13 | UE5 Content Examples |
2022-10-13 | UE5: Making Doors to Other Levels |
2022-10-13 | Breaking into the Game Industry |
2022-10-12 | C++ Call by Pointer |
2022-10-11 | UE5 Inventory System |
2022-10-10 | Side Note on Graphing, Evaluation and Data Science |
2022-10-10 | C++ Intro to Pointers |
2022-10-06 | How to Mod Custom Team Fortress in Quake 1 |
2022-10-06 | The Value of Modding |