Point-based particles?

Hi all. I did a demo project several years ago in Cocos2d/iOS that used glDrawArrays(GL_POINTS…) to create a super-fast particle system. I’m looking to do something similar to that in MonoGame, but I’m not seeing any support for point-based primitives.

The workaround I’m thinking of is to use lines where both ends are the same vertex, but I’m wondering if there’s a better way. Is there any way to do something like this in MonoGame…?

for (int i=0;  i<debrisCount;  i++) {
	xyArray[i].x = GAME_TO_SCREEN_X(debris[i].x);
	xyArray[i].y = GAME_TO_SCREEN_Y(debris[i].y);
glColorPointer(4, GL_FLOAT, sizeof(Bullet), &debris[0].red);
glVertexPointer(2, GL_FLOAT, 0, xyArray);
glDrawArrays(GL_POINTS, 0, debrisCount);

Thanks in advance!


I think Monogame consequently does not support point sprites either.

Looks like Quads are the way to go then

@kosmonautgames Interesting - thanks for the info, cheers!