changed bmesh_api_set/getindex to be just macros, and shortened to bmesh_api_get/seti

This commit is contained in:
2009-01-22 12:34:52 +00:00
parent cb033a8c4e
commit c54d7f3945
2 changed files with 4 additions and 25 deletions

View File

@@ -49,22 +49,6 @@ void bmesh_error(void)
printf("BM modelling error!");
}
#ifndef bmesh_api_setindex
/*NOTE: ensure different parts of the API do not conflict
on using this!*/
void bmesh_api_setindex(BMesh *bm, BMHeader *head, int i)
{
head->flags[bm->stackdepth-1].pflag = i;
}
#endif
#ifndef bmesh_api_getindex
int bmesh_api_getindex(BMesh *bm, BMHeader *head)
{
return head->flags[bm->stackdepth-1].pflag;
}
#endif
/*
* BMESH SET SYSFLAG
*

View File

@@ -59,15 +59,10 @@ void bmesh_clear_sysflag(struct BMHeader *element, int flag);
int bmesh_test_sysflag(struct BMHeader *element, int flag);
/*NOTE: ensure different parts of the API do not conflict
on using this!*/
/*used to access the index member of the current flag layer.
actual functions are only defined if the below macro versions
are not.*/
void bmesh_api_setindex(BMesh *bm, BMHeader *head, int i);
int bmesh_api_getindex(BMesh *bm, BMHeader *head);
#define bmesh_api_setindex(bm, head, i) ((head)->flags[bm->stackdepth-1].pflag = i)
#define bmesh_api_getindex(bm, head) ((head)->flags[bm->stackdepth-1].pflag)
on using this! sets and gets the API index member
of the current flag layer.*/
#define bmesh_api_seti(bm, head, i) ((head)->flags[bm->stackdepth-1].pflag = i)
#define bmesh_api_geti(bm, head) ((head)->flags[bm->stackdepth-1].pflag)
/*Polygon Utilities ? FIXME... where do these each go?*/
/*newedgeflag sets a flag layer flag, obviously not the header flag.*/