R_DrawParticles
()
| 527 | * R_DrawParticles |
| 528 | */ |
| 529 | void R_DrawParticles() { |
| 530 | |
| 531 | if (gl_ext_pointparameters.value != 0.0f && qglPointParameterfEXT) { |
| 532 | |
| 533 | //gl.gl.glEnableClientState(GL_VERTEX_ARRAY); |
| 534 | gl.glVertexPointer(3, 0, particle_t.vertexArray); |
| 535 | gl.glEnableClientState(GL_COLOR_ARRAY); |
| 536 | gl.glColorPointer(4, true, 0, particle_t.getColorAsByteBuffer()); |
| 537 | |
| 538 | gl.glDepthMask(false); |
| 539 | gl.glEnable(GL_BLEND); |
| 540 | gl.glDisable(GL_TEXTURE_2D); |
| 541 | gl.glPointSize(gl_particle_size.value); |
| 542 | |
| 543 | gl.glDrawArrays(GL_POINTS, 0, r_newrefdef.num_particles); |
| 544 | |
| 545 | gl.glDisableClientState(GL_COLOR_ARRAY); |
| 546 | //gl.gl.glDisableClientState(GL_VERTEX_ARRAY); |
| 547 | |
| 548 | gl.glDisable(GL_BLEND); |
| 549 | gl.glColor4f(1.0F, 1.0F, 1.0F, 1.0F); |
| 550 | gl.glDepthMask(true); |
| 551 | gl.glEnable(GL_TEXTURE_2D); |
| 552 | |
| 553 | } |
| 554 | else { |
| 555 | GL_DrawParticles(r_newrefdef.num_particles); |
| 556 | } |
| 557 | } |
| 558 | |
| 559 | /** |
| 560 | * R_PolyBlend |
no test coverage detected