I'm making some C code to work with SVG Vector Sprites.
I have done all the planning on paper on how to read the SVG File, represent the paths, path styles, OpenGL\Quartz2D\GDI drawing etc and how to store them into an array.
I want to have a single struct to hold the points for the paths, styles and matrix transformation.
Basically I have 3 arrays. A void-ptr array for the paths and path symbols. A void-ptr array to hold the styles for the paths. An int array to hold the matrix transformation for the paths.
What I don't know is, when declaring the struct, do I have a single pointer for the array, or do I have a pointer to a pointer. (The array's size wont be known when the struct is declared, made)
I have done all the planning on paper on how to read the SVG File, represent the paths, path styles, OpenGL\Quartz2D\GDI drawing etc and how to store them into an array.
I want to have a single struct to hold the points for the paths, styles and matrix transformation.
Basically I have 3 arrays. A void-ptr array for the paths and path symbols. A void-ptr array to hold the styles for the paths. An int array to hold the matrix transformation for the paths.
What I don't know is, when declaring the struct, do I have a single pointer for the array, or do I have a pointer to a pointer. (The array's size wont be known when the struct is declared, made)
Last edited: