How would i write a program using software gaphic???
-
I found a way to write my game in c#, but it using 3d graphics. XP and voodoo3 don't agree with each other. So i need to know how to change this so i can use software or change it to full screen when it opens: namespace WindowsGame1 { class Engine : Microsoft.Xna.Framework.Game { Microsoft.Xna.Framework.GraphicsDeviceManager Graphics; Microsoft.Xna.Framework.Content.ContentManager Content; Microsoft.Xna.Framework.Graphics.Texture2D mytext; Microsoft.Xna.Framework.Graphics.SpriteBatch SpriteBatch; Microsoft.Xna.Framework.Vector2 Spritepos; public Engine() { this.Graphics = new Microsoft.Xna.Framework.GraphicsDeviceManager(this); this.Content = new Microsoft.Xna.Framework.Content.ContentManager(this.Services); } protected override void Initialize() { this.Spritepos = new Microsoft.Xna.Framework.Vector2(100f, 50f); base.Initialize(); } protected override void LoadGraphicsContent(bool loadAllContent) { if (loadAllContent) { this.mytext = this.Content.Load(@"new\text\Mike1"); this.SpriteBatch = new Microsoft.Xna.Framework.Graphics.SpriteBatch(this.Graphics.GraphicsDevice); } } protected override void UnloadGraphicsContent(bool unloadAllContent) { if (unloadAllContent) { this.Content.Unload(); } } protected override void Update(Microsoft.Xna.Framework.GameTime gameTime) { base.Update(gameTime); } protected override void Draw(Microsoft.Xna.Framework.GameTime gameTime) { this.Graphics.GraphicsDevice.Clear(Microsoft.Xna.Framework.Graphics.Color.Black); this.SpriteBatch.Begin(Microsoft.Xna.Framework.Graphics.SpriteBlendMode.AlphaBlend); this.SpriteBatch.Draw(this.mytext, this.Spritepos, Microsoft.Xna.Framework.Graphics.Color.White); this.SpriteBatch.End(); base.Draw(gameTime); } } }
Michael (Up and coming Game programmer) EST
-
I found a way to write my game in c#, but it using 3d graphics. XP and voodoo3 don't agree with each other. So i need to know how to change this so i can use software or change it to full screen when it opens: namespace WindowsGame1 { class Engine : Microsoft.Xna.Framework.Game { Microsoft.Xna.Framework.GraphicsDeviceManager Graphics; Microsoft.Xna.Framework.Content.ContentManager Content; Microsoft.Xna.Framework.Graphics.Texture2D mytext; Microsoft.Xna.Framework.Graphics.SpriteBatch SpriteBatch; Microsoft.Xna.Framework.Vector2 Spritepos; public Engine() { this.Graphics = new Microsoft.Xna.Framework.GraphicsDeviceManager(this); this.Content = new Microsoft.Xna.Framework.Content.ContentManager(this.Services); } protected override void Initialize() { this.Spritepos = new Microsoft.Xna.Framework.Vector2(100f, 50f); base.Initialize(); } protected override void LoadGraphicsContent(bool loadAllContent) { if (loadAllContent) { this.mytext = this.Content.Load(@"new\text\Mike1"); this.SpriteBatch = new Microsoft.Xna.Framework.Graphics.SpriteBatch(this.Graphics.GraphicsDevice); } } protected override void UnloadGraphicsContent(bool unloadAllContent) { if (unloadAllContent) { this.Content.Unload(); } } protected override void Update(Microsoft.Xna.Framework.GameTime gameTime) { base.Update(gameTime); } protected override void Draw(Microsoft.Xna.Framework.GameTime gameTime) { this.Graphics.GraphicsDevice.Clear(Microsoft.Xna.Framework.Graphics.Color.Black); this.SpriteBatch.Begin(Microsoft.Xna.Framework.Graphics.SpriteBlendMode.AlphaBlend); this.SpriteBatch.Draw(this.mytext, this.Spritepos, Microsoft.Xna.Framework.Graphics.Color.White); this.SpriteBatch.End(); base.Draw(gameTime); } } }
Michael (Up and coming Game programmer) EST
Since I am unfamiliar with the Voodoo3, I googled it and came up with this: Wikipedia Voodoo3[^] None of this information is presented in your inquiry. Seeing as how you are writing your game in managed DirectX, and you don't show any of the code that demonstrates how you enumerated through the supported video card attributes, I don't really have any idea what technical difficulties you face. This from MSDN: Because some graphics cards do not support all of the features exposed through Direct3D, a mechanism is provided in Direct3D to probe the graphics hardware. If a particular graphics capability is not supported by the hardware, the check will fail, allowing the programmer to look for a different hardware-accelerated algorithm. There is a utility that comes with the DirectX SDK (Get Device Capabilities) that iterates through all the video attributes and displays the results graphically, as to whether your card supports standard DirectX operations. -- modified at 15:59 Saturday 20th October, 2007