public void RenderBackScene_StretchToFit() { CGRect bounds = UIScreen.bounds; if (backScreenBillboard != null) { bounds.Size.Height = Globals.g_world.screenHeight; bounds.Size.Width = Globals.g_world.screenWidth; // float scale = Globals.g_world.screenHeight / backScreenBillboard.width; // CGPoint pos; // pos.x = Globals.g_world.coordinatesWidth / 2.0f; // pos.y = 240.0f; // backScreenBillboard.RenderAtPosition(pos,scale,0.0f,1.0f,0);// .DrawInRect(bounds); backScreenBillboard.RenderInRect(bounds, 1.0f); // .DrawInRect(bounds); } // backScreenBillboard.RenderInRect(bounds,1.0f);// .DrawInRect(bounds); //glEnable (GL_BLEND); }
public void DrawInRectAlphaP1(Billboard useB, CGRect rect, float inAlpha) { useB.RenderInRect(rect, inAlpha); }