Skip to content
This repository has been archived by the owner on Sep 29, 2023. It is now read-only.

Commit

Permalink
Update demo13.pas
Browse files Browse the repository at this point in the history
  • Loading branch information
Seenkao authored Jun 11, 2023
1 parent f64f67e commit 1eeff2b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Zengl_SRC/demos/FreePascal/13 - Particles/demo13.pas
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@
zgl_font,
zgl_text,
zgl_math_2d,
zgl_utils
zgl_utils,
zgl_types
{$IfNDef OLD_METHODS}
, gegl_color
{$EndIf}
{$ELSE}
zglHeader
{$ENDIF}
Expand Down Expand Up @@ -91,7 +95,7 @@ procedure Draw;
if debug Then
for i := 0 to particles.Count.Emitters - 1 do
with particles.List[ i ].BBox do
pr2d_Rect( MinX, MinY, MaxX - MinX, MaxY - MinY, $FF0000, 255 );
pr2d_Rect( MinX, MinY, MaxX - MinX, MaxY - MinY, {$IfNDef OLD_METHODS}cl_Red{$Else}$FF0000, 255{$EndIf} );

text_Draw( fntMain, 0, 0, 'FPS: ' + u_IntToStr( zgl_Get( RENDER_FPS ) ) );
text_Draw( fntMain, 0, 20, 'Particles: ' + u_IntToStr( particles.Count.Particles ) );
Expand Down

0 comments on commit 1eeff2b

Please sign in to comment.