示例#1
0
文件: GFX.cs 项目: nhippenmeyer/CS248
 public GFX(GraphicsDevice device)
 {
     Inst = this;
     GFXShaderConstants.AuthorShaderConstantFile();
     RegisterDevice(device);
     guiManager = new GUIElementManager();
 }
示例#2
0
 public GFX(GraphicsDevice device, ContentManager contentManager)
 {
     Inst = this;
     GFXShaderConstants.AuthorShaderConstantFile();
     RegisterDevice(device);
     this.contentManager = contentManager;
     guiManager = new GUIElementManager(contentManager.Load<SpriteFont>("SimpleFont"));
 }