Welcome, Guest. Please login or register. Did you miss your activation email?

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Kev-In

Pages: [1]
1
Graphics / Re: Drawing Vertex Arrays
« on: January 08, 2014, 11:13:09 pm »
Thank you very much! :D

 Now it's much faster to draw :)

2
Graphics / Re: Drawing Vertex Arrays
« on: January 08, 2014, 10:45:59 pm »
Is there a reason why you don't keep a one-dimensional vertex array?

Yes, there is.


I need to assign to every vertex a x and y that corresponds to his array position.

3
Graphics / Drawing Vertex Arrays
« on: January 08, 2014, 09:03:29 pm »
It is possible to draw a quickly multidimensional vertex array?

For example     sf::Vertex vertex[800][600];

I know only this way, but isn't too fast...


for(i=0; i<800; i++)
{
     window.draw(vertex[i], 600, sf::Points);
}


Its like call .draw 800 times...

Thanks  :)


(and sorry for bad english)

Pages: [1]