public override void Draw(RenderSprite RT) { Rect.Position = Position; Rect.Rotation = Angle.ToDeg(); RT.Draw(Rect); }
public override void Draw(RenderSprite RT) { RT.Clear(Color.Cyan); WorldRT.Clear(Color.Transparent); WorldRT.Draw(VertexShapes.Quad, PrimType.Quads, Shaders.UseStarfield(Engine.ActiveCamera.Position / 2, Engine.ActiveCamera.Rotation, RT.Size.ToVec2f()) .Scale(WorldRT.Size.ToVec2f())); WorldRT.Draw(Shaders.DrawPhosphorGlow(WorldRT.Texture, 0.02f)); WorldRT.SetView(Engine.ActiveCamera); for (int i = 0; i < Engine.Entities.Count; i++) Engine.Entities[i].Draw(WorldRT); if (HasA && HasB) { WorldRT.Draw(VA); GL.PointSize(5); WorldRT.Draw(VB); GL.PointSize(1); } WorldRT.SetView(WorldRT.DefaultView); WorldRT.Display(); RT.Draw(WorldRT); }
public override void Draw(RenderSprite RT) { RT.Clear(Color.Black); CRT.Clear(Color.Transparent); CRT.Draw(GUIText, Shaders.UseCRT(GUIText.Sprite.Texture, 0.1f, 0.8f, 0.9f, 0.015f)); CRT.Display(); RT.Draw(Shaders.DrawPhosphorGlow(CRT.Texture)); }