Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Dependencies: mbed
Diff: Rasturizer/Rasturizer.cpp
- Revision:
- 13:f4de03202477
- Parent:
- 12:b69657862610
- Child:
- 14:885915260e25
--- a/Rasturizer/Rasturizer.cpp Sun Mar 24 16:59:48 2019 +0000
+++ b/Rasturizer/Rasturizer.cpp Sun Mar 24 17:53:25 2019 +0000
@@ -40,7 +40,7 @@
}
- if (points[0][2] > 20 || points[1][2] > 20 || points[2][2] > 20|| points[3][2] > 20){
+ if ((points[0][2] > 20 || points[1][2] > 20 || points[2][2] > 20|| points[3][2] > 20) && face.getVisible()){
int diffX1 = points[0][0]*(40/points[0][2])-(points[1][0]*(40/points[1][2]));
int diffY1 = points[0][1]*(40/points[0][2])-(points[1][1]*(40/points[1][2]));
@@ -58,6 +58,8 @@
rint((points[3][0])*(40/points[3][2])+s)+42,
rint((points[3][1])*(40/points[3][2])+step*s)+21, 0);
}
+ }
+ if((points[0][2] > 10 || points[1][2] > 10 || points[2][2] > 10|| points[3][2] > 10)){
for (int i = 0; i < 3; i++){