add some comments
This commit is contained in:
parent
a6e9e92f8c
commit
86515d49d5
@ -14,6 +14,7 @@ typedef struct {
|
|||||||
unsigned long reserved;
|
unsigned long reserved;
|
||||||
} XYZ;
|
} XYZ;
|
||||||
|
|
||||||
|
/* colors and transparency */
|
||||||
typedef struct {
|
typedef struct {
|
||||||
float r, g, b, a;
|
float r, g, b, a;
|
||||||
unsigned long reserved;
|
unsigned long reserved;
|
||||||
@ -22,9 +23,9 @@ typedef struct {
|
|||||||
typedef struct {
|
typedef struct {
|
||||||
XYZ p; /* position */
|
XYZ p; /* position */
|
||||||
double d; /* diameter */
|
double d; /* diameter */
|
||||||
int gray;
|
int gray; /* used as an index */
|
||||||
RGBA col;
|
RGBA col;
|
||||||
long ttl;
|
long ttl; /* bubulles can be aged */
|
||||||
double kvalue; /* wtf ? */
|
double kvalue; /* wtf ? */
|
||||||
} Bubulle;
|
} Bubulle;
|
||||||
|
|
||||||
|
5
tbb.c
5
tbb.c
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* this is rudimentary test for the bubulles manages
|
* this is rudimentary test for the bubulles manager
|
||||||
*
|
*
|
||||||
* contact: <tth> on IRC freenode#tetalab
|
* contact: <tth> on IRC freenode#tetalab
|
||||||
*/
|
*/
|
||||||
@ -119,15 +119,14 @@ int foo;
|
|||||||
printf("*** Bubulles Testing -- %s %s\n\n", __DATE__, __TIME__);
|
printf("*** Bubulles Testing -- %s %s\n\n", __DATE__, __TIME__);
|
||||||
|
|
||||||
bubulles_version(1);
|
bubulles_version(1);
|
||||||
|
print_sizeof();
|
||||||
|
|
||||||
test_alloc_free(5);
|
test_alloc_free(5);
|
||||||
test_push_pop(2000);
|
test_push_pop(2000);
|
||||||
test_cleanfill_my_bublist(999);
|
test_cleanfill_my_bublist(999);
|
||||||
|
|
||||||
/*
|
|
||||||
foo = test_peek_poke(5000);
|
foo = test_peek_poke(5000);
|
||||||
fprintf(stderr, "test peek/poke -> %d\n", foo);
|
fprintf(stderr, "test peek/poke -> %d\n", foo);
|
||||||
*/
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user