Index: render.c
===================================================================
--- render.c	(revision 30)
+++ render.c	(revision 31)
@@ -93,33 +93,47 @@
 
   glColor4f(1.f,1.f,1.f,1.f);
 
-  if(raydium_texture_blended[tex]==1)
+  if(raydium_texture_blended[tex]==RAYDIUM_TEXTURE_BLEND_BLENDED)
   {
   glEnable(GL_BLEND);
   glDepthMask(GL_FALSE);
   glDisable(GL_ALPHA_TEST);
 //  glDisable(GL_FOG);
+  glColorMask(GL_TRUE,GL_TRUE,GL_TRUE,GL_TRUE);
   }
 
-  if(raydium_texture_blended[tex]==2)
+  if(raydium_texture_blended[tex]==RAYDIUM_TEXTURE_BLEND_CUTOUT)
   {
   glEnable(GL_BLEND);
   glDepthMask(GL_TRUE);
   glAlphaFunc(GL_GREATER,0);
   glEnable (GL_ALPHA_TEST);
 //  glDisable(GL_FOG);
+  glColorMask(GL_TRUE,GL_TRUE,GL_TRUE,GL_TRUE);
   }
 
-  if(raydium_texture_blended[tex]==0)
+  if(raydium_texture_blended[tex]==RAYDIUM_TEXTURE_BLEND_NONE)
   {
   glDisable(GL_BLEND);
   glDepthMask(GL_TRUE);
   glDisable(GL_ALPHA_TEST);
 //  glEnable(GL_FOG);
+  glColorMask(GL_TRUE,GL_TRUE,GL_TRUE,GL_TRUE);
   }
 
-  if(raydium_texture_rgb[tex][0]>=0)
+
+  if(raydium_texture_blended[tex]==RAYDIUM_TEXTURE_PHANTOM)
   {
+  glDisable(GL_BLEND);
+  glDepthMask(GL_TRUE);
+  glDisable(GL_ALPHA_TEST);
+  glDisable(GL_TEXTURE_2D);
+  glColorMask(GL_FALSE,GL_FALSE,GL_FALSE,GL_FALSE);
+  }
+
+
+  if(raydium_texture_rgb[tex][0]>=0 && raydium_texture_blended[tex]!=RAYDIUM_TEXTURE_PHANTOM)
+  {
   if(raydium_render_rgb_force_tag)
     rgb=raydium_render_rgb_force;
   else
 live Api.
-##video-size## Define default video Size 640x480, 320x240 ...
+##--video-device## Define Video device (WebCam ...) used by live Api.
+##--video-size## Define default video Size 640x480, 320x240 ...
 
 Network:
-##name## Set player name for network application.
-##ode-rate## Set physics sample rate for networked application.
+##--name## Set player name for network application.
+##--ode-rate## Set physics sample rate for networked application.
 
 Console:
-##consoletexture## Console texture background.
-##consolefont## Console font.
+##--consoletexture## Console texture background.
+##--consolefont## Console font.
 
 Path and files:
-##home## Setting raydium global home directory.
-##path## Define list of media path.
-##write-path## Define destination directory for media file.
-##files## List all opened files.
-##logfile## Define logfile name.
-##history## Console History file name.
+##--home## Setting raydium global home directory.
+##--path## Define list of media path.
+##--write-path## Define destination directory for media file.
+##--files## List all opened files.
+##--logfile## Define logfile name.
+##--history## Console History file name.
 
 Initialisation Scripts:
-##autoexec## Php script executed just after engine initialization.
-##autoexec2## php script executed when raydium_callback is called.
+##--autoexec## Php script executed just after engine initialization.
+##--autoexec2## php script executed just before first frame rendering.
 
 Repository:
-##repository-disable## Disable getting media files form repository.
-##repository-refresh## Refresh files form repository even if local file exist.
-##repository-force## Force Repository use.
-##rayphp## Path of rayphp php scripts.
+##--repository-disable## Disable getting media files form repository.
+##--repository-refresh## Refresh files form repository even if local file exist (but older)
+##--repository-force## Force Repository use.
+##--rayphp## Path of rayphp php scripts.
 
 Misc:
-##regs## Dump registers.
+##--regs## Dump registers.
 **/
 
 __rayapi int raydium_init_cli_option(char *option, char *value);