- 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.)
- 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

View File

@ -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

View File

@ -1,19 +1,20 @@
#include <turtle.h>
#include <stdio.h>
#include <rturtle.h>
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<n;i++) {
for (int j=0;j<4;j++) {
fd(90);
fd(200);
lt(90);
}
lt(360.0/n);

View File

@ -24,5 +24,5 @@ Target=explosion.png
UnitCount=3
Type=1
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
Type=1
IsCpp=0
linker=-lraylib -lopengl32 -lgdi32 -lwinmm_@@__@@_
linker=-lraylib -lopengl32 -lgdi32 -lwinmm