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

Commit

Permalink
Update demo13.lpr
Browse files Browse the repository at this point in the history
  • Loading branch information
Seenkao authored Jun 11, 2023
1 parent 1eeff2b commit 4d434b0
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Zengl_SRC/demos/Android/13-Particles/jni/demo13.lpr
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
zgl_text,
zgl_types,
zgl_log,
zgl_utils;
zgl_utils,
zgl_types,
{$IfNDef OLD_METHODS}
, gegl_color{$EndIf};

var
dirRes : UTF8String = 'assets/';
Expand Down Expand Up @@ -91,7 +94,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 4d434b0

Please sign in to comment.