Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Graphics
  4. How would i write a program using software gaphic???

How would i write a program using software gaphic???

Scheduled Pinned Locked Moved Graphics
csharpgraphicsgame-devtutorialquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MMaines2005
    wrote on last edited by
    #1

    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

    B 1 Reply Last reply
    0
    • M MMaines2005

      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

      B Offline
      B Offline
      Baltoro
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups