Inheritance: NonManagedRessource
Beispiel #1
0
        public void Draw(Texture2D texture, Vector2f position, Color color)
        {
            renderEffect.Begin();
            renderEffect.BeginPass(0);

            texture.Bind(0);
            renderEffect.SetColor("c", color);
            DrawPrimitive(new Rectangle(position, texture.Width, texture.Height));

            renderEffect.EndPass();
            renderEffect.End();
        }
Beispiel #2
0
        public void Draw(Texture2D texture, Rectangle size, Color color)
        {
            renderEffect.Begin();
            renderEffect.BeginPass(0);

            texture.Bind(0);
            renderEffect.SetColor("c", color);
            DrawPrimitive(size);

            renderEffect.EndPass();
            renderEffect.End();
        }
Beispiel #3
0
 public void SetTexture(string name, Texture2D tex)
 {
     handle.SetTexture(name, tex.handle);
 }