<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	>
<channel>
	<title>Comments on: ResChange Game Class</title>
	<atom:link href="http://www.nekocake.com/pad/2007/04/20/reschange-game-class/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nekocake.com/pad/2007/04/20/reschange-game-class/</link>
	<description>RamblingsOfADerangedShape.....</description>
	<pubDate>Tue, 06 Jan 2009 01:02:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: cubed2D</title>
		<link>http://www.nekocake.com/pad/2007/04/20/reschange-game-class/comment-page-1/#comment-8</link>
		<dc:creator>cubed2D</dc:creator>
		<pubDate>Sun, 06 May 2007 11:37:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.nekocake.com/pad/2007/04/20/reschange-game-class/#comment-8</guid>
		<description>I realy like the changes you made there, a good way to clean the code up, as for why i didnt do it? i dont have much time at the moment to work on my game engine, doing bits hear and there in between revision for my uni exams! i just pust code down as i think of it, so theres going to be a big clean up operation over the summer!</description>
		<content:encoded><![CDATA[<p>I realy like the changes you made there, a good way to clean the code up, as for why i didnt do it? i dont have much time at the moment to work on my game engine, doing bits hear and there in between revision for my uni exams! i just pust code down as i think of it, so theres going to be a big clean up operation over the summer!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kevin</title>
		<link>http://www.nekocake.com/pad/2007/04/20/reschange-game-class/comment-page-1/#comment-7</link>
		<dc:creator>Kevin</dc:creator>
		<pubDate>Sat, 05 May 2007 18:36:31 +0000</pubDate>
		<guid isPermaLink="false">http://www.nekocake.com/pad/2007/04/20/reschange-game-class/#comment-7</guid>
		<description>Why not do something more concise with your regChange, that's easier to read, easier to change, compiles to a smaller size, and is nicer to look at! :)  Like this:

#region Using
using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
#endregion

namespace NekoCake
{
    #region enum
    public enum ScreenMode
    {
        QQVGA,          // {160, 120}
        QVGA,           // {320, 240},
        VGA,            // {640, 480},
        SVGA,           // {800, 600},
        XGA,            // {1024, 768},
        SXGA,           // {1280, 1024},
        UXGA,           // {1600, 1200},
        QXGA,           // {2048, 1536},
        QSXGA,          // {2560, 2048},
        QUXGA,          // {3200, 2400},
        HXGA,           // {4096, 3072},
        HSXGA,          // {5120, 4096},
        HUXGA,          // {6400, 4800},
        WXGA,           // {1280, 720},
        WSXGA,          // {1440, 900},
        WSXGAplus,      // {1680, 1050},
        WUXGA,          // {1920, 1200},
        WQXGA,          // {2560, 1600},
        WQSXGA,         // {3200, 2048},
        WQUXGA,         // {3840, 2400},
        WHXGA,          // {5120, 3200},
        WHSXGA,         // {6400, 4096},
        WHUXGA,         // {7680, 4800},
        tv480i,         // {640, 480},
        tv720p,         // {1280, 720},
        tv1080p         // {1920, 1080}
    }
    #endregion

    #region main class
    static class SetWindow
    {
        private static GraphicsDeviceManager graphics;

        public static void resChange()
        {
            resChange(ScreenMode.WXGA);
        }

        public static void resChange(int x, int y)
        {
            graphics.PreferredBackBufferWidth = x;
            graphics.PreferredBackBufferHeight = y;
            graphics.ApplyChanges();
        }

        private static readonly int[,] resolutions =
                new int[,] {
                    // Normal
                        {160, 120},
                        {320, 240},
                        {640, 480},
                        {800, 600},
                        {1024, 768},
                        {1280, 1024},
                        {1600, 1200},
                        {2048, 1536},
                        {2560, 2048},
                        {3200, 2400},
                        {4096, 3072},
                        {5120, 4096},
                        {6400, 4800},
                    // Widescreen
                        {1280, 720},
                        {1440, 900},
                        {1680, 1050},
                        {1920, 1200},
                        {2560, 1600},
                        {3200, 2048},
                        {3840, 2400},
                        {5120, 3200},
                        {6400, 4096},
                        {7680, 4800},
                    // TV
                        {640, 480},
                        {1280, 720},
                        {1920, 1080}
                };
       

        public static void resChange(ScreenMode mode)
        {
            resChange(resolutions[(int) mode, 0], resolutions[(int) mode, 1]);
        }

        public static void SetGraphics(GraphicsDeviceManager g)
        {
            graphics = g;
        }
    }
    #endregion
}</description>
		<content:encoded><![CDATA[<p>Why not do something more concise with your regChange, that&#8217;s easier to read, easier to change, compiles to a smaller size, and is nicer to look at! <img src='http://www.nekocake.com/pad/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Like this:</p>
<p>#region Using<br />
using System;<br />
using System.Collections.Generic;<br />
using System.Text;<br />
using Microsoft.Xna.Framework;<br />
using Microsoft.Xna.Framework.Graphics;<br />
#endregion</p>
<p>namespace NekoCake<br />
{<br />
    #region enum<br />
    public enum ScreenMode<br />
    {<br />
        QQVGA,          // {160, 120}<br />
        QVGA,           // {320, 240},<br />
        VGA,            // {640, 480},<br />
        SVGA,           // {800, 600},<br />
        XGA,            // {1024, 768},<br />
        SXGA,           // {1280, 1024},<br />
        UXGA,           // {1600, 1200},<br />
        QXGA,           // {2048, 1536},<br />
        QSXGA,          // {2560, 2048},<br />
        QUXGA,          // {3200, 2400},<br />
        HXGA,           // {4096, 3072},<br />
        HSXGA,          // {5120, 4096},<br />
        HUXGA,          // {6400, 4800},<br />
        WXGA,           // {1280, 720},<br />
        WSXGA,          // {1440, 900},<br />
        WSXGAplus,      // {1680, 1050},<br />
        WUXGA,          // {1920, 1200},<br />
        WQXGA,          // {2560, 1600},<br />
        WQSXGA,         // {3200, 2048},<br />
        WQUXGA,         // {3840, 2400},<br />
        WHXGA,          // {5120, 3200},<br />
        WHSXGA,         // {6400, 4096},<br />
        WHUXGA,         // {7680, 4800},<br />
        tv480i,         // {640, 480},<br />
        tv720p,         // {1280, 720},<br />
        tv1080p         // {1920, 1080}<br />
    }<br />
    #endregion</p>
<p>    #region main class<br />
    static class SetWindow<br />
    {<br />
        private static GraphicsDeviceManager graphics;</p>
<p>        public static void resChange()<br />
        {<br />
            resChange(ScreenMode.WXGA);<br />
        }</p>
<p>        public static void resChange(int x, int y)<br />
        {<br />
            graphics.PreferredBackBufferWidth = x;<br />
            graphics.PreferredBackBufferHeight = y;<br />
            graphics.ApplyChanges();<br />
        }</p>
<p>        private static readonly int[,] resolutions =<br />
                new int[,] {<br />
                    // Normal<br />
                        {160, 120},<br />
                        {320, 240},<br />
                        {640, 480},<br />
                        {800, 600},<br />
                        {1024, 768},<br />
                        {1280, 1024},<br />
                        {1600, 1200},<br />
                        {2048, 1536},<br />
                        {2560, 2048},<br />
                        {3200, 2400},<br />
                        {4096, 3072},<br />
                        {5120, 4096},<br />
                        {6400, 4800},<br />
                    // Widescreen<br />
                        {1280, 720},<br />
                        {1440, 900},<br />
                        {1680, 1050},<br />
                        {1920, 1200},<br />
                        {2560, 1600},<br />
                        {3200, 2048},<br />
                        {3840, 2400},<br />
                        {5120, 3200},<br />
                        {6400, 4096},<br />
                        {7680, 4800},<br />
                    // TV<br />
                        {640, 480},<br />
                        {1280, 720},<br />
                        {1920, 1080}<br />
                };</p>
<p>        public static void resChange(ScreenMode mode)<br />
        {<br />
            resChange(resolutions[(int) mode, 0], resolutions[(int) mode, 1]);<br />
        }</p>
<p>        public static void SetGraphics(GraphicsDeviceManager g)<br />
        {<br />
            graphics = g;<br />
        }<br />
    }<br />
    #endregion<br />
}</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Dynamic Page Served (once) in 0.564 seconds -->
