diff --git a/demos/second/part18_3d/auto/box_convert.c b/demos/second/part18_3d/auto/box_convert.c index fb01cf0b..99473808 100644 --- a/demos/second/part18_3d/auto/box_convert.c +++ b/demos/second/part18_3d/auto/box_convert.c @@ -5,6 +5,8 @@ /* For input assumes a 40x48 (or 80x48, double wide) PNG file */ /* with the Apple II palette */ +/* Output is ca65 6502 assembler for including in project */ + #include #include @@ -431,6 +433,10 @@ static int compare_color(const void *p1, const void *p2) { +/* generate data for a frame */ +/* returns how many bytes it takes up */ +/* we call this many times when iterating to see best color combo */ +/* only set print_results on final run to output the data */ int generate_frame(int print_results) { @@ -449,7 +455,10 @@ int generate_frame(int print_results) { max_primitive=create_using_boxes(); - /* Optimize boxes to PLOT/VLIN/HLIN*/ + /* Optimize boxes to PLOT/VLIN/HLIN */ + /* if 1x1, single pixel plot */ + /* if xwidth = 1, then vertical line */ + /* if ywidth = 1, then horizontal line */ for(i=0;i