SFML community forums
General => General discussions => Topic started by: Jebbs on March 23, 2014, 07:42:48 pm
-
I opened this here instead of Feature Request because I am more curious than anything else, but I always wondered why getVertexCount returned an unsigned integer instead of a size_t.
I mean, I get that 4 million verticies is a lot already, but it just seems like using a size_t in this case, as well as in the RenderTarget's vertex draw method, makes a lot more sense in my opinion.
P.S.
Sorry if this was asked before. I did do some googling, but couldn't find anything related to this.
-
If I remember correctly, it's for consistency with other classes/functions. And the maximum of a 32-bits unsigned integer is 4 billions, not millions ;)
-
And the maximum of a 32-bits unsigned integer is 4 billions, not millions ;)
Oh yeah. My bad. :P
If I remember correctly, it's for consistency with other classes/functions.
Maybe I'll look more into this. Thanks for the answer!