Esempio n. 1
0
 public TagRenderer(int tag)
 {
     Tag = tag;
     BlendState = BlendState.AlphaBlend;
     SamplerState = SamplerState.LinearClamp;
     Camera = new Camera();
 }
 public TagExcludeRenderer(int excludeTag)
 {
     ExcludeTag = excludeTag;
     BlendState = BlendState.AlphaBlend;
     SamplerState = SamplerState.LinearClamp;
     Camera = new Camera();
 }
Esempio n. 3
0
 private void modHitboxRender(On.Monocle.Hitbox.orig_Render orig, Monocle.Hitbox self, Monocle.Camera camera, Color color)
 {
     if (Settings.Enabled && Settings.DebugHitboxes)
     {
         DisplayBounds(self, (int)(self.AbsoluteX - 1), (int)(self.AbsoluteY - 1), (int)(self.Width + 3), (int)(self.Height + 3), color);
     }
     else
     {
         orig(self, camera, color);
     }
 }
Esempio n. 4
0
 private void modCircleRender(On.Monocle.Circle.orig_Render orig, Monocle.Circle self, Monocle.Camera camera, Color color)
 {
     if (Settings.Enabled && Settings.DebugHitboxes)
     {
         DisplayBounds(self, (int)(self.AbsoluteX - self.Radius - 1), (int)(self.AbsoluteY - self.Radius - 1), (int)(2 * self.Radius + 3), (int)(2 * self.Radius + 3), color);
     }
     else
     {
         orig(self, camera, color);
     }
 }
 public EverythingRenderer()
 {
     BlendState = BlendState.AlphaBlend;
     SamplerState = SamplerState.LinearClamp;
     Camera = new Camera();
 }
Esempio n. 6
0
 public void CopyFrom(Camera other)
 {
     position = other.position;
     origin = other.origin;
     angle = other.angle;
     zoom = other.zoom;
     changed = true;
 }