![]() |
|
|
#1
|
|||
|
|||
|
If you try to export tex_list[0] as color obviously if tex_list is not filled some garbage is shown instead the proper values.
My intention is that if tex_list[0] hasn't be filled it returns pure grey. Thanks in advance. |
|
#2
|
|||
|
|||
|
Perhaps you could use the mi_query for miQ_NUM_TEXTURES which returns the number of textures in state->tex_list
__________________
Bart LAmrUG Forum Originator Director of Training, mental images |
|
#3
|
|||
|
|||
|
It works
Code:
miInteger num_textures;
miBoolean texquery = mi_query(miQ_NUM_TEXTURES, state, miNULLTAG, &num_textures);
if (num_textures!=0)
{
//Make cool things
}
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
|
All times are GMT +1. The time now is 06:20. |