|
|
Sorry, malloc is the function, I'm writting my program in C, but what I want
to know is the Algorithm or procedure to distribute the memory, for example:
sphere needs 3 coordinates for the center and a radius, each variable takes
4 bytes of memory, well, I need 16 bytes for a sphere, but for a box I need
24 bytes...
sphere 16 bytes
box 24 bytes
cone 28 bytes
cylinder 28 bytes
plane 16 bytes
torus 8 bytes
this are without transformations, they need more memory, that's the problem,
my memori not is infinite
Post a reply to this message
|
|