void * rt_texture(apitexture * apitex) { texture * tex; tex=(texture *)rt_getmem(sizeof(texture)); apitextotex(apitex, tex); return(tex); }
void * rt_texture(SceneHandle sc, apitexture * apitex) { scenedef * scene = (scenedef *) sc; texture * tex; list * lst; tex = new_standard_texture(); apitextotex(apitex, tex); /* add texture to the scene texture list */ lst = (list *) malloc(sizeof(list)); lst->item = (void *) tex; lst->next = scene->texlist; scene->texlist = lst; return(tex); }