- enhancement: new turtle library based on raylib ( so it can be used under linux)

This commit is contained in:
Roy Qu 2022-06-02 20:09:27 +08:00
parent c295649280
commit 25c64c0875
5 changed files with 18 additions and 16 deletions

View File

@ -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.) - 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: can't goto to definition of std::endl
- fix: errors in the calculation of cut limit - 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 Red Panda C++ Version 1.0.9
- fix: selection in column mode not correctly drawn when has wide chars in it - fix: selection in column mode not correctly drawn when has wide chars in it

View File

@ -4,17 +4,17 @@ Name=Turtle Graphics
Name[zh_CN]=海龟作图 Name[zh_CN]=海龟作图
Icon=CL_Turtle.ico Icon=CL_Turtle.ico
Description=A simple program using Turtle Graphics 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=Multimedia
Category[zh_CN]=多媒体 Category[zh_CN]=多媒体
[Unit0] [Unit0]
CppName=main.cpp CName=main.c
Cpp=CL_Turtle_cpp.txt C=CL_Turtle_cpp.txt
[Project] [Project]
UnitCount=1 UnitCount=1
Type=0 Type=1
IsCpp=1 IsCpp=0
linker=-lturtle -lgraphics -luuid -lmsimg32 -lgdi32 -limm32 -lole32 -loleaut32 -lwinmm -lgdiplus linker=-lrturtle -lrdrawing -lraylib -lopengl32 -lgdi32 -lwinmm

View File

@ -1,19 +1,20 @@
#include <turtle.h> #include <rturtle.h>
#include <stdio.h>
int main() { int main() {
int n; int n;
initWorld(800,600); initWorld(800,600);
setSpeed(1000);
//setImmediate(1); // Press F2 toggle display of grids
//init_console(); // Press F3 toggle display of the turtle
//show_console();
//printf("test output\n"); setSpeed(500);
// setRewind(true);
// setImmediate(true);
n=50; n=50;
for (int i=0;i<n;i++) { for (int i=0;i<n;i++) {
for (int j=0;j<4;j++) { for (int j=0;j<4;j++) {
fd(90); fd(200);
lt(90); lt(90);
} }
lt(360.0/n); lt(360.0/n);

View File

@ -24,5 +24,5 @@ Target=explosion.png
UnitCount=3 UnitCount=3
Type=1 Type=1
IsCpp=0 IsCpp=0
linker=-lraylib -lopengl32 -lgdi32 -lwinmm_@@__@@_ linker=-lraylib -lopengl32 -lgdi32 -lwinmm

View File

@ -16,5 +16,5 @@ C=raylib_3d_c.txt
UnitCount=1 UnitCount=1
Type=1 Type=1
IsCpp=0 IsCpp=0
linker=-lraylib -lopengl32 -lgdi32 -lwinmm_@@__@@_ linker=-lraylib -lopengl32 -lgdi32 -lwinmm