Game engine creation, what do I need to know?
I dont understand why ppl have problems with pointers? is it just me or?
The pointers thing is just an example. I actually don''t know what in the hell they do (yes, it points to a memory address, but what is the practical use of one?) so somebody wanna explain?
Don''t sweat the petty things, and don''t pet the sweaty things.
okay - I often done this - and there will prbably be no end :
(this is just an example)
let''s say you have a DLL and theres a variable which you have in the exe which uses the dll but the dll needs this variable -
(a HDC for example)
Solution without pointer :
send every frame a function which passes the HDC to a HDC in the DLL
Solution with pointer :
you have one pointer that points to the adress of the EXE HDC,
the adress doesn''t change, no matter what value the HDC has,
so you can always acces the value
(this is just an example)
let''s say you have a DLL and theres a variable which you have in the exe which uses the dll but the dll needs this variable -
(a HDC for example)
Solution without pointer :
send every frame a function which passes the HDC to a HDC in the DLL
Solution with pointer :
you have one pointer that points to the adress of the EXE HDC,
the adress doesn''t change, no matter what value the HDC has,
so you can always acces the value
I hate signatures !!!
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement