/// <summary> /// pass in true if you want to enable antialiasing. it will then default to on /// </summary> protected d3dChrController(GraphicsHW g, bool antialias, int w, int h, int w2x, int h2x) { this.w = w; this.h = h; this.antialias = antialias; image = g.newImage(w,h); if(antialias && !Config.disableModelAntialiasing) { b = new Blitter(image); this.w2x = w2x; this.h2x = h2x; image2x = g.newImage(w2x,h2x); } this.g = g; }
public Sparrow(GraphicsHW g) : base(g,true,64,64,96,96) { hotspot = new Rectangle(16, 32, 32, 16); model = MilkshapeModel.load(g, "sparrow.ms3d"); }
public SquareBob(GraphicsHW g) : base(g,false,16,32,32,64) { hotspot = new Rectangle(0, 16, 16, 16); model = new GraphicsHW.FVF[4]; int i = 0; model[i++] = new GraphicsHW.FVF(-1.0f, -1.0f, 0.0f); //back model[i++] = new GraphicsHW.FVF(1.0f, -1.0f, 0.0f); model[i++] = new GraphicsHW.FVF(1.0f, 1.0f, 0.0f); model[i++] = new GraphicsHW.FVF(-1.0f, 1.0f, 0.0f); model[0].color = model[1].color = model[2].color = model[3].color = Color.FromArgb(255, 0, 0, 0).ToArgb(); }
public Rocky(GraphicsHW g) : base(g,true,128,128,192,192) { hotspot = new Rectangle(48, 80, 32, 32); model = new XCharacter(g, @"/ApplicationFolder/rocky.x"); }