Exemple #1
0
 internal void GLBind(LTexture tex2d)
 {
     if (tex2d != null)
     {
         EnableTextures();
         if (tex2d.isExt && !tex2d.isStatic)
         {
             XNA_BlendState = BlendState.NonPremultiplied;
         }
         else if (tex2d.GetFileName() == null)
         {
             XNA_BlendState = BlendState.AlphaBlend;
         }
     }
     else
     {
         DisableTextures();
     }
     if (tex2d.imageData != null)
     {
         this.effect.Texture = tex2d.imageData.buffer;
     }
 }
Exemple #2
0
 public AVGScreen(string initscript, LTexture img)
 {
     if (initscript == null)
     {
         return;
     }
     this.scriptName = initscript;
     if (img != null)
     {
         this.dialogFileName = img.GetFileName();
         this.dialog = img;
     }
 }