[Bf-python] Texture API- first "sketch"
Willian Padovani Germano
wgermano at ig.com.br
Thu Nov 13 01:00:41 CET 2003
Hi,
> This makes sense to me :)
> Should an exception be thrown if the user does something invalid [sets
> an ENVMAP stype when the type is IMAGE?
A simple msg at the end should be enough:
case this_type:
if ...
else if ...
else error = 1
case another_type:
if ...
else if ...
else error = 1
// in the end:
if (error == 1) return error msg about wrong attribute
You could even use a lot of justifiable goto's there! Nah ; )...
--
Willian, wgermano at ig.com.br
More information about the Bf-python
mailing list