Merge branch 'master' of github.com:royqh1979/RedPanda-CPP
This commit is contained in:
commit
a3d6f89b82
|
@ -16,5 +16,5 @@ C=epitrochoid_c.txt
|
||||||
UnitCount=1
|
UnitCount=1
|
||||||
Type=1
|
Type=1
|
||||||
IsCpp=0
|
IsCpp=0
|
||||||
linker=-lrdrawing -lraylib -lopengl32 -lgdi32 -lwinmm
|
linker=-lrdrawing -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
|
||||||
ExecEncoding=UTF-8
|
ExecEncoding=UTF-8
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#define RAYGUI_IMPLEMENTATION
|
#define RAYGUI_IMPLEMENTATION
|
||||||
#include <raygui/raygui.h>
|
#include <raygui.h>
|
||||||
|
|
||||||
void updateRadius(int baseL, int outerL, int pointL, int *pBaseR, int *pOuterR, int *pPointR) {
|
void updateRadius(int baseL, int outerL, int pointL, int *pBaseR, int *pOuterR, int *pPointR) {
|
||||||
int totalL=baseL+outerL;
|
int totalL=baseL+outerL;
|
||||||
|
@ -61,8 +61,8 @@ int main() {
|
||||||
trackColor= GuiColorPicker((Rectangle){ 50, 250, 196, 192 }, NULL, trackColor);
|
trackColor= GuiColorPicker((Rectangle){ 50, 250, 196, 192 }, NULL, trackColor);
|
||||||
int doClear = GuiButton((Rectangle){ 120, 700, 80, 30 },"Clear");
|
int doClear = GuiButton((Rectangle){ 120, 700, 80, 30 },"Clear");
|
||||||
if (newOuterL!=outerL || newBaseL!=baseL || newPointL!=pointL) {
|
if (newOuterL!=outerL || newBaseL!=baseL || newPointL!=pointL) {
|
||||||
if (newInnerL!=innerL)
|
if (newOuterL!=outerL)
|
||||||
pointL=newInnerL;
|
pointL=newOuterL;
|
||||||
else
|
else
|
||||||
pointL=newPointL;
|
pointL=newPointL;
|
||||||
outerL=newOuterL;
|
outerL=newOuterL;
|
||||||
|
@ -122,4 +122,4 @@ int main() {
|
||||||
UnloadImage(circlesImage);
|
UnloadImage(circlesImage);
|
||||||
UnloadImage(trackImage);
|
UnloadImage(trackImage);
|
||||||
CloseWindow();
|
CloseWindow();
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,5 +16,5 @@ C=hypotrochoid_c.txt
|
||||||
UnitCount=1
|
UnitCount=1
|
||||||
Type=1
|
Type=1
|
||||||
IsCpp=0
|
IsCpp=0
|
||||||
linker=-lrdrawing -lraylib -lopengl32 -lgdi32 -lwinmm
|
linker=-lrdrawing -lraylib -lGL -lm -lpthread -ldl -lrt -lX11
|
||||||
ExecEncoding=UTF-8
|
ExecEncoding=UTF-8
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#define RAYGUI_IMPLEMENTATION
|
#define RAYGUI_IMPLEMENTATION
|
||||||
#include <raygui/raygui.h>
|
#include <raygui.h>
|
||||||
|
|
||||||
void updateRadius(int baseL, int innerL,int pointL, int *pBaseR, int *pInnerR, int *pPointR) {
|
void updateRadius(int baseL, int innerL,int pointL, int *pBaseR, int *pInnerR, int *pPointR) {
|
||||||
int totalL=baseL;
|
int totalL=baseL;
|
||||||
|
@ -137,4 +137,4 @@ int main() {
|
||||||
UnloadImage(circlesImage);
|
UnloadImage(circlesImage);
|
||||||
UnloadImage(trackImage);
|
UnloadImage(trackImage);
|
||||||
CloseWindow();
|
CloseWindow();
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,6 @@ C=raygui_c.txt
|
||||||
UnitCount=1
|
UnitCount=1
|
||||||
Type=1
|
Type=1
|
||||||
IsCpp=0
|
IsCpp=0
|
||||||
linker=-lraylib -lopengl32 -lgdi32 -lwinmm
|
linker=-lraylib -lGL -lm -lpthread -ldl -lrt -lX11
|
||||||
ExecEncoding=UTF-8
|
ExecEncoding=UTF-8
|
||||||
|
|
||||||
|
|
|
@ -34,12 +34,12 @@
|
||||||
*
|
*
|
||||||
**********************************************************************************************/
|
**********************************************************************************************/
|
||||||
|
|
||||||
#include "raylib.h"
|
#include <raylib.h>
|
||||||
|
|
||||||
#define RAYGUI_IMPLEMENTATION
|
#define RAYGUI_IMPLEMENTATION
|
||||||
//#define RAYGUI_CUSTOM_ICONS // It requires providing gui_icons.h in the same directory
|
//#define RAYGUI_CUSTOM_ICONS // It requires providing gui_icons.h in the same directory
|
||||||
//#include "gui_icons.h" // External icons data provided, it can be generated with rGuiIcons tool
|
//#include "gui_icons.h" // External icons data provided, it can be generated with rGuiIcons tool
|
||||||
#include "raygui/raygui.h"
|
#include <raygui.h>
|
||||||
|
|
||||||
#include <string.h> // Required for: strcpy()
|
#include <string.h> // Required for: strcpy()
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#define RAYGUI_IMPLEMENTATION
|
#define RAYGUI_IMPLEMENTATION
|
||||||
#include <raygui/raygui.h>
|
#include <raygui.h>
|
||||||
|
|
||||||
void updateRadius(int baseL, int outerL, int pointL, int *pBaseR, int *pOuterR, int *pPointR) {
|
void updateRadius(int baseL, int outerL, int pointL, int *pBaseR, int *pOuterR, int *pPointR) {
|
||||||
int totalL=baseL+outerL;
|
int totalL=baseL+outerL;
|
||||||
|
@ -122,4 +122,4 @@ int main() {
|
||||||
UnloadImage(circlesImage);
|
UnloadImage(circlesImage);
|
||||||
UnloadImage(trackImage);
|
UnloadImage(trackImage);
|
||||||
CloseWindow();
|
CloseWindow();
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
#include <math.h>
|
#include <math.h>
|
||||||
|
|
||||||
#define RAYGUI_IMPLEMENTATION
|
#define RAYGUI_IMPLEMENTATION
|
||||||
#include <raygui/raygui.h>
|
#include <raygui.h>
|
||||||
|
|
||||||
void updateRadius(int baseL, int innerL,int pointL, int *pBaseR, int *pInnerR, int *pPointR) {
|
void updateRadius(int baseL, int innerL,int pointL, int *pBaseR, int *pInnerR, int *pPointR) {
|
||||||
int totalL=baseL;
|
int totalL=baseL;
|
||||||
|
@ -137,4 +137,4 @@ int main() {
|
||||||
UnloadImage(circlesImage);
|
UnloadImage(circlesImage);
|
||||||
UnloadImage(trackImage);
|
UnloadImage(trackImage);
|
||||||
CloseWindow();
|
CloseWindow();
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,12 +34,12 @@
|
||||||
*
|
*
|
||||||
**********************************************************************************************/
|
**********************************************************************************************/
|
||||||
|
|
||||||
#include "raylib.h"
|
#include <raylib.h>
|
||||||
|
|
||||||
#define RAYGUI_IMPLEMENTATION
|
#define RAYGUI_IMPLEMENTATION
|
||||||
//#define RAYGUI_CUSTOM_ICONS // It requires providing gui_icons.h in the same directory
|
//#define RAYGUI_CUSTOM_ICONS // It requires providing gui_icons.h in the same directory
|
||||||
//#include "gui_icons.h" // External icons data provided, it can be generated with rGuiIcons tool
|
//#include "gui_icons.h" // External icons data provided, it can be generated with rGuiIcons tool
|
||||||
#include "raygui/raygui.h"
|
#include <raygui.h>
|
||||||
|
|
||||||
#include <string.h> // Required for: strcpy()
|
#include <string.h> // Required for: strcpy()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue