diff --git a/NEWS.md b/NEWS.md index c0975b1b..9d91d3f4 100644 --- a/NEWS.md +++ b/NEWS.md @@ -6,6 +6,7 @@ Red Panda C++ Version 1.0.10 - enhancement: don't auto add () when completing C++ io manipulators ( std::endl, std::fixed, etc.) - fix: can't goto to definition of std::endl - fix: errors in the calculation of cut limit + - enhancement: new turtle library based on raylib ( so it can be used under linux) Red Panda C++ Version 1.0.9 - fix: selection in column mode not correctly drawn when has wide chars in it diff --git a/windows/templates/CL_Turtle.template b/windows/templates/CL_Turtle.template index 6ea7fb15..ebee66c7 100644 --- a/windows/templates/CL_Turtle.template +++ b/windows/templates/CL_Turtle.template @@ -4,17 +4,17 @@ Name=Turtle Graphics Name[zh_CN]=海龟作图 Icon=CL_Turtle.ico Description=A simple program using Turtle Graphics -Description[zh_CN]=简单的海龟作图程序 (https://github.com/royqh1979/libturtle) +Description[zh_CN]=简单的海龟作图程序 (https://github.com/royqh1979/raylib-drawing) Category=Multimedia Category[zh_CN]=多媒体 [Unit0] -CppName=main.cpp -Cpp=CL_Turtle_cpp.txt +CName=main.c +C=CL_Turtle_cpp.txt [Project] UnitCount=1 -Type=0 -IsCpp=1 -linker=-lturtle -lgraphics -luuid -lmsimg32 -lgdi32 -limm32 -lole32 -loleaut32 -lwinmm -lgdiplus +Type=1 +IsCpp=0 +linker=-lrturtle -lrdrawing -lraylib -lopengl32 -lgdi32 -lwinmm diff --git a/windows/templates/CL_Turtle_cpp.txt b/windows/templates/CL_Turtle_cpp.txt index edcf6ff6..f7587e6c 100644 --- a/windows/templates/CL_Turtle_cpp.txt +++ b/windows/templates/CL_Turtle_cpp.txt @@ -1,19 +1,20 @@ -#include -#include +#include int main() { int n; initWorld(800,600); - setSpeed(1000); - //setImmediate(1); - //init_console(); - //show_console(); - //printf("test output\n"); + +// Press F2 toggle display of grids +// Press F3 toggle display of the turtle + + setSpeed(500); +// setRewind(true); +// setImmediate(true); n=50; for (int i=0;i