瀏覽代碼

stack cleanup

pull/5376/head
David Buzatto 3 月之前
父節點
當前提交
eb7d8d9710
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. +4
    -2
      examples/shapes/shapes_penrose_tile.c

+ 4
- 2
examples/shapes/shapes_penrose_tile.c 查看文件

@ -22,7 +22,7 @@
#include "raylib.h"
#define STR_MAX_SIZE 10000
#define TURTLE_STACK_MAX_SIZE 2500
#define TURTLE_STACK_MAX_SIZE 50
typedef struct TurtleState {
Vector2 origin;
@ -149,6 +149,9 @@ void DrawPenroseLSystem(PenroseLSystem *ls)
repeats = (int) step - 48;
}
}
turtleTop = -1;
}
void BuildProductionStep(PenroseLSystem *ls)
@ -187,7 +190,6 @@ void BuildProductionStep(PenroseLSystem *ls)
void BuildPenroseLSystem(PenroseLSystem *ls, float drawLength, int generations)
{
*ls = CreatePenroseLSystem(drawLength);
turtleTop = -1;
for (int i = 0; i < generations; i++)
{
BuildProductionStep(ls);

Loading…
取消
儲存