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
M

MMaines2005

@MMaines2005
About
Posts
11
Topics
9
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • Graphics in C# how do i write a software base gaphic out of this:
    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

    C# csharp graphics game-dev tutorial question

  • How would i write a program using software gaphic???
    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

    Graphics csharp graphics game-dev tutorial question

  • how would i
    M MMaines2005

    Really i need the starting of the script to add the bitmap and to know where to add it to the exe file format. But the information given already give me and idea. < might be a bad idea but worth a try>

    Hamid. wrote:

    I dont know is this your question you can enter code of bitamp on the source code of your project

    Michael (Up and coming Game programmer) EST

    C / C++ / MFC graphics

  • Is there any....
    M MMaines2005

    Is there any downloads for Mircosoft.net for the contentpipeline content. like bitmap and picture content mainly.

    Michael (Up and coming Game programmer) EST

    .NET (Core and Framework) csharp graphics game-dev

  • I need help or a answer plz
    M MMaines2005

    I'm trying to write a program with c#. (a game to be exactly) But it wants to us e a 3d card to write it. how would i write one that you can use software graphics??? can anyone help me?

    Michael (Up and coming Game programmer) EST

    Graphics csharp graphics game-dev help question

  • Question about Content Pipeline Files....
    M MMaines2005

    I'm using XNA game studio but when i try to compile a simple window with a image. It tells me there is a error in the Microsoft.XNA.Framework.Content.Pipeline. And the first time i tried it said the pipeline exetenion wasn't installed. Can anyone give me a answer to this question??? Plz!!!!

    Michael (Up and coming Game programmer) EST

    C# question game-dev help

  • How do i....
    M MMaines2005

    how would i get me Visual C# to load a image i have loaded to a resource files in this script: /// /// Load your graphics content. If loadAllContent is true, you should /// load content from both ResourceManagementMode pools. Otherwise, just /// load ResourceManagementMode.Manual content. /// /// Which type of content to load. protected override void LoadGraphicsContent(bool loadAllContent) { if (loadAllContent) { load(Resource1.logo); } // TODO: Load any ResourceManagementMode.Manual content } private void load(object logo) { throw new Exception("Help i don't know what i'm doing!!!"); } I have tried a hundred differnt ways and i keep gettign errors. Plz Help if you can :-D

    Michael (Up and coming Game programmer) EST

    C# csharp graphics game-dev tools help

  • how would i
    M MMaines2005

    Yes where in the code to load it, and how would i phrase if for my C++ compiler to pull it up in the app window?

    Michael (Up and coming Game programmer) EST

    C / C++ / MFC graphics

  • how would i
    M MMaines2005

    = "WindowsApp"; int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFunsterStil) { HWND hwnd; /* This is the handle for our window */ MSG messages; /* Here messages to the application are saved */ WNDCLASSEX wincl; /* Data structure for the windowclass */ /* The Window structure */ wincl.hInstance = hThisInstance; wincl.lpszClassName = szClassName; wincl.lpfnWndProc = WindowProcedure; /* This function is called by windows */ wincl.style = CS_DBLCLKS; /* Catch double-clicks */ wincl.cbSize = sizeof (WNDCLASSEX); /* Use default icon and mouse-pointer */ wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION); wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION); wincl.hCursor = LoadCursor (NULL, IDC_ARROW); wincl.lpszMenuName = NULL; /* No menu */ wincl.cbClsExtra = 0; /* No extra bytes after the window class */ wincl.cbWndExtra = 0; /* structure or the window instance */ /* Use Windows's default color as the background of the window */ wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND; /* Register the window class, and if it fails quit the program */ if (!RegisterClassEx (&wincl)) return 0; /* The class is registered, let's create the program*/ hwnd = CreateWindowEx ( 0, /* Extended possibilites for variation */ szClassName, /* Classname */ "Windows App", /* Title Text */ WS_OVERLAPPEDWINDOW, /* default window */ CW_USEDEFAULT, /* Windows decides the position */ CW_USEDEFAULT, /* where the window ends up on the screen */ 544, /* The programs width */ 375, /* and height in pixels */ HWND_DESKTOP, /* The window is a child-window to desktop */ NULL, /* No menu */ hThisInstance, /* Program Instance handler */ NULL

    C / C++ / MFC graphics

  • How do i....
    M MMaines2005

    = "WindowsApp"; int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFunsterStil) { HWND hwnd; /* This is the handle for our window */ MSG messages; /* Here messages to the application are saved */ WNDCLASSEX wincl; /* Data structure for the windowclass */ /* The Window structure */ wincl.hInstance = hThisInstance; wincl.lpszClassName = szClassName; wincl.lpfnWndProc = WindowProcedure; /* This function is called by windows */ wincl.style = CS_DBLCLKS; /* Catch double-clicks */ wincl.cbSize = sizeof (WNDCLASSEX); /* Use default icon and mouse-pointer */ wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION); wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION); wincl.hCursor = LoadCursor (NULL, IDC_ARROW); wincl.lpszMenuName = NULL; /* No menu */ wincl.cbClsExtra = 0; /* No extra bytes after the window class */ wincl.cbWndExtra = 0; /* structure or the window instance */ /* Use Windows's default color as the background of the window */ wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND; /* Register the window class, and if it fails quit the program */ if (!RegisterClassEx (&wincl)) return 0; /* The class is registered, let's create the program*/ hwnd = CreateWindowEx ( 0, /* Extended possibilites for variation */ szClassName, /* Classname */ "Windows App", /* Title Text */ WS_OVERLAPPEDWINDOW, /* default window */ CW_USEDEFAULT, /* Windows decides the position */ CW_USEDEFAULT, /* where the window ends up on the screen */ 544, /* The programs width */ 375, /* and height in pixels */ HWND_DESKTOP, /* The window is a child-window to desktop */ NULL, /* No menu */ hThisInstance, /* Program Instance handler */ NULL /* No Window Creation data */ );

    C# question graphics

  • How do i....
    M MMaines2005

    = "NinjaWars"; PAINTSTRUCT paintStruct; /* Device Context*/ HDC hDC; /* Text for display*/ char string[] = "Hello, World!"; /* Switch message, condition that is met will execute*/ int WINAPI WinMain (HINSTANCE hThisInstance, HINSTANCE hPrevInstance, LPSTR lpszArgument, int nFunsterStil) { HWND hwnd; /* This is the handle for our window */ MSG messages; /* Here messages to the application are saved */ WNDCLASSEX wincl; /* Data structure for the windowclass */ /* The Window structure */ wincl.hInstance = hThisInstance; wincl.lpszClassName = szClassName; wincl.lpfnWndProc = WindowProcedure; /* This function is called by windows */ wincl.style = CS_DBLCLKS; /* Catch double-clicks */ wincl.cbSize = sizeof (WNDCLASSEX); /* Use default icon and mouse-pointer */ wincl.hIcon = LoadIcon (NULL, IDI_APPLICATION); wincl.hIconSm = LoadIcon (NULL, IDI_APPLICATION); wincl.hCursor = LoadCursor (NULL, IDC_ARROW); wincl.lpszMenuName = NULL; /* No menu */ wincl.cbClsExtra = 0; /* No extra bytes after the window class */ wincl.cbWndExtra = 0; /* structure or the window instance */ /* Use Windows's default color as the background of the window */ wincl.hbrBackground = (HBRUSH) COLOR_BACKGROUND; /* Register the window class, and if it fails quit the program */ if (!RegisterClassEx (&wincl)) return 0; /* The class is registered, let's create the program*/ hwnd = CreateWindowEx ( 0, /* Extended possibilites for variation */ szClassName, /* Classname */ "Ninja Wars", /* Title Text */ WS_OVERLAPPEDWINDOW, /* default window */ CW_USEDEFAULT, /* Windows decides the position */ CW_USEDEFAULT, /* where the window ends up on the screen */ 544, /* The programs width */

    C# question c++ graphics game-dev
  • Login

  • Don't have an account? Register

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