How Pointers Really Work
If you're having trouble understanding pointers, this could help you out.
void *Pointer;void _far *MakeFarPointer(unsigned short OFFSET, unsigned short SEGMENT)
{
union tagUNION
{
struct tagADDRESS
{
unsigned short OFFSET, SEGMENT;
} ADDRESS;
void _far *POINTER;
} UNION;
UNION.ADDRESS.OFFSET = OFFSET;
UNION.ADDRESS.SEGMENT = SEGMENT;
return POINTER;
}unsigned long _far *somepointer = (unsigned long _far *)MakeFarPointer(0xA000, 0x0000);unsigned long *somepointer = (unsigned long *)0xA389B036;So really, a pointer is just a way to choose where a variable is stored. Here is some code to look at:
int variable = 10;
int *somepointer = &variablesomepointer[0] = 25;Related Tutorials
Balancing Game Development and Creative Direction in Indie Production
A practical look at how indie developers can balance creative direction with hands-on game development. This article co…
My Unreal Engine Development Process: From Core Idea to Playable Build
A practical overview of my Unreal Engine development process, covering how I move from a core game idea to a playable b…
Introducing LaneGraph: The Ultimate Road Network Solution for Unity
Discover the power of LaneGraph, a lightweight and flexible lane-based navigation system for Unity. LaneGraph makes it…
Retargeting Mixamo Characters with Root Motion In Unreal Engine 5.4.
I have always found Retargeting Mixamo Characters To have Root Motion is a serious lengthy Tast, Recently I stumbled up…
How To Make A SIMPLE Main Menu In Unity
In this tutorial for unity, i go over how to make a simple main menu for unity, it's an unlisted video because i do not…
Guide to Gameplay Balance
A perspective on competitive gameplay balance, from a background of "shooter" sandbox design.
Discussion
More from OutAxDx
Comparing Shadow Mapping Techniques with Shadow Explorer
New Incentives and a Whole New Platform From The Intel AppUp developer program
The final installment in this series on Intel's AppUp program details additional incentives and opportunities for devel…
The Game Maker
This book excerpt contains the first chapter of the book that introduces beginning game developers to the Game Maker pr…
Discussion