diff --git a/bubulles.h b/bubulles.h index 960bee1..89e99b7 100644 --- a/bubulles.h +++ b/bubulles.h @@ -14,6 +14,7 @@ typedef struct { unsigned long reserved; } XYZ; +/* colors and transparency */ typedef struct { float r, g, b, a; unsigned long reserved; @@ -22,9 +23,9 @@ typedef struct { typedef struct { XYZ p; /* position */ double d; /* diameter */ - int gray; + int gray; /* used as an index */ RGBA col; - long ttl; + long ttl; /* bubulles can be aged */ double kvalue; /* wtf ? */ } Bubulle; diff --git a/tbb.c b/tbb.c index 97f8bfa..388ebcd 100644 --- a/tbb.c +++ b/tbb.c @@ -1,5 +1,5 @@ /* - * this is rudimentary test for the bubulles manages + * this is rudimentary test for the bubulles manager * * contact: on IRC freenode#tetalab */ @@ -119,15 +119,14 @@ int foo; printf("*** Bubulles Testing -- %s %s\n\n", __DATE__, __TIME__); bubulles_version(1); +print_sizeof(); test_alloc_free(5); test_push_pop(2000); test_cleanfill_my_bublist(999); -/* foo = test_peek_poke(5000); fprintf(stderr, "test peek/poke -> %d\n", foo); -*/ return 0; }