Thread: [Agate-svn-commit] SF.net SVN: agate:[1344] trunk (Page 4)
Status: Alpha
Brought to you by:
kanato
|
From: <ka...@us...> - 2012-04-10 18:09:27
|
Revision: 1344
http://agate.svn.sourceforge.net/agate/?rev=1344&view=rev
Author: kanato
Date: 2012-04-10 18:09:20 +0000 (Tue, 10 Apr 2012)
Log Message:
-----------
Framebuffer bug fixes for AgateDrawing and AgateOTK.
Now Viewport is set when rendering to a Framebuffer in AgateOTK.
Prevent recreation of Drawing_Surface every time the RenderTarget property was accessed in AgateDrawing.
Added MultipleFramebufferTest.
Modified Paths:
--------------
trunk/AgateLib/DisplayLib/FrameBuffer.cs
trunk/Drivers/AgateDrawing/Drawing_FrameBuffer.cs
trunk/Drivers/AgateDrawing/Drawing_Surface.cs
trunk/Drivers/AgateOTK/ContextFB.cs
trunk/Drivers/AgateOTK/GL3/FrameBuffer.cs
trunk/Drivers/AgateOTK/GL_Display.cs
trunk/Drivers/AgateOTK/GL_Surface.cs
trunk/Tests/DisplayTests/MultipleWindows/MultipleWindowTest.cs
trunk/Tests/Tests.csproj
trunk/Tests/frmLauncher.Designer.cs
trunk/Tests/frmLauncher.cs
trunk/Tests/frmLauncher.resx
trunk/Tests/settings_list.txt
Added Paths:
-----------
trunk/Tests/DisplayTests/MultipleFramebufferTest.cs
Modified: trunk/AgateLib/DisplayLib/FrameBuffer.cs
===================================================================
--- trunk/AgateLib/DisplayLib/FrameBuffer.cs 2012-04-05 17:23:01 UTC (rev 1343)
+++ trunk/AgateLib/DisplayLib/FrameBuffer.cs 2012-04-10 18:09:20 UTC (rev 1344)
@@ -143,12 +143,6 @@
{
get
{
- if (mRenderTarget != null && mRenderTarget.Impl != Impl.RenderTarget)
- {
- mRenderTarget.Dispose();
- mRenderTarget = null;
- }
-
if (mRenderTarget == null)
mRenderTarget = new Surface(Impl.RenderTarget);
Modified: trunk/Drivers/AgateDrawing/Drawing_FrameBuffer.cs
===================================================================
--- trunk/Drivers/AgateDrawing/Drawing_FrameBuffer.cs 2012-04-05 17:23:01 UTC (rev 1343)
+++ trunk/Drivers/AgateDrawing/Drawing_FrameBuffer.cs 2012-04-10 18:09:20 UTC (rev 1344)
@@ -31,6 +31,7 @@
{
Bitmap backBuffer;
internal AgateLib.DisplayLib.DisplayWindow mAttachedWindow;
+ SurfaceImpl mRenderTarget;
public Drawing_FrameBuffer(Size size)
{
@@ -51,7 +52,8 @@
}
public override void Dispose()
{
- backBuffer.Dispose();
+ if (mRenderTarget == null)
+ backBuffer.Dispose();
}
public override Size Size
@@ -62,7 +64,13 @@
public System.Drawing.Bitmap BackBufferBitmap
{
get { return backBuffer; }
- set { backBuffer = value; }
+ set
+ {
+ if (value == null)
+ throw new ArgumentNullException();
+
+ backBuffer = value;
+ }
}
public override void BeginRender()
@@ -82,7 +90,13 @@
}
public override SurfaceImpl RenderTarget
{
- get { return new Drawing_Surface(backBuffer, new System.Drawing.Rectangle(System.Drawing.Point.Empty, backBuffer.Size)); }
+ get
+ {
+ if (mRenderTarget == null)
+ mRenderTarget = new Drawing_Surface(backBuffer);
+
+ return mRenderTarget;
+ }
}
public override AgateLib.DisplayLib.DisplayWindow AttachedWindow
Modified: trunk/Drivers/AgateDrawing/Drawing_Surface.cs
===================================================================
--- trunk/Drivers/AgateDrawing/Drawing_Surface.cs 2012-04-05 17:23:01 UTC (rev 1343)
+++ trunk/Drivers/AgateDrawing/Drawing_Surface.cs 2012-04-10 18:09:20 UTC (rev 1344)
@@ -62,19 +62,23 @@
System.Diagnostics.Debug.Assert(mImage != null);
}
-
- private void ConvertImage()
+ /// <summary>
+ /// Creates a Drawing_Surface object which wraps the specified image.
+ /// </summary>
+ /// <param name="image"></param>
+ public Drawing_Surface(Bitmap image)
{
- var newImage = new Bitmap(mImage.Width, mImage.Height);
+ mDisplay = Display.Impl as Drawing_Display;
- Graphics g = Graphics.FromImage(newImage);
- g.DrawImage(mImage, new Rectangle(0, 0, mImage.Width, mImage.Height));
+ mImage = image;
- g.Dispose();
- mImage.Dispose();
-
- mImage = newImage;
+ System.Diagnostics.Debug.Assert(mImage != null);
}
+ /// <summary>
+ /// Creates a Drawing_Surface object and copies pixels from the specified image.
+ /// </summary>
+ /// <param name="image"></param>
+ /// <param name="sourceRect"></param>
public Drawing_Surface(Bitmap image, Rectangle sourceRect)
{
mDisplay = Display.Impl as Drawing_Display;
@@ -89,7 +93,9 @@
(Rectangle)sourceRect, GraphicsUnit.Pixel);
g.Dispose();
+
+ System.Diagnostics.Debug.Assert(mImage != null);
}
public Drawing_Surface(Geometry.Size sz)
{
@@ -113,6 +119,19 @@
}
}
+ private void ConvertImage()
+ {
+ var newImage = new Bitmap(mImage.Width, mImage.Height);
+
+ Graphics g = Graphics.FromImage(newImage);
+ g.DrawImage(mImage, new Rectangle(0, 0, mImage.Width, mImage.Height));
+
+ g.Dispose();
+ mImage.Dispose();
+
+ mImage = newImage;
+ }
+
#endregion
#region --- Protected Drawing helper methods ---
@@ -149,7 +168,7 @@
Geometry.SizeF displaySize = s.GetDisplaySize(SurfaceSize);
Geometry.PointF rotationCenter = s.GetRotationCenter(displaySize);
-
+
Drawing_Display disp = Display.Impl as Drawing_Display;
Graphics g = disp.FrameGraphics;
GraphicsState state = g.Save();
@@ -235,6 +254,7 @@
break;
}
}
+
#endregion
#region --- Public overriden properties ---
@@ -274,8 +294,6 @@
mImage.Save(filename, drawformat);
}
-
-
public override void SetSourceSurface(SurfaceImpl surf, Geometry.Rectangle srcRect)
{
mImage.Dispose();
@@ -289,13 +307,13 @@
g.Dispose();
+ System.Diagnostics.Debug.Assert(mImage != null);
}
public override PixelBuffer ReadPixels(PixelFormat format)
{
return ReadPixels(format, new Geometry.Rectangle(Geometry.Point.Empty, SurfaceSize));
}
-
public override PixelBuffer ReadPixels(PixelFormat format, Geometry.Rectangle rect)
{
BitmapData data = mImage.LockBits(Interop.Convert(rect), ImageLockMode.ReadOnly,
@@ -315,7 +333,6 @@
return buffer;
}
-
public override void WritePixels(PixelBuffer buffer)
{
BitmapData data = mImage.LockBits(new Rectangle(Point.Empty, Interop.Convert(SurfaceSize)),
Modified: trunk/Drivers/AgateOTK/ContextFB.cs
===================================================================
--- trunk/Drivers/AgateOTK/ContextFB.cs 2012-04-05 17:23:01 UTC (rev 1343)
+++ trunk/Drivers/AgateOTK/ContextFB.cs 2012-04-10 18:09:20 UTC (rev 1344)
@@ -71,13 +71,11 @@
}
GL.Viewport(0, 0, Width, Height);
-
}
public override void BeginRender()
{
MakeCurrent();
-
}
public override void EndRender()
Modified: trunk/Drivers/AgateOTK/GL3/FrameBuffer.cs
===================================================================
--- trunk/Drivers/AgateOTK/GL3/FrameBuffer.cs 2012-04-05 17:23:01 UTC (rev 1343)
+++ trunk/Drivers/AgateOTK/GL3/FrameBuffer.cs 2012-04-10 18:09:20 UTC (rev 1344)
@@ -52,6 +52,11 @@
GL.GenFramebuffers(1, out mFramebufferID);
GL.BindFramebuffer(FramebufferTarget.Framebuffer, mFramebufferID);
+ // attach the texture
+ GL.FramebufferTexture2D(FramebufferTarget.Framebuffer,
+ FramebufferAttachment.ColorAttachment0, TextureTarget.Texture2D,
+ mTexture.GLTextureID, 0);
+
// generate a depth buffer to render to
GL.GenRenderbuffers(1, out mDepthBuffer);
GL.BindRenderbuffer(RenderbufferTarget.Renderbuffer, mDepthBuffer);
@@ -66,10 +71,6 @@
FramebufferAttachment.DepthAttachment, RenderbufferTarget.Renderbuffer,
mDepthBuffer);
- // attach the texture
- GL.FramebufferTexture2D(FramebufferTarget.Framebuffer,
- FramebufferAttachment.ColorAttachment0, TextureTarget.Texture2D,
- mTexture.GLTextureID, 0);
FramebufferErrorCode code =
GL.CheckFramebufferStatus(FramebufferTarget.Framebuffer);
@@ -128,7 +129,7 @@
}
public override bool CanAccessRenderTarget
{
- get { return true; }
+ get { return true; }
}
public override bool HasDepthBuffer
Modified: trunk/Drivers/AgateOTK/GL_Display.cs
===================================================================
--- trunk/Drivers/AgateOTK/GL_Display.cs 2012-04-05 17:23:01 UTC (rev 1343)
+++ trunk/Drivers/AgateOTK/GL_Display.cs 2012-04-10 18:09:20 UTC (rev 1344)
@@ -206,6 +206,7 @@
mRenderTarget.BeginRender();
GL.BlendFunc(BlendingFactorSrc.SrcAlpha, BlendingFactorDest.OneMinusSrcAlpha);
+ GL.Viewport(0, 0, mRenderTarget.Width, mRenderTarget.Height);
}
protected override void OnEndFrame()
{
Modified: trunk/Drivers/AgateOTK/GL_Surface.cs
===================================================================
--- trunk/Drivers/AgateOTK/GL_Surface.cs 2012-04-05 17:23:01 UTC (rev 1343)
+++ trunk/Drivers/AgateOTK/GL_Surface.cs 2012-04-10 18:09:20 UTC (rev 1344)
@@ -109,7 +109,7 @@
GL.BindTexture(TextureTarget.Texture2D, mTextureID);
GL.TexImage2D(TextureTarget.Texture2D, 0, PixelInternalFormat.Rgba,
mTextureSize.Width, mTextureSize.Height, 0, OTKPixelFormat.Rgba,
- PixelType.UnsignedByte, fake);
+ PixelType.UnsignedByte, IntPtr.Zero);
mTexCoord = GetTextureCoords(mSourceRect);
}
Added: trunk/Tests/DisplayTests/MultipleFramebufferTest.cs
===================================================================
--- trunk/Tests/DisplayTests/MultipleFramebufferTest.cs (rev 0)
+++ trunk/Tests/DisplayTests/MultipleFramebufferTest.cs 2012-04-10 18:09:20 UTC (rev 1344)
@@ -0,0 +1,123 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using AgateLib;
+using AgateLib.DisplayLib;
+using AgateLib.Geometry;
+using AgateLib.InputLib;
+
+namespace Tests.DisplayTests
+{
+ class MultipleFramebufferTest : IAgateTest
+ {
+ List<Surface> mRegionColors = new List<Surface>();
+
+
+ public string Name
+ {
+ get { return "Multiple Framebuffer Test"; }
+ }
+
+ public string Category
+ {
+ get { return "Display"; }
+ }
+
+ List<Surface> tests = new List<Surface>();
+ bool done;
+ FontSurface font;
+
+ public void Main(string[] args)
+ {
+ using (AgateSetup setup = new AgateSetup(args))
+ {
+ setup.InitializeAll();
+ if (setup.WasCanceled)
+ return;
+
+ DisplayWindow wind = DisplayWindow.CreateWindowed("Multiple Framebuffer Test - " +
+ AgateLib.Drivers.Registrar.DisplayUsed.FriendlyName, 640, 480);
+
+ font = FontSurface.AgateSans14;
+
+ CreateTests();
+
+ Keyboard.KeyDown += new InputEventHandler(Keyboard_KeyDown);
+
+ while (wind.IsClosed == false && done == false)
+ {
+ Display.RenderTarget = wind.FrameBuffer;
+ Display.BeginFrame();
+ Display.Clear(Color.Gray);
+
+ font.Color = Color.White;
+ font.DisplayAlignment = OriginAlignment.TopLeft;
+ font.DrawText("Press space to create another frame buffer.");
+
+ int y = font.FontHeight;
+ int x = 10;
+ foreach (var surf in tests)
+ {
+ surf.Draw(x, y);
+ y += surf.DisplayHeight + 10;
+
+ if (y + 42 >= wind.Height)
+ {
+ y = font.FontHeight;
+ x += 42;
+ }
+ }
+
+ Display.EndFrame();
+ Core.KeepAlive();
+ }
+ }
+ }
+
+ void Keyboard_KeyDown(InputEventArgs e)
+ {
+ if (e.KeyCode == KeyCode.Escape)
+ done = true;
+
+ if (e.KeyCode == KeyCode.Space)
+ CreateTests();
+ }
+
+ int hueAngle = 0;
+ private void CreateTests()
+ {
+ const int angleIncrement = 373 / 8;
+ font.Color = Color.Black;
+ font.DisplayAlignment = OriginAlignment.CenterRight;
+ Surface mySurface = new Surface("jellybean.png");
+
+ FrameBuffer frame = new FrameBuffer(32, 32);
+ var clr = Color.FromHsv(hueAngle, 1, 1);
+
+ Display.RenderTarget = frame;
+ Display.BeginFrame();
+ Display.Clear();
+ mySurface.Draw();
+ Display.FillRect(new Rectangle(0, 0, 8, 32), clr);
+
+ var pt = new Point(31, 16);
+ string text = tests.Count.ToString();
+
+ font.Color = Color.Black;
+ font.DrawText(pt.X - 1, pt.Y, text);
+ font.DrawText(pt.X + 1, pt.Y, text);
+ font.DrawText(pt.X, pt.Y - 1, text);
+ font.DrawText(pt.X, pt.Y + 1, text);
+
+ font.Color = Color.White;
+ font.DrawText(pt.X, pt.Y, text);
+
+ Display.EndFrame();
+ tests.Add(frame.RenderTarget);
+ frame.RenderTarget.SaveTo("test.png", ImageFileFormat.Png);
+
+ hueAngle += angleIncrement;
+ }
+ }
+}
Modified: trunk/Tests/DisplayTests/MultipleWindows/MultipleWindowTest.cs
===================================================================
--- trunk/Tests/DisplayTests/MultipleWindows/MultipleWindowTest.cs 2012-04-05 17:23:01 UTC (rev 1343)
+++ trunk/Tests/DisplayTests/MultipleWindows/MultipleWindowTest.cs 2012-04-10 18:09:20 UTC (rev 1344)
@@ -13,7 +13,7 @@
{
Surface surf;
Random rand = new Random();
- FrameBuffer buffer;
+ FrameBuffer frameBuffer;
public string Name
{
@@ -40,7 +40,7 @@
DisplayWindow wnd_2 = DisplayWindow.CreateFromControl(myForm.pictureBox2);
DisplayWindow wnd_3 = DisplayWindow.CreateFromControl(myForm.pictureBox3);
- buffer = new FrameBuffer(wnd_3.Width, wnd_3.Height);
+ frameBuffer = new FrameBuffer(wnd_3.Width, wnd_3.Height);
myForm.pictureBox3.Resize += new EventHandler(wnd_3_Resize);
// this is the code that will be called when the button is pressed
@@ -84,28 +84,22 @@
// draw the third window from the surface
Display.RenderTarget = wnd_3.FrameBuffer;
- surf = buffer.RenderTarget;
+ surf = frameBuffer.RenderTarget;
Display.BeginFrame();
- Display.Clear(Color.Black);
+ Display.Clear(Color.Gray);
surf.Draw(0, 0);
Display.EndFrame();
Core.KeepAlive();
time = Timing.TotalSeconds;
- //System.Threading.Thread.Sleep(250);
-
}
-
}
-
-
}
void btnDrawText_Click(object sender, EventArgs e)
{
- Display.RenderTarget = buffer;
-
+ Display.RenderTarget = frameBuffer;
Display.BeginFrame();
int x = rand.Next(20, 100);
@@ -134,18 +128,17 @@
Display.BeginFrame();
Display.Clear();
- buffer.RenderTarget.Draw(new Rectangle(0, 0, buffer.Width, buffer.Height));
+ frameBuffer.RenderTarget.Draw();
Display.EndFrame();
- buffer.Dispose();
- buffer = newBuffer;
+ frameBuffer.Dispose();
+ frameBuffer = newBuffer;
}
void btnClear_Click(object sender, EventArgs e)
{
- Display.RenderTarget = buffer;
-
+ Display.RenderTarget = frameBuffer;
Display.BeginFrame();
Display.Clear(0, 0, 0, 0);
Display.EndFrame();
@@ -153,16 +146,15 @@
void btnDraw_Click(object sender, EventArgs e)
{
- Display.RenderTarget = buffer;
-
+ Display.RenderTarget = frameBuffer;
Display.BeginFrame();
int width = rand.Next(20, 100);
int height = rand.Next(20, 100);
Rectangle rect = new Rectangle(
- rand.Next(0, buffer.Width - width),
- rand.Next(0, buffer.Height - height),
+ rand.Next(0, frameBuffer.Width - width),
+ rand.Next(0, frameBuffer.Height - height),
width,
height);
Modified: trunk/Tests/Tests.csproj
===================================================================
--- trunk/Tests/Tests.csproj 2012-04-05 17:23:01 UTC (rev 1343)
+++ trunk/Tests/Tests.csproj 2012-04-10 18:09:20 UTC (rev 1344)
@@ -143,6 +143,7 @@
<Compile Include="DisplayTests\ColorTest.cs" />
<Compile Include="DisplayTests\LargeImage.cs" />
<Compile Include="DisplayTests\DisplayWindowEvents.cs" />
+ <Compile Include="DisplayTests\MultipleFramebufferTest.cs" />
<Compile Include="DisplayTests\PixelBufferMask.cs" />
<Compile Include="DisplayTests\ClipRect.cs" />
<Compile Include="DisplayTests\Prerendered.cs" />
Modified: trunk/Tests/frmLauncher.Designer.cs
===================================================================
--- trunk/Tests/frmLauncher.Designer.cs 2012-04-05 17:23:01 UTC (rev 1343)
+++ trunk/Tests/frmLauncher.Designer.cs 2012-04-10 18:09:20 UTC (rev 1344)
@@ -27,7 +27,7 @@
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
- {
+ {
this.lstTests = new System.Windows.Forms.ListBox();
this.displayList = new System.Windows.Forms.ComboBox();
this.inputList = new System.Windows.Forms.ComboBox();
@@ -39,9 +39,9 @@
//
// lstTests
//
- this.lstTests.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
+ this.lstTests.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.lstTests.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
this.lstTests.FormattingEnabled = true;
this.lstTests.Location = new System.Drawing.Point(324, 12);
@@ -62,6 +62,7 @@
this.displayList.Name = "displayList";
this.displayList.Size = new System.Drawing.Size(229, 21);
this.displayList.TabIndex = 8;
+ this.displayList.SelectedIndexChanged += new System.EventHandler(this.displayList_SelectedIndexChanged);
//
// inputList
//
@@ -72,6 +73,7 @@
this.inputList.Name = "inputList";
this.inputList.Size = new System.Drawing.Size(229, 21);
this.inputList.TabIndex = 10;
+ this.inputList.SelectedIndexChanged += new System.EventHandler(this.inputList_SelectedIndexChanged);
//
// audioList
//
@@ -82,6 +84,7 @@
this.audioList.Name = "audioList";
this.audioList.Size = new System.Drawing.Size(229, 21);
this.audioList.TabIndex = 12;
+ this.audioList.SelectedIndexChanged += new System.EventHandler(this.audioList_SelectedIndexChanged);
//
// label1
//
Modified: trunk/Tests/frmLauncher.cs
===================================================================
--- trunk/Tests/frmLauncher.cs 2012-04-05 17:23:01 UTC (rev 1343)
+++ trunk/Tests/frmLauncher.cs 2012-04-10 18:09:20 UTC (rev 1344)
@@ -33,19 +33,18 @@
bold = new Font(lstTests.Font, FontStyle.Bold | FontStyle.Italic);
+ FillDrivers();
+
ReadSettingsNames();
AgateLib.Settings.PersistantSettings.SettingsTracer = this;
AgateLib.Settings.PersistantSettings.Debug = true;
- FillDrivers();
-
this.FormClosed += HandleFormClosed;
}
private void frmLauncher_Load(object sender, EventArgs e)
{
- FillDrivers();
}
private void FillDrivers()
@@ -75,7 +74,7 @@
{
foreach (var setting in mSettings)
{
- string text = setting.Key + " " + setting.Value;
+ string text = setting.Key + "\t" + setting.Value;
System.Diagnostics.Debug.Print(text);
w.WriteLine(text);
@@ -110,42 +109,38 @@
try
{
- using (r)
+ settingsFile = targetDirectory + filename;
+ r = new StreamReader(targetDirectory + filename);
+ }
+ catch (DirectoryNotFoundException)
+ {
+ settingsFile = filename;
+ r = new StreamReader(filename);
+ }
+
+ using (r)
+ {
+ while (r.EndOfStream == false)
{
- try
- {
- settingsFile = targetDirectory + filename;
- r = new StreamReader(targetDirectory + filename);
- }
- catch (DirectoryNotFoundException)
- {
- settingsFile = filename;
- r = new StreamReader(filename);
- }
+ string x = r.ReadLine().Trim();
- while (r.EndOfStream == false)
- {
- string x = r.ReadLine().Trim();
- if (string.IsNullOrEmpty(x) == false)
- {
- int index = x.IndexOf(' ');
+ if (string.IsNullOrWhiteSpace(x))
+ continue;
- if (index == -1)
- {
- mSettings.Add(x, null);
- }
- else
- mSettings.Add(x.Substring(0, index), x.Substring(index + 1));
- }
+ int index = x.IndexOf('\t');
+
+ if (index == -1)
+ {
+ mSettings[x] = null;
}
+ else
+ mSettings[x.Substring(0, index)] = x.Substring(index + 1);
}
}
- catch
- {
- if (settingsFile == null)
- settingsFile = filename;
- }
+ displayList.SelectedItem = mSettings["AgateLib.DisplayDriver"];
+ audioList.SelectedItem = mSettings["AgateLib.AudioDriver"];
+ inputList.SelectedItem = mSettings["AgateLib.InputDriver"];
}
void StoreSetting(string name, string value)
{
@@ -241,10 +236,6 @@
string[] args = { };
this.Hide();
- AgateLib.Core.Settings["AgateLib"]["DisplayDriver"] = displayList.Text;
- AgateLib.Core.Settings["AgateLib"]["AudioDriver"] = audioList.Text;
- AgateLib.Core.Settings["AgateLib"]["InputDriver"] = inputList.Text;
-
foreach (var kvp in mSettings)
{
if (kvp.Value == null)
@@ -253,13 +244,6 @@
string group, key;
SplitName(kvp.Key, out group, out key);
- if (group == "AgateLib")
- {
- if (key == "DisplayDriver") continue;
- if (key == "AudioDriver") continue;
- if (key == "InputDriver") continue;
- }
-
AgateLib.Core.Settings[group][key] = kvp.Value;
}
@@ -337,5 +321,18 @@
e.DrawFocusRectangle();
}
+ private void displayList_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ mSettings["AgateLib.DisplayDriver"] = displayList.Text;
+ }
+ private void audioList_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ mSettings["AgateLib.AudioDriver"] = audioList.Text;
+ }
+ private void inputList_SelectedIndexChanged(object sender, EventArgs e)
+ {
+ mSettings["AgateLib.InputDriver"] = inputList.Text;
+ }
+
}
}
\ No newline at end of file
Modified: trunk/Tests/frmLauncher.resx
===================================================================
--- trunk/Tests/frmLauncher.resx 2012-04-05 17:23:01 UTC (rev 1343)
+++ trunk/Tests/frmLauncher.resx 2012-04-10 18:09:20 UTC (rev 1344)
@@ -112,9 +112,9 @@
<value>2.0</value>
</resheader>
<resheader name="reader">
- <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
- <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>
\ No newline at end of file
Modified: trunk/Tests/settings_list.txt
===================================================================
--- trunk/Tests/settings_list.txt 2012-04-05 17:23:01 UTC (rev 1343)
+++ trunk/Tests/settings_list.txt 2012-04-10 18:09:20 UTC (rev 1344)
@@ -1,6 +1,6 @@
-AgateLib.AudioDriver
-AgateLib.DisplayDriver
-AgateLib.InputDriver
-AgateLib.OpenGL.DisableFramebufferArb
-AgateLib.OpenGL.EnableGL3 false
-AgateLib.OpenGL.DisableFramebufferExt
+AgateLib.DisplayDriver OpenGL through OpenTK 1.0.278.44921
+AgateLib.AudioDriver Default
+AgateLib.InputDriver Default
+AgateLib.OpenGL.DisableFramebufferArb
+AgateLib.OpenGL.EnableGL3 false
+AgateLib.OpenGL.DisableFramebufferExt
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ka...@us...> - 2012-05-29 15:27:47
|
Revision: 1346
http://agate.svn.sourceforge.net/agate/?rev=1346&view=rev
Author: kanato
Date: 2012-05-29 15:27:40 +0000 (Tue, 29 May 2012)
Log Message:
-----------
Mark DisplayWindow.SetFullScreen and DisplayWindow.SetWindowed as obsolete.
Modified Paths:
--------------
trunk/AgateLib/DisplayLib/DisplayWindow.cs
trunk/Tests/Fonts/Fonts.cs
Modified: trunk/AgateLib/DisplayLib/DisplayWindow.cs
===================================================================
--- trunk/AgateLib/DisplayLib/DisplayWindow.cs 2012-04-10 18:38:11 UTC (rev 1345)
+++ trunk/AgateLib/DisplayLib/DisplayWindow.cs 2012-05-29 15:27:40 UTC (rev 1346)
@@ -298,6 +298,7 @@
/// windowed. The DisplayWindow retains the same height and width as the
/// previous full screen resolution.
/// </summary>
+ [Obsolete("Instead of calling SetWindowed, you should create another DisplayWindow by calling DisplayWindow.CreateWindowed() and Dispose of the full screen DisplayWindow object.")]
public void SetWindowed()
{
mImpl.SetWindowed();
@@ -312,6 +313,7 @@
/// fullscreen displays. If this fails it returns without any error
/// thrown. Check to see if it worked by examining IsFullScreen property.
/// </remarks>
+ [Obsolete("Instead of calling SetFullScreen, you should create another DisplayWindow by calling DisplayWindow.CreateFullScreen()")]
public void SetFullScreen()
{
mImpl.SetFullScreen();
@@ -329,6 +331,7 @@
/// <param name="width"></param>
/// <param name="height"></param>
/// <param name="bpp"></param>
+ [Obsolete("Instead of calling SetFullScreen, you should create another DisplayWindow by calling DisplayWindow.CreateFullScreen()")]
public void SetFullScreen(int width, int height, int bpp)
{
mImpl.SetFullScreen(width, height, bpp);
Modified: trunk/Tests/Fonts/Fonts.cs
===================================================================
--- trunk/Tests/Fonts/Fonts.cs 2012-04-10 18:38:11 UTC (rev 1345)
+++ trunk/Tests/Fonts/Fonts.cs 2012-05-29 15:27:40 UTC (rev 1346)
@@ -30,6 +30,7 @@
return;
DisplayWindow wind = DisplayWindow.CreateWindowed("Font Tester", 800, 600);
+ DisplayWindow fullWind = null;
FontSurface font = new FontSurface("Sans Serif", 12);
FontSurface bitmapFont = FontSurface.BitmapMonospace("lotafont.png", new Size(16, 16));
@@ -126,10 +127,16 @@
System.Diagnostics.Debug.Print("IsFullscreen: {0}", Display.CurrentWindow.IsFullScreen);
if (Display.CurrentWindow.IsFullScreen == false)
- Display.CurrentWindow.SetFullScreen(800, 600, 32);
+ {
+ fullWind = DisplayWindow.CreateFullScreen("Font Tester", 800, 600);
+ }
else
- Display.CurrentWindow.SetWindowed();
+ {
+ fullWind.Dispose();
+ Display.RenderTarget = wind;
+ }
+ Keyboard.ReleaseAllKeys();
System.Diagnostics.Debug.Print("IsFullscreen: {0}", Display.CurrentWindow.IsFullScreen);
}
else if (Keyboard.Keys[KeyCode.F2])
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ka...@us...> - 2013-02-10 19:52:30
|
Revision: 1348
http://agate.svn.sourceforge.net/agate/?rev=1348&view=rev
Author: kanato
Date: 2013-02-10 19:52:18 +0000 (Sun, 10 Feb 2013)
Log Message:
-----------
Initializing fullscreen D3D9 works, but switching back and forth to windowed doesn't work. Cleanup isn't correct either.
Modified Paths:
--------------
trunk/Drivers/AgateSDX/D3DDevice.cs
trunk/Drivers/AgateSDX/SDX_Display.cs
trunk/Drivers/AgateSDX/SDX_DisplayWindow.cs
trunk/Tests/Tests.csproj
Modified: trunk/Drivers/AgateSDX/D3DDevice.cs
===================================================================
--- trunk/Drivers/AgateSDX/D3DDevice.cs 2013-01-27 18:34:45 UTC (rev 1347)
+++ trunk/Drivers/AgateSDX/D3DDevice.cs 2013-02-10 19:52:18 UTC (rev 1348)
@@ -91,12 +91,14 @@
private void Dispose(bool disposing)
{
if (disposing)
+ {
GC.SuppressFinalize(this);
- if (mDevice != null)
- {
- mDevice.Dispose();
- mDevice = null;
+ if (mDevice != null)
+ {
+ mDevice.Dispose();
+ mDevice = null;
+ }
}
}
Modified: trunk/Drivers/AgateSDX/SDX_Display.cs
===================================================================
--- trunk/Drivers/AgateSDX/SDX_Display.cs 2013-01-27 18:34:45 UTC (rev 1347)
+++ trunk/Drivers/AgateSDX/SDX_Display.cs 2013-02-10 19:52:18 UTC (rev 1348)
@@ -104,7 +104,7 @@
}
- internal void Initialize(SDX_DisplayWindow window)
+ internal void Initialize(SDX_DisplayWindow window, CreateWindowParams windowParams)
{
if (mInitialized)
return;
@@ -117,7 +117,9 @@
mInitialized = true;
// ok, create D3D device
- PresentParameters present = CreateWindowedPresentParameters(window, 0, 0, 32);
+ PresentParameters present = windowParams.IsFullScreen ?
+ CreateFullScreenPresentParameters(window, windowParams.Width, windowParams.Height, windowParams.Bpp) :
+ CreateWindowedPresentParameters(window, 0, 0, 32);
DeviceType dtype = DeviceType.Hardware;
@@ -588,9 +590,12 @@
present.BackBufferHeight = 1;
present.BackBufferWidth = 1;
present.DeviceWindowHandle = displayWindow.RenderTarget.TopLevelControl.Handle;
-
+
OnDeviceAboutToReset();
+ var result = mDevice.Device.TestCooperativeLevel();
+
+ System.Diagnostics.Debug.Print("TestCooperativeLevel result: {0}", result);
System.Diagnostics.Debug.Print("{0} Going to windowed mode...", DateTime.Now);
mDevice.Device.Reset(present);
System.Diagnostics.Debug.Print("{0} Windowed mode success.", DateTime.Now);
Modified: trunk/Drivers/AgateSDX/SDX_DisplayWindow.cs
===================================================================
--- trunk/Drivers/AgateSDX/SDX_DisplayWindow.cs 2013-01-27 18:34:45 UTC (rev 1347)
+++ trunk/Drivers/AgateSDX/SDX_DisplayWindow.cs 2013-02-10 19:52:18 UTC (rev 1348)
@@ -48,7 +48,6 @@
int mChooseHeight;
int mChooseBitDepth = 32;
System.Drawing.Icon mIcon;
- bool mChooseFullscreen = false;
bool mChooseResize = false;
WindowPosition mChoosePosition;
bool mHasFrame = true;
@@ -70,12 +69,12 @@
mRenderTarget = (Control)windowParams.RenderTarget;
- mChooseFullscreen = false;
+ mIsFullscreen = false;
mChooseWidth = mRenderTarget.ClientSize.Width;
mChooseHeight = mRenderTarget.ClientSize.Height;
mDisplay = Display.Impl as SDX_Display;
- mDisplay.Initialize(this);
+ mDisplay.Initialize(this, windowParams);
mDisplay.VSyncChanged += new EventHandler(mDisplay_VSyncChanged);
}
@@ -85,21 +84,22 @@
mIcon = new Drawing.Icon(windowParams.IconFile);
mTitle = windowParams.Title;
- mChooseFullscreen = windowParams.IsFullScreen;
+ mIsFullscreen = windowParams.IsFullScreen;
mChooseWidth = windowParams.Width;
mChooseHeight = windowParams.Height;
mChooseResize = windowParams.IsResizable;
mHasFrame = windowParams.HasFrame;
- CreateWindow(mChooseFullscreen);
+ CreateWindow(mIsFullscreen);
+ mIsFullscreen = true;
mDisplay = Display.Impl as SDX_Display;
- mDisplay.Initialize(this);
+ mDisplay.Initialize(this, windowParams);
mDisplay.VSyncChanged += new EventHandler(mDisplay_VSyncChanged);
}
AttachEvents();
- CreateBackBuffer();
+ CreateBackBuffer(mIsFullscreen);
}
public SDX_DisplayWindow(System.Windows.Forms.Control renderTarget)
@@ -109,6 +109,13 @@
public override void Dispose()
{
+ if (IsFullScreen)
+ {
+ SetWindowed();
+ }
+
+ mFrameBuffer.Dispose();
+
if (frm != null && frm is frmFullScreen == false)
{
frm.Dispose();
@@ -181,7 +188,7 @@
void mDisplay_VSyncChanged(object sender, EventArgs e)
{
- CreateBackBuffer();
+ CreateBackBuffer(mIsFullscreen);
}
@@ -262,7 +269,7 @@
if (mChooseWidth == 0 || mChooseHeight == 0)
return;
- CreateBackBuffer();
+ CreateBackBuffer(mIsFullscreen);
}
@@ -296,7 +303,7 @@
else
{
FormUtil.InitializeWindowsForm(out frm, out mRenderTarget, mChoosePosition, mTitle,
- mChooseWidth, mChooseHeight, mChooseFullscreen, mChooseResize, mHasFrame);
+ mChooseWidth, mChooseHeight, mIsFullscreen, mChooseResize, mHasFrame);
if (mIcon != null)
frm.Icon = mIcon;
@@ -313,7 +320,7 @@
Form oldForm = frm;
CreateWindow(false);
- CreateBackBuffer();
+ CreateBackBuffer(false);
if (oldForm != null)
oldForm.Dispose();
@@ -341,7 +348,7 @@
frm.Activate();
frm.Refresh();
- CreateBackBuffer();
+ CreateBackBuffer(true);
frm.ClientSize = new System.Drawing.Size(mChooseWidth, mChooseHeight);
@@ -356,14 +363,16 @@
}
- private void CreateBackBuffer()
+ private void CreateBackBuffer(bool fullScreen)
{
if (mFrameBuffer != null)
mFrameBuffer.Dispose();
+ // Created swap chain will be owned by the FrameBufferWindow object, and
+ // disposal will be handled by that object.
SwapChain swap = mDisplay.CreateSwapChain(this, mChooseWidth, mChooseHeight,
- mChooseBitDepth, mChooseFullscreen);
-
+ mChooseBitDepth, fullScreen);
+
Direct3D.Surface backBuffer = swap.GetBackBuffer(0);
Direct3D.Surface backDepthStencil = Direct3D.Surface.CreateDepthStencil(
@@ -450,6 +459,7 @@
throw new InvalidOperationException("This DisplayWindow was created on a " +
"System.Windows.Forms.Control object, and cannot be set to full screen.");
+
//return;
ScreenMode mode = ScreenMode.SelectBestMode(width, height, bpp);
@@ -461,7 +471,7 @@
mChooseHeight = mode.Height;
mChooseBitDepth = mode.Bpp;
- mChooseFullscreen = true;
+ mIsFullscreen = true;
CreateFullScreenDisplay();
Keyboard.ReleaseAllKeys();
@@ -470,9 +480,9 @@
public override void SetWindowed()
{
- mChooseFullscreen = false;
+ CreateWindowedDisplay();
- CreateWindowedDisplay();
+ mIsFullscreen = false;
}
public override string Title
Modified: trunk/Tests/Tests.csproj
===================================================================
--- trunk/Tests/Tests.csproj 2013-01-27 18:34:45 UTC (rev 1347)
+++ trunk/Tests/Tests.csproj 2013-02-10 19:52:18 UTC (rev 1348)
@@ -88,6 +88,7 @@
<DebugType>full</DebugType>
<WarningLevel>4</WarningLevel>
<Optimize>false</Optimize>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<OutputPath>..\Binaries\Release\</OutputPath>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ka...@us...> - 2013-02-14 21:44:28
|
Revision: 1355
http://agate.svn.sourceforge.net/agate/?rev=1355&view=rev
Author: kanato
Date: 2013-02-14 21:44:13 +0000 (Thu, 14 Feb 2013)
Log Message:
-----------
Change target framework to .NET 3.5 to avoid issues when loading drivers after deployment.
Modified Paths:
--------------
trunk/AgateLib/AgateLib.csproj
trunk/AgateLib/Drivers/AgateSandBoxLoader.cs
trunk/AgateLib/Drivers/Registrar.cs
trunk/AgateLib/InternalResources/DataResources.Designer.cs
trunk/AgateLib/Serialization/Xle/XleSerializationInfo.cs
trunk/Drivers/AgateDrawing/AgateDrawing.csproj
trunk/Drivers/AgateFMOD/AgateFMOD.csproj
trunk/Drivers/AgateLib.WinForms/AgateLib.WinForms.csproj
trunk/Drivers/AgateLib.WinForms/Icons.Designer.cs
trunk/Drivers/AgateOTK/AgateOTK.csproj
trunk/Drivers/AgateOTK/GL3/Shaders/ShaderSources.Designer.cs
trunk/Drivers/AgateOTK/GL_Display.cs
trunk/Drivers/AgateSDL/AgateSDL.csproj
trunk/Drivers/AgateSDX/AgateSDX.csproj
trunk/Examples/BallBuster.Net/BallBuster.Net.csproj
trunk/Examples/BallBuster.Net/Properties/Resources.Designer.cs
trunk/Examples/BallBuster.Net/Properties/Settings.Designer.cs
trunk/Examples/BallBuster.Net/app.config
trunk/Examples/Pong/Pong.csproj
trunk/Examples/Pong/Properties/Resources.Designer.cs
trunk/Examples/Pong/Properties/Settings.Designer.cs
trunk/Examples/Pong/app.config
trunk/Examples/ShootTheTraps/Resources/background.png
trunk/Examples/ShootTheTraps/ShootTheTraps.csproj
trunk/Examples/ShootTheTraps/app.config
trunk/Tests/Tests.csproj
trunk/Tests/app.config
trunk/Tools/AgateDataLib/AgateDataLib.csproj
trunk/Tools/DatabaseEditor/DatabaseEditor.csproj
trunk/Tools/DatabaseEditor/Properties/Resources.Designer.cs
trunk/Tools/DatabaseEditor/Properties/Settings.Designer.cs
trunk/Tools/DatabaseEditor/app.config
trunk/Tools/FontCreator/FontCreator.csproj
trunk/Tools/FontCreator/Properties/Resources.Designer.cs
trunk/Tools/FontCreator/Properties/Settings.Designer.cs
trunk/Tools/FontCreator/app.config
trunk/Tools/NotebookLib/NotebookLib/NotebookLib.csproj
trunk/Tools/NotebookLib/NotebookLib/Properties/Resources.Designer.cs
trunk/Tools/PackedSpriteCreator/PackedSpriteCreator.csproj
trunk/Tools/PackedSpriteCreator/Properties/Resources.Designer.cs
trunk/Tools/PackedSpriteCreator/app.config
trunk/Tools/ResourceEditor/Properties/Resources.Designer.cs
trunk/Tools/ResourceEditor/ResourceEditor.csproj
trunk/Tools/ResourceEditor/app.config
Removed Paths:
-------------
trunk/Examples/ShootTheTraps/Resources/timecannonimages/
Modified: trunk/AgateLib/AgateLib.csproj
===================================================================
--- trunk/AgateLib/AgateLib.csproj 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/AgateLib/AgateLib.csproj 2013-02-14 21:44:13 UTC (rev 1355)
@@ -14,7 +14,7 @@
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<OutputType>Library</OutputType>
<AppDesignerFolder>
</AppDesignerFolder>
Modified: trunk/AgateLib/Drivers/AgateSandBoxLoader.cs
===================================================================
--- trunk/AgateLib/Drivers/AgateSandBoxLoader.cs 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/AgateLib/Drivers/AgateSandBoxLoader.cs 2013-02-14 21:44:13 UTC (rev 1355)
@@ -35,6 +35,7 @@
try
{
ass = Assembly.LoadFrom(file);
+ Trace.WriteLine("Loaded assembly " + file + " in sandbox.");
}
catch (BadImageFormatException)
{
@@ -92,7 +93,7 @@
}
catch (Exception e)
{
- System.Diagnostics.Trace.WriteLine(string.Format(
+ Trace.WriteLine(string.Format(
"Could not load types in the file {0}. Check to make sure its dependencies are available. " +
"Caught exception {1}. {2}", file, e.GetType().ToString(), e.Message));
Modified: trunk/AgateLib/Drivers/Registrar.cs
===================================================================
--- trunk/AgateLib/Drivers/Registrar.cs 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/AgateLib/Drivers/Registrar.cs 2013-02-14 21:44:13 UTC (rev 1355)
@@ -102,6 +102,8 @@
IEnumerable<string> files = AgateFileProvider.Assemblies.GetAllFiles("*.dll");
+ Trace.AutoFlush = true;
+
foreach (string file in files)
{
if (ShouldSkipLibrary(file))
@@ -110,9 +112,12 @@
Trace.WriteLine("Probing " + file + "...");
Trace.Indent();
+ int driverCount = 0;
+
foreach (AgateDriverInfo info in loader.ReportDrivers(file))
{
Trace.WriteLine("Found driver " + info.FriendlyName);
+ driverCount++;
switch (info.DriverType)
{
@@ -141,6 +146,9 @@
}
}
+ if (driverCount == 0)
+ Trace.WriteLine("No drivers found in " + file + ".");
+
Trace.Unindent();
}
Modified: trunk/AgateLib/InternalResources/DataResources.Designer.cs
===================================================================
--- trunk/AgateLib/InternalResources/DataResources.Designer.cs 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/AgateLib/InternalResources/DataResources.Designer.cs 2013-02-14 21:44:13 UTC (rev 1355)
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:4.0.30319.1
+// Runtime Version:4.0.30319.18034
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -60,6 +60,9 @@
}
}
+ /// <summary>
+ /// Looks up a localized resource of type System.Byte[].
+ /// </summary>
internal static byte[] agate_black_gui {
get {
object obj = ResourceManager.GetObject("agate_black_gui", resourceCulture);
@@ -67,6 +70,9 @@
}
}
+ /// <summary>
+ /// Looks up a localized resource of type System.Byte[].
+ /// </summary>
internal static byte[] Fonts {
get {
object obj = ResourceManager.GetObject("Fonts", resourceCulture);
@@ -74,6 +80,9 @@
}
}
+ /// <summary>
+ /// Looks up a localized resource of type System.Byte[].
+ /// </summary>
internal static byte[] images {
get {
object obj = ResourceManager.GetObject("images", resourceCulture);
Modified: trunk/AgateLib/Serialization/Xle/XleSerializationInfo.cs
===================================================================
--- trunk/AgateLib/Serialization/Xle/XleSerializationInfo.cs 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/AgateLib/Serialization/Xle/XleSerializationInfo.cs 2013-02-14 21:44:13 UTC (rev 1355)
@@ -399,7 +399,7 @@
break;
case NumericEncoding.Csv:
- string newValue = string.Join(",", value);
+ string newValue = string.Join(",", value.Select(x => x.ToString()).ToArray());
XmlElement el = WriteAsElement(name, newValue);
Modified: trunk/Drivers/AgateDrawing/AgateDrawing.csproj
===================================================================
--- trunk/Drivers/AgateDrawing/AgateDrawing.csproj 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Drivers/AgateDrawing/AgateDrawing.csproj 2013-02-14 21:44:13 UTC (rev 1355)
@@ -14,7 +14,7 @@
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<OutputType>Library</OutputType>
<AppDesignerFolder>
</AppDesignerFolder>
Modified: trunk/Drivers/AgateFMOD/AgateFMOD.csproj
===================================================================
--- trunk/Drivers/AgateFMOD/AgateFMOD.csproj 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Drivers/AgateFMOD/AgateFMOD.csproj 2013-02-14 21:44:13 UTC (rev 1355)
@@ -16,7 +16,7 @@
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<OutputType>Library</OutputType>
<AppDesignerFolder>
</AppDesignerFolder>
Modified: trunk/Drivers/AgateLib.WinForms/AgateLib.WinForms.csproj
===================================================================
--- trunk/Drivers/AgateLib.WinForms/AgateLib.WinForms.csproj 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Drivers/AgateLib.WinForms/AgateLib.WinForms.csproj 2013-02-14 21:44:13 UTC (rev 1355)
@@ -14,7 +14,7 @@
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<OutputType>Library</OutputType>
<AppDesignerFolder>
</AppDesignerFolder>
Modified: trunk/Drivers/AgateLib.WinForms/Icons.Designer.cs
===================================================================
--- trunk/Drivers/AgateLib.WinForms/Icons.Designer.cs 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Drivers/AgateLib.WinForms/Icons.Designer.cs 2013-02-14 21:44:13 UTC (rev 1355)
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:4.0.30319.1
+// Runtime Version:4.0.30319.18034
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -60,6 +60,9 @@
}
}
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
+ /// </summary>
internal static System.Drawing.Icon AgateLib {
get {
object obj = ResourceManager.GetObject("AgateLib", resourceCulture);
@@ -67,6 +70,9 @@
}
}
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Icon similar to (Icon).
+ /// </summary>
internal static System.Drawing.Icon AgateLib_mono {
get {
object obj = ResourceManager.GetObject("AgateLib_mono", resourceCulture);
@@ -74,6 +80,9 @@
}
}
+ /// <summary>
+ /// Looks up a localized resource of type System.Byte[].
+ /// </summary>
internal static byte[] blankcursor {
get {
object obj = ResourceManager.GetObject("blankcursor", resourceCulture);
Modified: trunk/Drivers/AgateOTK/AgateOTK.csproj
===================================================================
--- trunk/Drivers/AgateOTK/AgateOTK.csproj 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Drivers/AgateOTK/AgateOTK.csproj 2013-02-14 21:44:13 UTC (rev 1355)
@@ -14,7 +14,7 @@
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<OutputType>Library</OutputType>
<AppDesignerFolder>
</AppDesignerFolder>
Modified: trunk/Drivers/AgateOTK/GL3/Shaders/ShaderSources.Designer.cs
===================================================================
--- trunk/Drivers/AgateOTK/GL3/Shaders/ShaderSources.Designer.cs 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Drivers/AgateOTK/GL3/Shaders/ShaderSources.Designer.cs 2013-02-14 21:44:13 UTC (rev 1355)
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:4.0.30319.1
+// Runtime Version:4.0.30319.18034
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -72,7 +72,8 @@
///
///void main()
///{
- /// color = texture2D(texture, texCoordVal);
+ /// color = texture2D(texture, texCoordVal);
+ /// color = color * colorVal;
///}
///.
/// </summary>
Modified: trunk/Drivers/AgateOTK/GL_Display.cs
===================================================================
--- trunk/Drivers/AgateOTK/GL_Display.cs 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Drivers/AgateOTK/GL_Display.cs 2013-02-14 21:44:13 UTC (rev 1355)
@@ -450,7 +450,7 @@
for (int i = 0; i < extensions.Length; i++)
{
- Debug.Print(extensions[i]);
+ //Debug.Print(extensions[i]);
extensions[i] = extensions[i].ToLowerInvariant();
}
}
Modified: trunk/Drivers/AgateSDL/AgateSDL.csproj
===================================================================
--- trunk/Drivers/AgateSDL/AgateSDL.csproj 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Drivers/AgateSDL/AgateSDL.csproj 2013-02-14 21:44:13 UTC (rev 1355)
@@ -14,7 +14,7 @@
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<OutputType>Library</OutputType>
<AppDesignerFolder>
</AppDesignerFolder>
Modified: trunk/Drivers/AgateSDX/AgateSDX.csproj
===================================================================
--- trunk/Drivers/AgateSDX/AgateSDX.csproj 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Drivers/AgateSDX/AgateSDX.csproj 2013-02-14 21:44:13 UTC (rev 1355)
@@ -16,7 +16,7 @@
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<OutputType>Library</OutputType>
<AppDesignerFolder>
</AppDesignerFolder>
Modified: trunk/Examples/BallBuster.Net/BallBuster.Net.csproj
===================================================================
--- trunk/Examples/BallBuster.Net/BallBuster.Net.csproj 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Examples/BallBuster.Net/BallBuster.Net.csproj 2013-02-14 21:44:13 UTC (rev 1355)
@@ -30,7 +30,7 @@
<IsWebBootstrapper>false</IsWebBootstrapper>
<UseApplicationTrust>false</UseApplicationTrust>
<BootstrapperEnabled>true</BootstrapperEnabled>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
Modified: trunk/Examples/BallBuster.Net/Properties/Resources.Designer.cs
===================================================================
--- trunk/Examples/BallBuster.Net/Properties/Resources.Designer.cs 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Examples/BallBuster.Net/Properties/Resources.Designer.cs 2013-02-14 21:44:13 UTC (rev 1355)
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:4.0.30319.1
+// Runtime Version:4.0.30319.18034
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Modified: trunk/Examples/BallBuster.Net/Properties/Settings.Designer.cs
===================================================================
--- trunk/Examples/BallBuster.Net/Properties/Settings.Designer.cs 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Examples/BallBuster.Net/Properties/Settings.Designer.cs 2013-02-14 21:44:13 UTC (rev 1355)
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:4.0.30319.1
+// Runtime Version:4.0.30319.18034
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -12,7 +12,7 @@
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
Modified: trunk/Examples/BallBuster.Net/app.config
===================================================================
--- trunk/Examples/BallBuster.Net/app.config 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Examples/BallBuster.Net/app.config 2013-02-14 21:44:13 UTC (rev 1355)
@@ -1,3 +1,3 @@
<?xml version="1.0"?>
<configuration>
-<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
+<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>
Modified: trunk/Examples/Pong/Pong.csproj
===================================================================
--- trunk/Examples/Pong/Pong.csproj 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Examples/Pong/Pong.csproj 2013-02-14 21:44:13 UTC (rev 1355)
@@ -15,7 +15,7 @@
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
Modified: trunk/Examples/Pong/Properties/Resources.Designer.cs
===================================================================
--- trunk/Examples/Pong/Properties/Resources.Designer.cs 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Examples/Pong/Properties/Resources.Designer.cs 2013-02-14 21:44:13 UTC (rev 1355)
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:4.0.30319.1
+// Runtime Version:4.0.30319.18034
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
Modified: trunk/Examples/Pong/Properties/Settings.Designer.cs
===================================================================
--- trunk/Examples/Pong/Properties/Settings.Designer.cs 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Examples/Pong/Properties/Settings.Designer.cs 2013-02-14 21:44:13 UTC (rev 1355)
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:4.0.30319.1
+// Runtime Version:4.0.30319.18034
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -12,7 +12,7 @@
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
Modified: trunk/Examples/Pong/app.config
===================================================================
--- trunk/Examples/Pong/app.config 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Examples/Pong/app.config 2013-02-14 21:44:13 UTC (rev 1355)
@@ -1,3 +1,3 @@
<?xml version="1.0"?>
<configuration>
-<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
+<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>
Modified: trunk/Examples/ShootTheTraps/Resources/background.png
===================================================================
(Binary files differ)
Modified: trunk/Examples/ShootTheTraps/ShootTheTraps.csproj
===================================================================
--- trunk/Examples/ShootTheTraps/ShootTheTraps.csproj 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Examples/ShootTheTraps/ShootTheTraps.csproj 2013-02-14 21:44:13 UTC (rev 1355)
@@ -15,7 +15,7 @@
<OldToolsVersion>3.5</OldToolsVersion>
<UpgradeBackupLocation>
</UpgradeBackupLocation>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
@@ -62,6 +62,7 @@
<PlatformTarget>x86</PlatformTarget>
<ErrorReport>prompt</ErrorReport>
<CodeAnalysisFailOnMissingRules>true</CodeAnalysisFailOnMissingRules>
+ <UseVSHostingProcess>false</UseVSHostingProcess>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
<OutputPath>bin\x86\Release\</OutputPath>
Modified: trunk/Examples/ShootTheTraps/app.config
===================================================================
--- trunk/Examples/ShootTheTraps/app.config 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Examples/ShootTheTraps/app.config 2013-02-14 21:44:13 UTC (rev 1355)
@@ -1,3 +1,3 @@
<?xml version="1.0"?>
<configuration>
-<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
+<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>
Modified: trunk/Tests/Tests.csproj
===================================================================
--- trunk/Tests/Tests.csproj 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Tests/Tests.csproj 2013-02-14 21:44:13 UTC (rev 1355)
@@ -14,7 +14,7 @@
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>
</AppDesignerFolder>
Modified: trunk/Tests/app.config
===================================================================
--- trunk/Tests/app.config 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Tests/app.config 2013-02-14 21:44:13 UTC (rev 1355)
@@ -1,3 +1,3 @@
<?xml version="1.0"?>
<configuration>
-<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
+<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>
Modified: trunk/Tools/AgateDataLib/AgateDataLib.csproj
===================================================================
--- trunk/Tools/AgateDataLib/AgateDataLib.csproj 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Tools/AgateDataLib/AgateDataLib.csproj 2013-02-14 21:44:13 UTC (rev 1355)
@@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>DataLib</RootNamespace>
<AssemblyName>DataLib</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<FileUpgradeFlags>
</FileUpgradeFlags>
Modified: trunk/Tools/DatabaseEditor/DatabaseEditor.csproj
===================================================================
--- trunk/Tools/DatabaseEditor/DatabaseEditor.csproj 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Tools/DatabaseEditor/DatabaseEditor.csproj 2013-02-14 21:44:13 UTC (rev 1355)
@@ -10,7 +10,7 @@
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>AgateDatabaseEditor</RootNamespace>
<AssemblyName>DatabaseEditor</AssemblyName>
- <TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
+ <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<FileUpgradeFlags>
</FileUpgradeFlags>
Modified: trunk/Tools/DatabaseEditor/Properties/Resources.Designer.cs
===================================================================
--- trunk/Tools/DatabaseEditor/Properties/Resources.Designer.cs 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Tools/DatabaseEditor/Properties/Resources.Designer.cs 2013-02-14 21:44:13 UTC (rev 1355)
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:4.0.30319.239
+// Runtime Version:4.0.30319.18034
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -60,6 +60,9 @@
}
}
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
internal static System.Drawing.Bitmap CodeGen {
get {
object obj = ResourceManager.GetObject("CodeGen", resourceCulture);
@@ -67,6 +70,9 @@
}
}
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
internal static System.Drawing.Bitmap Error {
get {
object obj = ResourceManager.GetObject("Error", resourceCulture);
@@ -74,6 +80,9 @@
}
}
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
internal static System.Drawing.Bitmap infoBubble {
get {
object obj = ResourceManager.GetObject("infoBubble", resourceCulture);
@@ -81,6 +90,9 @@
}
}
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
internal static System.Drawing.Bitmap NewDocumentHS {
get {
object obj = ResourceManager.GetObject("NewDocumentHS", resourceCulture);
@@ -88,6 +100,9 @@
}
}
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
internal static System.Drawing.Bitmap openHS {
get {
object obj = ResourceManager.GetObject("openHS", resourceCulture);
@@ -95,6 +110,9 @@
}
}
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
internal static System.Drawing.Bitmap saveHS {
get {
object obj = ResourceManager.GetObject("saveHS", resourceCulture);
@@ -102,6 +120,9 @@
}
}
+ /// <summary>
+ /// Looks up a localized resource of type System.Drawing.Bitmap.
+ /// </summary>
internal static System.Drawing.Bitmap warning {
get {
object obj = ResourceManager.GetObject("warning", resourceCulture);
Modified: trunk/Tools/DatabaseEditor/Properties/Settings.Designer.cs
===================================================================
--- trunk/Tools/DatabaseEditor/Properties/Settings.Designer.cs 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Tools/DatabaseEditor/Properties/Settings.Designer.cs 2013-02-14 21:44:13 UTC (rev 1355)
@@ -1,7 +1,7 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:4.0.30319.239
+// Runtime Version:4.0.30319.18034
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
@@ -12,7 +12,7 @@
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
+ [global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "11.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase {
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
Modified: trunk/Tools/DatabaseEditor/app.config
===================================================================
--- trunk/Tools/DatabaseEditor/app.config 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Tools/DatabaseEditor/app.config 2013-02-14 21:44:13 UTC (rev 1355)
@@ -1,3 +1,3 @@
<?xml version="1.0"?>
<configuration>
-<startup><supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/></startup></configuration>
+<startup><supportedRuntime version="v2.0.50727"/></startup></configuration>
Modified: trunk/Tools/FontCreator/FontCreator.csproj
===================================================================
--- trunk/Tools/FontCreator/FontCreator.csproj 2013-02-13 20:08:42 UTC (rev 1354)
+++ trunk/Tools/FontCreator/FontCreator.csproj 2013-02-14 21:44:13 UTC (rev 1355)
@@ -14,7 +14,7 @@
<DefaultHTMLPageLayout>Grid</DefaultHTMLPageLayout>
<DefaultTargetSchema>IE50</DefaultTargetSchema>
<DelaySign>false</DelaySign>
- <TargetFrameworkVersion>v4.0...
[truncated message content] |
|
From: <ka...@us...> - 2013-10-27 18:51:41
|
Revision: 1361
http://sourceforge.net/p/agate/code/1361
Author: kanato
Date: 2013-10-27 18:51:37 +0000 (Sun, 27 Oct 2013)
Log Message:
-----------
Update SlimDX reference to to Jan 2012.
Modified Paths:
--------------
trunk/AgateLib-Windows.sln
trunk/Drivers/AgateSDX/AgateSDX.csproj
Added Paths:
-----------
trunk/UnitTests/
trunk/UnitTests/Properties/
trunk/UnitTests/Properties/AssemblyInfo.cs
trunk/UnitTests/UnitTest1.cs
trunk/UnitTests/UnitTests.csproj
Modified: trunk/AgateLib-Windows.sln
===================================================================
--- trunk/AgateLib-Windows.sln 2013-10-26 06:05:25 UTC (rev 1360)
+++ trunk/AgateLib-Windows.sln 2013-10-27 18:51:37 UTC (rev 1361)
@@ -1,5 +1,5 @@
-Microsoft Visual Studio Solution File, Format Version 11.00
-# Visual Studio 2010
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2012
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Files", "Solution Files", "{6AFA2E43-361A-4AA6-83D9-6DE946C1F0B6}"
ProjectSection(SolutionItems) = preProject
ChangeLog.txt = ChangeLog.txt
@@ -29,6 +29,8 @@
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AgateOTK", "Drivers\AgateOTK\AgateOTK.csproj", "{9E095F03-BA3F-4EAD-A905-2A2647CE4405}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTests", "UnitTests\UnitTests.csproj", "{F22ADCCC-7991-4F52-B2D0-697D60121BB3}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -249,6 +251,27 @@
{9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Release|x64.Build.0 = Release|x64
{9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Release|x86.ActiveCfg = Release|x86
{9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Release|x86.Build.0 = Release|x86
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|Win32.ActiveCfg = Debug|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Public|Any CPU.ActiveCfg = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Public|Any CPU.Build.0 = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Public|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Public|Mixed Platforms.Build.0 = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Public|Win32.ActiveCfg = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Public|x64.ActiveCfg = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Public|x86.ActiveCfg = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|Win32.ActiveCfg = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|x64.ActiveCfg = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Modified: trunk/Drivers/AgateSDX/AgateSDX.csproj
===================================================================
--- trunk/Drivers/AgateSDX/AgateSDX.csproj 2013-10-26 06:05:25 UTC (rev 1360)
+++ trunk/Drivers/AgateSDX/AgateSDX.csproj 2013-10-27 18:51:37 UTC (rev 1361)
@@ -106,7 +106,7 @@
<PlatformTarget>x64</PlatformTarget>
</PropertyGroup>
<ItemGroup>
- <Reference Include="SlimDX, Version=4.0.13.43, Culture=neutral, PublicKeyToken=b1b0c32fd1ffe4f9, processorArchitecture=x86" />
+ <Reference Include="SlimDX, Version=2.0.13.43, Culture=neutral, PublicKeyToken=b1b0c32fd1ffe4f9, processorArchitecture=x86" />
<Reference Include="System">
<Name>System</Name>
</Reference>
Index: trunk/UnitTests
===================================================================
--- trunk/UnitTests 2013-10-26 06:05:25 UTC (rev 1360)
+++ trunk/UnitTests 2013-10-27 18:51:37 UTC (rev 1361)
Property changes on: trunk/UnitTests
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,10 ##
+[Bb]in
+obj
+[Dd]ebug
+[Rr]elease
+*.user
+*.aps
+*.eto
+ClientBin
+GeneratedArtifacts
+_Pvt_Extensions
Added: trunk/UnitTests/Properties/AssemblyInfo.cs
===================================================================
--- trunk/UnitTests/Properties/AssemblyInfo.cs (rev 0)
+++ trunk/UnitTests/Properties/AssemblyInfo.cs 2013-10-27 18:51:37 UTC (rev 1361)
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("UnitTests")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("UnitTests")]
+[assembly: AssemblyCopyright("Copyright © 2013")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("c6c53e7d-5861-4f56-ae31-ddc14e51cd73")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Added: trunk/UnitTests/UnitTest1.cs
===================================================================
--- trunk/UnitTests/UnitTest1.cs (rev 0)
+++ trunk/UnitTests/UnitTest1.cs 2013-10-27 18:51:37 UTC (rev 1361)
@@ -0,0 +1,14 @@
+using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+
+namespace UnitTests
+{
+ [TestClass]
+ public class UnitTest1
+ {
+ [TestMethod]
+ public void TestMethod1()
+ {
+ }
+ }
+}
Added: trunk/UnitTests/UnitTests.csproj
===================================================================
--- trunk/UnitTests/UnitTests.csproj (rev 0)
+++ trunk/UnitTests/UnitTests.csproj 2013-10-27 18:51:37 UTC (rev 1361)
@@ -0,0 +1,83 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{F22ADCCC-7991-4F52-B2D0-697D60121BB3}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>UnitTests</RootNamespace>
+ <AssemblyName>UnitTests</AssemblyName>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
+ <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
+ <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
+ <IsCodedUITest>False</IsCodedUITest>
+ <TestProjectType>UnitTest</TestProjectType>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ </ItemGroup>
+ <Choose>
+ <When Condition="('$(VisualStudioVersion)' == '10.0' or '$(VisualStudioVersion)' == '') and '$(TargetFrameworkVersion)' == 'v3.5'">
+ <ItemGroup>
+ <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
+ </ItemGroup>
+ </When>
+ <Otherwise>
+ <ItemGroup>
+ <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework" />
+ </ItemGroup>
+ </Otherwise>
+ </Choose>
+ <ItemGroup>
+ <Compile Include="UnitTest1.cs" />
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <Choose>
+ <When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
+ <ItemGroup>
+ <Reference Include="Microsoft.VisualStudio.QualityTools.CodedUITestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+ <Private>False</Private>
+ </Reference>
+ <Reference Include="Microsoft.VisualStudio.TestTools.UITest.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+ <Private>False</Private>
+ </Reference>
+ <Reference Include="Microsoft.VisualStudio.TestTools.UITest.Extension, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+ <Private>False</Private>
+ </Reference>
+ <Reference Include="Microsoft.VisualStudio.TestTools.UITesting, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+ <Private>False</Private>
+ </Reference>
+ </ItemGroup>
+ </When>
+ </Choose>
+ <Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ka...@us...> - 2013-10-31 05:13:46
|
Revision: 1362
http://sourceforge.net/p/agate/code/1362
Author: kanato
Date: 2013-10-31 05:13:43 +0000 (Thu, 31 Oct 2013)
Log Message:
-----------
Add Everything solution.
Fix SurfacePacker for video cards that report very large max surface size.
Modified Paths:
--------------
trunk/AgateLib/Utility/SurfacePacker.cs
trunk/AgateLib.sln
trunk/UnitTests/UnitTests.csproj
Added Paths:
-----------
trunk/AgateLib-Everything.sln
Modified: trunk/AgateLib/Utility/SurfacePacker.cs
===================================================================
--- trunk/AgateLib/Utility/SurfacePacker.cs 2013-10-27 18:51:37 UTC (rev 1361)
+++ trunk/AgateLib/Utility/SurfacePacker.cs 2013-10-31 05:13:43 UTC (rev 1362)
@@ -400,6 +400,13 @@
public void PackQueue()
{
Size size = Display.MaxSurfaceSize;
+
+ // Cap the size to avoid running out of memory.
+ // An ATI Radeon 7850 will apparently report a max surface size of 16384x16384, which would take
+ // a GB of memory for the surface. We shouldn't preallocate that much space.
+ if (size.Width > 2048) size.Width = 2048;
+ if (size.Height > 2048) size.Height = 2048;
+
PackedSurface packedSurf = new PackedSurface(size);
foreach (Surface surf in mSurfQueue)
Added: trunk/AgateLib-Everything.sln
===================================================================
--- trunk/AgateLib-Everything.sln (rev 0)
+++ trunk/AgateLib-Everything.sln 2013-10-31 05:13:43 UTC (rev 1362)
@@ -0,0 +1,567 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio 2012
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Files", "Solution Files", "{6AFA2E43-361A-4AA6-83D9-6DE946C1F0B6}"
+ ProjectSection(SolutionItems) = preProject
+ ChangeLog.txt = ChangeLog.txt
+ ReleaseNotes.txt = ReleaseNotes.txt
+ TODO.txt = TODO.txt
+ EndProjectSection
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Tests", "Tests\Tests.csproj", "{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}"
+ ProjectSection(ProjectDependencies) = postProject
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405} = {9E095F03-BA3F-4EAD-A905-2A2647CE4405}
+ {EF993B30-D9A9-4962-80BB-6826D39B3465} = {EF993B30-D9A9-4962-80BB-6826D39B3465}
+ {164A785D-924E-40FB-A517-D7E677F3B53A} = {164A785D-924E-40FB-A517-D7E677F3B53A}
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003} = {00C7FA95-98F4-43D9-9B63-34122B1DB003}
+ EndProjectSection
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AgateLib.WinForms", "Drivers\AgateLib.WinForms\AgateLib.WinForms.csproj", "{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AgateDrawing", "Drivers\AgateDrawing\AgateDrawing.csproj", "{164A785D-924E-40FB-A517-D7E677F3B53A}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AgateSDL", "Drivers\AgateSDL\AgateSDL.csproj", "{00C7FA95-98F4-43D9-9B63-34122B1DB003}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AgateSDX", "Drivers\AgateSDX\AgateSDX.csproj", "{EF993B30-D9A9-4962-80BB-6826D39B3465}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AgateLib", "AgateLib\AgateLib.csproj", "{9490B719-829E-43A7-A5FE-8001F8A81759}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AgateFMOD", "Drivers\AgateFMOD\AgateFMOD.csproj", "{424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AgateOTK", "Drivers\AgateOTK\AgateOTK.csproj", "{9E095F03-BA3F-4EAD-A905-2A2647CE4405}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTests", "UnitTests\UnitTests.csproj", "{F22ADCCC-7991-4F52-B2D0-697D60121BB3}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ResourceEditor", "Tools\ResourceEditor\ResourceEditor.csproj", "{FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PackedSpriteCreator", "Tools\PackedSpriteCreator\PackedSpriteCreator.csproj", "{C653C244-F604-4BA4-8822-D04FA9ACEFA5}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FontCreator", "Tools\FontCreator\FontCreator.csproj", "{A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NotebookLib", "Tools\NotebookLib\NotebookLib\NotebookLib.csproj", "{91F57346-B574-4D52-9EB0-AA191B552C94}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "AgateDataLib", "Tools\AgateDataLib\AgateDataLib.csproj", "{2F7A686B-2272-4803-9EF9-0B34BA7802DC}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DatabaseEditor", "Tools\DatabaseEditor\DatabaseEditor.csproj", "{685E7B82-4609-4ABB-B25B-0DC7C58BD45F}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "BallBuster.Net", "Examples\BallBuster.Net\BallBuster.Net.csproj", "{DD3CF4AA-02CC-4881-AFB1-6F10DFA1F8AF}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ShootTheTraps", "Examples\ShootTheTraps\ShootTheTraps.csproj", "{50743D1B-A19E-42F1-842F-65FAD6D168C3}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Pong", "Examples\Pong\Pong.csproj", "{436641C4-846C-42D0-8E8F-95F70E211D22}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Debug|Mixed Platforms = Debug|Mixed Platforms
+ Debug|Win32 = Debug|Win32
+ Debug|x64 = Debug|x64
+ Debug|x86 = Debug|x86
+ Public|Any CPU = Public|Any CPU
+ Public|Mixed Platforms = Public|Mixed Platforms
+ Public|Win32 = Public|Win32
+ Public|x64 = Public|x64
+ Public|x86 = Public|x86
+ Release|Any CPU = Release|Any CPU
+ Release|Mixed Platforms = Release|Mixed Platforms
+ Release|Win32 = Release|Win32
+ Release|x64 = Release|x64
+ Release|x86 = Release|x86
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|Mixed Platforms.Build.0 = Debug|x86
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|Win32.ActiveCfg = Debug|x86
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|x64.ActiveCfg = Debug|x64
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|x64.Build.0 = Debug|x64
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|x86.ActiveCfg = Debug|x86
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|x86.Build.0 = Debug|x86
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Public|Any CPU.ActiveCfg = Release|x86
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Public|Mixed Platforms.ActiveCfg = Release|x86
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Public|Mixed Platforms.Build.0 = Release|x86
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Public|Win32.ActiveCfg = Release|x86
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Public|x64.ActiveCfg = Release|x86
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Public|x86.ActiveCfg = Release|x86
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Public|x86.Build.0 = Release|x86
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|Any CPU.Build.0 = Release|Any CPU
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|Mixed Platforms.Build.0 = Release|x86
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|Win32.ActiveCfg = Release|x86
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|x64.ActiveCfg = Release|x64
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|x64.Build.0 = Release|x64
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|x86.ActiveCfg = Release|x86
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|x86.Build.0 = Release|x86
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|Mixed Platforms.Build.0 = Debug|x86
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|Win32.ActiveCfg = Debug|x86
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|x64.ActiveCfg = Debug|x64
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|x64.Build.0 = Debug|x64
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|x86.ActiveCfg = Debug|x86
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|x86.Build.0 = Debug|x86
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Public|Any CPU.ActiveCfg = Release|x86
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Public|Mixed Platforms.ActiveCfg = Release|x86
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Public|Mixed Platforms.Build.0 = Release|x86
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Public|Win32.ActiveCfg = Release|x86
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Public|x64.ActiveCfg = Release|x86
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Public|x86.ActiveCfg = Release|x86
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Public|x86.Build.0 = Release|x86
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|Any CPU.Build.0 = Release|Any CPU
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|Mixed Platforms.Build.0 = Release|x86
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|Win32.ActiveCfg = Release|x86
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|x64.ActiveCfg = Release|x64
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|x64.Build.0 = Release|x64
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|x86.ActiveCfg = Release|x86
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|x86.Build.0 = Release|x86
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|Mixed Platforms.Build.0 = Debug|x86
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|Win32.ActiveCfg = Debug|x86
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|x64.ActiveCfg = Debug|x64
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|x64.Build.0 = Debug|x64
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|x86.ActiveCfg = Debug|x86
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|x86.Build.0 = Debug|x86
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Public|Any CPU.ActiveCfg = Release|x86
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Public|Mixed Platforms.ActiveCfg = Release|x86
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Public|Mixed Platforms.Build.0 = Release|x86
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Public|Win32.ActiveCfg = Release|x86
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Public|x64.ActiveCfg = Release|x86
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Public|x86.ActiveCfg = Release|x86
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Public|x86.Build.0 = Release|x86
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Release|Mixed Platforms.Build.0 = Release|x86
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Release|Win32.ActiveCfg = Release|x86
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Release|x64.ActiveCfg = Release|x64
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Release|x64.Build.0 = Release|x64
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Release|x86.ActiveCfg = Release|x86
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Release|x86.Build.0 = Release|x86
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|Mixed Platforms.Build.0 = Debug|x86
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|Win32.ActiveCfg = Debug|x86
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|x64.ActiveCfg = Debug|x64
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|x64.Build.0 = Debug|x64
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|x86.ActiveCfg = Debug|x86
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|x86.Build.0 = Debug|x86
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Public|Any CPU.ActiveCfg = Release|x86
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Public|Mixed Platforms.ActiveCfg = Release|x86
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Public|Mixed Platforms.Build.0 = Release|x86
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Public|Win32.ActiveCfg = Release|x86
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Public|x64.ActiveCfg = Release|x86
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Public|x86.ActiveCfg = Release|x86
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Public|x86.Build.0 = Release|x86
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|Any CPU.Build.0 = Release|Any CPU
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|Mixed Platforms.Build.0 = Release|x86
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|Win32.ActiveCfg = Release|x86
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|x64.ActiveCfg = Release|x64
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|x64.Build.0 = Release|x64
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|x86.ActiveCfg = Release|x86
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|x86.Build.0 = Release|x86
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|Mixed Platforms.Build.0 = Debug|x86
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|Win32.ActiveCfg = Debug|Any CPU
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|x64.ActiveCfg = Debug|x64
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|x64.Build.0 = Debug|x64
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|x86.ActiveCfg = Debug|x86
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|x86.Build.0 = Debug|x86
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|Any CPU.ActiveCfg = Release|Any CPU
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|Any CPU.Build.0 = Release|Any CPU
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|Mixed Platforms.Build.0 = Release|Any CPU
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|Win32.ActiveCfg = Release|Any CPU
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|x64.ActiveCfg = Release|x64
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|x64.Build.0 = Release|x64
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|x86.ActiveCfg = Release|x64
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Release|Any CPU.Build.0 = Release|Any CPU
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Release|Win32.ActiveCfg = Release|Any CPU
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Release|x64.ActiveCfg = Release|x64
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Release|x64.Build.0 = Release|x64
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Release|x86.ActiveCfg = Release|x86
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Release|x86.Build.0 = Release|x86
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Debug|Mixed Platforms.Build.0 = Debug|x86
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Debug|Win32.ActiveCfg = Debug|x86
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Debug|x64.ActiveCfg = Debug|x64
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Debug|x64.Build.0 = Debug|x64
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Debug|x86.ActiveCfg = Debug|x86
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Debug|x86.Build.0 = Debug|x86
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Public|Any CPU.ActiveCfg = Release|x86
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Public|Mixed Platforms.ActiveCfg = Release|x86
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Public|Mixed Platforms.Build.0 = Release|x86
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Public|Win32.ActiveCfg = Release|x86
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Public|x64.ActiveCfg = Release|x86
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Public|x86.ActiveCfg = Release|x86
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Public|x86.Build.0 = Release|x86
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Release|Any CPU.Build.0 = Release|Any CPU
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Release|Mixed Platforms.Build.0 = Release|x86
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Release|Win32.ActiveCfg = Release|x86
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Release|x64.ActiveCfg = Release|x64
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Release|x64.Build.0 = Release|x64
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Release|x86.ActiveCfg = Release|x86
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Release|x86.Build.0 = Release|x86
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Debug|Mixed Platforms.Build.0 = Debug|x86
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Debug|Win32.ActiveCfg = Debug|x86
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Debug|x64.ActiveCfg = Debug|x64
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Debug|x64.Build.0 = Debug|x64
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Debug|x86.ActiveCfg = Debug|x86
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Debug|x86.Build.0 = Debug|x86
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Public|Any CPU.ActiveCfg = Release|x86
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Public|Mixed Platforms.ActiveCfg = Release|x86
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Public|Mixed Platforms.Build.0 = Release|x86
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Public|Win32.ActiveCfg = Release|x86
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Public|x64.ActiveCfg = Release|x86
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Public|x86.ActiveCfg = Release|x86
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Public|x86.Build.0 = Release|x86
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Release|Any CPU.Build.0 = Release|Any CPU
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Release|Mixed Platforms.Build.0 = Release|x86
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Release|Win32.ActiveCfg = Release|x86
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Release|x64.ActiveCfg = Release|x64
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Release|x64.Build.0 = Release|x64
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Release|x86.ActiveCfg = Release|x86
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Release|x86.Build.0 = Release|x86
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Debug|Mixed Platforms.Build.0 = Debug|x86
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Debug|Win32.ActiveCfg = Debug|x86
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Debug|x64.ActiveCfg = Debug|x64
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Debug|x64.Build.0 = Debug|x64
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Debug|x86.ActiveCfg = Debug|x86
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Debug|x86.Build.0 = Debug|x86
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Public|Any CPU.ActiveCfg = Release|x86
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Public|Mixed Platforms.ActiveCfg = Release|x86
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Public|Mixed Platforms.Build.0 = Release|x86
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Public|Win32.ActiveCfg = Release|x86
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Public|x64.ActiveCfg = Release|x86
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Public|x86.ActiveCfg = Release|x86
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Public|x86.Build.0 = Release|x86
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Release|Any CPU.Build.0 = Release|Any CPU
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Release|Mixed Platforms.Build.0 = Release|x86
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Release|Win32.ActiveCfg = Release|x86
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Release|x64.ActiveCfg = Release|x64
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Release|x64.Build.0 = Release|x64
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Release|x86.ActiveCfg = Release|x86
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Release|x86.Build.0 = Release|x86
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|Win32.ActiveCfg = Debug|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Public|Any CPU.ActiveCfg = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Public|Any CPU.Build.0 = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Public|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Public|Mixed Platforms.Build.0 = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Public|Win32.ActiveCfg = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Public|x64.ActiveCfg = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Public|x86.ActiveCfg = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|Win32.ActiveCfg = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|x64.ActiveCfg = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|x86.ActiveCfg = Release|Any CPU
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Debug|Mixed Platforms.Build.0 = Debug|x86
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Debug|Win32.ActiveCfg = Debug|x86
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Debug|Win32.Build.0 = Debug|x86
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Debug|x64.ActiveCfg = Debug|x64
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Debug|x64.Build.0 = Debug|x64
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Debug|x86.ActiveCfg = Debug|x86
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Debug|x86.Build.0 = Debug|x86
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Public|Any CPU.ActiveCfg = Release|Any CPU
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Public|Any CPU.Build.0 = Release|Any CPU
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Public|Mixed Platforms.ActiveCfg = Release|x86
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Public|Mixed Platforms.Build.0 = Release|x86
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Public|Win32.ActiveCfg = Release|x86
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Public|Win32.Build.0 = Release|x86
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Public|x64.ActiveCfg = Release|x64
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Public|x64.Build.0 = Release|x64
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Public|x86.ActiveCfg = Release|x86
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Public|x86.Build.0 = Release|x86
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Release|Mixed Platforms.Build.0 = Release|x86
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Release|Win32.ActiveCfg = Release|x86
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Release|Win32.Build.0 = Release|x86
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Release|x64.ActiveCfg = Release|x64
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Release|x64.Build.0 = Release|x64
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Release|x86.ActiveCfg = Release|x86
+ {FAB0D7E5-E6AF-4B29-BFE1-6545D6C22621}.Release|x86.Build.0 = Release|x86
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Debug|Mixed Platforms.Build.0 = Debug|x86
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Debug|Win32.ActiveCfg = Debug|x86
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Debug|Win32.Build.0 = Debug|x86
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Debug|x64.ActiveCfg = Debug|x64
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Debug|x64.Build.0 = Debug|x64
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Debug|x86.ActiveCfg = Debug|x86
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Debug|x86.Build.0 = Debug|x86
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Public|Any CPU.ActiveCfg = Release|Any CPU
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Public|Any CPU.Build.0 = Release|Any CPU
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Public|Mixed Platforms.ActiveCfg = Release|x86
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Public|Mixed Platforms.Build.0 = Release|x86
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Public|Win32.ActiveCfg = Release|x86
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Public|Win32.Build.0 = Release|x86
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Public|x64.ActiveCfg = Release|x64
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Public|x64.Build.0 = Release|x64
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Public|x86.ActiveCfg = Release|x86
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Public|x86.Build.0 = Release|x86
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Release|Any CPU.Build.0 = Release|Any CPU
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Release|Mixed Platforms.Build.0 = Release|x86
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Release|Win32.ActiveCfg = Release|x86
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Release|Win32.Build.0 = Release|x86
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Release|x64.ActiveCfg = Release|x64
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Release|x64.Build.0 = Release|x64
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Release|x86.ActiveCfg = Release|x86
+ {C653C244-F604-4BA4-8822-D04FA9ACEFA5}.Release|x86.Build.0 = Release|x86
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Debug|Mixed Platforms.Build.0 = Debug|x86
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Debug|Win32.ActiveCfg = Debug|x86
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Debug|Win32.Build.0 = Debug|x86
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Debug|x64.ActiveCfg = Debug|x64
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Debug|x64.Build.0 = Debug|x64
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Debug|x86.ActiveCfg = Debug|x86
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Debug|x86.Build.0 = Debug|x86
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Public|Any CPU.ActiveCfg = Release|Any CPU
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Public|Any CPU.Build.0 = Release|Any CPU
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Public|Mixed Platforms.ActiveCfg = Release|x86
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Public|Mixed Platforms.Build.0 = Release|x86
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Public|Win32.ActiveCfg = Release|x86
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Public|Win32.Build.0 = Release|x86
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Public|x64.ActiveCfg = Release|x64
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Public|x64.Build.0 = Release|x64
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Public|x86.ActiveCfg = Release|x86
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Public|x86.Build.0 = Release|x86
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A18DEAA1-EB7F-4B4A-B93A-83A2CAD5954A}.Releas...
[truncated message content] |
|
From: <ka...@us...> - 2013-11-10 17:57:25
|
Revision: 1365
http://sourceforge.net/p/agate/code/1365
Author: kanato
Date: 2013-11-10 17:57:21 +0000 (Sun, 10 Nov 2013)
Log Message:
-----------
Add MSBuild Community Tasks project to for CI builds with abillity to include revision information in output file versions.
Modified Paths:
--------------
trunk/AgateLib/AgateLib.csproj
trunk/AgateLib/Meshes/Loaders/ObjFile/OBJFileRepresentation.cs
trunk/AgateLib/Meshes/Loaders/ObjFile/Parser.cs
trunk/AgateLib/Meshes/Loaders/ObjFile/TokenTypes.cs
trunk/AgateLib/Properties/AssemblyInfo.cs
trunk/AgateLib-Windows.sln
trunk/Documentation/Doxyfile
trunk/Drivers/AgateDrawing/AgateDrawing.csproj
trunk/Drivers/AgateDrawing/Properties/AssemblyInfo.cs
trunk/Drivers/AgateFMOD/AgateFMOD.csproj
trunk/Drivers/AgateFMOD/Properties/AssemblyInfo.cs
trunk/Drivers/AgateLib.WinForms/AgateLib.WinForms.csproj
trunk/Drivers/AgateLib.WinForms/Properties/AssemblyInfo.cs
trunk/Drivers/AgateOTK/AgateOTK.csproj
trunk/Drivers/AgateOTK/Properties/AssemblyInfo.cs
trunk/Drivers/AgateSDL/AgateSDL.csproj
trunk/Drivers/AgateSDL/Properties/AssemblyInfo.cs
trunk/Drivers/AgateSDX/AgateSDX.csproj
trunk/Drivers/AgateSDX/Properties/AssemblyInfo.cs
trunk/Drivers/AgateSDX/SDX_DisplayWindow.cs
trunk/Examples/BallBuster.Net/Properties/AssemblyInfo.cs
trunk/Examples/Pong/Properties/AssemblyInfo.cs
trunk/Examples/ShootTheTraps/Properties/AssemblyInfo.cs
trunk/Tests/Properties/AssemblyInfo.cs
trunk/Tests/Tests.csproj
trunk/Tools/AgateDataLib/Properties/AssemblyInfo.cs
trunk/Tools/DatabaseEditor/Properties/AssemblyInfo.cs
trunk/Tools/FontCreator/Properties/AssemblyInfo.cs
trunk/Tools/NotebookLib/NotebookLib/Properties/AssemblyInfo.cs
trunk/Tools/NotebookLib/Tester/Properties/AssemblyInfo.cs
trunk/Tools/PackedSpriteCreator/Properties/AssemblyInfo.cs
trunk/Tools/ResourceEditor/Properties/AssemblyInfo.cs
trunk/UnitTests/Properties/AssemblyInfo.cs
trunk/UnitTests/UnitTests.csproj
Added Paths:
-----------
trunk/.build/
trunk/.build/MSBuild.Community.Tasks.dll
trunk/.build/MSBuild.Community.Tasks.targets
trunk/AgateLib/Meshes/Loaders/ObjFile/
trunk/AgateLib/packages.config
trunk/Build.proj
trunk/Drivers/AgateDrawing/packages.config
trunk/Drivers/AgateFMOD/packages.config
trunk/Drivers/AgateLib.WinForms/packages.config
trunk/Drivers/AgateOTK/packages.config
trunk/Drivers/AgateSDL/packages.config
trunk/Drivers/AgateSDX/packages.config
trunk/Tests/packages.config
trunk/UnitTests/packages.config
Removed Paths:
-------------
trunk/AgateLib/Meshes/Loaders/Obj/
Added: trunk/.build/MSBuild.Community.Tasks.dll
===================================================================
(Binary files differ)
Index: trunk/.build/MSBuild.Community.Tasks.dll
===================================================================
--- trunk/.build/MSBuild.Community.Tasks.dll 2013-10-31 05:46:47 UTC (rev 1364)
+++ trunk/.build/MSBuild.Community.Tasks.dll 2013-11-10 17:57:21 UTC (rev 1365)
Property changes on: trunk/.build/MSBuild.Community.Tasks.dll
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Added: trunk/.build/MSBuild.Community.Tasks.targets
===================================================================
--- trunk/.build/MSBuild.Community.Tasks.targets (rev 0)
+++ trunk/.build/MSBuild.Community.Tasks.targets 2013-11-10 17:57:21 UTC (rev 1365)
@@ -0,0 +1,150 @@
+<?xml version="1.0" encoding="utf-8" ?>
+<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <!-- $Id$ -->
+
+ <PropertyGroup>
+ <MSBuildCommunityTasksPath Condition="'$(MSBuildCommunityTasksPath)' == ''">$(MSBuildExtensionsPath)\MSBuildCommunityTasks</MSBuildCommunityTasksPath>
+ <MSBuildCommunityTasksLib>$([MSBUILD]::Unescape($(MSBuildCommunityTasksPath)\MSBuild.Community.Tasks.dll))</MSBuildCommunityTasksLib>
+ </PropertyGroup>
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.AspNet.InstallAspNet" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.AssemblyInfo" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Attrib" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Beep" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.DeleteTree" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.EmbedNativeResource" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SqlExecute" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.FileUpdate" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.FtpUpload" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.FxCop" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.GacUtil" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.GetSolutionProjects" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.ILMerge" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Mail" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Merge" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.MV" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Ftp.FtpCreateRemoteDirectory" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Ftp.FtpDirectoryExists" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Ftp.FtpUploadDirectoryContent" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Math.Add" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Math.Divide" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Math.Modulo" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Math.Multiple" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Math.Subtract" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.NDoc" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.NUnit" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Oracle.AddTnsName" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Prompt" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RegistryRead" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RegistryWrite" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RegexMatch" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RegexReplace" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RegexCompiler" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.RoboCopy" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Script" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.ServiceController" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.ServiceQuery" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sleep" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.AppPoolController" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.AppPoolCreate" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.AppPoolDelete" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.WebDirectoryCreate" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.WebDirectoryDelete" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.WebDirectoryScriptMap" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.IIS.WebDirectorySetting" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Install.InstallAssembly" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Install.UninstallAssembly" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Schema.TaskSchema" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sound" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssAdd" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssCheckin" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssCheckout" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssClean" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssDiff" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssGet" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssHistory" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssLabel" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceSafe.VssUndoCheckout" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceServer.SrcTool" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceServer.PdbStr" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SourceServer.SvnSourceIndex" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SqlServer.ExecuteDDL" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SqlServer.SqlPubWiz" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnCheckout" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnClient" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnCopy" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnCommit" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnExport" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnInfo" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnUpdate" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnVersion" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Subversion.SvnStatus" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Tfs.TfsClient" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.TemplateFile" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Time" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Unzip" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Version" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.WebDownload" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Xml.XmlMassUpdate" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Xml.XmlQuery" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.XmlRead" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.XmlUpdate" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Xslt" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Zip" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.JavaScript.JSCompress" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.User" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Computer" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sandcastle.BuildAssembler" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sandcastle.ChmBuilder" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sandcastle.DBCSFix" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sandcastle.MRefBuilder" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sandcastle.Sandcastle" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Sandcastle.XslTransform" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.HtmlHelp.ChmCompiler" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.HtmlHelp.HxCompiler" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.SymbolServer.SymStore" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Net.HttpRequest" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.NuGet.NuGetPack" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.NuGet.NuGetPush" />
+
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Git.GitClient" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Git.GitVersion" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Git.GitBranch" />
+ <UsingTask AssemblyFile="$(MSBuildCommunityTasksLib)" TaskName="MSBuild.Community.Tasks.Git.GitDescribe" />
+
+ <ItemGroup>
+ <FxCopRuleAssemblies Include="UsageRules.dll"/>
+ <FxCopRuleAssemblies Include="SecurityRules.dll"/>
+ <FxCopRuleAssemblies Include="PortabilityRules.dll"/>
+ <FxCopRuleAssemblies Include="PerformanceRules.dll"/>
+ <FxCopRuleAssemblies Include="MobilityRules.dll"/>
+ <FxCopRuleAssemblies Include="InteroperabilityRules.dll"/>
+ <FxCopRuleAssemblies Include="GlobalizationRules.dll"/>
+ <FxCopRuleAssemblies Include="DesignRules.dll"/>
+ </ItemGroup>
+</Project>
Modified: trunk/AgateLib/AgateLib.csproj
===================================================================
--- trunk/AgateLib/AgateLib.csproj 2013-10-31 05:46:47 UTC (rev 1364)
+++ trunk/AgateLib/AgateLib.csproj 2013-11-10 17:57:21 UTC (rev 1365)
@@ -451,13 +451,13 @@
<Compile Include="Meshes\Loaders\OBJFileRepresentation.cs">
<SubType>Code</SubType>
</Compile>
- <Compile Include="Meshes\Loaders\Obj\OBJFileRepresentation.cs">
+ <Compile Include="Meshes\Loaders\ObjFile\OBJFileRepresentation.cs">
<SubType>Code</SubType>
</Compile>
- <Compile Include="Meshes\Loaders\Obj\Parser.cs">
+ <Compile Include="Meshes\Loaders\ObjFile\Parser.cs">
<SubType>Code</SubType>
</Compile>
- <Compile Include="Meshes\Loaders\Obj\TokenTypes.cs">
+ <Compile Include="Meshes\Loaders\ObjFile\TokenTypes.cs">
<SubType>Code</SubType>
</Compile>
<Compile Include="Particles\Particle.cs">
@@ -596,6 +596,7 @@
<None Include="InternalResources\agate-black-gui.zip" />
<None Include="InternalResources\Fonts.zip" />
<None Include="InternalResources\images.tar.gz" />
+ <None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSHARP.Targets" />
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
Modified: trunk/AgateLib/Meshes/Loaders/ObjFile/OBJFileRepresentation.cs
===================================================================
(Binary files differ)
Modified: trunk/AgateLib/Meshes/Loaders/ObjFile/Parser.cs
===================================================================
(Binary files differ)
Modified: trunk/AgateLib/Meshes/Loaders/ObjFile/TokenTypes.cs
===================================================================
--- trunk/AgateLib/Meshes/Loaders/Obj/TokenTypes.cs 2013-10-31 05:46:47 UTC (rev 1364)
+++ trunk/AgateLib/Meshes/Loaders/ObjFile/TokenTypes.cs 2013-11-10 17:57:21 UTC (rev 1365)
@@ -10,7 +10,7 @@
//
// The Original Code is AgateLib.
//
-namespace AgateLib.Meshes.Loaders.Obj
+namespace AgateLib.Meshes.Loaders.ObjFile
{
internal enum TokenTypes
{
Modified: trunk/AgateLib/Properties/AssemblyInfo.cs
===================================================================
--- trunk/AgateLib/Properties/AssemblyInfo.cs 2013-10-31 05:46:47 UTC (rev 1364)
+++ trunk/AgateLib/Properties/AssemblyInfo.cs 2013-11-10 17:57:21 UTC (rev 1365)
@@ -30,7 +30,7 @@
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("AgateLib")]
-[assembly: AssemblyCopyright("Copyright © 2006-9")]
+[assembly: AssemblyCopyright("Copyright © 2006-2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
@@ -51,6 +51,6 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.9.0")]
-[assembly: AssemblyFileVersion("0.3.9.0")]
+[assembly: AssemblyVersion("0.3.5.1456")]
+[assembly: AssemblyFileVersion("0.3.5.1456")]
[assembly: NeutralResourcesLanguageAttribute("en")]
Added: trunk/AgateLib/packages.config
===================================================================
--- trunk/AgateLib/packages.config (rev 0)
+++ trunk/AgateLib/packages.config 2013-11-10 17:57:21 UTC (rev 1365)
@@ -0,0 +1,4 @@
+<?xml version="1.0" encoding="utf-8"?>
+<packages>
+ <package id="MSBuildTasks" version="1.4.0.65" targetFramework="net35" />
+</packages>
\ No newline at end of file
Modified: trunk/AgateLib-Windows.sln
===================================================================
--- trunk/AgateLib-Windows.sln 2013-10-31 05:46:47 UTC (rev 1364)
+++ trunk/AgateLib-Windows.sln 2013-11-10 17:57:21 UTC (rev 1365)
@@ -31,245 +31,167 @@
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTests", "UnitTests\UnitTests.csproj", "{F22ADCCC-7991-4F52-B2D0-697D60121BB3}"
EndProject
+Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".build", ".build", "{761301C3-2DC0-4F66-8B66-B16DF998F6C0}"
+ ProjectSection(SolutionItems) = preProject
+ Build.proj = Build.proj
+ .build\MSBuild.Community.Tasks.dll = .build\MSBuild.Community.Tasks.dll
+ .build\MSBuild.Community.Tasks.targets = .build\MSBuild.Community.Tasks.targets
+ EndProjectSection
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
- Debug|Mixed Platforms = Debug|Mixed Platforms
- Debug|Win32 = Debug|Win32
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Public|Any CPU = Public|Any CPU
- Public|Mixed Platforms = Public|Mixed Platforms
- Public|Win32 = Public|Win32
Public|x64 = Public|x64
Public|x86 = Public|x86
Release|Any CPU = Release|Any CPU
- Release|Mixed Platforms = Release|Mixed Platforms
- Release|Win32 = Release|Win32
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
- {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|Mixed Platforms.Build.0 = Debug|x86
- {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|Win32.ActiveCfg = Debug|x86
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|x64.ActiveCfg = Debug|x64
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|x64.Build.0 = Debug|x64
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|x86.ActiveCfg = Debug|x86
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|x86.Build.0 = Debug|x86
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Public|Any CPU.ActiveCfg = Release|x86
- {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Public|Mixed Platforms.ActiveCfg = Release|x86
- {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Public|Mixed Platforms.Build.0 = Release|x86
- {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Public|Win32.ActiveCfg = Release|x86
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Public|x64.ActiveCfg = Release|x86
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Public|x86.ActiveCfg = Release|x86
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Public|x86.Build.0 = Release|x86
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|Any CPU.Build.0 = Release|Any CPU
- {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|Mixed Platforms.ActiveCfg = Release|x86
- {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|Mixed Platforms.Build.0 = Release|x86
- {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|Win32.ActiveCfg = Release|x86
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|x64.ActiveCfg = Release|x64
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|x64.Build.0 = Release|x64
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|x86.ActiveCfg = Release|x86
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|x86.Build.0 = Release|x86
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
- {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|Mixed Platforms.Build.0 = Debug|x86
- {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|Win32.ActiveCfg = Debug|x86
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|x64.ActiveCfg = Debug|x64
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|x64.Build.0 = Debug|x64
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|x86.ActiveCfg = Debug|x86
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|x86.Build.0 = Debug|x86
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Public|Any CPU.ActiveCfg = Release|x86
- {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Public|Mixed Platforms.ActiveCfg = Release|x86
- {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Public|Mixed Platforms.Build.0 = Release|x86
- {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Public|Win32.ActiveCfg = Release|x86
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Public|x64.ActiveCfg = Release|x86
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Public|x86.ActiveCfg = Release|x86
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Public|x86.Build.0 = Release|x86
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|Any CPU.Build.0 = Release|Any CPU
- {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|Mixed Platforms.ActiveCfg = Release|x86
- {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|Mixed Platforms.Build.0 = Release|x86
- {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|Win32.ActiveCfg = Release|x86
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|x64.ActiveCfg = Release|x64
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|x64.Build.0 = Release|x64
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|x86.ActiveCfg = Release|x86
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|x86.Build.0 = Release|x86
{164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
- {164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|Mixed Platforms.Build.0 = Debug|x86
- {164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|Win32.ActiveCfg = Debug|x86
{164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|x64.ActiveCfg = Debug|x64
{164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|x64.Build.0 = Debug|x64
{164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|x86.ActiveCfg = Debug|x86
{164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|x86.Build.0 = Debug|x86
{164A785D-924E-40FB-A517-D7E677F3B53A}.Public|Any CPU.ActiveCfg = Release|x86
- {164A785D-924E-40FB-A517-D7E677F3B53A}.Public|Mixed Platforms.ActiveCfg = Release|x86
- {164A785D-924E-40FB-A517-D7E677F3B53A}.Public|Mixed Platforms.Build.0 = Release|x86
- {164A785D-924E-40FB-A517-D7E677F3B53A}.Public|Win32.ActiveCfg = Release|x86
{164A785D-924E-40FB-A517-D7E677F3B53A}.Public|x64.ActiveCfg = Release|x86
{164A785D-924E-40FB-A517-D7E677F3B53A}.Public|x86.ActiveCfg = Release|x86
{164A785D-924E-40FB-A517-D7E677F3B53A}.Public|x86.Build.0 = Release|x86
{164A785D-924E-40FB-A517-D7E677F3B53A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{164A785D-924E-40FB-A517-D7E677F3B53A}.Release|Any CPU.Build.0 = Release|Any CPU
- {164A785D-924E-40FB-A517-D7E677F3B53A}.Release|Mixed Platforms.ActiveCfg = Release|x86
- {164A785D-924E-40FB-A517-D7E677F3B53A}.Release|Mixed Platforms.Build.0 = Release|x86
- {164A785D-924E-40FB-A517-D7E677F3B53A}.Release|Win32.ActiveCfg = Release|x86
{164A785D-924E-40FB-A517-D7E677F3B53A}.Release|x64.ActiveCfg = Release|x64
{164A785D-924E-40FB-A517-D7E677F3B53A}.Release|x64.Build.0 = Release|x64
{164A785D-924E-40FB-A517-D7E677F3B53A}.Release|x86.ActiveCfg = Release|x86
{164A785D-924E-40FB-A517-D7E677F3B53A}.Release|x86.Build.0 = Release|x86
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
- {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|Mixed Platforms.Build.0 = Debug|x86
- {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|Win32.ActiveCfg = Debug|x86
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|x64.ActiveCfg = Debug|x64
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|x64.Build.0 = Debug|x64
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|x86.ActiveCfg = Debug|x86
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|x86.Build.0 = Debug|x86
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Public|Any CPU.ActiveCfg = Release|x86
- {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Public|Mixed Platforms.ActiveCfg = Release|x86
- {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Public|Mixed Platforms.Build.0 = Release|x86
- {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Public|Win32.ActiveCfg = Release|x86
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Public|x64.ActiveCfg = Release|x86
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Public|x86.ActiveCfg = Release|x86
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Public|x86.Build.0 = Release|x86
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|Any CPU.ActiveCfg = Release|Any CPU
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|Any CPU.Build.0 = Release|Any CPU
- {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|Mixed Platforms.ActiveCfg = Release|x86
- {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|Mixed Platforms.Build.0 = Release|x86
- {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|Win32.ActiveCfg = Release|x86
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|x64.ActiveCfg = Release|x64
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|x64.Build.0 = Release|x64
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|x86.ActiveCfg = Release|x86
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|x86.Build.0 = Release|x86
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
- {EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|Mixed Platforms.Build.0 = Debug|x86
- {EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|Win32.ActiveCfg = Debug|Any CPU
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|x64.ActiveCfg = Debug|x64
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|x64.Build.0 = Debug|x64
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|x86.ActiveCfg = Debug|x86
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|x86.Build.0 = Debug|x86
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|Any CPU.ActiveCfg = Release|Any CPU
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|Any CPU.Build.0 = Release|Any CPU
- {EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|Mixed Platforms.ActiveCfg = Release|Any CPU
- {EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|Mixed Platforms.Build.0 = Release|Any CPU
- {EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|Win32.ActiveCfg = Release|Any CPU
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|x64.ActiveCfg = Release|x64
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|x64.Build.0 = Release|x64
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|x86.ActiveCfg = Rel...
[truncated message content] |
|
From: <ka...@us...> - 2013-11-10 18:26:57
|
Revision: 1366
http://sourceforge.net/p/agate/code/1366
Author: kanato
Date: 2013-11-10 18:26:54 +0000 (Sun, 10 Nov 2013)
Log Message:
-----------
Add file update task to update version in Doxyfile.
Modified Paths:
--------------
trunk/Build.proj
trunk/Documentation/Doxyfile
Modified: trunk/Build.proj
===================================================================
--- trunk/Build.proj 2013-11-10 17:57:21 UTC (rev 1365)
+++ trunk/Build.proj 2013-11-10 18:26:54 UTC (rev 1366)
@@ -68,6 +68,12 @@
Regex="(AssemblyCopyright)\("(.*)?"\)"
ReplacementText="$1("Copyright © 2006-$(Year)")" />
+ <FileUpdate Files="$(MSBuildProjectDirectory)\Documentation\Doxyfile"
+ Multiline="true"
+ Singleline="false"
+ Regex="(PROJECT_NUMBER *)= [0-9\.]*"
+ ReplacementText="$1= $(Version)" />
+
</Target>
<!-- Projects to Build -->
Modified: trunk/Documentation/Doxyfile
===================================================================
--- trunk/Documentation/Doxyfile 2013-11-10 17:57:21 UTC (rev 1365)
+++ trunk/Documentation/Doxyfile 2013-11-10 18:26:54 UTC (rev 1366)
@@ -1,4 +1,4 @@
-# Doxyfile 1.8.5
+# Doxyfile 1.8.5
# This file describes the settings to be used by the documentation system
# doxygen (www.doxygen.org) for a project.
@@ -38,7 +38,7 @@
# could be handy for archiving the generated documentation or if some version
# control system is used.
-PROJECT_NUMBER = 0.3.1
+PROJECT_NUMBER = 0.3.5.0
# Using the PROJECT_BRIEF tag one can provide an optional one line description
# for a project that appears at the top of each page and should give viewer a
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ka...@us...> - 2013-11-10 18:27:32
|
Revision: 1367
http://sourceforge.net/p/agate/code/1367
Author: kanato
Date: 2013-11-10 18:27:28 +0000 (Sun, 10 Nov 2013)
Log Message:
-----------
Set version numbers to 0.3.5.0.
Modified Paths:
--------------
trunk/AgateLib/Properties/AssemblyInfo.cs
trunk/Drivers/AgateDrawing/Properties/AssemblyInfo.cs
trunk/Drivers/AgateFMOD/Properties/AssemblyInfo.cs
trunk/Drivers/AgateLib.WinForms/Properties/AssemblyInfo.cs
trunk/Drivers/AgateOTK/Properties/AssemblyInfo.cs
trunk/Drivers/AgateSDL/Properties/AssemblyInfo.cs
trunk/Drivers/AgateSDX/Properties/AssemblyInfo.cs
trunk/Examples/BallBuster.Net/Properties/AssemblyInfo.cs
trunk/Examples/Pong/Properties/AssemblyInfo.cs
trunk/Examples/ShootTheTraps/Properties/AssemblyInfo.cs
trunk/Tests/Properties/AssemblyInfo.cs
trunk/Tools/AgateDataLib/Properties/AssemblyInfo.cs
trunk/Tools/DatabaseEditor/Properties/AssemblyInfo.cs
trunk/Tools/FontCreator/Properties/AssemblyInfo.cs
trunk/Tools/NotebookLib/NotebookLib/Properties/AssemblyInfo.cs
trunk/Tools/NotebookLib/Tester/Properties/AssemblyInfo.cs
trunk/Tools/PackedSpriteCreator/Properties/AssemblyInfo.cs
trunk/Tools/ResourceEditor/Properties/AssemblyInfo.cs
trunk/UnitTests/Properties/AssemblyInfo.cs
Modified: trunk/AgateLib/Properties/AssemblyInfo.cs
===================================================================
--- trunk/AgateLib/Properties/AssemblyInfo.cs 2013-11-10 18:26:54 UTC (rev 1366)
+++ trunk/AgateLib/Properties/AssemblyInfo.cs 2013-11-10 18:27:28 UTC (rev 1367)
@@ -51,6 +51,6 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.5.1456")]
-[assembly: AssemblyFileVersion("0.3.5.1456")]
+[assembly: AssemblyVersion("0.3.5.0")]
+[assembly: AssemblyFileVersion("0.3.5.0")]
[assembly: NeutralResourcesLanguageAttribute("en")]
Modified: trunk/Drivers/AgateDrawing/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Drivers/AgateDrawing/Properties/AssemblyInfo.cs 2013-11-10 18:26:54 UTC (rev 1366)
+++ trunk/Drivers/AgateDrawing/Properties/AssemblyInfo.cs 2013-11-10 18:27:28 UTC (rev 1367)
@@ -48,5 +48,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.5.1456")]
-[assembly: AssemblyFileVersion("0.3.5.1456")]
+[assembly: AssemblyVersion("0.3.5.0")]
+[assembly: AssemblyFileVersion("0.3.5.0")]
Modified: trunk/Drivers/AgateFMOD/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Drivers/AgateFMOD/Properties/AssemblyInfo.cs 2013-11-10 18:26:54 UTC (rev 1366)
+++ trunk/Drivers/AgateFMOD/Properties/AssemblyInfo.cs 2013-11-10 18:27:28 UTC (rev 1367)
@@ -49,5 +49,5 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
-[assembly: AssemblyVersion("0.3.5.1456")]
-[assembly: AssemblyFileVersion("0.3.5.1456")]
+[assembly: AssemblyVersion("0.3.5.0")]
+[assembly: AssemblyFileVersion("0.3.5.0")]
Modified: trunk/Drivers/AgateLib.WinForms/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Drivers/AgateLib.WinForms/Properties/AssemblyInfo.cs 2013-11-10 18:26:54 UTC (rev 1366)
+++ trunk/Drivers/AgateLib.WinForms/Properties/AssemblyInfo.cs 2013-11-10 18:27:28 UTC (rev 1367)
@@ -49,5 +49,5 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
-[assembly: AssemblyVersion("0.3.5.1456")]
-[assembly: AssemblyFileVersion("0.3.5.1456")]
+[assembly: AssemblyVersion("0.3.5.0")]
+[assembly: AssemblyFileVersion("0.3.5.0")]
Modified: trunk/Drivers/AgateOTK/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Drivers/AgateOTK/Properties/AssemblyInfo.cs 2013-11-10 18:26:54 UTC (rev 1366)
+++ trunk/Drivers/AgateOTK/Properties/AssemblyInfo.cs 2013-11-10 18:27:28 UTC (rev 1367)
@@ -47,5 +47,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.5.1456")]
-[assembly: AssemblyFileVersion("0.3.5.1456")]
+[assembly: AssemblyVersion("0.3.5.0")]
+[assembly: AssemblyFileVersion("0.3.5.0")]
Modified: trunk/Drivers/AgateSDL/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Drivers/AgateSDL/Properties/AssemblyInfo.cs 2013-11-10 18:26:54 UTC (rev 1366)
+++ trunk/Drivers/AgateSDL/Properties/AssemblyInfo.cs 2013-11-10 18:27:28 UTC (rev 1367)
@@ -51,5 +51,5 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
-[assembly: AssemblyVersion("0.3.5.1456")]
-[assembly: AssemblyFileVersion("0.3.5.1456")]
+[assembly: AssemblyVersion("0.3.5.0")]
+[assembly: AssemblyFileVersion("0.3.5.0")]
Modified: trunk/Drivers/AgateSDX/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Drivers/AgateSDX/Properties/AssemblyInfo.cs 2013-11-10 18:26:54 UTC (rev 1366)
+++ trunk/Drivers/AgateSDX/Properties/AssemblyInfo.cs 2013-11-10 18:27:28 UTC (rev 1367)
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.3.5.1456")]
-[assembly: AssemblyFileVersion("0.3.5.1456")]
+[assembly: AssemblyVersion("0.3.5.0")]
+[assembly: AssemblyFileVersion("0.3.5.0")]
Modified: trunk/Examples/BallBuster.Net/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Examples/BallBuster.Net/Properties/AssemblyInfo.cs 2013-11-10 18:26:54 UTC (rev 1366)
+++ trunk/Examples/BallBuster.Net/Properties/AssemblyInfo.cs 2013-11-10 18:27:28 UTC (rev 1367)
@@ -29,5 +29,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.5.1456")]
-[assembly: AssemblyFileVersion("0.3.5.1456")]
+[assembly: AssemblyVersion("0.3.5.0")]
+[assembly: AssemblyFileVersion("0.3.5.0")]
Modified: trunk/Examples/Pong/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Examples/Pong/Properties/AssemblyInfo.cs 2013-11-10 18:26:54 UTC (rev 1366)
+++ trunk/Examples/Pong/Properties/AssemblyInfo.cs 2013-11-10 18:27:28 UTC (rev 1367)
@@ -29,5 +29,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.5.1456")]
-[assembly: AssemblyFileVersion("0.3.5.1456")]
+[assembly: AssemblyVersion("0.3.5.0")]
+[assembly: AssemblyFileVersion("0.3.5.0")]
Modified: trunk/Examples/ShootTheTraps/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Examples/ShootTheTraps/Properties/AssemblyInfo.cs 2013-11-10 18:26:54 UTC (rev 1366)
+++ trunk/Examples/ShootTheTraps/Properties/AssemblyInfo.cs 2013-11-10 18:27:28 UTC (rev 1367)
@@ -29,5 +29,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.5.1456")]
-[assembly: AssemblyFileVersion("0.3.5.1456")]
+[assembly: AssemblyVersion("0.3.5.0")]
+[assembly: AssemblyFileVersion("0.3.5.0")]
Modified: trunk/Tests/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Tests/Properties/AssemblyInfo.cs 2013-11-10 18:26:54 UTC (rev 1366)
+++ trunk/Tests/Properties/AssemblyInfo.cs 2013-11-10 18:27:28 UTC (rev 1367)
@@ -29,5 +29,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.5.1456")]
-[assembly: AssemblyFileVersion("0.3.5.1456")]
+[assembly: AssemblyVersion("0.3.5.0")]
+[assembly: AssemblyFileVersion("0.3.5.0")]
Modified: trunk/Tools/AgateDataLib/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Tools/AgateDataLib/Properties/AssemblyInfo.cs 2013-11-10 18:26:54 UTC (rev 1366)
+++ trunk/Tools/AgateDataLib/Properties/AssemblyInfo.cs 2013-11-10 18:27:28 UTC (rev 1367)
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.3.5.1456")]
-[assembly: AssemblyFileVersion("0.3.5.1456")]
+[assembly: AssemblyVersion("0.3.5.0")]
+[assembly: AssemblyFileVersion("0.3.5.0")]
Modified: trunk/Tools/DatabaseEditor/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Tools/DatabaseEditor/Properties/AssemblyInfo.cs 2013-11-10 18:26:54 UTC (rev 1366)
+++ trunk/Tools/DatabaseEditor/Properties/AssemblyInfo.cs 2013-11-10 18:27:28 UTC (rev 1367)
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.3.5.1456")]
-[assembly: AssemblyFileVersion("0.3.5.1456")]
+[assembly: AssemblyVersion("0.3.5.0")]
+[assembly: AssemblyFileVersion("0.3.5.0")]
Modified: trunk/Tools/FontCreator/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Tools/FontCreator/Properties/AssemblyInfo.cs 2013-11-10 18:26:54 UTC (rev 1366)
+++ trunk/Tools/FontCreator/Properties/AssemblyInfo.cs 2013-11-10 18:27:28 UTC (rev 1367)
@@ -29,5 +29,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.5.1456")]
-[assembly: AssemblyFileVersion("0.3.5.1456")]
+[assembly: AssemblyVersion("0.3.5.0")]
+[assembly: AssemblyFileVersion("0.3.5.0")]
Modified: trunk/Tools/NotebookLib/NotebookLib/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Tools/NotebookLib/NotebookLib/Properties/AssemblyInfo.cs 2013-11-10 18:26:54 UTC (rev 1366)
+++ trunk/Tools/NotebookLib/NotebookLib/Properties/AssemblyInfo.cs 2013-11-10 18:27:28 UTC (rev 1367)
@@ -29,5 +29,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.5.1456")]
-[assembly: AssemblyFileVersion("0.3.5.1456")]
+[assembly: AssemblyVersion("0.3.5.0")]
+[assembly: AssemblyFileVersion("0.3.5.0")]
Modified: trunk/Tools/NotebookLib/Tester/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Tools/NotebookLib/Tester/Properties/AssemblyInfo.cs 2013-11-10 18:26:54 UTC (rev 1366)
+++ trunk/Tools/NotebookLib/Tester/Properties/AssemblyInfo.cs 2013-11-10 18:27:28 UTC (rev 1367)
@@ -29,5 +29,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.5.1456")]
-[assembly: AssemblyFileVersion("0.3.5.1456")]
+[assembly: AssemblyVersion("0.3.5.0")]
+[assembly: AssemblyFileVersion("0.3.5.0")]
Modified: trunk/Tools/PackedSpriteCreator/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Tools/PackedSpriteCreator/Properties/AssemblyInfo.cs 2013-11-10 18:26:54 UTC (rev 1366)
+++ trunk/Tools/PackedSpriteCreator/Properties/AssemblyInfo.cs 2013-11-10 18:27:28 UTC (rev 1367)
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.3.5.1456")]
-[assembly: AssemblyFileVersion("0.3.5.1456")]
+[assembly: AssemblyVersion("0.3.5.0")]
+[assembly: AssemblyFileVersion("0.3.5.0")]
Modified: trunk/Tools/ResourceEditor/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Tools/ResourceEditor/Properties/AssemblyInfo.cs 2013-11-10 18:26:54 UTC (rev 1366)
+++ trunk/Tools/ResourceEditor/Properties/AssemblyInfo.cs 2013-11-10 18:27:28 UTC (rev 1367)
@@ -29,5 +29,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.5.1456")]
-[assembly: AssemblyFileVersion("0.3.5.1456")]
+[assembly: AssemblyVersion("0.3.5.0")]
+[assembly: AssemblyFileVersion("0.3.5.0")]
Modified: trunk/UnitTests/Properties/AssemblyInfo.cs
===================================================================
--- trunk/UnitTests/Properties/AssemblyInfo.cs 2013-11-10 18:26:54 UTC (rev 1366)
+++ trunk/UnitTests/Properties/AssemblyInfo.cs 2013-11-10 18:27:28 UTC (rev 1367)
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.3.5.1456")]
-[assembly: AssemblyFileVersion("0.3.5.1456")]
+[assembly: AssemblyVersion("0.3.5.0")]
+[assembly: AssemblyFileVersion("0.3.5.0")]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ka...@us...> - 2013-11-17 19:56:34
|
Revision: 1369
http://sourceforge.net/p/agate/code/1369
Author: kanato
Date: 2013-11-17 19:56:31 +0000 (Sun, 17 Nov 2013)
Log Message:
-----------
Add some unit tests and some modifications for testability.
Modified Paths:
--------------
trunk/AgateLib/AgateFileProvider.cs
trunk/AgateLib/AgateSetup.cs
trunk/AgateLib/Drivers/Registrar.cs
trunk/AgateLib/Platform.cs
trunk/AgateLib/Properties/AssemblyInfo.cs
trunk/AgateLib-Windows.sln
trunk/UnitTests/UnitTests.csproj
Added Paths:
-----------
trunk/IntegrationTests/
trunk/IntegrationTests/IntegrationTests.csproj
trunk/IntegrationTests/Properties/
trunk/IntegrationTests/Properties/AssemblyInfo.cs
trunk/UnitTests/Display/
trunk/UnitTests/Display/DisplayTests.cs
trunk/UnitTests/Fakes/
trunk/UnitTests/Fakes/FakeDisplayDriver.cs
trunk/UnitTests/Fakes/FakeDisplayWindow.cs
trunk/UnitTests/Fakes/FakeFrameBuffer.cs
trunk/UnitTests/Fakes/FakeReporter.cs
trunk/UnitTests/PlatformTests.cs
Modified: trunk/AgateLib/AgateFileProvider.cs
===================================================================
--- trunk/AgateLib/AgateFileProvider.cs 2013-11-10 19:16:09 UTC (rev 1368)
+++ trunk/AgateLib/AgateFileProvider.cs 2013-11-17 19:56:31 UTC (rev 1369)
@@ -21,6 +21,7 @@
using System.Text;
using System.IO;
using AgateLib.Utility;
+using System.Reflection;
namespace AgateLib
{
@@ -44,7 +45,7 @@
static void Initialize()
{
- string location = System.Reflection.Assembly.GetEntryAssembly().Location;
+ string location = (Assembly.GetEntryAssembly() ?? Assembly.GetCallingAssembly()).Location;
mAssemblyProvider.Add(new FileSystemProvider(Path.GetDirectoryName(location)));
mImageProvider.Add(new FileSystemProvider("."));
Modified: trunk/AgateLib/AgateSetup.cs
===================================================================
--- trunk/AgateLib/AgateSetup.cs 2013-11-10 19:16:09 UTC (rev 1368)
+++ trunk/AgateLib/AgateSetup.cs 2013-11-17 19:56:31 UTC (rev 1369)
@@ -109,7 +109,6 @@
/// </summary>
public AgateSetup() : this("AgateLib", null)
{
-
Core.Initialize();
}
/// <summary>
Modified: trunk/AgateLib/Drivers/Registrar.cs
===================================================================
--- trunk/AgateLib/Drivers/Registrar.cs 2013-11-10 19:16:09 UTC (rev 1368)
+++ trunk/AgateLib/Drivers/Registrar.cs 2013-11-17 19:56:31 UTC (rev 1369)
@@ -94,7 +94,11 @@
RegisterNullDrivers();
AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(CurrentDomain_AssemblyResolve);
- AppDomain sandbox = AppDomain.CreateDomain("AgateSandBox");
+ AppDomain sandbox = AppDomain.CreateDomain("AgateSandBox", null,
+ new AppDomainSetup
+ {
+ ApplicationBase = AppDomain.CurrentDomain.SetupInformation.ApplicationBase
+ });
AgateSandBoxLoader loader = (AgateSandBoxLoader)
sandbox.CreateInstanceAndUnwrap(Assembly.GetExecutingAssembly().FullName,
Modified: trunk/AgateLib/Platform.cs
===================================================================
--- trunk/AgateLib/Platform.cs 2013-11-10 19:16:09 UTC (rev 1368)
+++ trunk/AgateLib/Platform.cs 2013-11-17 19:56:31 UTC (rev 1369)
@@ -154,7 +154,7 @@
}
private void SetFolders()
{
- Assembly entryPt = Assembly.GetEntryAssembly();
+ Assembly entryPt = Assembly.GetEntryAssembly() ?? Assembly.GetCallingAssembly();
string fqn = entryPt.GetLoadedModules()[0].FullyQualifiedName;
var companyAttribute = GetCustomAttribute<AssemblyCompanyAttribute>(entryPt);
Modified: trunk/AgateLib/Properties/AssemblyInfo.cs
===================================================================
--- trunk/AgateLib/Properties/AssemblyInfo.cs 2013-11-10 19:16:09 UTC (rev 1368)
+++ trunk/AgateLib/Properties/AssemblyInfo.cs 2013-11-17 19:56:31 UTC (rev 1369)
@@ -33,6 +33,7 @@
[assembly: AssemblyCopyright("Copyright © 2006-2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
+[assembly: InternalsVisibleTo("AgateLib.UnitTests")]
[assembly: CLSCompliant(true)]
Modified: trunk/AgateLib-Windows.sln
===================================================================
--- trunk/AgateLib-Windows.sln 2013-11-10 19:16:09 UTC (rev 1368)
+++ trunk/AgateLib-Windows.sln 2013-11-17 19:56:31 UTC (rev 1369)
@@ -1,5 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2012
+# Visual Studio 2013
+VisualStudioVersion = 12.0.21005.1
+MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Files", "Solution Files", "{6AFA2E43-361A-4AA6-83D9-6DE946C1F0B6}"
ProjectSection(SolutionItems) = preProject
ChangeLog.txt = ChangeLog.txt
@@ -38,162 +40,239 @@
.build\MSBuild.Community.Tasks.targets = .build\MSBuild.Community.Tasks.targets
EndProjectSection
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "IntegrationTests", "IntegrationTests\IntegrationTests.csproj", "{796D3B53-8828-475C-B5FF-5CA09F423C8A}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
+ Debug|Mixed Platforms = Debug|Mixed Platforms
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Public|Any CPU = Public|Any CPU
+ Public|Mixed Platforms = Public|Mixed Platforms
Public|x64 = Public|x64
Public|x86 = Public|x86
Release|Any CPU = Release|Any CPU
+ Release|Mixed Platforms = Release|Mixed Platforms
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|Mixed Platforms.Build.0 = Debug|x86
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|x64.ActiveCfg = Debug|x64
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|x64.Build.0 = Debug|x64
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|x86.ActiveCfg = Debug|x86
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Debug|x86.Build.0 = Debug|x86
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Public|Any CPU.ActiveCfg = Release|x86
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Public|Mixed Platforms.ActiveCfg = Release|x86
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Public|Mixed Platforms.Build.0 = Release|x86
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Public|x64.ActiveCfg = Release|x86
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Public|x86.ActiveCfg = Release|x86
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Public|x86.Build.0 = Release|x86
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|Any CPU.Build.0 = Release|Any CPU
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|Mixed Platforms.Build.0 = Release|x86
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|x64.ActiveCfg = Release|x64
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|x64.Build.0 = Release|x64
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|x86.ActiveCfg = Release|x86
{DC687DB2-90A8-484D-AB99-B3D29FDD8D44}.Release|x86.Build.0 = Release|x86
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|Mixed Platforms.Build.0 = Debug|x86
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|x64.ActiveCfg = Debug|x64
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|x64.Build.0 = Debug|x64
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|x86.ActiveCfg = Debug|x86
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Debug|x86.Build.0 = Debug|x86
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Public|Any CPU.ActiveCfg = Release|x86
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Public|Mixed Platforms.ActiveCfg = Release|x86
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Public|Mixed Platforms.Build.0 = Release|x86
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Public|x64.ActiveCfg = Release|x86
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Public|x86.ActiveCfg = Release|x86
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Public|x86.Build.0 = Release|x86
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|Any CPU.ActiveCfg = Release|Any CPU
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|Any CPU.Build.0 = Release|Any CPU
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|Mixed Platforms.Build.0 = Release|x86
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|x64.ActiveCfg = Release|x64
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|x64.Build.0 = Release|x64
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|x86.ActiveCfg = Release|x86
{BEF6D67B-4C84-4D3E-8047-6DB2C8754D77}.Release|x86.Build.0 = Release|x86
{164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|Mixed Platforms.Build.0 = Debug|x86
{164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|x64.ActiveCfg = Debug|x64
{164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|x64.Build.0 = Debug|x64
{164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|x86.ActiveCfg = Debug|x86
{164A785D-924E-40FB-A517-D7E677F3B53A}.Debug|x86.Build.0 = Debug|x86
{164A785D-924E-40FB-A517-D7E677F3B53A}.Public|Any CPU.ActiveCfg = Release|x86
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Public|Mixed Platforms.ActiveCfg = Release|x86
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Public|Mixed Platforms.Build.0 = Release|x86
{164A785D-924E-40FB-A517-D7E677F3B53A}.Public|x64.ActiveCfg = Release|x86
{164A785D-924E-40FB-A517-D7E677F3B53A}.Public|x86.ActiveCfg = Release|x86
{164A785D-924E-40FB-A517-D7E677F3B53A}.Public|x86.Build.0 = Release|x86
{164A785D-924E-40FB-A517-D7E677F3B53A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{164A785D-924E-40FB-A517-D7E677F3B53A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {164A785D-924E-40FB-A517-D7E677F3B53A}.Release|Mixed Platforms.Build.0 = Release|x86
{164A785D-924E-40FB-A517-D7E677F3B53A}.Release|x64.ActiveCfg = Release|x64
{164A785D-924E-40FB-A517-D7E677F3B53A}.Release|x64.Build.0 = Release|x64
{164A785D-924E-40FB-A517-D7E677F3B53A}.Release|x86.ActiveCfg = Release|x86
{164A785D-924E-40FB-A517-D7E677F3B53A}.Release|x86.Build.0 = Release|x86
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|Mixed Platforms.Build.0 = Debug|x86
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|x64.ActiveCfg = Debug|x64
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|x64.Build.0 = Debug|x64
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|x86.ActiveCfg = Debug|x86
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Debug|x86.Build.0 = Debug|x86
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Public|Any CPU.ActiveCfg = Release|x86
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Public|Mixed Platforms.ActiveCfg = Release|x86
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Public|Mixed Platforms.Build.0 = Release|x86
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Public|x64.ActiveCfg = Release|x86
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Public|x86.ActiveCfg = Release|x86
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Public|x86.Build.0 = Release|x86
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|Any CPU.ActiveCfg = Release|Any CPU
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|Any CPU.Build.0 = Release|Any CPU
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|Mixed Platforms.Build.0 = Release|x86
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|x64.ActiveCfg = Release|x64
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|x64.Build.0 = Release|x64
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|x86.ActiveCfg = Release|x86
{00C7FA95-98F4-43D9-9B63-34122B1DB003}.Release|x86.Build.0 = Release|x86
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|Mixed Platforms.Build.0 = Debug|x86
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|x64.ActiveCfg = Debug|x64
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|x64.Build.0 = Debug|x64
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|x86.ActiveCfg = Debug|x86
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Debug|x86.Build.0 = Debug|x86
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|Any CPU.ActiveCfg = Release|Any CPU
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|Any CPU.Build.0 = Release|Any CPU
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|Mixed Platforms.ActiveCfg = Release|x86
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|Mixed Platforms.Build.0 = Release|x86
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|x64.ActiveCfg = Release|x64
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|x64.Build.0 = Release|x64
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Public|x86.ActiveCfg = Release|x64
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Release|Any CPU.ActiveCfg = Release|Any CPU
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Release|Any CPU.Build.0 = Release|Any CPU
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {EF993B30-D9A9-4962-80BB-6826D39B3465}.Release|Mixed Platforms.Build.0 = Release|x86
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Release|x64.ActiveCfg = Release|x64
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Release|x64.Build.0 = Release|x64
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Release|x86.ActiveCfg = Release|x86
{EF993B30-D9A9-4962-80BB-6826D39B3465}.Release|x86.Build.0 = Release|x86
{9490B719-829E-43A7-A5FE-8001F8A81759}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9490B719-829E-43A7-A5FE-8001F8A81759}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Debug|Mixed Platforms.Build.0 = Debug|x86
{9490B719-829E-43A7-A5FE-8001F8A81759}.Debug|x64.ActiveCfg = Debug|x64
{9490B719-829E-43A7-A5FE-8001F8A81759}.Debug|x64.Build.0 = Debug|x64
{9490B719-829E-43A7-A5FE-8001F8A81759}.Debug|x86.ActiveCfg = Debug|x86
{9490B719-829E-43A7-A5FE-8001F8A81759}.Debug|x86.Build.0 = Debug|x86
{9490B719-829E-43A7-A5FE-8001F8A81759}.Public|Any CPU.ActiveCfg = Release|x86
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Public|Mixed Platforms.ActiveCfg = Release|x86
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Public|Mixed Platforms.Build.0 = Release|x86
{9490B719-829E-43A7-A5FE-8001F8A81759}.Public|x64.ActiveCfg = Release|x86
{9490B719-829E-43A7-A5FE-8001F8A81759}.Public|x86.ActiveCfg = Release|x86
{9490B719-829E-43A7-A5FE-8001F8A81759}.Public|x86.Build.0 = Release|x86
{9490B719-829E-43A7-A5FE-8001F8A81759}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9490B719-829E-43A7-A5FE-8001F8A81759}.Release|Any CPU.Build.0 = Release|Any CPU
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {9490B719-829E-43A7-A5FE-8001F8A81759}.Release|Mixed Platforms.Build.0 = Release|x86
{9490B719-829E-43A7-A5FE-8001F8A81759}.Release|x64.ActiveCfg = Release|x64
{9490B719-829E-43A7-A5FE-8001F8A81759}.Release|x64.Build.0 = Release|x64
{9490B719-829E-43A7-A5FE-8001F8A81759}.Release|x86.ActiveCfg = Release|x86
{9490B719-829E-43A7-A5FE-8001F8A81759}.Release|x86.Build.0 = Release|x86
{424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Debug|Mixed Platforms.Build.0 = Debug|x86
{424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Debug|x64.ActiveCfg = Debug|x64
{424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Debug|x64.Build.0 = Debug|x64
{424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Debug|x86.ActiveCfg = Debug|x86
{424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Debug|x86.Build.0 = Debug|x86
{424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Public|Any CPU.ActiveCfg = Release|x86
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Public|Mixed Platforms.ActiveCfg = Release|x86
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Public|Mixed Platforms.Build.0 = Release|x86
{424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Public|x64.ActiveCfg = Release|x86
{424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Public|x86.ActiveCfg = Release|x86
{424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Public|x86.Build.0 = Release|x86
{424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Release|Any CPU.ActiveCfg = Release|Any CPU
{424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Release|Any CPU.Build.0 = Release|Any CPU
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Release|Mixed Platforms.Build.0 = Release|x86
{424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Release|x64.ActiveCfg = Release|x64
{424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Release|x64.Build.0 = Release|x64
{424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Release|x86.ActiveCfg = Release|x86
{424C08A9-6CC6-4FFF-B782-CBD58BC42FCA}.Release|x86.Build.0 = Release|x86
{9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Debug|Mixed Platforms.Build.0 = Debug|x86
{9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Debug|x64.ActiveCfg = Debug|x64
{9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Debug|x64.Build.0 = Debug|x64
{9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Debug|x86.ActiveCfg = Debug|x86
{9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Debug|x86.Build.0 = Debug|x86
{9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Public|Any CPU.ActiveCfg = Release|x86
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Public|Mixed Platforms.ActiveCfg = Release|x86
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Public|Mixed Platforms.Build.0 = Release|x86
{9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Public|x64.ActiveCfg = Release|x86
{9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Public|x86.ActiveCfg = Release|x86
{9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Public|x86.Build.0 = Release|x86
{9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Release|Any CPU.ActiveCfg = Release|Any CPU
{9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Release|Any CPU.Build.0 = Release|Any CPU
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Release|Mixed Platforms.Build.0 = Release|x86
{9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Release|x64.ActiveCfg = Release|x64
{9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Release|x64.Build.0 = Release|x64
{9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Release|x86.ActiveCfg = Release|x86
{9E095F03-BA3F-4EAD-A905-2A2647CE4405}.Release|x86.Build.0 = Release|x86
{F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|Mixed Platforms.Build.0 = Debug|x86
{F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|x64.ActiveCfg = Debug|x64
{F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|x64.Build.0 = Debug|x64
{F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|x86.ActiveCfg = Debug|x86
{F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Debug|x86.Build.0 = Debug|x86
{F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Public|Any CPU.ActiveCfg = Release|Any CPU
{F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Public|Any CPU.Build.0 = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Public|Mixed Platforms.ActiveCfg = Release|x86
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Public|Mixed Platforms.Build.0 = Release|x86
{F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Public|x64.ActiveCfg = Release|Any CPU
{F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Public|x86.ActiveCfg = Release|Any CPU
{F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|Any CPU.Build.0 = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|Mixed Platforms.Build.0 = Release|x86
{F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|x64.ActiveCfg = Release|Any CPU
{F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|x86.ActiveCfg = Release|Any CPU
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Public|Any CPU.ActiveCfg = Release|Any CPU
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Public|Any CPU.Build.0 = Release|Any CPU
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Public|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Public|Mixed Platforms.Build.0 = Release|Any CPU
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Public|x64.ActiveCfg = Release|Any CPU
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Public|x86.ActiveCfg = Release|Any CPU
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Release|Any CPU.Build.0 = Release|Any CPU
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Release|x64.ActiveCfg = Release|Any CPU
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Index: trunk/IntegrationTests
===================================================================
--- trunk/IntegrationTests 2013-11-10 19:16:09 UTC (rev 1368)
+++ trunk/IntegrationTests 2013-11-17 19:56:31 UTC (rev 1369)
Property changes on: trunk/IntegrationTests
___________________________________________________________________
Added: svn:ignore
## -0,0 +1,10 ##
+[Bb]in
+obj
+[Dd]ebug
+[Rr]elease
+*.user
+*.aps
+*.eto
+ClientBin
+GeneratedArtifacts
+_Pvt_Extensions
Added: trunk/IntegrationTests/IntegrationTests.csproj
===================================================================
--- trunk/IntegrationTests/IntegrationTests.csproj (rev 0)
+++ trunk/IntegrationTests/IntegrationTests.csproj 2013-11-17 19:56:31 UTC (rev 1369)
@@ -0,0 +1,82 @@
+<?xml version="1.0" encoding="utf-8"?>
+<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
+ <PropertyGroup>
+ <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
+ <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
+ <ProjectGuid>{796D3B53-8828-475C-B5FF-5CA09F423C8A}</ProjectGuid>
+ <OutputType>Library</OutputType>
+ <AppDesignerFolder>Properties</AppDesignerFolder>
+ <RootNamespace>IntegrationTests</RootNamespace>
+ <AssemblyName>IntegrationTests</AssemblyName>
+ <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
+ <FileAlignment>512</FileAlignment>
+ <ProjectTypeGuids>{3AC096D0-A1C2-E12C-1390-A8335801FDAB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
+ <VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion>
+ <VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath>
+ <ReferencePath>$(ProgramFiles)\Common Files\microsoft shared\VSTT\$(VisualStudioVersion)\UITestExtensionPackages</ReferencePath>
+ <IsCodedUITest>False</IsCodedUITest>
+ <TestProjectType>UnitTest</TestProjectType>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <ItemGroup>
+ <Reference Include="System" />
+ </ItemGroup>
+ <Choose>
+ <When Condition="('$(VisualStudioVersion)' == '10.0' or '$(VisualStudioVersion)' == '') and '$(TargetFrameworkVersion)' == 'v3.5'">
+ <ItemGroup>
+ <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework, Version=10.1.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL" />
+ </ItemGroup>
+ </When>
+ <Otherwise>
+ <ItemGroup>
+ <Reference Include="Microsoft.VisualStudio.QualityTools.UnitTestFramework" />
+ </ItemGroup>
+ </Otherwise>
+ </Choose>
+ <ItemGroup>
+ <Compile Include="Properties\AssemblyInfo.cs" />
+ </ItemGroup>
+ <Choose>
+ <When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
+ <ItemGroup>
+ <Reference Include="Microsoft.VisualStudio.QualityTools.CodedUITestFramework, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+ <Private>False</Private>
+ </Reference>
+ <Reference Include="Microsoft.VisualStudio.TestTools.UITest.Common, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+ <Private>False</Private>
+ </Reference>
+ <Reference Include="Microsoft.VisualStudio.TestTools.UITest.Extension, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+ <Private>False</Private>
+ </Reference>
+ <Reference Include="Microsoft.VisualStudio.TestTools.UITesting, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a, processorArchitecture=MSIL">
+ <Private>False</Private>
+ </Reference>
+ </ItemGroup>
+ </When>
+ </Choose>
+ <Import Project="$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets" Condition="Exists('$(VSToolsPath)\TeamTest\Microsoft.TestTools.targets')" />
+ <Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
+ <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
+ Other similar extension points exist, see Microsoft.Common.targets.
+ <Target Name="BeforeBuild">
+ </Target>
+ <Target Name="AfterBuild">
+ </Target>
+ -->
+</Project>
\ No newline at end of file
Added: trunk/IntegrationTests/Properties/AssemblyInfo.cs
===================================================================
--- trunk/IntegrationTests/Properties/AssemblyInfo.cs (rev 0)
+++ trunk/IntegrationTests/Properties/AssemblyInfo.cs 2013-11-17 19:56:31 UTC (rev 1369)
@@ -0,0 +1,36 @@
+using System.Reflection;
+using System.Runtime.CompilerServices;
+using System.Runtime.InteropServices;
+
+// General Information about an assembly is controlled through the following
+// set of attributes. Change these attribute values to modify the information
+// associated with an assembly.
+[assembly: AssemblyTitle("IntegrationTests")]
+[assembly: AssemblyDescription("")]
+[assembly: AssemblyConfiguration("")]
+[assembly: AssemblyCompany("")]
+[assembly: AssemblyProduct("IntegrationTests")]
+[assembly: AssemblyCopyright("Copyright © 2013")]
+[assembly: AssemblyTrademark("")]
+[assembly: AssemblyCulture("")]
+
+// Setting ComVisible to false makes the types in this assembly not visible
+// to COM components. If you need to access a type in this assembly from
+// COM, set the ComVisible attribute to true on that type.
+[assembly: ComVisible(false)]
+
+// The following GUID is for the ID of the typelib if this project is exposed to COM
+[assembly: Guid("91cd309e-9525-46cb-ae8a-bdbb6ac5f938")]
+
+// Version information for an assembly consists of the following four values:
+//
+// Major Version
+// Minor Version
+// Build Number
+// Revision
+//
+// You can specify all the values or you can default the Build and Revision Numbers
+// by using the '*' as shown below:
+// [assembly: AssemblyVersion("1.0.*")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Added: trunk/UnitTests/Display/DisplayTests.cs
===================================================================
--- trunk/UnitTests/Display/DisplayTests.cs (rev 0)
+++ trunk/UnitTests/Display/DisplayTests.cs 2013-11-17 19:56:31 UTC (rev 1369)
@@ -0,0 +1,27 @@
+using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using AgateLib;
+using ...
[truncated message content] |
|
From: <ka...@us...> - 2013-11-17 20:14:36
|
Revision: 1370
http://sourceforge.net/p/agate/code/1370
Author: kanato
Date: 2013-11-17 20:14:33 +0000 (Sun, 17 Nov 2013)
Log Message:
-----------
Modify configurations to build unit tests on all platforms/configurations.
Modified Paths:
--------------
trunk/AgateLib-Windows.sln
trunk/IntegrationTests/IntegrationTests.csproj
Modified: trunk/AgateLib-Windows.sln
===================================================================
--- trunk/AgateLib-Windows.sln 2013-11-17 19:56:31 UTC (rev 1369)
+++ trunk/AgateLib-Windows.sln 2013-11-17 20:14:33 UTC (rev 1370)
@@ -253,14 +253,17 @@
{F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|Any CPU.Build.0 = Release|Any CPU
{F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|Mixed Platforms.ActiveCfg = Release|x86
{F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|Mixed Platforms.Build.0 = Release|x86
- {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|x64.ActiveCfg = Release|Any CPU
- {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|x86.ActiveCfg = Release|Any CPU
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|x64.ActiveCfg = Release|x64
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|x64.Build.0 = Release|x64
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|x86.ActiveCfg = Release|x86
+ {F22ADCCC-7991-4F52-B2D0-697D60121BB3}.Release|x86.Build.0 = Release|x86
{796D3B53-8828-475C-B5FF-5CA09F423C8A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{796D3B53-8828-475C-B5FF-5CA09F423C8A}.Debug|Any CPU.Build.0 = Debug|Any CPU
{796D3B53-8828-475C-B5FF-5CA09F423C8A}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{796D3B53-8828-475C-B5FF-5CA09F423C8A}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{796D3B53-8828-475C-B5FF-5CA09F423C8A}.Debug|x64.ActiveCfg = Debug|Any CPU
- {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Debug|x86.ActiveCfg = Debug|x86
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Debug|x86.Build.0 = Debug|x86
{796D3B53-8828-475C-B5FF-5CA09F423C8A}.Public|Any CPU.ActiveCfg = Release|Any CPU
{796D3B53-8828-475C-B5FF-5CA09F423C8A}.Public|Any CPU.Build.0 = Release|Any CPU
{796D3B53-8828-475C-B5FF-5CA09F423C8A}.Public|Mixed Platforms.ActiveCfg = Release|Any CPU
@@ -269,10 +272,12 @@
{796D3B53-8828-475C-B5FF-5CA09F423C8A}.Public|x86.ActiveCfg = Release|Any CPU
{796D3B53-8828-475C-B5FF-5CA09F423C8A}.Release|Any CPU.ActiveCfg = Release|Any CPU
{796D3B53-8828-475C-B5FF-5CA09F423C8A}.Release|Any CPU.Build.0 = Release|Any CPU
- {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
- {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Release|Mixed Platforms.Build.0 = Release|Any CPU
- {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Release|x64.ActiveCfg = Release|Any CPU
- {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Release|x86.ActiveCfg = Release|Any CPU
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Release|Mixed Platforms.ActiveCfg = Release|x86
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Release|Mixed Platforms.Build.0 = Release|x86
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Release|x64.ActiveCfg = Release|x64
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Release|x64.Build.0 = Release|x64
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Release|x86.ActiveCfg = Release|x86
+ {796D3B53-8828-475C-B5FF-5CA09F423C8A}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Modified: trunk/IntegrationTests/IntegrationTests.csproj
===================================================================
--- trunk/IntegrationTests/IntegrationTests.csproj 2013-11-17 19:56:31 UTC (rev 1369)
+++ trunk/IntegrationTests/IntegrationTests.csproj 2013-11-17 20:14:33 UTC (rev 1370)
@@ -17,6 +17,7 @@
<IsCodedUITest>False</IsCodedUITest>
<TestProjectType>UnitTest</TestProjectType>
</PropertyGroup>
+
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
@@ -26,6 +27,24 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x64' ">
+ <DebugSymbols>true</DebugSymbols>
+ <DebugType>full</DebugType>
+ <Optimize>false</Optimize>
+ <OutputPath>bin\Debug\</OutputPath>
+ <DefineConstants>DEBUG;TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
@@ -34,6 +53,22 @@
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
+ <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x64' ">
+ <DebugType>pdbonly</DebugType>
+ <Optimize>true</Optimize>
+ <OutputPath>bin\Release\</OutputPath>
+ <DefineConstants>TRACE</DefineConstants>
+ <ErrorReport>prompt</ErrorReport>
+ <WarningLevel>4</WarningLevel>
+ </PropertyGroup>
<ItemGroup>
<Reference Include="System" />
</ItemGroup>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ka...@us...> - 2013-11-17 20:15:42
|
Revision: 1371
http://sourceforge.net/p/agate/code/1371
Author: kanato
Date: 2013-11-17 20:15:37 +0000 (Sun, 17 Nov 2013)
Log Message:
-----------
Fix bug in Color.FromHsv.
Minor updates to Ball:Buster.
Add unit test project for examples with unit tests for BBX.
Modified Paths:
--------------
trunk/AgateLib/Geometry/Color.cs
trunk/Examples/BallBuster.Net/BBUtility.cs
trunk/Examples/BallBuster.Net/BallBuster.Net.csproj
trunk/Examples/BallBuster.Net/CImage.cs
trunk/Examples/BallBuster.Net/Properties/AssemblyInfo.cs
trunk/Examples/BallBuster.Net/Properties/Resources.Designer.cs
trunk/Examples/BallBuster.Net/Properties/Settings.Designer.cs
trunk/Examples/BallBuster.Net/main.cs
trunk/Examples.sln
Added Paths:
-----------
trunk/Examples/BallBuster.Net/Highscore.cs
trunk/Examples/BallBuster.Net/highscores
trunk/Examples/ExampleUnitTests/
trunk/Examples/ExampleUnitTests/ExampleUnitTests.csproj
trunk/Examples/ExampleUnitTests/Properties/
trunk/Examples/ExampleUnitTests/Properties/AssemblyInfo.cs
trunk/Examples/ExampleUnitTests/UnitTest1.cs
Removed Paths:
-------------
trunk/Examples/BallBuster.Net/Highscores.cs
Modified: trunk/AgateLib/Geometry/Color.cs
===================================================================
--- trunk/AgateLib/Geometry/Color.cs 2013-11-17 20:14:33 UTC (rev 1370)
+++ trunk/AgateLib/Geometry/Color.cs 2013-11-17 20:15:37 UTC (rev 1371)
@@ -939,7 +939,7 @@
double m = v - chroma;
- return Color.FromArgb((int)(255 * (r1 + m)), (int)(255 * (g1 + m)), (int)(255 * b1 + m));
+ return Color.FromArgb((int)(255 * (r1 + m)), (int)(255 * (g1 + m)), (int)(255 * (b1 + m)));
}
}
}
\ No newline at end of file
Modified: trunk/Examples/BallBuster.Net/BBUtility.cs
===================================================================
--- trunk/Examples/BallBuster.Net/BBUtility.cs 2013-11-17 20:14:33 UTC (rev 1370)
+++ trunk/Examples/BallBuster.Net/BBUtility.cs 2013-11-17 20:15:37 UTC (rev 1371)
@@ -19,94 +19,97 @@
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-
+using System;
using System.Collections.Generic;
using AgateLib.DisplayLib;
using AgateLib.Geometry;
-internal static class BBUtility
+
+static class BBUtility
{
- public static Color HSVtoRGB(float H, float S, float V)
- {
- float R, G, B;
+ [Obsolete]
+ public static Color HSVtoRGB(float H, float S, float V)
+ {
+ return Color.FromHsv(H, S, V);
+ float R, G, B;
- if (S == 0.0f) // color is on black-and-white center line
- {
- R = V; // achromatic: shades of gray
- G = V; // supposedly invalid for h=0 but who cares
- B = V;
- }
- else // -- chromatic color
- {
- if (H >= 360.0f) // -- 360 degrees same as 0 degrees
- H -= 360.0f;
+ if (S == 0.0f) // color is on black-and-white center line
+ {
+ R = V; // achromatic: shades of gray
+ G = V; // supposedly invalid for h=0 but who cares
+ B = V;
+ }
+ else // -- chromatic color
+ {
+ if (H >= 360.0f) // -- 360 degrees same as 0 degrees
+ H -= 360.0f;
- float q, p, t, f;
- int i;
+ float q, p, t, f;
+ int i;
- H = H / 60.0f; // h is now in [0,6)
- i = (int)(H); // largest integer <= h
- f = H - i; //- fractional part of h
+ H = H / 60.0f; // h is now in [0,6)
+ i = (int)(H); // largest integer <= h
+ f = H - i; //- fractional part of h
- p = V * (1.0f - S);
- q = V * (1.0f - (S * f));
- t = V * (1.0f - (S * (1.0f - f)));
+ p = V * (1.0f - S);
+ q = V * (1.0f - (S * f));
+ t = V * (1.0f - (S * (1.0f - f)));
- switch (i)
- {
- case 0:
- R = V;
- G = t;
- B = p;
- break;
+ switch (i)
+ {
+ case 0:
+ R = V;
+ G = t;
+ B = p;
+ break;
- case 1:
- R = q;
- G = V;
- B = p;
- break;
+ case 1:
+ R = q;
+ G = V;
+ B = p;
+ break;
- case 2:
- R = p;
- G = V;
- B = t;
- break;
+ case 2:
+ R = p;
+ G = V;
+ B = t;
+ break;
- case 3:
- R = p;
- G = q;
- B = V;
- break;
+ case 3:
+ R = p;
+ G = q;
+ B = V;
+ break;
- case 4:
- R = t;
- G = p;
- B = V;
- break;
+ case 4:
+ R = t;
+ G = p;
+ B = V;
+ break;
- default:
- case 5:
- R = V;
- G = p;
- B = q;
- break;
- }
- }
- return Color.FromArgb(255, (int)(R * 255), (int)(G * 255), (int)(B * 255));
- }
+ default:
+ case 5:
+ R = V;
+ G = p;
+ B = q;
+ break;
+ }
+ }
+ return Color.FromArgb(255, (int)(R * 255), (int)(G * 255), (int)(B * 255));
+ }
- public static void SWAP<T>(ref T a, ref T b)
- {
- T temp;
+ public static void SWAP<T>(ref T a, ref T b)
+ {
+ T temp;
- temp = a;
- a = b;
- b = temp;
- }
+ temp = a;
+ a = b;
+ b = temp;
+ }
-}
\ No newline at end of file
+}
Modified: trunk/Examples/BallBuster.Net/BallBuster.Net.csproj
===================================================================
--- trunk/Examples/BallBuster.Net/BallBuster.Net.csproj 2013-11-17 20:14:33 UTC (rev 1370)
+++ trunk/Examples/BallBuster.Net/BallBuster.Net.csproj 2013-11-17 20:15:37 UTC (rev 1371)
@@ -8,7 +8,7 @@
<ProjectGuid>{DD3CF4AA-02CC-4881-AFB1-6F10DFA1F8AF}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
- <RootNamespace>BallBuster.Net</RootNamespace>
+ <RootNamespace>BallBusterX</RootNamespace>
<AssemblyName>BallBuster.Net</AssemblyName>
<FileUpgradeFlags>
</FileUpgradeFlags>
@@ -101,7 +101,7 @@
<Compile Include="CSound.cs" />
<Compile Include="fadeball.cs" />
<Compile Include="flash.cs" />
- <Compile Include="Highscores.cs" />
+ <Compile Include="Highscore.cs" />
<Compile Include="main.cs" />
<Compile Include="powerup.cs" />
<Compile Include="Program.cs" />
@@ -117,6 +117,9 @@
<DesignTime>True</DesignTime>
</Compile>
<None Include="app.config" />
+ <None Include="highscores">
+ <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
+ </None>
<None Include="OpenTK.dll.config">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
@@ -155,6 +158,10 @@
<Project>{9490B719-829E-43A7-A5FE-8001F8A81759}</Project>
<Name>AgateLib</Name>
</ProjectReference>
+ <ProjectReference Include="..\..\Drivers\AgateDrawing\AgateDrawing.csproj">
+ <Project>{164a785d-924e-40fb-a517-d7e677f3b53a}</Project>
+ <Name>AgateDrawing</Name>
+ </ProjectReference>
<ProjectReference Include="..\..\Drivers\AgateOTK\AgateOTK.csproj">
<Project>{9E095F03-BA3F-4EAD-A905-2A2647CE4405}</Project>
<Name>AgateOTK</Name>
@@ -163,6 +170,10 @@
<Project>{00C7FA95-98F4-43D9-9B63-34122B1DB003}</Project>
<Name>AgateSDL</Name>
</ProjectReference>
+ <ProjectReference Include="..\..\Drivers\AgateSDX\AgateSDX.csproj">
+ <Project>{ef993b30-d9a9-4962-80bb-6826d39b3465}</Project>
+ <Name>AgateSDX</Name>
+ </ProjectReference>
</ItemGroup>
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Modified: trunk/Examples/BallBuster.Net/CImage.cs
===================================================================
--- trunk/Examples/BallBuster.Net/CImage.cs 2013-11-17 20:14:33 UTC (rev 1370)
+++ trunk/Examples/BallBuster.Net/CImage.cs 2013-11-17 20:15:37 UTC (rev 1371)
@@ -28,176 +28,173 @@
class CImage
{
- public Surface leftborder, rightborder, topborder;
+ public Surface leftborder, rightborder, topborder;
- public Sprite block;
- public Sprite cblock, sblock;
+ public Sprite block;
+ public Sprite cblock, sblock;
- public Sprite woodblock, marbleblock1, marbleblock2;
- public Sprite rubyblock1, rubyblock2, rubyblock3;
+ public Sprite woodblock, marbleblock1, marbleblock2;
+ public Sprite rubyblock1, rubyblock2, rubyblock3;
- public Sprite crack;
+ public Sprite crack;
- public Sprite paddle, flash, smallpaddle, largepaddle, fireball, ball, spike, smash;
+ public Sprite paddle, flash, smallpaddle, largepaddle, fireball, ball, spike, smash;
- public Sprite pupaddleregular, pupaddlesmall, pupaddlelarge, pufastball, puslowball, puregularspeed,
- pumultiball, pu3ball, pu1up, publaster, pufireball, pusticky, pusupersticky, pureset, purandom,
- pu100, pu250, pu500, pu1000,
- pucatchblue, pucatchred,
- pupow, pusmash, purbswap, pudoor;
+ public Sprite pupaddleregular, pupaddlesmall, pupaddlelarge, pufastball, puslowball, puregularspeed,
+ pumultiball, pu3ball, pu1up, publaster, pufireball, pusticky, pusupersticky, pureset, purandom,
+ pu100, pu250, pu500, pu1000,
+ pucatchblue, pucatchred,
+ pupow, pusmash, purbswap, pudoor;
- AgateResourceCollection spritesSrc = new AgateResourceCollection("imgs/sprites.xml");
+ AgateResourceCollection spritesSrc = new AgateResourceCollection("imgs/sprites.xml");
- public Sprite arrow, bblogo, palogo, xlogo;
+ public Sprite arrow, bblogo, palogo, xlogo;
- public FontSurface font;
- public FontSurface largeFont;
+ public FontSurface font;
+ public FontSurface largeFont;
- //public TextStyler fontStyler;
+ //public TextStyler fontStyler;
- public void preload()
- {
+ public void preload()
+ {
this.font = FontSurface.AgateSans10;
this.largeFont = FontSurface.AgateSans24;
this.largeFont.SetScale(0.8, 0.8);
this.palogo = new Sprite(spritesSrc, "palogo");
- }
+ }
- public void load()
- {
+ public void load()
+ {
- this.leftborder = new Surface("leftborder.png");
- this.rightborder = new Surface("rightborder.png");
- this.topborder = new Surface("topborder.png");
- // this.bgtile= new Surface("bg1.jpg");
+ this.leftborder = new Surface("leftborder.png");
+ this.rightborder = new Surface("rightborder.png");
+ this.topborder = new Surface("topborder.png");
+ // this.bgtile= new Surface("bg1.jpg");
- this.ball = new Sprite(spritesSrc, "ball");
- this.fireball = new Sprite(spritesSrc, "fireball");
+ this.ball = new Sprite(spritesSrc, "ball");
+ this.fireball = new Sprite(spritesSrc, "fireball");
- this.spike = new Sprite(spritesSrc, "spike");
- this.smash = new Sprite(spritesSrc, "smash");
+ this.spike = new Sprite(spritesSrc, "spike");
+ this.smash = new Sprite(spritesSrc, "smash");
- this.paddle = new Sprite(spritesSrc, "default_paddle");
- this.paddle.AnimationType = SpriteAnimType.Looping;
- this.smallpaddle = new Sprite(spritesSrc, "small_paddle");
- this.smallpaddle.AnimationType = SpriteAnimType.Looping;
- this.largepaddle = new Sprite(spritesSrc, "large_paddle");
- this.largepaddle.AnimationType = SpriteAnimType.Looping;
+ this.paddle = new Sprite(spritesSrc, "default_paddle");
+ this.paddle.AnimationType = SpriteAnimType.Looping;
+ this.smallpaddle = new Sprite(spritesSrc, "small_paddle");
+ this.smallpaddle.AnimationType = SpriteAnimType.Looping;
+ this.largepaddle = new Sprite(spritesSrc, "large_paddle");
+ this.largepaddle.AnimationType = SpriteAnimType.Looping;
- this.block = new Sprite(spritesSrc, "block");
+ this.block = new Sprite(spritesSrc, "block");
- this.cblock = new Sprite(spritesSrc, "cblock");
- this.sblock = new Sprite(spritesSrc, "sblock");
+ this.cblock = new Sprite(spritesSrc, "cblock");
+ this.sblock = new Sprite(spritesSrc, "sblock");
- this.woodblock = new Sprite(spritesSrc, "woodblock");
- this.marbleblock1 = new Sprite(spritesSrc, "marbleblock1");
- this.marbleblock2 = new Sprite(spritesSrc, "marbleblock2");
+ this.woodblock = new Sprite(spritesSrc, "woodblock");
+ this.marbleblock1 = new Sprite(spritesSrc, "marbleblock1");
+ this.marbleblock2 = new Sprite(spritesSrc, "marbleblock2");
- this.rubyblock1 = new Sprite(spritesSrc, "rubyblock1");
- this.rubyblock2 = new Sprite(spritesSrc, "rubyblock2");
- this.rubyblock3 = new Sprite(spritesSrc, "rubyblock3");
+ this.rubyblock1 = new Sprite(spritesSrc, "rubyblock1");
+ this.rubyblock2 = new Sprite(spritesSrc, "rubyblock2");
+ this.rubyblock3 = new Sprite(spritesSrc, "rubyblock3");
+ this.flash = new Sprite(spritesSrc, "flash");
+ this.crack = new Sprite(spritesSrc, "crack");
- this.flash = new Sprite(spritesSrc, "flash");
- this.crack = new Sprite(spritesSrc, "crack");
+ this.pupaddleregular = new Sprite(spritesSrc, "pupaddleregular");
+ this.pupaddlesmall = new Sprite(spritesSrc, "pupaddlesmall");
+ this.pupaddlelarge = new Sprite(spritesSrc, "pupaddlelarge");
+ this.publaster = new Sprite(spritesSrc, "publaster");
+ this.pufastball = new Sprite(spritesSrc, "pufastball");
+ this.pufireball = new Sprite(spritesSrc, "pufireball");
+ this.pumultiball = new Sprite(spritesSrc, "pumultiball");
+ this.pu3ball = new Sprite(spritesSrc, "pu3ball");
+ this.puregularspeed = new Sprite(spritesSrc, "puregularspeed");
+ this.puslowball = new Sprite(spritesSrc, "puslowball");
+ this.pu1up = new Sprite(spritesSrc, "pu1up");
+ this.pusticky = new Sprite(spritesSrc, "pusticky");
+ this.pusupersticky = new Sprite(spritesSrc, "pusupersticky");
+ this.pureset = new Sprite(spritesSrc, "pureset");
+ this.purandom = new Sprite(spritesSrc, "purandom");
+ this.pu100 = new Sprite(spritesSrc, "pu100");
+ this.pu250 = new Sprite(spritesSrc, "pu250");
+ this.pu500 = new Sprite(spritesSrc, "pu500");
+ this.pu1000 = new Sprite(spritesSrc, "pu1000");
+ this.pucatchblue = new Sprite(spritesSrc, "pucatchblue");
+ this.pucatchred = new Sprite(spritesSrc, "pucatchred");
+ this.pupow = new Sprite(spritesSrc, "pupow");
+ this.pusmash = new Sprite(spritesSrc, "pusmash");
+ this.purbswap = new Sprite(spritesSrc, "purbswap");
+ this.pudoor = new Sprite(spritesSrc, "pudoor");
- // CL_Sprite *pupaddleregular, *pupaddlesmall, *pupaddlelarge, *pufastball, *puslowball, *puregularspeed,
- // *pumultiball, *pu1up, *publaster, *pufireball;
- this.pupaddleregular = new Sprite(spritesSrc, "pupaddleregular");
- this.pupaddlesmall = new Sprite(spritesSrc, "pupaddlesmall");
- this.pupaddlelarge = new Sprite(spritesSrc, "pupaddlelarge");
- this.publaster = new Sprite(spritesSrc, "publaster");
- this.pufastball = new Sprite(spritesSrc, "pufastball");
- this.pufireball = new Sprite(spritesSrc, "pufireball");
- this.pumultiball = new Sprite(spritesSrc, "pumultiball");
- this.pu3ball = new Sprite(spritesSrc, "pu3ball");
- this.puregularspeed = new Sprite(spritesSrc, "puregularspeed");
- this.puslowball = new Sprite(spritesSrc, "puslowball");
- this.pu1up = new Sprite(spritesSrc, "pu1up");
- this.pusticky = new Sprite(spritesSrc, "pusticky");
- this.pusupersticky = new Sprite(spritesSrc, "pusupersticky");
- this.pureset = new Sprite(spritesSrc, "pureset");
- this.purandom = new Sprite(spritesSrc, "purandom");
- this.pu100 = new Sprite(spritesSrc, "pu100");
- this.pu250 = new Sprite(spritesSrc, "pu250");
- this.pu500 = new Sprite(spritesSrc, "pu500");
- this.pu1000 = new Sprite(spritesSrc, "pu1000");
- this.pucatchblue = new Sprite(spritesSrc, "pucatchblue");
- this.pucatchred = new Sprite(spritesSrc, "pucatchred");
- this.pupow = new Sprite(spritesSrc, "pupow");
- this.pusmash = new Sprite(spritesSrc, "pusmash");
- this.purbswap = new Sprite(spritesSrc, "purbswap");
- this.pudoor = new Sprite(spritesSrc, "pudoor");
+ this.arrow = new Sprite(spritesSrc, "arrow");
+ this.bblogo = new Sprite(spritesSrc, "bblogo");
+ this.xlogo = new Sprite(spritesSrc, "xlogo");
- this.arrow = new Sprite(spritesSrc, "arrow");
- this.bblogo = new Sprite(spritesSrc, "bblogo");
- this.xlogo = new Sprite(spritesSrc, "xlogo");
+ //Display.PackAllSurfaces();
+ }
- Display.PackAllSurfaces();
- }
+ public void unload()
+ {
+ ball.Dispose();
+ fireball.Dispose();
+ leftborder.Dispose();
+ rightborder.Dispose();
+ topborder.Dispose();
- public void unload()
- {
- ball.Dispose();
- fireball.Dispose();
- leftborder.Dispose();
- rightborder.Dispose();
- topborder.Dispose();
+ paddle.Dispose();
+ largepaddle.Dispose();
+ smallpaddle.Dispose();
+ block.Dispose();
- paddle.Dispose();
- largepaddle.Dispose();
- smallpaddle.Dispose();
- block.Dispose();
+ cblock.Dispose();
+ sblock.Dispose();
+ woodblock.Dispose();
+ marbleblock1.Dispose();
+ marbleblock2.Dispose();
- cblock.Dispose();
- sblock.Dispose();
- woodblock.Dispose();
- marbleblock1.Dispose();
- marbleblock2.Dispose();
+ rubyblock1.Dispose();
+ rubyblock2.Dispose();
+ rubyblock3.Dispose();
- rubyblock1.Dispose();
- rubyblock2.Dispose();
- rubyblock3.Dispose();
+ flash.Dispose();
- flash.Dispose();
+ pupaddleregular.Dispose();
+ pupaddlesmall.Dispose();
+ pupaddlelarge.Dispose();
+ publaster.Dispose();
+ pufastball.Dispose();
+ pufireball.Dispose();
+ pumultiball.Dispose();
+ pu3ball.Dispose();
+ puregularspeed.Dispose();
+ puslowball.Dispose();
+ pu1up.Dispose();
+ pusticky.Dispose();
+ pureset.Dispose();
+ purandom.Dispose();
+ pu100.Dispose();
+ pu250.Dispose();
+ pu500.Dispose();
+ pu1000.Dispose();
+ pucatchblue.Dispose();
+ pucatchred.Dispose();
+ pupow.Dispose();
+ pusmash.Dispose();
+ purbswap.Dispose();
- pupaddleregular.Dispose();
- pupaddlesmall.Dispose();
- pupaddlelarge.Dispose();
- publaster.Dispose();
- pufastball.Dispose();
- pufireball.Dispose();
- pumultiball.Dispose();
- pu3ball.Dispose();
- puregularspeed.Dispose();
- puslowball.Dispose();
- pu1up.Dispose();
- pusticky.Dispose();
- pureset.Dispose();
- purandom.Dispose();
- pu100.Dispose();
- pu250.Dispose();
- pu500.Dispose();
- pu1000.Dispose();
- pucatchblue.Dispose();
- pucatchred.Dispose();
- pupow.Dispose();
- pusmash.Dispose();
- purbswap.Dispose();
+ arrow.Dispose();
+ bblogo.Dispose();
+ palogo.Dispose();
+ xlogo.Dispose();
- arrow.Dispose();
- bblogo.Dispose();
- palogo.Dispose();
- xlogo.Dispose();
+ font.Dispose();
- font.Dispose();
+ }
- }
-
}
\ No newline at end of file
Copied: trunk/Examples/BallBuster.Net/Highscore.cs (from rev 1368, trunk/Examples/BallBuster.Net/Highscores.cs)
===================================================================
--- trunk/Examples/BallBuster.Net/Highscore.cs (rev 0)
+++ trunk/Examples/BallBuster.Net/Highscore.cs 2013-11-17 20:15:37 UTC (rev 1371)
@@ -0,0 +1,73 @@
+/*****************************************************************************
+ Ball: Buster
+ Copyright (C) 2004-9 Patrick Avella, Erik Ylvisaker
+
+ This file is part of Ball: Buster.
+
+ Ball: Buster is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General internal License as published by
+ the Free Software Foundation; either version 2 of the License, or
+ (at your option) any later version.
+
+ Ball: Buster is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General internal License for more details.
+
+ You should have received a copy of the GNU General internal License
+ along with Ball: Buster; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+*/
+
+using System;
+
+class Highscore : IComparable<Highscore>
+{
+ public string name = "";
+ public int score;
+
+ public Highscore()
+ {
+ score = 0;
+ }
+ public Highscore(string name, int score)
+ {
+ this.name = name;
+ this.score = score;
+ }
+ public Highscore(string buffer)
+ {
+ int i;
+ for (i = 0; i < buffer.Length; i++)
+ {
+ if (buffer[i] == ',')
+ break;
+ }
+
+ if (i == buffer.Length)
+ throw new Exception("Failed to read high score data.");
+
+
+ name = buffer.Substring(0, i);
+ score = int.Parse(buffer.Substring(i + 1));
+
+
+ }
+
+ public override string ToString()
+ {
+ return string.Format("{0},{1}", name, score);
+ }
+
+
+
+
+ #region IComparable<CHighscore> Members
+
+ public int CompareTo(Highscore other)
+ {
+ return score.CompareTo(other.score);
+ }
+
+ #endregion
+}
\ No newline at end of file
Deleted: trunk/Examples/BallBuster.Net/Highscores.cs
===================================================================
--- trunk/Examples/BallBuster.Net/Highscores.cs 2013-11-17 20:14:33 UTC (rev 1370)
+++ trunk/Examples/BallBuster.Net/Highscores.cs 2013-11-17 20:15:37 UTC (rev 1371)
@@ -1,83 +0,0 @@
-/*****************************************************************************
- Ball: Buster
- Copyright (C) 2004-9 Patrick Avella, Erik Ylvisaker
-
- This file is part of Ball: Buster.
-
- Ball: Buster is free software; you can redistribute it and/or modify
- it under the terms of the GNU General internal License as published by
- the Free Software Foundation; either version 2 of the License, or
- (at your option) any later version.
-
- Ball: Buster is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- GNU General internal License for more details.
-
- You should have received a copy of the GNU General internal License
- along with Ball: Buster; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-*/
-
-using System;
-
-class CHighscore : IComparable<CHighscore>
-{
- public string name = "";
- public int score;
-
- public CHighscore()
- {
- score = 0;
- }
- public CHighscore(string name, int score)
- {
- this.name = name;
- this.score = score;
- }
- public CHighscore(string buffer)
- {
- int i;
- for (i = 0; i < buffer.Length; i++)
- {
- if (buffer[i] == ',')
- break;
- }
-
- if (i == buffer.Length)
- throw new Exception("Failed to read high score data.");
-
-
- name = buffer.Substring(0, i);
- score = int.Parse(buffer.Substring(i + 1));
-
-
- }
-
- public override string ToString()
- {
- return string.Format("{0},{1}", name, score);
-
- //string retval;
- //char buffer[40];
-
- //sprintf(buffer, ",%i", score);
-
- //retval = name + string(buffer);
-
-
- //return retval;
- }
-
-
-
-
- #region IComparable<CHighscore> Members
-
- public int CompareTo(CHighscore other)
- {
- return score.CompareTo(other.score);
- }
-
- #endregion
-}
\ No newline at end of file
Modified: trunk/Examples/BallBuster.Net/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Examples/BallBuster.Net/Properties/AssemblyInfo.cs 2013-11-17 20:14:33 UTC (rev 1370)
+++ trunk/Examples/BallBuster.Net/Properties/AssemblyInfo.cs 2013-11-17 20:15:37 UTC (rev 1371)
@@ -13,6 +13,7 @@
[assembly: AssemblyCopyright("Copyright © 2006-2013")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
+[assembly: InternalsVisibleTo("ExampleUnitTests")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
Modified: trunk/Examples/BallBuster.Net/Properties/Resources.Designer.cs
===================================================================
--- trunk/Examples/BallBuster.Net/Properties/Resources.Designer.cs 2013-11-17 20:14:33 UTC (rev 1370)
+++ trunk/Examples/BallBuster.Net/Properties/Resources.Designer.cs 2013-11-17 20:15:37 UTC (rev 1371)
@@ -1,14 +1,14 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:4.0.30319.18034
+// Runtime Version:4.0.30319.18052
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
-namespace BallBuster.Net.Properties {
+namespace BallBusterX.Properties {
using System;
@@ -39,7 +39,7 @@
internal static global::System.Resources.ResourceManager ResourceManager {
get {
if (object.ReferenceEquals(resourceMan, null)) {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("BallBuster.Net.Properties.Resources", typeof(Resources).Assembly);
+ global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("BallBusterX.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
Modified: trunk/Examples/BallBuster.Net/Properties/Settings.Designer.cs
===================================================================
--- trunk/Examples/BallBuster.Net/Properties/Settings.Designer.cs 2013-11-17 20:14:33 UTC (rev 1370)
+++ trunk/Examples/BallBuster.Net/Properties/Settings.Designer.cs 2013-11-17 20:15:37 UTC (rev 1371)
@@ -1,14 +1,14 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
-// Runtime Version:4.0.30319.18034
+// Runtime Version:4.0.30319.18052
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
-namespace BallBuster.Net.Properties {
+namespace BallBusterX.Properties {
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
Added: trunk/Examples/BallBuster.Net/highscores
===================================================================
--- trunk/Examples/BallBuster.Net/highscores (rev 0)
+++ trunk/Examples/BallBuster.Net/highscores 2013-11-17 20:15:37 UTC (rev 1371)
@@ -0,0 +1,9 @@
+Kanato,500000
+Skel1,400000
+Ariana,300000
+Dave,200000
+John,100000
+Larry,50000
+Robert,25000
+Brant,10000
+Alexis,5000
Modified: trunk/Examples/BallBuster.Net/main.cs
===================================================================
--- trunk/Examples/BallBuster.Net/main.cs 2013-11-17 20:14:33 UTC (rev 1370)
+++ trunk/Examples/BallBuster.Net/main.cs 2013-11-17 20:15:37 UTC (rev 1371)
@@ -253,7 +253,7 @@
//List<CEnemy> enemies;
List<CWorld> worlds = new List<CWorld>();
- List<CHighscore> highscores = new List<CHighscore>();
+ List<Highscore> highscores = new List<Highscore>();
@@ -612,7 +612,8 @@
resetPowerups = true;
}
- AgateBuiltInShaders.Lighting2D.AmbientLight = w.light;
+ if (Display.Caps.IsHardwareAccelerated)
+ AgateBuiltInShaders.Lighting2D.AmbientLight = w.light;
file = "lvls/" + worlds[world].lvls[level] + ".lvl";
@@ -701,48 +702,8 @@
DB_EnterSubsection("Draw");
Display.Clear(Color.FromArgb(128, 0, 0, 128));
+ SetLightingForLevel();
- var shader = AgateBuiltInShaders.Lighting2D;
-
- while (shader.Lights.Count > balls.Count)
- shader.Lights.RemoveAt(shader.Lights.Count-1);
-
- for (int i = 0; i < balls.Count; i++)
- {
- Light light;
-
- if (i < shader.Lights.Count)
- light = shader.Lights[i];
- else
- {
- light = new Light();
- shader.Lights.Add(light);
- }
-
- if (balls[i].fireball)
- {
- light.Position = new Vector3(balls[i].ballx, balls[i].bally, -1);
- light.DiffuseColor = Color.FromArgb(255, 255, 0);
- light.AmbientColor = Color.FromArgb(64, 32, 0);
-
- light.AttenuationConstant = 0.01f;
- light.AttenuationLinear = 0.005f;
- light.AttenuationQuadratic = 0.000001f;
-
- }
- else
- {
- light.Position = new Vector3(balls[i].ballx, balls[i].bally, -1);
- light.DiffuseColor = Color.FromArgb(200, 200, 200);
- light.AmbientColor = Color.Black;
-
- light.AttenuationConstant = 0.01f;
- light.AttenuationLinear = 0;
- light.AttenuationQuadratic = 0.00001f;
-
- }
- }
-
// Draw the background tile, scrolled
DrawBackground(bgy);
@@ -751,10 +712,7 @@
img.leftborder.Draw(0, 0);
img.rightborder.Draw(735, 0);
- if (doLighting)
- {
- shader.Activate();
- }
+ ActivateLighting();
// Draw blocks and Update their animations...
DrawBlocks();
@@ -941,6 +899,65 @@
DB_ExitSubsection();
}
+ private void ActivateLighting()
+ {
+ if (Display.Caps.IsHardwareAccelerated == false)
+ return;
+
+ if (doLighting)
+ {
+ var shader = AgateBuiltInShaders.Lighting2D;
+
+ shader.Activate();
+ }
+ }
+
+ private void SetLi...
[truncated message content] |
|
From: <ka...@us...> - 2013-11-28 19:27:18
|
Revision: 1373
http://sourceforge.net/p/agate/code/1373
Author: kanato
Date: 2013-11-28 19:27:14 +0000 (Thu, 28 Nov 2013)
Log Message:
-----------
Add Lighting2D shader (not working yet). Add IFrameBuffer interface.
Modified Paths:
--------------
trunk/AgateLib/AgateLib.csproj
trunk/AgateLib/DisplayLib/Display.cs
trunk/AgateLib/DisplayLib/FrameBuffer.cs
trunk/Drivers/AgateSDX/AgateSDX.csproj
trunk/Drivers/AgateSDX/Shaders/FixedFunction/FixedFunctionShaderFactory.cs
trunk/Tests/DisplayTests/MultipleWindows/MultipleRenderTargetExample.Designer.cs
trunk/Tests/DisplayTests/MultipleWindows/MultipleRenderTargetExample.resx
trunk/Tests/Shaders/LightingTest/LightingTest.cs
Added Paths:
-----------
trunk/AgateLib/DisplayLib/IFrameBuffer.cs
trunk/Drivers/AgateSDX/Shaders/FixedFunction/SDX_FF_Lighting2D.cs
Modified: trunk/AgateLib/AgateLib.csproj
===================================================================
--- trunk/AgateLib/AgateLib.csproj 2013-11-17 20:21:40 UTC (rev 1372)
+++ trunk/AgateLib/AgateLib.csproj 2013-11-28 19:27:14 UTC (rev 1373)
@@ -158,6 +158,7 @@
<Compile Include="Data\AgateRowList.cs" />
<Compile Include="Data\AgateTableDictionary.cs" />
<Compile Include="DisplayLib\FrameBuffer.cs" />
+ <Compile Include="DisplayLib\IFrameBuffer.cs" />
<Compile Include="DisplayLib\Shaders\AgateBuiltInShaders.cs" />
<Compile Include="DisplayLib\Shaders\AgateShaderCompileException.cs" />
<Compile Include="DisplayLib\Shaders\Basic2DShader.cs" />
Modified: trunk/AgateLib/DisplayLib/Display.cs
===================================================================
--- trunk/AgateLib/DisplayLib/Display.cs 2013-11-17 20:21:40 UTC (rev 1372)
+++ trunk/AgateLib/DisplayLib/Display.cs 2013-11-28 19:27:14 UTC (rev 1373)
@@ -192,7 +192,7 @@
set
{
if (value == null)
- throw new ArgumentNullException("RenderTarget cannot be null.");
+ throw new ArgumentNullException("RenderTarget", "RenderTarget cannot be null.");
sImpl.RenderTarget = value;
Modified: trunk/AgateLib/DisplayLib/FrameBuffer.cs
===================================================================
--- trunk/AgateLib/DisplayLib/FrameBuffer.cs 2013-11-17 20:21:40 UTC (rev 1372)
+++ trunk/AgateLib/DisplayLib/FrameBuffer.cs 2013-11-28 19:27:14 UTC (rev 1373)
@@ -32,7 +32,7 @@
/// after rendering to it. For the most part, FrameBuffers which are associated with
/// a DisplayWindow cannot be used as Surfaces.
/// </summary>
- public class FrameBuffer : IDisposable
+ public class FrameBuffer : IDisposable, AgateLib.DisplayLib.IFrameBuffer
{
FrameBufferImpl impl;
Surface mRenderTarget;
Added: trunk/AgateLib/DisplayLib/IFrameBuffer.cs
===================================================================
--- trunk/AgateLib/DisplayLib/IFrameBuffer.cs (rev 0)
+++ trunk/AgateLib/DisplayLib/IFrameBuffer.cs 2013-11-28 19:27:14 UTC (rev 1373)
@@ -0,0 +1,25 @@
+using AgateLib.Geometry;
+using System;
+namespace AgateLib.DisplayLib
+{
+ /// <summary>
+ /// This interface is implemented by the FrameBuffer class. Its main purpose is
+ /// to allow you to create a fake object implementing the interface in order to
+ /// write unit tests for drawing code.
+ /// </summary>
+ public interface IFrameBuffer
+ {
+ /// <summary>
+ /// Height of the IFrameBuffer object.
+ /// </summary>
+ int Height { get; }
+ /// <summary>
+ /// Width of the IFrameBuffer object.
+ /// </summary>
+ int Width { get; }
+ /// <summary>
+ /// Size of the IFrameBuffer object. Should equal new Size(Width, Height).
+ /// </summary>
+ Size Size { get; }
+ }
+}
Modified: trunk/Drivers/AgateSDX/AgateSDX.csproj
===================================================================
--- trunk/Drivers/AgateSDX/AgateSDX.csproj 2013-11-17 20:21:40 UTC (rev 1372)
+++ trunk/Drivers/AgateSDX/AgateSDX.csproj 2013-11-28 19:27:14 UTC (rev 1373)
@@ -155,6 +155,7 @@
<Compile Include="Reporter.cs">
<SubType>Code</SubType>
</Compile>
+ <Compile Include="Shaders\FixedFunction\SDX_FF_Lighting2D.cs" />
<Compile Include="XAud2\XAudio2_Audio.cs">
<SubType>Code</SubType>
</Compile>
Modified: trunk/Drivers/AgateSDX/Shaders/FixedFunction/FixedFunctionShaderFactory.cs
===================================================================
--- trunk/Drivers/AgateSDX/Shaders/FixedFunction/FixedFunctionShaderFactory.cs 2013-11-17 20:21:40 UTC (rev 1372)
+++ trunk/Drivers/AgateSDX/Shaders/FixedFunction/FixedFunctionShaderFactory.cs 2013-11-28 19:27:14 UTC (rev 1373)
@@ -27,18 +27,21 @@
{
class FixedFunctionShaderFactory : ShaderFactory
{
- protected override AgateShaderImpl CreateBuiltInShaderImpl(BuiltInShader BuiltInShaderType)
+ protected override AgateShaderImpl CreateBuiltInShaderImpl(BuiltInShader shaderType)
{
- switch (BuiltInShaderType)
+ switch (shaderType)
{
case BuiltInShader.Basic2DShader:
return new SDX_FF_Basic2DShader();
+ case BuiltInShader.Lighting2D:
+ return new SDX_FF_Lighting2D();
+
case BuiltInShader.Lighting3D:
return new SDX_FF_Lighting3D();
default:
- return null;
+ throw new NotImplementedException();
}
}
}
Copied: trunk/Drivers/AgateSDX/Shaders/FixedFunction/SDX_FF_Lighting2D.cs (from rev 1359, trunk/Drivers/AgateSDX/Shaders/FixedFunction/SDX_FF_Basic2DShader.cs)
===================================================================
--- trunk/Drivers/AgateSDX/Shaders/FixedFunction/SDX_FF_Lighting2D.cs (rev 0)
+++ trunk/Drivers/AgateSDX/Shaders/FixedFunction/SDX_FF_Lighting2D.cs 2013-11-28 19:27:14 UTC (rev 1373)
@@ -0,0 +1,194 @@
+// The contents of this file are subject to the Mozilla Public License
+// Version 1.1 (the "License"); you may not use this file except in
+// compliance with the License. You may obtain a copy of the License at
+// http://www.mozilla.org/MPL/
+//
+// Software distributed under the License is distributed on an "AS IS"
+// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+// License for the specific language governing rights and limitations
+// under the License.
+//
+// The Original Code is AgateLib.
+//
+// The Initial Developer of the Original Code is Erik Ylvisaker.
+// Portions created by Erik Ylvisaker are Copyright (C) 2006-2011.
+// All Rights Reserved.
+//
+// Contributor(s): Erik Ylvisaker
+//
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using AgateLib.DisplayLib.Shaders;
+using AgateLib.DisplayLib.Shaders.Implementation;
+using AgateLib.Geometry;
+using SlimDX.Direct3D9;
+
+namespace AgateSDX.Shaders
+{
+ class SDX_FF_Lighting2D : Lighting2DImpl
+ {
+ Device mDevice;
+ Rectangle mCoords;
+
+ public SDX_FF_Lighting2D()
+ {
+
+ }
+
+ public override AgateLib.Geometry.Rectangle CoordinateSystem
+ {
+ get { return mCoords; }
+ set
+ {
+ mCoords = value;
+ SetOrthoProjection();
+ }
+ }
+
+ public void Set2DDrawState()
+ {
+ mDevice = (AgateLib.DisplayLib.Display.Impl as SDX_Display).D3D_Device.Device;
+
+ mDevice.SetRenderState(RenderState.SourceBlend, Blend.SourceAlpha);
+ mDevice.SetRenderState(RenderState.DestinationBlend, Blend.InverseSourceAlpha);
+
+ mDevice.SetSamplerState(0, SamplerState.AddressU, TextureAddress.Clamp);
+ mDevice.SetSamplerState(0, SamplerState.AddressV, TextureAddress.Clamp);
+
+ mDevice.SetSamplerState(0, SamplerState.MagFilter, TextureFilter.Anisotropic);
+ mDevice.SetSamplerState(0, SamplerState.MinFilter, TextureFilter.Anisotropic);
+
+ mDevice.SetRenderState(RenderState.CullMode, Cull.None);
+ mDevice.SetRenderState(RenderState.Lighting, false);
+
+ mDevice.SetTransform(TransformState.World, SlimDX.Matrix.Identity);
+ mDevice.SetTransform(TransformState.View, SlimDX.Matrix.Identity);
+
+ SetOrthoProjection();
+ }
+
+ private void SetOrthoProjection()
+ {
+ SlimDX.Matrix orthoProj = SlimDX.Matrix.OrthoOffCenterRH(
+ mCoords.Left, mCoords.Right, mCoords.Bottom, mCoords.Top, -1, 1);
+
+ // TODO: figure out why this method sometimes gets called when mDevice is null?
+ if (mDevice != null)
+ {
+ try
+ {
+ mDevice.SetTransform(TransformState.Projection, orthoProj);
+ }
+ catch (NullReferenceException e)
+ {
+ System.Diagnostics.Debug.Print("NullReferenceException when setting transformation.");
+ }
+ }
+ }
+
+ public override void Begin()
+ {
+ SDX_Display mDisplay = (SDX_Display)AgateLib.DisplayLib.Display.Impl;
+
+ Set2DDrawState();
+
+ //if (EnableLighting == false)
+ //{
+ // mDisplay.D3D_Device.Device.SetRenderState(RenderState.Lighting, false);
+ // return;
+ //}
+
+ //mDisplay.D3D_Device.Device.SetRenderState(RenderState.Lighting, true);
+ //mDisplay.D3D_Device.Device.SetRenderState(RenderState.Ambient, AmbientLight.ToArgb());
+
+ //Material material = new Material();
+ //material.Diffuse = new SlimDX.Color4(Color.White.ToArgb());
+ //material.Ambient = new SlimDX.Color4(Color.White.ToArgb());
+
+ //mDisplay.D3D_Device.Device.Material = material;
+
+ //int index = 0;
+
+ //for (int i = 0; i < Lights.Count; i++)
+ //{
+ // var agateLight = Lights[i];
+
+ // if (agateLight == null)
+ // continue;
+ // if (agateLight.Enabled == false)
+ // continue;
+
+ // SlimDX.Direct3D9.Light l = new SlimDX.Direct3D9.Light();
+
+ // l.Ambient = new SlimDX.Color4(agateLight.AmbientColor.ToArgb());
+ // l.Attenuation0 = agateLight.AttenuationConstant;
+ // l.Attenuation1 = agateLight.AttenuationLinear;
+ // l.Attenuation2 = agateLight.AttenuationQuadratic;
+ // l.Diffuse = new SlimDX.Color4(agateLight.DiffuseColor.ToArgb());
+ // l.Type = LightType.Point;
+ // l.Direction = new SlimDX.Vector3(0, 0, 1);
+ // l.Range = 100;
+
+ // Vector3 pos = agateLight.Position;
+
+ // l.Position = new SlimDX.Vector3(pos.X, pos.Y, pos.Z);
+
+ // mDisplay.D3D_Device.Device.SetLight(index, l);
+ // mDisplay.D3D_Device.Device.EnableLight(index, true);
+
+ // index++;
+ //}
+ }
+
+ public override void BeginPass(int passIndex)
+ {
+ }
+
+ public override void End()
+ {
+ }
+
+ public override void EndPass()
+ {
+ }
+
+ public override int Passes
+ {
+ get { return 1; }
+ }
+
+ public override void SetTexture(EffectTexture tex, string variableName)
+ {
+ throw new NotImplementedException();
+ }
+
+ public override void SetVariable(string name, AgateLib.Geometry.Color color)
+ {
+ throw new NotImplementedException();
+ }
+
+ public override void SetVariable(string name, AgateLib.Geometry.Matrix4x4 matrix)
+ {
+ throw new NotImplementedException();
+ }
+
+ public override void SetVariable(string name, params int[] v)
+ {
+ throw new NotImplementedException();
+ }
+
+ public override void SetVariable(string name, params float[] v)
+ {
+ throw new NotImplementedException();
+ }
+
+ public override int MaxActiveLights
+ {
+ get { return 8; }
+ }
+
+ public override Color AmbientLight { get; set; }
+ }
+}
Modified: trunk/Tests/DisplayTests/MultipleWindows/MultipleRenderTargetExample.Designer.cs
===================================================================
--- trunk/Tests/DisplayTests/MultipleWindows/MultipleRenderTargetExample.Designer.cs 2013-11-17 20:21:40 UTC (rev 1372)
+++ trunk/Tests/DisplayTests/MultipleWindows/MultipleRenderTargetExample.Designer.cs 2013-11-28 19:27:14 UTC (rev 1373)
@@ -40,18 +40,16 @@
this.pictureBox3 = new System.Windows.Forms.PictureBox();
this.btnDraw = new System.Windows.Forms.Button();
this.toolTip1 = new System.Windows.Forms.ToolTip(this.components);
+ this.btnDrawText = new System.Windows.Forms.Button();
this.btnClearSurface = new System.Windows.Forms.Button();
this.splitContainer1 = new System.Windows.Forms.SplitContainer();
this.splitContainer2 = new System.Windows.Forms.SplitContainer();
- this.btnDrawText = new System.Windows.Forms.Button();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox2)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.pictureBox3)).BeginInit();
- ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
this.splitContainer1.Panel1.SuspendLayout();
this.splitContainer1.Panel2.SuspendLayout();
this.splitContainer1.SuspendLayout();
- ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
this.splitContainer2.Panel1.SuspendLayout();
this.splitContainer2.Panel2.SuspendLayout();
this.splitContainer2.SuspendLayout();
@@ -59,9 +57,9 @@
//
// pictureBox1
//
- this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
+ this.pictureBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.pictureBox1.Location = new System.Drawing.Point(12, 32);
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new System.Drawing.Size(203, 91);
@@ -71,9 +69,9 @@
//
// pictureBox2
//
- this.pictureBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
+ this.pictureBox2.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.pictureBox2.Location = new System.Drawing.Point(12, 29);
this.pictureBox2.Name = "pictureBox2";
this.pictureBox2.Size = new System.Drawing.Size(203, 97);
@@ -110,9 +108,9 @@
//
// pictureBox3
//
- this.pictureBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
- | System.Windows.Forms.AnchorStyles.Left)
- | System.Windows.Forms.AnchorStyles.Right)));
+ this.pictureBox3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
+ | System.Windows.Forms.AnchorStyles.Left)
+ | System.Windows.Forms.AnchorStyles.Right)));
this.pictureBox3.Location = new System.Drawing.Point(6, 32);
this.pictureBox3.Name = "pictureBox3";
this.pictureBox3.Size = new System.Drawing.Size(279, 170);
@@ -131,6 +129,17 @@
this.toolTip1.SetToolTip(this.btnDraw, "Tests using a surface as a render target\r\nby drawing directly to the surface.");
this.btnDraw.UseVisualStyleBackColor = true;
//
+ // btnDrawText
+ //
+ this.btnDrawText.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
+ this.btnDrawText.Location = new System.Drawing.Point(208, 208);
+ this.btnDrawText.Name = "btnDrawText";
+ this.btnDrawText.Size = new System.Drawing.Size(75, 39);
+ this.btnDrawText.TabIndex = 9;
+ this.btnDrawText.Text = "Draw Text On Surface";
+ this.toolTip1.SetToolTip(this.btnDrawText, "Tests using a surface as a render target\r\nby drawing directly to the surface.");
+ this.btnDrawText.UseVisualStyleBackColor = true;
+ //
// btnClearSurface
//
this.btnClearSurface.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
@@ -182,17 +191,6 @@
this.splitContainer2.SplitterDistance = 126;
this.splitContainer2.TabIndex = 0;
//
- // btnDrawText
- //
- this.btnDrawText.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
- this.btnDrawText.Location = new System.Drawing.Point(208, 208);
- this.btnDrawText.Name = "btnDrawText";
- this.btnDrawText.Size = new System.Drawing.Size(75, 39);
- this.btnDrawText.TabIndex = 9;
- this.btnDrawText.Text = "Draw Text On Surface";
- this.toolTip1.SetToolTip(this.btnDrawText, "Tests using a surface as a render target\r\nby drawing directly to the surface.");
- this.btnDrawText.UseVisualStyleBackColor = true;
- //
// MultipleRenderTargetExample
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
@@ -208,13 +206,11 @@
this.splitContainer1.Panel1.ResumeLayout(false);
this.splitContainer1.Panel2.ResumeLayout(false);
this.splitContainer1.Panel2.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
this.splitContainer1.ResumeLayout(false);
this.splitContainer2.Panel1.ResumeLayout(false);
this.splitContainer2.Panel1.PerformLayout();
this.splitContainer2.Panel2.ResumeLayout(false);
this.splitContainer2.Panel2.PerformLayout();
- ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
this.splitContainer2.ResumeLayout(false);
this.ResumeLayout(false);
Modified: trunk/Tests/DisplayTests/MultipleWindows/MultipleRenderTargetExample.resx
===================================================================
--- trunk/Tests/DisplayTests/MultipleWindows/MultipleRenderTargetExample.resx 2013-11-17 20:21:40 UTC (rev 1372)
+++ trunk/Tests/DisplayTests/MultipleWindows/MultipleRenderTargetExample.resx 2013-11-28 19:27:14 UTC (rev 1373)
@@ -112,12 +112,12 @@
<value>2.0</value>
</resheader>
<resheader name="reader">
- <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ <value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
- <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
+ <value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
- <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
+ <metadata name="toolTip1.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
</root>
\ No newline at end of file
Modified: trunk/Tests/Shaders/LightingTest/LightingTest.cs
===================================================================
--- trunk/Tests/Shaders/LightingTest/LightingTest.cs 2013-11-17 20:21:40 UTC (rev 1372)
+++ trunk/Tests/Shaders/LightingTest/LightingTest.cs 2013-11-28 19:27:14 UTC (rev 1373)
@@ -27,15 +27,11 @@
if (setup.WasCanceled)
return;
- //if (Display.Caps.SupportsCustomShaders == false)
- //{
- // MessageBox.Show("You must have a driver that supports shaders.", "Lighting Test");
- // return;
- //}
- LightingTestForm frm = new LightingTestForm();
- frm.Show();
+ //LightingTestForm frm = new LightingTestForm();
+ //frm.Show();
- DisplayWindow wnd = new DisplayWindow(CreateWindowParams.FromControl(frm.agateRenderTarget1));
+ //DisplayWindow wnd = new DisplayWindow(CreateWindowParams.FromControl(frm.agateRenderTarget1));
+ DisplayWindow wnd = DisplayWindow.CreateWindowed("TItle", 640, 480);
Surface image = new Surface("jellybean.png");
Surface ball = new Surface("ball.png");
@@ -69,14 +65,14 @@
Display.RenderState.WaitForVerticalBlank = false;
- Mouse.MouseMove += delegate(InputEventArgs e)
+ Mouse.MouseMove += e =>
{
lt2.Position = new Vector3(e.MousePosition.X, e.MousePosition.Y, -1);
};
- while (frm.Visible == true)
+ while (true)//(frm.Visible == true)
{
- if (frm.chkMoveLight.Checked)
+ //if (frm.chkMoveLight.Checked)
time += Display.DeltaTime / 1000.0;
ballPt = new Point((int)(120 + 110 * Math.Cos(time)),
@@ -85,12 +81,12 @@
lt1.Position = new Vector3(ballPt.X, ballPt.Y, -1);
- image.RotationAngleDegrees = (double)frm.nudAngle.Value;
+ //image.RotationAngleDegrees = (double)frm.nudAngle.Value;
Display.BeginFrame();
Display.Clear(Color.DarkRed);
- lights.Activate();
+ //lights.Activate();
//lights.Enabled = frm.enableLightingCheck.Checked;
//lights.DoLighting();
@@ -103,13 +99,13 @@
//else
// Display.Effect = null;
- if (frm.chkSurfaceGradient.Checked)
- {
- Gradient g = new Gradient(Color.Red, Color.Blue, Color.Cyan, Color.Green);
+ //if (frm.chkSurfaceGradient.Checked)
+ //{
+ // Gradient g = new Gradient(Color.Red, Color.Blue, Color.Cyan, Color.Green);
- image.ColorGradient = g;
- }
- else
+ // image.ColorGradient = g;
+ //}
+ //else
image.Color = Color.White;
//image.TesselateFactor = (int)frm.nudTess.Value;
@@ -124,7 +120,7 @@
Display.EndFrame();
Core.KeepAlive();
- frm.lblFPS.Text = "FPS: " + Display.FramesPerSecond.ToString("0.00");
+ //frm.lblFPS.Text = "FPS: " + Display.FramesPerSecond.ToString("0.00");
}
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ka...@us...> - 2013-12-03 03:37:24
|
Revision: 1374
http://sourceforge.net/p/agate/code/1374
Author: kanato
Date: 2013-12-03 03:37:20 +0000 (Tue, 03 Dec 2013)
Log Message:
-----------
Refactor Mouse.Position so that it does not crash if the display is not initialized.
Modified Paths:
--------------
trunk/AgateLib/DisplayLib/ImplementationBase/DisplayWindowImpl.cs
trunk/AgateLib/InputLib/Mouse.cs
trunk/AgateLib/Platform.cs
trunk/Drivers/AgateDrawing/Drawing_DisplayWindow.cs
trunk/Drivers/AgateLib.WinForms/DisplayWindowForm.cs
trunk/Drivers/AgateOTK/GL_DisplayControl.cs
trunk/Drivers/AgateOTK/GL_GameWindow.cs
trunk/Drivers/AgateSDX/SDX_DisplayWindow.cs
trunk/Tests/settings_list.txt
Modified: trunk/AgateLib/DisplayLib/ImplementationBase/DisplayWindowImpl.cs
===================================================================
--- trunk/AgateLib/DisplayLib/ImplementationBase/DisplayWindowImpl.cs 2013-11-28 19:27:14 UTC (rev 1373)
+++ trunk/AgateLib/DisplayLib/ImplementationBase/DisplayWindowImpl.cs 2013-12-03 03:37:20 UTC (rev 1374)
@@ -109,6 +109,10 @@
/// </summary>
public abstract Point MousePosition { get; set; }
+ protected void SetInternalMousePosition(AgateLib.Geometry.Point pt)
+ {
+ AgateLib.InputLib.Mouse.SetStoredPosition(pt);
+ }
/// <summary>
/// Event raised when the window is resized by the user.
Modified: trunk/AgateLib/InputLib/Mouse.cs
===================================================================
--- trunk/AgateLib/InputLib/Mouse.cs 2013-11-28 19:27:14 UTC (rev 1373)
+++ trunk/AgateLib/InputLib/Mouse.cs 2013-12-03 03:37:20 UTC (rev 1374)
@@ -27,7 +27,8 @@
using AgateLib.DisplayLib;
/// <summary>
- /// Class which encapsulates input from the mouse.
+ /// Class which encapsulates input from the mouse. The information provided by the Mouse
+ /// class is only accurate for applications which have a single DisplayWindow.
/// </summary>
public static class Mouse
{
@@ -115,6 +116,7 @@
private static MouseState mState = new MouseState();
private static bool mIsHidden = false;
+ private static Point mPosition;
static Mouse()
{
@@ -125,21 +127,29 @@
{
ClearEvents();
}
+
+ internal static void SetStoredPosition(Point pt)
+ {
+ mPosition = pt;
+
+ OnMouseMove();
+ }
/// <summary>
/// Gets or sets the position of the cursor, in client coordinates
/// of the current display window.
/// </summary>
public static Point Position
{
- get { return Display.CurrentWindow.MousePosition; }
+ get { return mPosition; }
set
{
// do not adjust the mouse position if we are not the active application.
if (Core.IsActive == false)
return;
- Display.CurrentWindow.MousePosition = value;
+ mPosition = value;
+ OnMouseMove();
}
}
@@ -149,8 +159,12 @@
/// </summary>
public static int X
{
- get { return Display.CurrentWindow.MousePosition.X; }
- set { Display.CurrentWindow.MousePosition = new Point(value, Position.Y); }
+ get { return mPosition.X; }
+ set
+ {
+ mPosition.X = value;
+ OnMouseMove();
+ }
}
/// <summary>
/// Gets or sets the Y position of the cursor, in client coordinates
@@ -158,8 +172,12 @@
/// </summary>
public static int Y
{
- get { return Display.CurrentWindow.MousePosition.Y; }
- set { Display.CurrentWindow.MousePosition = new Point(Position.X, value); }
+ get { return mPosition.Y; }
+ set
+ {
+ mPosition.Y = value;
+ OnMouseMove();
+ }
}
/// <summary>
@@ -247,17 +265,21 @@
if (inMouseMove)
return;
- inMouseMove = true;
+ try
+ {
+ inMouseMove = true;
- if (MouseMove != null)
- MouseMove(new InputEventArgs());
+ if (MouseMove != null)
+ MouseMove(new InputEventArgs());
- // this is required, because if the mouse position is adjusted
- // a new MouseMove event will be generated.
- Core.KeepAlive();
-
- inMouseMove = false;
-
+ // this is required, because if the mouse position is adjusted
+ // a new MouseMove event will be generated.
+ Core.KeepAlive();
+ }
+ finally
+ {
+ inMouseMove = false;
+ }
}
private static void OnMouseDown(MouseButtons btn)
{
@@ -278,8 +300,5 @@
if (MouseDoubleClick != null)
MouseDoubleClick(new InputEventArgs(btn));
}
-
-
-
}
}
Modified: trunk/AgateLib/Platform.cs
===================================================================
--- trunk/AgateLib/Platform.cs 2013-11-28 19:27:14 UTC (rev 1373)
+++ trunk/AgateLib/Platform.cs 2013-12-03 03:37:20 UTC (rev 1374)
@@ -1,368 +1,368 @@
-// The contents of this file are subject to the Mozilla Public License
-// Version 1.1 (the "License"); you may not use this file except in
-// compliance with the License. You may obtain a copy of the License at
-// http://www.mozilla.org/MPL/
-//
-// Software distributed under the License is distributed on an "AS IS"
-// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
-// License for the specific language governing rights and limitations
-// under the License.
-//
-// The Original Code is AgateLib.
-//
-// The Initial Developer of the Original Code is Erik Ylvisaker.
-// Portions created by Erik Ylvisaker are Copyright (C) 2006-2011.
-// All Rights Reserved.
-//
-// Contributor(s): Erik Ylvisaker
-//
-using System;
-using System.Collections.Generic;
-using System.Diagnostics;
-using System.IO;
-using System.Linq;
-using System.Text;
-using System.Reflection;
-using System.Runtime.InteropServices;
-
-namespace AgateLib
-{
- /// <summary>
- /// Class which contains known information about the platform.
- /// This class also contains the folders where the application should store its data,
- /// which are automatically created from the AssemblyCompanhy and AssemblyProduct
- /// attributes for the assembly where the entry point for the application is.
- /// </summary>
- public class Platform
- {
- PlatformType mType;
- DotNetRuntime mRuntime;
- WindowsVersion mWindowsVersion;
- string mDocuments;
- string mAppData;
- string mAppDir;
- bool m64Bit;
-
- internal Platform()
- {
- mType = DetectPlatformType();
- mRuntime = DetectRuntime();
- m64Bit = Detect64Bit();
-
- // According to http://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k%28SYSTEM.DIAGNOSTICS.DEBUG.LISTENERS%29;k%28TargetFrameworkMoniker-%22.NETFRAMEWORK%2cVERSION%3dV3.5%22%29;k%28DevLang-CSHARP%29&rd=true
- // The Listeners collection is shared by both the Debug and the Trace classes;
- // adding a trace listener to either class adds the listener to both.
- // So we will just use the Trace.Listeners class.
- if (PlatformType != PlatformType.Windows)
- {
- Trace.Listeners.Add(new TextWriterTraceListener(Console.Out));
- }
-
- CheckOSVersion();
-
- if (mType == PlatformType.Windows)
- mWindowsVersion = DetectWindowsVersion();
-
- SetFolders();
-
- string debugLog = "agate-debuglog.txt";
-
- if (HasWriteAccessToAppDirectory())
- {
- debugLog = Path.Combine(mAppDir, debugLog);
- }
- else
- {
- debugLog = Path.Combine(mAppData, debugLog);
- }
-
- try
- {
- Trace.Listeners.Add(new TextWriterTraceListener(new StreamWriter(debugLog)));
- }
- catch (Exception)
- {
- Trace.WriteLine("Could not open debug or trace log for writing.");
- }
-
- Trace.WriteLine("64-bit platform: " + m64Bit.ToString());
- }
-
- private bool Detect64Bit()
- {
- int size = Marshal.SizeOf(typeof(IntPtr));
-
- switch (size)
- {
- case 4: return false;
- case 8: return true;
- default:
- throw new AgateException(string.Format("Size of IntPtr is {0}.", size));
- }
- }
-
- private bool HasWriteAccessToAppDirectory()
- {
- // TODO: Maybe there is a better way to inspect permissions?
- // here we just try to write and see if we fail.
- string filename = Path.GetTempFileName();
-
- try
- {
- string targetFile = Path.Combine(mAppDir, Path.GetFileName(filename));
-
- using (var w = new StreamWriter(targetFile))
- {
- w.WriteLine("x");
- }
-
- File.Delete(targetFile);
- return true;
- }
- catch
- {
- return false;
- }
- }
-
- internal void EnsureAppDataDirectoryExists()
- {
- if (Directory.Exists(AppDataDirectory))
- return;
-
- Directory.CreateDirectory(AppDataDirectory);
- }
-
- /// <summary>
- /// Gets the directory where the application should store its configuration data.
- /// </summary>
- public string AppDataDirectory
- {
- get { return mAppData; }
- }
-
- static T GetCustomAttribute<T>(Assembly ass) where T : Attribute
- {
- try
- {
- return ass.GetCustomAttributes(typeof(T), false)[0] as T;
- }
- catch
- {
- return null;
- }
- }
- private void SetFolders()
- {
+// The contents of this file are subject to the Mozilla Public License
+// Version 1.1 (the "License"); you may not use this file except in
+// compliance with the License. You may obtain a copy of the License at
+// http://www.mozilla.org/MPL/
+//
+// Software distributed under the License is distributed on an "AS IS"
+// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+// License for the specific language governing rights and limitations
+// under the License.
+//
+// The Original Code is AgateLib.
+//
+// The Initial Developer of the Original Code is Erik Ylvisaker.
+// Portions created by Erik Ylvisaker are Copyright (C) 2006-2011.
+// All Rights Reserved.
+//
+// Contributor(s): Erik Ylvisaker
+//
+using System;
+using System.Collections.Generic;
+using System.Diagnostics;
+using System.IO;
+using System.Linq;
+using System.Text;
+using System.Reflection;
+using System.Runtime.InteropServices;
+
+namespace AgateLib
+{
+ /// <summary>
+ /// Class which contains known information about the platform.
+ /// This class also contains the folders where the application should store its data,
+ /// which are automatically created from the AssemblyCompanhy and AssemblyProduct
+ /// attributes for the assembly where the entry point for the application is.
+ /// </summary>
+ public class Platform
+ {
+ PlatformType mType;
+ DotNetRuntime mRuntime;
+ WindowsVersion mWindowsVersion;
+ string mDocuments;
+ string mAppData;
+ string mAppDir;
+ bool m64Bit;
+
+ internal Platform()
+ {
+ mType = DetectPlatformType();
+ mRuntime = DetectRuntime();
+ m64Bit = Detect64Bit();
+
+ // According to http://msdn.microsoft.com/query/dev10.query?appId=Dev10IDEF1&l=EN-US&k=k%28SYSTEM.DIAGNOSTICS.DEBUG.LISTENERS%29;k%28TargetFrameworkMoniker-%22.NETFRAMEWORK%2cVERSION%3dV3.5%22%29;k%28DevLang-CSHARP%29&rd=true
+ // The Listeners collection is shared by both the Debug and the Trace classes;
+ // adding a trace listener to either class adds the listener to both.
+ // So we will just use the Trace.Listeners class.
+ if (PlatformType != PlatformType.Windows)
+ {
+ Trace.Listeners.Add(new TextWriterTraceListener(Console.Out));
+ }
+
+ CheckOSVersion();
+
+ if (mType == PlatformType.Windows)
+ mWindowsVersion = DetectWindowsVersion();
+
+ SetFolders();
+
+ string debugLog = "agate-debuglog.txt";
+
+ if (HasWriteAccessToAppDirectory())
+ {
+ debugLog = Path.Combine(mAppDir, debugLog);
+ }
+ else
+ {
+ debugLog = Path.Combine(mAppData, debugLog);
+ }
+
+ try
+ {
+ Trace.Listeners.Add(new TextWriterTraceListener(new StreamWriter(debugLog)));
+ }
+ catch (Exception)
+ {
+ Trace.WriteLine("Could not open debug or trace log for writing.");
+ }
+
+ Trace.WriteLine("64-bit platform: " + m64Bit.ToString());
+ }
+
+ private bool Detect64Bit()
+ {
+ int size = Marshal.SizeOf(typeof(IntPtr));
+
+ switch (size)
+ {
+ case 4: return false;
+ case 8: return true;
+ default:
+ throw new AgateException(string.Format("Size of IntPtr is {0}.", size));
+ }
+ }
+
+ private bool HasWriteAccessToAppDirectory()
+ {
+ // TODO: Maybe there is a better way to inspect permissions?
+ // here we just try to write and see if we fail.
+ string filename = Path.GetTempFileName();
+
+ try
+ {
+ string targetFile = Path.Combine(mAppDir, Path.GetFileName(filename));
+
+ using (var w = new StreamWriter(targetFile))
+ {
+ w.WriteLine("x");
+ }
+
+ File.Delete(targetFile);
+ return true;
+ }
+ catch
+ {
+ return false;
+ }
+ }
+
+ internal void EnsureAppDataDirectoryExists()
+ {
+ if (Directory.Exists(AppDataDirectory))
+ return;
+
+ Directory.CreateDirectory(AppDataDirectory);
+ }
+
+ /// <summary>
+ /// Gets the directory where the application should store its configuration data.
+ /// </summary>
+ public string AppDataDirectory
+ {
+ get { return mAppData; }
+ }
+
+ static T GetCustomAttribute<T>(Assembly ass) where T : Attribute
+ {
+ try
+ {
+ return ass.GetCustomAttributes(typeof(T), false)[0] as T;
+ }
+ catch
+ {
+ return null;
+ }
+ }
+ private void SetFolders()
+ {
Assembly entryPt = Assembly.GetEntryAssembly() ?? Assembly.GetCallingAssembly();
- string fqn = entryPt.GetLoadedModules()[0].FullyQualifiedName;
-
- var companyAttribute = GetCustomAttribute<AssemblyCompanyAttribute>(entryPt);
- var nameAttribute = GetCustomAttribute<AssemblyProductAttribute>(entryPt);
-
- mAppDir = Path.GetDirectoryName(fqn);
- Console.WriteLine("App Dir: {0}", mAppDir);
-
- string companyName = companyAttribute != null ? companyAttribute.Company : string.Empty;
- string product = nameAttribute != null ? nameAttribute.Product : string.Empty;
-
- SetFolderPaths(companyName, product);
- }
-
- /// <summary>
- /// Sets the folder paths for data based on the company name and application name.
- /// This only needs to be called if the values used in the AssemblyCompany and
- /// AssemblyProduct are not what you want to use to define these locations.
- /// </summary>
- /// <param name="companyName"></param>
- /// <param name="appName"></param>
- public void SetFolderPaths(string companyName, string appName)
- {
- string combDir = Path.Combine(companyName, appName);
-
- if (string.IsNullOrEmpty(combDir))
- {
- mAppData = mAppDir;
- Trace.WriteLine("Warning: No assembly level company / product name attributes were found.");
- }
- else
- mAppData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
-
- mDocuments = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
-
- mAppData = Path.Combine(mAppData, combDir);
- mDocuments = Path.Combine(mDocuments, combDir);
-
- Console.WriteLine("App Data: {0}", mAppData);
- Console.WriteLine("Documents: {0}", mDocuments);
-
- }
-
- private DotNetRuntime DetectRuntime()
- {
- DotNetRuntime runtime = DotNetRuntime.MicrosoftDotNet;
-
- if (Type.GetType("Mono.Runtime") != null)
- runtime = DotNetRuntime.Mono;
-
- return runtime;
- }
-
- /// <summary>
- /// Returns the version of windows being used, if the current platform is Windows.
- /// An exception is thrown if this property is checked when the platform is not Windows.
- /// </summary>
- public WindowsVersion WindowsVersion
- {
- get
- {
- if (PlatformType != PlatformType.Windows)
- throw new AgateCrossPlatformException(
- "Current platform is not Windows, but the WindowsVersion property was checked.");
-
- return mWindowsVersion;
- }
- }
-
- /// <summary>
- /// Gets the platform type.
- /// </summary>
- public PlatformType PlatformType
- {
- get { return mType; }
- }
- /// <summary>
- /// Gets the runtime being used.
- /// </summary>
- public DotNetRuntime Runtime
- {
- get { return mRuntime; }
- }
-
- PlatformType DetectPlatformType()
- {
- switch (Environment.OSVersion.Platform)
- {
- case PlatformID.WinCE:
- case PlatformID.Win32NT:
- case PlatformID.Win32S:
- case PlatformID.Win32Windows:
- return AgateLib.PlatformType.Windows;
-
- case PlatformID.Unix:
- string kernel = DetectUnixKernel();
-
- if (kernel == "Darwin")
- return PlatformType.MacOS;
- else
- return PlatformType.Linux;
-
- case PlatformID.MacOSX:
- return PlatformType.MacOS;
-
- case PlatformID.Xbox:
- return PlatformType.XBox360;
- }
-
- return PlatformType.Unknown;
- }
-
- #region private static string DetectUnixKernel()
-
- [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
- struct utsname
- {
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
- public string sysname;
-
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
- public string nodename;
-
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
- public string release;
-
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
- public string version;
-
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
- public string machine;
-
- [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)]
- private string extraJustInCase;
-
- }
-
- /// <summary>
- /// Detects the unix kernel by p/invoking the uname call in libc.
- /// </summary>
- /// <returns></returns>
- private static string DetectUnixKernel()
- {
- Debug.Print("Size: {0}", Marshal.SizeOf(typeof(utsname)).ToString());
- Debug.Flush();
-
- utsname uts = new utsname();
- uname(out uts);
-
- Debug.WriteLine("System:");
- Debug.Indent();
- Debug.WriteLine(uts.sysname);
- Debug.WriteLine(uts.nodename);
- Debug.WriteLine(uts.release);
- Debug.WriteLine(uts.version);
- Debug.WriteLine(uts.machine);
- Debug.Unindent();
-
- return uts.sysname.ToString();
- }
-
- [DllImport("libc")]
- private static extern void uname(out utsname uname_struct);
-
- #endregion
-
-
- private void CheckOSVersion()
- {
- var version = System.Environment.OSVersion.Version;
-
- Debug.Print("OS Version: {0}", System.Environment.OSVersion.VersionString);
- Debug.IndentLevel++;
- Debug.Print("Major: {0}", version.Major);
- Debug.Print("Major revision: {0}", version.MajorRevision);
- Debug.Print("Minor: {0}", version.Minor);
- Debug.Print("Minor revision: {0}", version.MinorRevision);
- Debug.Print("Revision: {0}", version.Revision);
- Debug.Print("Build: {0}", version.Build);
- Debug.Print("Service Pack: {0}", System.Environment.OSVersion.ServicePack);
- Debug.IndentLevel--;
- }
-
- private WindowsVersion DetectWindowsVersion()
- {
- WindowsVersion retval = WindowsVersion.WindowsVista;
-
- switch (System.Environment.OSVersion.Version.Major)
- {
- case 4:
- retval = WindowsVersion.Windows98;
- break;
- case 5:
- retval = WindowsVersion.WindowsXP;
- break;
- case 6:
- retval = WindowsVersion.WindowsVista;
- break;
- case 7:
- retval = WindowsVersion.Windows7;
- break;
- case 8:
- retval = WindowsVersion.Windows8;
- break;
- }
-
- return retval;
- }
-
- }
-}
+ string fqn = entryPt.GetLoadedModules()[0].FullyQualifiedName;
+
+ var companyAttribute = GetCustomAttribute<AssemblyCompanyAttribute>(entryPt);
+ var nameAttribute = GetCustomAttribute<AssemblyProductAttribute>(entryPt);
+
+ mAppDir = Path.GetDirectoryName(fqn);
+ Console.WriteLine("App Dir: {0}", mAppDir);
+
+ string companyName = companyAttribute != null ? companyAttribute.Company : string.Empty;
+ string product = nameAttribute != null ? nameAttribute.Product : string.Empty;
+
+ SetFolderPaths(companyName, product);
+ }
+
+ /// <summary>
+ /// Sets the folder paths for data based on the company name and application name.
+ /// This only needs to be called if the values used in the AssemblyCompany and
+ /// AssemblyProduct are not what you want to use to define these locations.
+ /// </summary>
+ /// <param name="companyName"></param>
+ /// <param name="appName"></param>
+ public void SetFolderPaths(string companyName, string appName)
+ {
+ string combDir = Path.Combine(companyName, appName);
+
+ if (string.IsNullOrEmpty(combDir))
+ {
+ mAppData = mAppDir;
+ Trace.WriteLine("Warning: No assembly level company / product name attributes were found.");
+ }
+ else
+ mAppData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);
+
+ mDocuments = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
+
+ mAppData = Path.Combine(mAppData, combDir);
+ mDocuments = Path.Combine(mDocuments, combDir);
+
+ Console.WriteLine("App Data: {0}", mAppData);
+ Console.WriteLine("Documents: {0}", mDocuments);
+
+ }
+
+ private DotNetRuntime DetectRuntime()
+ {
+ DotNetRuntime runtime = DotNetRuntime.MicrosoftDotNet;
+
+ if (Type.GetType("Mono.Runtime") != null)
+ runtime = DotNetRuntime.Mono;
+
+ return runtime;
+ }
+
+ /// <summary>
+ /// Returns the version of windows being used, if the current platform is Windows.
+ /// An exception is thrown if this property is checked when the platform is not Windows.
+ /// </summary>
+ public WindowsVersion WindowsVersion
+ {
+ get
+ {
+ if (PlatformType != PlatformType.Windows)
+ throw new AgateCrossPlatformException(
+ "Current platform is not Windows, but the WindowsVersion property was checked.");
+
+ return mWindowsVersion;
+ }
+ }
+
+ /// <summary>
+ /// Gets the platform type.
+ /// </summary>
+ public PlatformType PlatformType
+ {
+ get { return mType; }
+ }
+ /// <summary>
+ /// Gets the runtime being used.
+ /// </summary>
+ public DotNetRuntime Runtime
+ {
+ get { return mRuntime; }
+ }
+
+ PlatformType DetectPlatformType()
+ {
+ switch (Environment.OSVersion.Platform)
+ {
+ case PlatformID.WinCE:
+ case PlatformID.Win32NT:
+ case PlatformID.Win32S:
+ case PlatformID.Win32Windows:
+ return AgateLib.PlatformType.Windows;
+
+ case PlatformID.Unix:
+ string kernel = DetectUnixKernel();
+
+ if (kernel == "Darwin")
+ return PlatformType.MacOS;
+ else
+ return PlatformType.Linux;
+
+ case PlatformID.MacOSX:
+ return PlatformType.MacOS;
+
+ case PlatformID.Xbox:
+ return PlatformType.XBox360;
+ }
+
+ return PlatformType.Unknown;
+ }
+
+ #region private static string DetectUnixKernel()
+
+ [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi)]
+ struct utsname
+ {
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
+ public string sysname;
+
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
+ public string nodename;
+
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
+ public string release;
+
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
+ public string version;
+
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
+ public string machine;
+
+ [MarshalAs(UnmanagedType.ByValTStr, SizeConst = 1024)]
+ private string extraJustInCase;
+
+ }
+
+ /// <summary>
+ /// Detects the unix kernel by p/invoking the uname call in libc.
+ /// </summary>
+ /// <returns></returns>
+ private static string DetectUnixKernel()
+ {
+ Debug.Print("Size: {0}", Marshal.SizeOf(typeof(utsname)).ToString());
+ Debug.Flush();
+
+ utsname uts = new utsname();
+ uname(out uts);
+
+ Debug.WriteLine("System:");
+ Debug.Indent();
+ Debug.WriteLine(uts.sysname);
+ Debug.WriteLine(uts.nodename);
+ Debug.WriteLine(uts.release);
+ Debug.WriteLine(uts.version);
+ Debug.WriteLine(uts.machine);
+ Debug.Unindent();
+
+ return uts.sysname.ToString();
+ }
+
+ [DllImport("libc")]
+ private static extern void uname(out utsname uname_struct);
+
+ #endregion
+
+
+ private void CheckOSVersion()
+ {
+ var version = System.Environment.OSVersion.Version;
+
+ Debug.Print("OS Version: {0}", System.Environment.OSVersion.VersionString);
+ Debug.IndentLevel++;
+ Debug.Print("Major: {0}", version.Major);
+ Debug.Print("Major revision: {0}", version.MajorRevision);
+ Debug.Print("Minor: {0}", version.Minor);
+ Debug.Print("Minor revision: {0}", version.MinorRevision);
+ Debug.Print("Revision: {0}", version.Revision);
+ Debug.Print("Build: {0}", version.Build);
+ Debug.Print("Service Pack: {0}", System.Environment.OSVersion.ServicePack);
+ Debug.IndentLevel--;
+ }
+
+ private WindowsVersion DetectWindowsVersion()
+ {
+ WindowsVersion retval = WindowsVersion.WindowsVista;
+
+ switch (System.Environment.OSVersion.Version.Major)
+ {
+ case 4:
+ retval = WindowsVersion.Windows98;
+ break;
+ case 5:
+ retval = WindowsVersion.WindowsXP;
+ break;
+ case 6:
+ retval = WindowsVersion.WindowsVista;
+ break;
+ case 7:
+ retval = WindowsVersion.Windows7;
+ break;
+ case 8:
+ retval = WindowsVersion.Windows8;
+ break;
+ }
+
+ return retval;
+ }
+
+ }
+}
Modified: trunk/Drivers/AgateDrawing/Drawing_DisplayWindow.cs
===================================================================
--- trunk/Drivers/AgateDrawing/Drawing_DisplayWindow.cs 2013-11-28 19:27:14 UTC (rev 1373)
+++ trunk/Drivers/AgateDrawing/Drawing_DisplayWindow.cs 2013-12-03 03:37:20 UTC (rev 1374)
@@ -144,7 +144,7 @@
return retval;
}
-
+
void form_FormClosed(object sender, FormClosedEventArgs e)
{
mIsClosed = true;
@@ -193,7 +193,7 @@
void pct_MouseMove(object sender, MouseEventArgs e)
{
- Mouse.OnMouseMove();
+ SetInternalMousePosition(Interop.Convert(e.Location));
}
void renderTarget_Disposed(object sender, EventArgs e)
@@ -228,7 +228,7 @@
{
if (mRenderTarget.ClientSize.Width == 0 || mRenderTarget.ClientSize.Height == 0)
return;
-
+
if (mBackBuffer != null)
mBackBuffer.Dispose();
@@ -240,10 +240,7 @@
public Control RenderTarget
{
- get
- {
- return mRenderTarget;
- }
+ get { return mRenderTarget; }
}
public Bitmap BackBuffer
{
Modified: trunk/Drivers/AgateLib.WinForms/DisplayWindowForm.cs
===================================================================
--- trunk/Drivers/AgateLib.WinForms/DisplayWindowForm.cs 2013-11-28 19:27:14 UTC (rev 1373)
+++ trunk/Drivers/AgateLib.WinForms/DisplayWindowForm.cs 2013-12-03 03:37:20 UTC (rev 1374)
@@ -26,7 +26,7 @@
namespace AgateLib.WinForms
{
/// <summary>
- /// Form which is used fora generic Display.
+ /// Form which is used for a generic Display.
/// </summary>
/// <remarks>
/// [Experimental - This class will be moved to into a different assembly
Modified: trunk/Drivers/AgateOTK/GL_DisplayControl.cs
===================================================================
--- trunk/Drivers/AgateOTK/GL_DisplayControl.cs 2013-11-28 19:27:14 UTC (rev 1373)
+++ trunk/Drivers/AgateOTK/GL_DisplayControl.cs 2013-12-03 03:37:20 UTC (rev 1374)
@@ -482,7 +482,7 @@
}
void pct_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
{
- Mouse.OnMouseMove();
+ SetInternalMousePosition(Interop.Convert(e.Location));
}
void renderTarget_Disposed(object sender, EventArgs e)
{
Modified: trunk/Drivers/AgateOTK/GL_GameWindow.cs
===================================================================
--- trunk/Drivers/AgateOTK/GL_GameWindow.cs 2013-11-28 19:27:14 UTC (rev 1373)
+++ trunk/Drivers/AgateOTK/GL_GameWindow.cs 2013-12-03 03:37:20 UTC (rev 1374)
@@ -261,7 +261,7 @@
}
void Mouse_Move(object sender, OpenTK.Input.MouseMoveEventArgs e)
{
- Mouse.Position = new Point(e.X, e.Y);
+ SetInternalMousePosition(new Point(e.X, e.Y));
}
private static KeyCode TransformKey(OpenTK.Input.Key key)
Modified: trunk/Drivers/AgateSDX/SDX_DisplayWindow.cs
===================================================================
--- trunk/Drivers/AgateSDX/SDX_DisplayWindow.cs 2013-11-28 19:27:14 UTC (rev 1373)
+++ trunk/Drivers/AgateSDX/SDX_DisplayWindow.cs 2013-12-03 03:37:20 UTC (rev 1374)
@@ -234,7 +234,7 @@
}
void pct_MouseMove(object sender, System.Windows.Forms.MouseEventArgs e)
{
- Mouse.OnMouseMove();
+ SetInternalMousePosition(Interop.Convert(e.Location));
}
void renderTarget_Disposed(object sender, EventArgs e)
{
Modified: trunk/Tests/settings_list.txt
===================================================================
--- trunk/Tests/settings_list.txt 2013-11-28 19:27:14 UTC (rev 1373)
+++ trunk/Tests/settings_list.txt 2013-12-03 03:37:20 UTC (rev 1374)
@@ -1,4 +1,4 @@
-AgateLib.DisplayDriver SlimDX - Direct3D 9
+AgateLib.DisplayDriver OpenGL through OpenTK 1.0.278.44921
AgateLib.AudioDriver Default
AgateLib.InputDriver Default
AgateLib.OpenGL.DisableFramebufferArb
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ka...@us...> - 2013-12-03 03:37:46
|
Revision: 1375
http://sourceforge.net/p/agate/code/1375
Author: kanato
Date: 2013-12-03 03:37:41 +0000 (Tue, 03 Dec 2013)
Log Message:
-----------
Refactor AgateConsole and introduce a unit test for it.
Modified Paths:
--------------
trunk/AgateLib/AgateConsole.cs
trunk/UnitTests/UnitTests.csproj
Added Paths:
-----------
trunk/UnitTests/Core/
trunk/UnitTests/Core/ConsoleTests.cs
Modified: trunk/AgateLib/AgateConsole.cs
===================================================================
--- trunk/AgateLib/AgateConsole.cs 2013-12-03 03:37:20 UTC (rev 1374)
+++ trunk/AgateLib/AgateConsole.cs 2013-12-03 03:37:41 UTC (rev 1375)
@@ -10,7 +10,7 @@
namespace AgateLib
{
- public class AgateConsole : TraceListener
+ public class AgateConsole
{
#region --- Static Members ---
@@ -33,8 +33,16 @@
if (sInstance != null)
return;
+ PrivateInitialize();
+
+ }
+
+ private static void PrivateInitialize()
+ {
+ if (sInstance == null)
+ sInstance = new AgateConsole();
+
VisibleToggleKey = KeyCode.Tilde;
- sInstance = new AgateConsole();
TextColor = Color.White;
EntryColor = Color.Yellow;
@@ -42,11 +50,16 @@
AgateLib.InputLib.Keyboard.KeyDown += Keyboard_KeyDown;
}
+ /// <summary>
+ /// Draws the console window. Call this right before your Display.EndFrame call.
+ /// </summary>
public static void Draw()
{
- if (sInstance == null)
- return;
+ if (sInstance == null) return;
+ if (Font == null)
+ Font = FontSurface.AgateSans10;
+
sInstance.DrawImpl();
}
@@ -59,65 +72,245 @@
}
else if (sInstance.mVisible)
{
- sInstance.KeyDown(e);
+ sInstance.ProcessKeyDown(e);
}
}
- public static ConsoleDictionary Commands { get { return sInstance.mCommands; } }
+ #endregion
+ class AgateConsoleTraceListener : TraceListener
+ {
+ AgateConsole mOwner;
+ ConsoleMessage current;
+ Stopwatch watch = new Stopwatch();
- #endregion
+ public AgateConsoleTraceListener(AgateConsole owner)
+ {
+ mOwner = owner;
+ Trace.Listeners.Add(this);
- ConsoleDictionary mCommands = new ConsoleDictionary();
+ watch.Start();
+ }
+
+ public override void Write(string message)
+ {
+ if (current == null)
+ {
+ current = new ConsoleMessage();
+ mOwner.mMessages.Add(current);
+ }
+
+ current.Time = watch.ElapsedMilliseconds;
+ current.Text += message;
+ }
+ public override void WriteLine(string message)
+ {
+ if (current == null)
+ {
+ current = new ConsoleMessage();
+ mOwner.mMessages.Add(current);
+ }
+
+ current.Text += message;
+ current.Time = watch.ElapsedMilliseconds;
+ current = null;
+ }
+
+ public Stopwatch Watch { get { return watch; } }
+ }
+ public class AgateConsoleCommandProcessor
+ {
+ ConsoleDictionary mCommands = new ConsoleDictionary();
+
+ public AgateConsoleCommandProcessor()
+ {
+ mCommands.Add("help", new Action<string>(HelpCommand));
+ }
+
+ public ConsoleDictionary Commands { get { return mCommands; } }
+
+ public void ExecuteCommand(string[] tokens)
+ {
+ if (mCommands.ContainsKey(tokens[0]) == false)
+ {
+ WriteLine("Invalid command: " + tokens[0]);
+ }
+ else
+ {
+ ExecuteDelegate(mCommands[tokens[0]], tokens);
+ }
+ }
+
+ private void ExecuteDelegate(Delegate p, string[] tokens)
+ {
+ var parameters = p.Method.GetParameters();
+ object[] args = new object[parameters.Length];
+ bool notEnoughArgs = false;
+ bool badArgs = false;
+
+ for (int i = 0; i < parameters.Length || i < tokens.Length - 1; i++)
+ {
+ if (i < args.Length && i < tokens.Length - 1)
+ {
+ try
+ {
+ args[i] = Convert.ChangeType(tokens[i + 1], parameters[i].ParameterType);
+ }
+ catch
+ {
+ WriteLine("Argument #" + (i + 1).ToString() + " invalid: \"" +
+ tokens[i + 1] + "\" not convertable to " + parameters[i].ParameterType.Name);
+ badArgs = true;
+ }
+ }
+ else if (i < args.Length)
+ {
+ if (parameters[i].IsOptional)
+ {
+ args[i] = Type.Missing;
+ }
+ else
+ {
+ if (notEnoughArgs == false)
+ {
+ WriteLine("Insufficient arguments for command: " + tokens[0]);
+ }
+ notEnoughArgs = true;
+
+ WriteLine(" missing " + parameters[i].ParameterType.Name + " argument: " + parameters[i].Name);
+ }
+ }
+ else
+ {
+ WriteLine("[Ignoring extra argument: " + tokens[i + 1] + "]");
+ }
+ }
+
+ if (badArgs || notEnoughArgs)
+ return;
+
+ object retval = p.Method.Invoke(p.Target, args);
+
+ if (p.Method.ReturnType != typeof(void) && retval != null)
+ {
+ WriteLine(retval.ToString());
+ }
+ }
+
+
+ private void HelpCommand(string command = "")
+ {
+ command = command.ToLowerInvariant().Trim();
+
+ if (string.IsNullOrEmpty(command) || mCommands.ContainsKey(command) == false)
+ {
+ WriteLine("Available Commands:");
+
+ foreach (var cmd in mCommands.Keys)
+ {
+ if (cmd == "help")
+ continue;
+
+ WriteLine(" " + cmd);
+ }
+
+ WriteLine("Type \"help <command>\" for help on a specific command.");
+ }
+ else
+ {
+ Delegate d = mCommands[command];
+
+ Write("Usage: ");
+ Write(command + " ");
+
+ var parameters = d.Method.GetParameters();
+ for (int i = 0; i < parameters.Length; i++)
+ {
+ if (parameters[i].IsOptional)
+ Write("[");
+
+ Write(parameters[i].Name);
+
+ if (parameters[i].IsOptional)
+ Write("]");
+ }
+
+ WriteLine("");
+
+ if (DescribeCommand != null)
+ {
+ string text = DescribeCommand(command);
+
+ if (string.IsNullOrEmpty(text) == false)
+ {
+ WriteLine("");
+ WriteLine(DescribeCommand(command));
+ }
+ }
+ }
+ }
+
+ void WriteLine(string text)
+ {
+ AgateConsole.Instance.WriteLine(text);
+ }
+ void Write(string text)
+ {
+ AgateConsole.Instance.Write(text);
+ }
+
+ public event DescribeCommandHandler DescribeCommand;
+ }
+
List<ConsoleMessage> mInputHistory = new List<ConsoleMessage>();
List<ConsoleMessage> mMessages = new List<ConsoleMessage>();
- ConsoleMessage current;
- Stopwatch watch = new Stopwatch();
+ AgateConsoleTraceListener mTraceListener;
+ AgateConsoleCommandProcessor mCommandProcessor = new AgateConsoleCommandProcessor();
+
bool mVisible = false;
string mCurrentLine;
int mHeight;
int mHistoryIndex;
- private AgateConsole()
+ public AgateConsole()
{
- Trace.Listeners.Add(this);
- watch.Start();
+ if (sInstance != null)
+ throw new InvalidOperationException("Cannot create two AgateConsole objects!");
- if (Font == null)
- Font = FontSurface.AgateSans10;
+ sInstance = this;
+ Initialize();
- mCommands.Add("help", new Action<string>(HelpCommand));
+ mTraceListener = new AgateConsoleTraceListener(this);
}
- public override void Write(string message)
+ public AgateConsoleCommandProcessor CommandProcessor
{
- if (current == null)
- {
- current = new ConsoleMessage();
- mMessages.Add(current);
- }
+ get { return mCommandProcessor; }
+ set { mCommandProcessor = value; }
+ }
- current.Time = watch.ElapsedMilliseconds;
- current.Text += message;
+ /// <summary>
+ /// Writes a line to the output part of the console window.
+ /// </summary>
+ /// <param name="text"></param>
+ public void WriteLine(string text)
+ {
+ mTraceListener.WriteLine(text);
}
- public override void WriteLine(string message)
+ /// <summary>
+ /// Writes some text to the output part of the console window.
+ /// </summary>
+ /// <param name="text"></param>
+ public void Write(string text)
{
- if (current == null)
- {
- current = new ConsoleMessage();
- mMessages.Add(current);
- }
-
- current.Text += message;
- current.Time = watch.ElapsedMilliseconds;
- current = null;
+ mTraceListener.Write(text);
}
void DrawImpl()
{
if (mVisible == false)
{
- long time = watch.ElapsedMilliseconds;
+ long time = mTraceListener.Watch.ElapsedMilliseconds;
int y = 0;
Font.DisplayAlignment = OriginAlignment.TopLeft;
Font.Color = TextColor;
@@ -154,7 +347,7 @@
Font.DrawText(0, y, currentLineText);
// draw insertion point
- if (watch.ElapsedMilliseconds % 1000 < 500)
+ if (mTraceListener.Watch.ElapsedMilliseconds % 1000 < 500)
{
int x = Font.MeasureString(currentLineText).Width;
@@ -194,31 +387,42 @@
return p.Replace("{", "{{}");
}
- private void KeyDown(InputEventArgs e)
+
+
+ public void ProcessKeys(string keys)
{
+ ModifyHistoryLine();
+ mCurrentLine += keys;
+ }
+ /// <summary>
+ /// Processes an input key.
+ /// </summary>
+ /// <param name="e"></param>
+ public void ProcessKeyDown(InputEventArgs e)
+ {
if (e.KeyCode == KeyCode.Up)
{
mHistoryIndex++;
-
+
if (mHistoryIndex > mInputHistory.Count)
mHistoryIndex = mInputHistory.Count;
}
else if (e.KeyCode == KeyCode.Down)
{
mHistoryIndex--;
-
+
if (mHistoryIndex < 0)
mHistoryIndex = 0;
}
else if (e.KeyCode == KeyCode.Enter || e.KeyCode == KeyCode.Return)
- {
+ {
ModifyHistoryLine();
ConsoleMessage input = new ConsoleMessage
{
Text = mCurrentLine,
MessageType = ConsoleMessageType.UserInput,
- Time = watch.ElapsedMilliseconds
+ Time = mTraceListener.Watch.ElapsedMilliseconds
};
mMessages.Add(input);
@@ -277,125 +481,9 @@
mCurrentLine = string.Empty;
- if (mCommands.ContainsKey(tokens[0]) == false)
- {
- WriteLine("Invalid command: " + tokens[0]);
- }
- else
- {
- ExecuteDelegate(mCommands[tokens[0]], tokens);
- }
+ mCommandProcessor.ExecuteCommand(tokens);
}
- private void ExecuteDelegate(Delegate p, string[] tokens)
- {
- var parameters = p.Method.GetParameters();
- object[] args = new object[parameters.Length];
- bool notEnoughArgs = false;
- bool badArgs = false;
-
- for (int i = 0; i < parameters.Length || i < tokens.Length - 1; i++)
- {
- if (i < args.Length && i < tokens.Length - 1)
- {
- try
- {
- args[i] = Convert.ChangeType(tokens[i + 1], parameters[i].ParameterType);
- }
- catch
- {
- WriteLine("Argument #" + (i + 1).ToString() + " invalid: \"" +
- tokens[i + 1] + "\" not convertable to " + parameters[i].ParameterType.Name);
- badArgs = true;
- }
- }
- else if (i < args.Length)
- {
- if (parameters[i].IsOptional)
- {
- args[i] = Type.Missing;
- }
- else
- {
- if (notEnoughArgs == false)
- {
- WriteLine("Insufficient arguments for command: " + tokens[0]);
- }
- notEnoughArgs = true;
-
- WriteLine(" missing " + parameters[i].ParameterType.Name + " argument: " + parameters[i].Name);
- }
- }
- else
- {
- WriteLine("[Ignoring extra argument: " + tokens[i + 1] + "]");
- }
- }
-
- if (badArgs || notEnoughArgs)
- return;
-
- object retval = p.Method.Invoke(p.Target, args);
-
- if (p.Method.ReturnType != typeof(void) && retval != null)
- {
- WriteLine(retval.ToString());
- }
- }
-
- private void HelpCommand(string command = "")
- {
- command = command.ToLowerInvariant().Trim();
-
- if (string.IsNullOrEmpty(command) || mCommands.ContainsKey(command) == false)
- {
- WriteLine("Available Commands:");
-
- foreach (var cmd in mCommands.Keys)
- {
- if (cmd == "help")
- continue;
-
- WriteLine(" " + cmd);
- }
-
- WriteLine("Type \"help <command>\" for help on a specific command.");
- }
- else
- {
- Delegate d = mCommands[command];
-
- Write("Usage: ");
- Write(command + " ");
-
- var parameters = d.Method.GetParameters();
- for(int i = 0; i < parameters.Length; i++)
- {
- if (parameters[i].IsOptional)
- Write("[");
-
- Write(parameters[i].Name);
-
- if (parameters[i].IsOptional)
- Write("]");
- }
-
- WriteLine("");
-
- if (DescribeCommand != null)
- {
- string text = DescribeCommand(command);
-
- if (string.IsNullOrEmpty(text) == false)
- {
- WriteLine("");
- WriteLine(DescribeCommand(command));
- }
- }
- }
- }
-
- public static event DescribeCommandHandler DescribeCommand;
}
public class ConsoleDictionary : Dictionary<string, Delegate>
Added: trunk/UnitTests/Core/ConsoleTests.cs
===================================================================
--- trunk/UnitTests/Core/ConsoleTests.cs (rev 0)
+++ trunk/UnitTests/Core/ConsoleTests.cs 2013-12-03 03:37:41 UTC (rev 1375)
@@ -0,0 +1,32 @@
+using System;
+using Microsoft.VisualStudio.TestTools.UnitTesting;
+using AgateLib.InputLib;
+
+namespace AgateLib.UnitTests.Core
+{
+ [TestClass]
+ public class ConsoleTests
+ {
+ [TestMethod]
+ public void HelpCommand()
+ {
+ AgateConsole c = new AgateConsole();
+ int count = 0;
+
+ c.CommandProcessor.DescribeCommand += (cmd) => { count++; return string.Empty; };
+
+ c.ProcessKeys("help");
+ c.ProcessKeyDown(new InputEventArgs(KeyCode.Enter, new KeyModifiers(false, false, false)));
+
+ Assert.AreEqual(0, count);
+
+ c.ProcessKeys("help help");
+ c.ProcessKeyDown(new InputEventArgs(KeyCode.Enter, new KeyModifiers(false, false, false)));
+ Assert.AreEqual(1, count);
+
+ c.ProcessKeys("help unknown_command");
+ c.ProcessKeyDown(new InputEventArgs(KeyCode.Enter, new KeyModifiers(false, false, false)));
+ Assert.AreEqual(1, count);
+ }
+ }
+}
Modified: trunk/UnitTests/UnitTests.csproj
===================================================================
--- trunk/UnitTests/UnitTests.csproj 2013-12-03 03:37:20 UTC (rev 1374)
+++ trunk/UnitTests/UnitTests.csproj 2013-12-03 03:37:41 UTC (rev 1375)
@@ -86,6 +86,7 @@
</Otherwise>
</Choose>
<ItemGroup>
+ <Compile Include="Core\ConsoleTests.cs" />
<Compile Include="Display\DisplayTests.cs" />
<Compile Include="Fakes\FakeDisplayDriver.cs" />
<Compile Include="Fakes\FakeDisplayWindow.cs" />
@@ -96,14 +97,14 @@
<Compile Include="Utility\RefTest.cs" />
</ItemGroup>
<ItemGroup>
+ <None Include="packages.config" />
+ </ItemGroup>
+ <ItemGroup>
<ProjectReference Include="..\AgateLib\AgateLib.csproj">
<Project>{9490b719-829e-43a7-a5fe-8001f8a81759}</Project>
<Name>AgateLib</Name>
</ProjectReference>
</ItemGroup>
- <ItemGroup>
- <None Include="packages.config" />
- </ItemGroup>
<Choose>
<When Condition="'$(VisualStudioVersion)' == '10.0' And '$(IsCodedUITest)' == 'True'">
<ItemGroup>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ka...@us...> - 2013-12-03 05:48:18
|
Revision: 1376
http://sourceforge.net/p/agate/code/1376
Author: kanato
Date: 2013-12-03 05:48:16 +0000 (Tue, 03 Dec 2013)
Log Message:
-----------
Fix backspace in console when browsing history.
Modified Paths:
--------------
trunk/AgateLib/AgateConsole.cs
trunk/UnitTests/Core/ConsoleTests.cs
Modified: trunk/AgateLib/AgateConsole.cs
===================================================================
--- trunk/AgateLib/AgateConsole.cs 2013-12-03 03:37:41 UTC (rev 1375)
+++ trunk/AgateLib/AgateConsole.cs 2013-12-03 05:48:16 UTC (rev 1376)
@@ -10,7 +10,7 @@
namespace AgateLib
{
- public class AgateConsole
+ public class AgateConsole : IDisposable
{
#region --- Static Members ---
@@ -288,6 +288,12 @@
get { return mCommandProcessor; }
set { mCommandProcessor = value; }
}
+ public void Dispose()
+ {
+ Dispose(true);
+ sInstance = null;
+ }
+ protected virtual void Dispose(bool disposing) { }
/// <summary>
/// Writes a line to the output part of the console window.
@@ -388,10 +394,32 @@
}
-
+ /// <summary>
+ /// Sends the key string to the console as if the user typed it.
+ /// </summary>
+ /// <param name="keys"></param>
+ /// <remarks>
+ /// Control characters are treated specially. A line feed (\n) is
+ /// treated as the end of line. \r is ignored.
+ /// \t is converted to a space.
+ /// </remarks>
public void ProcessKeys(string keys)
{
+ keys = keys.Replace('\t', ' ');
+ keys = keys.Replace("\r", "");
+
ModifyHistoryLine();
+
+ int index = keys.IndexOf('\n');
+ while (index > -1)
+ {
+ mCurrentLine += keys.Substring(0, index);
+ ProcessKeyDown(new InputEventArgs(KeyCode.Enter, new KeyModifiers()));
+
+ keys = keys.Substring(index + 1);
+ index = keys.IndexOf('\n');
+ }
+
mCurrentLine += keys;
}
/// <summary>
@@ -441,10 +469,10 @@
}
else if (e.KeyCode == KeyCode.BackSpace)
{
+ ModifyHistoryLine();
+
if (mCurrentLine.Length > 0)
{
- ModifyHistoryLine();
-
mCurrentLine = mCurrentLine.Substring(0, mCurrentLine.Length - 1);
}
}
@@ -484,6 +512,8 @@
mCommandProcessor.ExecuteCommand(tokens);
}
+
+ public string CurrentLine { get { return mCurrentLine; } }
}
public class ConsoleDictionary : Dictionary<string, Delegate>
Modified: trunk/UnitTests/Core/ConsoleTests.cs
===================================================================
--- trunk/UnitTests/Core/ConsoleTests.cs 2013-12-03 03:37:41 UTC (rev 1375)
+++ trunk/UnitTests/Core/ConsoleTests.cs 2013-12-03 05:48:16 UTC (rev 1376)
@@ -7,26 +7,68 @@
[TestClass]
public class ConsoleTests
{
+ AgateConsole console;
+ int describeCallCount = 0;
+
+ [TestInitialize]
+ public void Init()
+ {
+ console = new AgateConsole();
+
+ console.CommandProcessor.DescribeCommand += (cmd) => { describeCallCount++; return string.Empty; };
+ }
+ [TestCleanup]
+ public void Cleanup()
+ {
+ console.Dispose();
+ }
+
[TestMethod]
public void HelpCommand()
{
- AgateConsole c = new AgateConsole();
- int count = 0;
+ console.ProcessKeys("help");
+ console.ProcessKeyDown(new InputEventArgs(KeyCode.Enter, new KeyModifiers()));
- c.CommandProcessor.DescribeCommand += (cmd) => { count++; return string.Empty; };
+ Assert.AreEqual(0, describeCallCount);
- c.ProcessKeys("help");
- c.ProcessKeyDown(new InputEventArgs(KeyCode.Enter, new KeyModifiers(false, false, false)));
+ console.ProcessKeys("help help");
+ console.ProcessKeyDown(new InputEventArgs(KeyCode.Enter, new KeyModifiers()));
+ Assert.AreEqual(1, describeCallCount);
- Assert.AreEqual(0, count);
+ console.ProcessKeys("help unknown_command");
+ console.ProcessKeyDown(new InputEventArgs(KeyCode.Enter, new KeyModifiers()));
+ Assert.AreEqual(1, describeCallCount);
+ }
- c.ProcessKeys("help help");
- c.ProcessKeyDown(new InputEventArgs(KeyCode.Enter, new KeyModifiers(false, false, false)));
- Assert.AreEqual(1, count);
+ [TestMethod]
+ public void KeystrokeEditing()
+ {
+ console.ProcessKeys("help");
+ console.ProcessKeyDown(new InputEventArgs(KeyCode.BackSpace, new KeyModifiers()));
- c.ProcessKeys("help unknown_command");
- c.ProcessKeyDown(new InputEventArgs(KeyCode.Enter, new KeyModifiers(false, false, false)));
- Assert.AreEqual(1, count);
+ Assert.AreEqual("hel", console.CurrentLine);
+
+ console.ProcessKeys("x");
+ Assert.AreEqual("helx", console.CurrentLine);
}
+
+ [TestMethod]
+ public void HistoryBrowsing()
+ {
+ console.ProcessKeys("help\nhelp help\nhelp unknown_command\n");
+ console.ProcessKeyDown(new InputEventArgs(KeyCode.Up, new KeyModifiers()));
+ console.ProcessKeys("x");
+ Assert.AreEqual("help unknown_commandx", console.CurrentLine);
+
+ console.ProcessKeys("\n");
+ Assert.AreEqual("", console.CurrentLine);
+
+ console.ProcessKeyDown(new InputEventArgs(KeyCode.Up, new KeyModifiers()));
+ console.ProcessKeyDown(new InputEventArgs(KeyCode.Up, new KeyModifiers()));
+ console.ProcessKeyDown(new InputEventArgs(KeyCode.Up, new KeyModifiers()));
+ console.ProcessKeyDown(new InputEventArgs(KeyCode.BackSpace, new KeyModifiers()));
+ Assert.AreEqual("help hel", console.CurrentLine);
+
+ }
}
-}
+}
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ka...@us...> - 2014-01-16 04:18:03
|
Revision: 1379
http://sourceforge.net/p/agate/code/1379
Author: kanato
Date: 2014-01-16 04:17:59 +0000 (Thu, 16 Jan 2014)
Log Message:
-----------
Added some functionality to AgateConsole.
AgateConsole is called directly in processing of keyboard events.
Modified Paths:
--------------
trunk/AgateLib/AgateConsole.cs
trunk/AgateLib/DisplayLib/Display.cs
trunk/AgateLib/InputLib/Keyboard.cs
trunk/Tests/settings_list.txt
Modified: trunk/AgateLib/AgateConsole.cs
===================================================================
--- trunk/AgateLib/AgateConsole.cs 2013-12-11 16:00:32 UTC (rev 1378)
+++ trunk/AgateLib/AgateConsole.cs 2014-01-16 04:17:59 UTC (rev 1379)
@@ -7,6 +7,7 @@
using AgateLib.DisplayLib;
using AgateLib.Geometry;
using AgateLib.InputLib;
+using System.ComponentModel;
namespace AgateLib
{
@@ -15,12 +16,27 @@
#region --- Static Members ---
static AgateConsole sInstance;
+
+ public static bool IsInitialized { get { return sInstance != null; } }
+
public static FontSurface Font { get; set; }
public static KeyCode VisibleToggleKey { get; set; }
public static bool IsVisible
{
- get { return sInstance.mVisible; }
- set { sInstance.mVisible = value; }
+ get
+ {
+ if (sInstance == null)
+ return false;
+
+ return sInstance.mVisible;
+ }
+ set
+ {
+ if (sInstance == null)
+ throw new AgateException("You must initalize the console before making it visible.");
+
+ sInstance.mVisible = value;
+ }
}
public static Color TextColor { get; set; }
@@ -36,7 +52,6 @@
return;
PrivateInitialize();
-
}
private static void PrivateInitialize()
@@ -48,9 +63,7 @@
TextColor = Color.White;
EntryColor = Color.Yellow;
- BackgroundColor = Color.FromArgb(128, Color.Black);
-
- AgateLib.InputLib.Keyboard.KeyDown += Keyboard_KeyDown;
+ BackgroundColor = Color.FromArgb(192, Color.Black);
}
/// <summary>
/// Draws the console window. Call this right before your Display.EndFrame call.
@@ -65,7 +78,7 @@
sInstance.DrawImpl();
}
- static void Keyboard_KeyDown(InputEventArgs e)
+ internal static void Keyboard_KeyDown(InputEventArgs e)
{
if (e.KeyCode == VisibleToggleKey)
{
@@ -77,15 +90,18 @@
sInstance.ProcessKeyDown(e);
}
}
+ internal static void Keyboard_KeyUp(InputEventArgs eventArgs)
+ {
+ }
/// <summary>
/// Writes a line to the output part of the console window.
/// </summary>
/// <param name="text"></param>
- public static void WriteLine(string text)
+ public static void WriteLine(string text, params object[] args)
{
- Instance.WriteLineImpl(text);
+ Instance.WriteLineImpl(string.Format(text, args));
}
/// <summary>
/// Writes some text to the output part of the console window.
@@ -138,7 +154,7 @@
public Stopwatch Watch { get { return watch; } }
}
-
+
List<ConsoleMessage> mInputHistory = new List<ConsoleMessage>();
List<ConsoleMessage> mMessages = new List<ConsoleMessage>();
AgateConsoleTraceListener mTraceListener;
@@ -380,8 +396,17 @@
mCurrentLine = string.Empty;
- mCommandProcessor.ExecuteCommand(tokens);
+ try
+ {
+ mCommandProcessor.ExecuteCommand(tokens);
+ }
+ catch (System.Reflection.TargetInvocationException ex)
+ {
+ var e = ex.InnerException;
+ WriteLine("Caught exception: {0}", e.GetType());
+ WriteLine(e.Message);
+ }
}
public string CurrentLine { get { return mCurrentLine; } }
@@ -561,16 +586,25 @@
WriteLine("");
+ string description = "";
+
if (DescribeCommand != null)
{
- string text = DescribeCommand(command);
+ description = DescribeCommand(command);
+ }
+ if (string.IsNullOrEmpty(description))
+ {
+ var descripAttrib = (DescriptionAttribute)d.Method.GetCustomAttributes(typeof(DescriptionAttribute), false).FirstOrDefault();
- if (string.IsNullOrEmpty(text) == false)
- {
- WriteLine("");
- WriteLine(DescribeCommand(command));
- }
+ if (descripAttrib != null)
+ description = descripAttrib.Description;
}
+
+ if (string.IsNullOrEmpty(description) == false)
+ {
+ WriteLine(description);
+ }
+
}
}
Modified: trunk/AgateLib/DisplayLib/Display.cs
===================================================================
--- trunk/AgateLib/DisplayLib/Display.cs 2013-12-11 16:00:32 UTC (rev 1378)
+++ trunk/AgateLib/DisplayLib/Display.cs 2014-01-16 04:17:59 UTC (rev 1379)
@@ -306,6 +306,9 @@
/// </summary>
public static void EndFrame()
{
+ if (AgateConsole.IsVisible)
+ AgateConsole.Draw();
+
sImpl.EndFrame();
}
Modified: trunk/AgateLib/InputLib/Keyboard.cs
===================================================================
--- trunk/AgateLib/InputLib/Keyboard.cs 2013-12-11 16:00:32 UTC (rev 1378)
+++ trunk/AgateLib/InputLib/Keyboard.cs 2014-01-16 04:17:59 UTC (rev 1379)
@@ -223,13 +223,26 @@
}
private static void OnKeyDown(KeyCode id, KeyModifiers mods, int repeatCount)
{
- if (KeyDown != null)
- KeyDown(new InputEventArgs(id, mods, repeatCount));
+ var eventArgs = new InputEventArgs(id, mods, repeatCount);
+
+ if (AgateConsole.IsInitialized &&
+ (AgateConsole.IsVisible || id == AgateConsole.VisibleToggleKey))
+ {
+ AgateConsole.Keyboard_KeyDown(eventArgs);
+ }
+ else if (KeyDown != null)
+ KeyDown(eventArgs);
}
private static void OnKeyUp(KeyCode id, KeyModifiers mods)
{
- if (KeyUp != null)
- KeyUp(new InputEventArgs(id, mods));
+ var eventArgs = new InputEventArgs(id, mods);
+
+ if (AgateConsole.IsVisible)
+ {
+ AgateConsole.Keyboard_KeyUp(eventArgs);
+ }
+ else if (KeyUp != null)
+ KeyUp(eventArgs);
}
/// <summary>
Modified: trunk/Tests/settings_list.txt
===================================================================
--- trunk/Tests/settings_list.txt 2013-12-11 16:00:32 UTC (rev 1378)
+++ trunk/Tests/settings_list.txt 2014-01-16 04:17:59 UTC (rev 1379)
@@ -1,4 +1,4 @@
-AgateLib.DisplayDriver OpenGL through OpenTK 1.0.278.44921
+AgateLib.DisplayDriver SlimDX - Direct3D 9
AgateLib.AudioDriver Default
AgateLib.InputDriver Default
AgateLib.OpenGL.DisableFramebufferArb
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ka...@us...> - 2014-03-21 15:40:25
|
Revision: 1385
http://sourceforge.net/p/agate/code/1385
Author: kanato
Date: 2014-03-21 15:40:22 +0000 (Fri, 21 Mar 2014)
Log Message:
-----------
Fix some issue with the SDL_mixer calls, so that sound buffers would be freed when they are stopped.
Modified Paths:
--------------
trunk/AgateLib/AudioLib/SoundBuffer.cs
trunk/AgateLib/AudioLib/SoundBufferSession.cs
trunk/AgateLib/IFileProvider.cs
trunk/AgateLib/Serialization/Xle/XleSerializationInfo.cs
trunk/AgateLib/Utility/FileProviderList.cs
trunk/AgateLib/Utility/FileSystemProvider.cs
trunk/AgateLib/Utility/TgzFileProvider.cs
trunk/AgateLib/Utility/ZipFileProvider.cs
trunk/Drivers/AgateSDL/Audio/SDL_Audio.cs
trunk/Drivers/AgateSDL/Audio/SDL_SoundBuffer.cs
trunk/Drivers/AgateSDL/Audio/SDL_SoundBufferSession.cs
Modified: trunk/AgateLib/AudioLib/SoundBuffer.cs
===================================================================
--- trunk/AgateLib/AudioLib/SoundBuffer.cs 2014-03-08 04:23:33 UTC (rev 1384)
+++ trunk/AgateLib/AudioLib/SoundBuffer.cs 2014-03-21 15:40:22 UTC (rev 1385)
@@ -74,10 +74,17 @@
/// <param name="filename"></param>
public SoundBuffer(IFileProvider fileProvider, string filename)
{
- using (System.IO.Stream s = fileProvider.OpenRead(filename))
+ if (fileProvider.IsRealFile(filename))
{
- mImpl = Audio.Impl.CreateSoundBuffer(s);
+ mImpl = Audio.Impl.CreateSoundBuffer(fileProvider.ResolveFile(filename));
}
+ else
+ {
+ using (System.IO.Stream s = fileProvider.OpenRead(filename))
+ {
+ mImpl = Audio.Impl.CreateSoundBuffer(s);
+ }
+ }
mFilename = filename;
}
@@ -190,7 +197,8 @@
foreach (SoundBufferSession session in mSessions)
{
- session.Stop();
+ if (session.IsPlaying)
+ session.Stop();
}
}
/// <summary>
Modified: trunk/AgateLib/AudioLib/SoundBufferSession.cs
===================================================================
--- trunk/AgateLib/AudioLib/SoundBufferSession.cs 2014-03-08 04:23:33 UTC (rev 1384)
+++ trunk/AgateLib/AudioLib/SoundBufferSession.cs 2014-03-21 15:40:22 UTC (rev 1385)
@@ -47,7 +47,7 @@
impl = Audio.Impl.CreateSoundBufferSession(source.Impl);
mSource = source;
- mSource.StopEvent += new Audio.AudioCoreEventDelegate(Stop);
+ //mSource.StopEvent += new Audio.AudioCoreEventDelegate(Stop);
Initialize();
Modified: trunk/AgateLib/IFileProvider.cs
===================================================================
--- trunk/AgateLib/IFileProvider.cs 2014-03-08 04:23:33 UTC (rev 1384)
+++ trunk/AgateLib/IFileProvider.cs 2014-03-21 15:40:22 UTC (rev 1385)
@@ -62,5 +62,21 @@
/// <param name="filename">The path and filename of the file to read from.</param>
/// <returns></returns>
string ReadAllText(string filename);
+
+ /// <summary>
+ /// Returns true if the specified filename points to an actual file on disk.
+ /// If this method returns false, then ResolveFile will throw an exception
+ /// for that file.
+ /// </summary>
+ /// <param name="filename"></param>
+ /// <returns></returns>
+ bool IsRealFile(string filename);
+
+ /// <summary>
+ /// Returns the full path of the given filename.
+ /// </summary>
+ /// <param name="filename"></param>
+ /// <returns></returns>
+ string ResolveFile(string filename);
}
}
Modified: trunk/AgateLib/Serialization/Xle/XleSerializationInfo.cs
===================================================================
--- trunk/AgateLib/Serialization/Xle/XleSerializationInfo.cs 2014-03-08 04:23:33 UTC (rev 1384)
+++ trunk/AgateLib/Serialization/Xle/XleSerializationInfo.cs 2014-03-21 15:40:22 UTC (rev 1385)
@@ -1611,24 +1611,29 @@
}
}
- private object prop_ReadValue(string item, Type t)
+ private object prop_ReadValue(string name, Type t)
{
- if (t == typeof(string)) return ReadString(item);
- else if (t == typeof(double)) return ReadDouble(item);
- else if (t == typeof(int)) return ReadInt32(item);
- else if (t == typeof(bool)) return ReadBoolean(item);
- else if (t == typeof(int[])) return ReadInt32Array(item);
+ if (t == typeof(string)) return ReadString(name);
+ else if (t == typeof(double)) return ReadDouble(name);
+ else if (t == typeof(int)) return ReadInt32(name);
+ else if (t == typeof(bool)) return ReadBoolean(name);
+ else if (t == typeof(int[])) return ReadInt32Array(name);
+ else if (t == typeof(IXleSerializable)) return ReadObject(name);
else throw new NotImplementedException();
}
private void prop_WriteValue(string name, object value)
{
- if (value is string) Write(name, (string)value);
+ var type = value.GetType();
+
+ if (value == null) Write(name, (IXleSerializable)null);
+ else if (value is string) Write(name, (string)value);
else if (value is int) Write(name, (int)value);
else if (value is double) Write(name, (double)value);
else if (value is bool) Write(name, (bool)value);
else if (value is int[]) Write(name, (int[])value);
+ else if (value is IXleSerializable) Write(name, (IXleSerializable)value);
else throw new NotImplementedException();
}
Modified: trunk/AgateLib/Utility/FileProviderList.cs
===================================================================
--- trunk/AgateLib/Utility/FileProviderList.cs 2014-03-08 04:23:33 UTC (rev 1384)
+++ trunk/AgateLib/Utility/FileProviderList.cs 2014-03-21 15:40:22 UTC (rev 1385)
@@ -72,6 +72,42 @@
"Could not find the file {0}.", filename), filename);
}
+
+
+ public bool IsRealFile(string filename)
+ {
+ if (string.IsNullOrEmpty(filename))
+ throw new ArgumentNullException("You must supply a file name.");
+
+ for (int i = mProviders.Count - 1; i >= 0; i--)
+ {
+ if (mProviders[i].FileExists(filename))
+ {
+ return mProviders[i].IsRealFile(filename);
+ }
+ }
+
+ throw new FileNotFoundException(string.Format(
+ "Could not find the file {0}.", filename), filename);
+ }
+
+ public string ResolveFile(string filename)
+ {
+ if (string.IsNullOrEmpty(filename))
+ throw new ArgumentNullException("You must supply a file name.");
+
+ for (int i = mProviders.Count - 1; i >= 0; i--)
+ {
+ if (mProviders[i].FileExists(filename))
+ {
+ return mProviders[i].ResolveFile(filename);
+ }
+ }
+
+ throw new FileNotFoundException(string.Format(
+ "Could not find the file {0}.", filename), filename);
+ }
+
/// <summary>
/// Returns all filenames matching the specified filter in
/// all file providers.
Modified: trunk/AgateLib/Utility/FileSystemProvider.cs
===================================================================
--- trunk/AgateLib/Utility/FileSystemProvider.cs 2014-03-08 04:23:33 UTC (rev 1384)
+++ trunk/AgateLib/Utility/FileSystemProvider.cs 2014-03-21 15:40:22 UTC (rev 1385)
@@ -68,6 +68,23 @@
}
+ public bool IsRealFile(string filename)
+ {
+ if (FindFileName(filename) != null)
+ return true;
+ else
+ return false;
+ }
+
+ public string ResolveFile(string filename)
+ {
+ var result = FindFileName(filename);
+
+ if (result == null)
+ throw new FileNotFoundException(filename);
+
+ return result;
+ }
/// <summary>
/// Searches through all directories in the SearchPathList object for the specified
/// filename. The search is performed in the order directories have been added,
@@ -239,6 +256,5 @@
return new StreamReader(s).ReadToEnd();
}
-
}
}
Modified: trunk/AgateLib/Utility/TgzFileProvider.cs
===================================================================
--- trunk/AgateLib/Utility/TgzFileProvider.cs 2014-03-08 04:23:33 UTC (rev 1384)
+++ trunk/AgateLib/Utility/TgzFileProvider.cs 2014-03-21 15:40:22 UTC (rev 1385)
@@ -282,5 +282,14 @@
return new StreamReader(s).ReadToEnd();
}
+ public bool IsRealFile(string filename)
+ {
+ return false;
+ }
+
+ public string ResolveFile(string filename)
+ {
+ throw new InvalidOperationException("This file provider does not provide access to a physical file system.");
+ }
}
}
\ No newline at end of file
Modified: trunk/AgateLib/Utility/ZipFileProvider.cs
===================================================================
--- trunk/AgateLib/Utility/ZipFileProvider.cs 2014-03-08 04:23:33 UTC (rev 1384)
+++ trunk/AgateLib/Utility/ZipFileProvider.cs 2014-03-21 15:40:22 UTC (rev 1385)
@@ -349,6 +349,15 @@
return new StreamReader(s).ReadToEnd();
}
+ public bool IsRealFile(string filename)
+ {
+ return false;
+ }
+
+ public string ResolveFile(string filename)
+ {
+ throw new InvalidOperationException("This file provider does not provide access to a physical file system.");
+ }
}
enum ZipStorageType
Modified: trunk/Drivers/AgateSDL/Audio/SDL_Audio.cs
===================================================================
--- trunk/Drivers/AgateSDL/Audio/SDL_Audio.cs 2014-03-08 04:23:33 UTC (rev 1384)
+++ trunk/Drivers/AgateSDL/Audio/SDL_Audio.cs 2014-03-21 15:40:22 UTC (rev 1385)
@@ -79,7 +79,11 @@
{
return new SDL_Music(musicStream);
}
-
+
+ public override SoundBufferImpl CreateSoundBuffer(string filename)
+ {
+ return new SDL_SoundBuffer(filename);
+ }
public override SoundBufferImpl CreateSoundBuffer(System.IO.Stream inStream)
{
return new SDL_SoundBuffer(inStream);
@@ -103,6 +107,8 @@
throw new AgateLib.AgateException("Failed to initialize SDL_mixer.");
}
+ SdlMixer.Mix_AllocateChannels(64);
+
mChannelFinishedDelegate = ChannelFinished;
SdlMixer.Mix_ChannelFinished(mChannelFinishedDelegate);
Modified: trunk/Drivers/AgateSDL/Audio/SDL_SoundBuffer.cs
===================================================================
--- trunk/Drivers/AgateSDL/Audio/SDL_SoundBuffer.cs 2014-03-08 04:23:33 UTC (rev 1384)
+++ trunk/Drivers/AgateSDL/Audio/SDL_SoundBuffer.cs 2014-03-21 15:40:22 UTC (rev 1385)
@@ -32,13 +32,13 @@
IntPtr sound;
string tempfile;
double mVolume = 1.0;
- bool ownRam = false;
- IntPtr soundPtr;
int samplesPerSec = 22050;
+ string filename;
public SDL_SoundBuffer(Stream stream)
{
tempfile = AgateFileProvider.SaveStreamToTempFile(stream);
+ this.filename = tempfile;
LoadFromFile(tempfile);
@@ -47,6 +47,7 @@
}
public SDL_SoundBuffer(string filename)
{
+ this.filename = filename;
LoadFromFile(filename);
}
@@ -56,6 +57,8 @@
Dispose(false);
}
+ public string Filename { get { return filename; } }
+
public int SamplePerSec
{
get { return samplesPerSec; }
@@ -69,11 +72,6 @@
private void Dispose(bool disposing)
{
- if (ownRam )
- {
- Marshal.FreeHGlobal(soundPtr);
- }
-
SdlMixer.Mix_FreeChunk(sound);
//if (string.IsNullOrEmpty(tempfile) == false)
//{
Modified: trunk/Drivers/AgateSDL/Audio/SDL_SoundBufferSession.cs
===================================================================
--- trunk/Drivers/AgateSDL/Audio/SDL_SoundBufferSession.cs 2014-03-08 04:23:33 UTC (rev 1384)
+++ trunk/Drivers/AgateSDL/Audio/SDL_SoundBufferSession.cs 2014-03-21 15:40:22 UTC (rev 1385)
@@ -30,7 +30,7 @@
class SDL_SoundBufferSession : SoundBufferSessionImpl
{
IntPtr sound;
- int channel;
+ int channel = -1;
double volume;
double pan;
bool loop;
@@ -48,14 +48,7 @@
sound = buffer.SoundChunk;
volume = buffer.Volume;
- channel = SdlMixer.Mix_PlayChannel(-1, sound, LoopCount);
audio = (SDL_Audio)AgateLib.AudioLib.Audio.Impl;
- SetPanning();
-
- watch.Reset();
- watch.Start();
-
- audio.RegisterChannel(channel, this);
}
public override void Dispose()
{
@@ -64,12 +57,20 @@
protected override void Initialize()
{
-
+
}
public override bool IsPlaying
{
- get { return mIsPlaying; }
+ get
+ {
+ if (channel == -1)
+ return false;
+
+ return SdlMixer.Mix_Playing(channel) != 0;
+
+ //return mIsPlaying;
+ }
}
public override double Pan
@@ -95,6 +96,9 @@
private void SetPanning()
{
+ if (channel == -1)
+ return;
+
byte leftVol = (byte)(pan <= 0 ? 255 : (int)((1.0 - pan) * 255));
byte rightVol = (byte)(pan >= 0 ? 255 : (int)((pan + 1.0) * 255));
@@ -106,6 +110,9 @@
if (IsPlaying == false)
{
channel = SdlMixer.Mix_PlayChannel(-1, sound, LoopCount);
+
+ if (channel == -1)
+ Trace.WriteLine(string.Format("Error: {0}", SdlMixer.Mix_GetError()));
}
else
{
@@ -113,6 +120,7 @@
}
SetPanning();
+ SetVolume();
watch.Reset();
watch.Start();
@@ -136,7 +144,7 @@
public override void Stop()
{
- SdlMixer.Mix_Pause(channel);
+ SdlMixer.Mix_HaltChannel(channel);
watch.Stop();
}
@@ -151,6 +159,14 @@
{
volume = value;
+ SetVolume();
+ }
+ }
+
+ private void SetVolume()
+ {
+ if (channel != -1)
+ {
SdlMixer.Mix_Volume(channel, (int)(volume * 128));
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ka...@us...> - 2014-03-22 00:44:24
|
Revision: 1386
http://sourceforge.net/p/agate/code/1386
Author: kanato
Date: 2014-03-22 00:44:16 +0000 (Sat, 22 Mar 2014)
Log Message:
-----------
Implement IsPaused for each audio driver.
Modified Paths:
--------------
trunk/AgateLib/AudioLib/ImplementationBase/SoundBufferSessionImpl.cs
trunk/AgateLib/AudioLib/SoundBufferSession.cs
trunk/AgateLib/Drivers/NullSoundImpl.cs
trunk/Drivers/AgateFMOD/FMOD_SoundBufferSession.cs
trunk/Drivers/AgateSDL/Audio/SDL_SoundBufferSession.cs
trunk/Drivers/AgateSDX/XAud2/XAudio2_SoundBufferSession.cs
Modified: trunk/AgateLib/AudioLib/ImplementationBase/SoundBufferSessionImpl.cs
===================================================================
--- trunk/AgateLib/AudioLib/ImplementationBase/SoundBufferSessionImpl.cs 2014-03-21 15:40:22 UTC (rev 1385)
+++ trunk/AgateLib/AudioLib/ImplementationBase/SoundBufferSessionImpl.cs 2014-03-22 00:44:16 UTC (rev 1386)
@@ -70,9 +70,14 @@
public abstract bool IsPlaying { get; }
/// <summary>
+ /// Gets or sets whether or not this playback instance is paused.
+ /// </summary>
+ public abstract bool IsPaused { get; set; }
+ /// <summary>
/// Initializes the SoundBufferSession to begin playing.
/// </summary>
protected internal abstract void Initialize();
+
}
}
Modified: trunk/AgateLib/AudioLib/SoundBufferSession.cs
===================================================================
--- trunk/AgateLib/AudioLib/SoundBufferSession.cs 2014-03-21 15:40:22 UTC (rev 1385)
+++ trunk/AgateLib/AudioLib/SoundBufferSession.cs 2014-03-22 00:44:16 UTC (rev 1386)
@@ -92,7 +92,7 @@
impl.Play();
}
/// <summary>
- /// Stops playback.
+ /// Stops playback. Allows the SoundBufferSession to release sound card resources.
/// </summary>
public void Stop()
{
@@ -143,7 +143,18 @@
{
get { return impl.IsPlaying; }
}
+
/// <summary>
+ /// Gets or sets whether this SoundBufferSession playback is paused.
+ /// If it is paused it still retains resources. Call Stop to allow
+ /// the SoundBufferSession to release resources.
+ /// </summary>
+ public bool IsPaused
+ {
+ get { return impl.IsPaused; }
+ set { impl.IsPaused = value; }
+ }
+ /// <summary>
/// Gets or sets a bool value which indicates whether or not this
/// SoundBufferSession object should be recycled when it is done playing.
///
Modified: trunk/AgateLib/Drivers/NullSoundImpl.cs
===================================================================
--- trunk/AgateLib/Drivers/NullSoundImpl.cs 2014-03-21 15:40:22 UTC (rev 1385)
+++ trunk/AgateLib/Drivers/NullSoundImpl.cs 2014-03-22 00:44:16 UTC (rev 1386)
@@ -92,6 +92,8 @@
protected internal override void Initialize()
{
}
+
+ public override bool IsPaused { get; set; }
}
public class NullMusicImpl : MusicImpl
{
Modified: trunk/Drivers/AgateFMOD/FMOD_SoundBufferSession.cs
===================================================================
--- trunk/Drivers/AgateFMOD/FMOD_SoundBufferSession.cs 2014-03-21 15:40:22 UTC (rev 1385)
+++ trunk/Drivers/AgateFMOD/FMOD_SoundBufferSession.cs 2014-03-22 00:44:16 UTC (rev 1386)
@@ -97,6 +97,20 @@
mChannel.stop();
}
+ public override bool IsPaused
+ {
+ get
+ {
+ bool result = false;
+ FMOD_Audio.CheckFMODResult(mChannel.getPaused(ref result));
+
+ return result;
+ }
+ set
+ {
+ FMOD_Audio.CheckFMODResult(mChannel.setPaused(value));
+ }
+ }
public override double Volume
{
get
Modified: trunk/Drivers/AgateSDL/Audio/SDL_SoundBufferSession.cs
===================================================================
--- trunk/Drivers/AgateSDL/Audio/SDL_SoundBufferSession.cs 2014-03-21 15:40:22 UTC (rev 1385)
+++ trunk/Drivers/AgateSDL/Audio/SDL_SoundBufferSession.cs 2014-03-22 00:44:16 UTC (rev 1386)
@@ -68,8 +68,6 @@
return false;
return SdlMixer.Mix_Playing(channel) != 0;
-
- //return mIsPlaying;
}
}
@@ -170,5 +168,30 @@
SdlMixer.Mix_Volume(channel, (int)(volume * 128));
}
}
+
+ public override bool IsPaused
+ {
+ get
+ {
+ if (channel == -1)
+ return false;
+ else
+ return SdlMixer.Mix_Paused(channel) != 0;
+ }
+ set
+ {
+ if (channel == -1)
+ return;
+
+ if (IsPaused)
+ {
+ SdlMixer.Mix_Resume(channel);
+ }
+ else
+ {
+ SdlMixer.Mix_Pause(channel);
+ }
+ }
+ }
}
}
Modified: trunk/Drivers/AgateSDX/XAud2/XAudio2_SoundBufferSession.cs
===================================================================
--- trunk/Drivers/AgateSDX/XAud2/XAudio2_SoundBufferSession.cs 2014-03-21 15:40:22 UTC (rev 1385)
+++ trunk/Drivers/AgateSDX/XAud2/XAudio2_SoundBufferSession.cs 2014-03-22 00:44:16 UTC (rev 1386)
@@ -39,6 +39,7 @@
double mVolume;
double mPan;
bool mIsPlaying;
+ bool mIsPaused;
bool mLoop = false;
bool mDisposing = false;
@@ -103,7 +104,23 @@
public override void Stop()
{
mVoice.Stop();
+ }
+
+ public override bool IsPaused
+ {
+ get
+ {
+ return mIsPaused;
+ }
+ set
+ {
+ mIsPaused = value;
+ if (mIsPaused)
+ mVoice.Stop();
+ else
+ mVoice.Start();
+ }
}
public override double Volume
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ka...@us...> - 2014-04-12 02:18:00
|
Revision: 1389
http://sourceforge.net/p/agate/code/1389
Author: kanato
Date: 2014-04-12 02:17:55 +0000 (Sat, 12 Apr 2014)
Log Message:
-----------
Add FillRectangle for PixelBuffer and some better error reporting when saving images.
Modified Paths:
--------------
trunk/AgateLib/DisplayLib/PixelBuffer.cs
trunk/Drivers/AgateLib.WinForms/FormUtil.cs
Modified: trunk/AgateLib/DisplayLib/PixelBuffer.cs
===================================================================
--- trunk/AgateLib/DisplayLib/PixelBuffer.cs 2014-04-05 18:18:57 UTC (rev 1388)
+++ trunk/AgateLib/DisplayLib/PixelBuffer.cs 2014-04-12 02:17:55 UTC (rev 1389)
@@ -1248,6 +1248,21 @@
}
}
}
+ /// <summary>
+ /// Fills the specified rectangle with the passed color.
+ /// </summary>
+ /// <param name="color"></param>
+ /// <param name="inside"></param>
+ public void FillRectangle(Color color, Rectangle inside)
+ {
+ for (int j = inside.Y; j < inside.Bottom ;j++)
+ {
+ for (int i = inside.X; i < inside.Right; i++)
+ {
+ SetPixel(i, j, color);
+ }
+ }
+ }
public static bool PixelsEqual(PixelBuffer a, PixelBuffer b)
{
Modified: trunk/Drivers/AgateLib.WinForms/FormUtil.cs
===================================================================
--- trunk/Drivers/AgateLib.WinForms/FormUtil.cs 2014-04-05 18:18:57 UTC (rev 1388)
+++ trunk/Drivers/AgateLib.WinForms/FormUtil.cs 2014-04-12 02:17:55 UTC (rev 1389)
@@ -24,6 +24,7 @@
using AgateLib.DisplayLib;
using AgateLib.InputLib;
+using System.IO;
namespace AgateLib.WinForms
{
@@ -181,6 +182,9 @@
{
Bitmap bmp = Interop.BitmapFromPixelBuffer(buffer);
+ if (Directory.Exists(Path.GetDirectoryName(filename)) == false)
+ throw new DirectoryNotFoundException("The directory " + Path.GetDirectoryName(filename) + " does not exist.");
+
switch (format)
{
case ImageFileFormat.Bmp:
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ka...@us...> - 2014-06-24 03:33:13
|
Revision: 1391
http://sourceforge.net/p/agate/code/1391
Author: kanato
Date: 2014-06-24 03:28:09 +0000 (Tue, 24 Jun 2014)
Log Message:
-----------
Fix bugs in the EXT and ReadPixels framebuffers where images wouldn't render to the framebuffer and the framebuffer would flip if resized.
Also fixed some bugs in the persistant settings.
Modified Paths:
--------------
trunk/AgateLib/Platform.cs
trunk/AgateLib/Settings/PersistantSettings.cs
trunk/Drivers/AgateLib.WinForms/FormUtil.cs
trunk/Drivers/AgateOTK/AgateOTK.csproj
trunk/Drivers/AgateOTK/GL3/GLVertexBuffer.cs
trunk/Drivers/AgateOTK/Legacy/FrameBufferExt.cs
trunk/Drivers/AgateOTK/Legacy/FrameBufferReadPixels.cs
trunk/Drivers/AgateOTK/Legacy/LegacyVertexBuffer.cs
trunk/Drivers/AgateOTK/OpenTK.dll
trunk/Drivers/AgateOTK/OpenTK.dll.config
trunk/Drivers/AgateOTK/OpenTK.xml
trunk/Tests/DisplayTests/MultipleWindows/MultipleWindowTest.cs
trunk/Tests/Launcher.cs
trunk/Tests/frmLauncher.cs
trunk/Tests/settings_list.txt
Modified: trunk/AgateLib/Platform.cs
===================================================================
--- trunk/AgateLib/Platform.cs 2014-04-12 02:38:27 UTC (rev 1390)
+++ trunk/AgateLib/Platform.cs 2014-06-24 03:28:09 UTC (rev 1391)
@@ -127,9 +127,6 @@
internal void EnsureAppDataDirectoryExists()
{
- if (Directory.Exists(AppDataDirectory))
- return;
-
Directory.CreateDirectory(AppDataDirectory);
}
Modified: trunk/AgateLib/Settings/PersistantSettings.cs
===================================================================
--- trunk/AgateLib/Settings/PersistantSettings.cs 2014-04-12 02:38:27 UTC (rev 1390)
+++ trunk/AgateLib/Settings/PersistantSettings.cs 2014-06-24 03:28:09 UTC (rev 1391)
@@ -39,7 +39,7 @@
public class PersistantSettings
{
Dictionary<string, SettingsGroup> mSettings = new Dictionary<string, SettingsGroup>();
-
+
#region --- Static Members ---
public static ISettingsTracer SettingsTracer { get; set; }
@@ -57,7 +57,7 @@
{
if (Debug)
{
- Trace.WriteLine(string.Format("Settings[\"{0}\"][\"{1}\"] read.", groupName, key));
+ Trace.WriteLine(string.Format("Settings[\"{0}\"][\"{1}\"]=\"{2}\" read.", groupName, key, value));
}
if (SettingsTracer == null) return;
@@ -68,7 +68,7 @@
{
if (Debug)
{
- Trace.WriteLine(string.Format("Settings[\"{0}\"][\"{1}\"] written.", groupName, key));
+ Trace.WriteLine(string.Format("Settings[\"{0}\"][\"{1}\"]=\"{2}\" written.", groupName, key, value));
}
if (SettingsTracer == null) return;
@@ -83,16 +83,16 @@
LoadSettings();
}
-
+
private SettingsGroup GetOrCreateSettingsGroup(string name)
{
- if (name.Contains(" "))
- throw new AgateException("Settings group name cannot contain a space.");
+ if (name.Contains(" ")) throw new ArgumentException("Settings group name cannot contain a space.");
+ if (string.IsNullOrEmpty(name)) throw new ArgumentException("Settings group name cannot be blank.");
if (mSettings.ContainsKey(name) == false)
{
mSettings[name] = new SettingsGroup();
- mSettings[name].Name = name;
+ mSettings[name].Name = name;
}
return mSettings[name];
@@ -185,12 +185,13 @@
{
SettingsGroup g = new SettingsGroup();
+ g.Name = node.Name;
+
foreach (XmlElement pair in node.ChildNodes)
{
g.Add(pair.Name, pair.InnerXml);
}
-
- g.Name = node.Name;
+
mSettings.Add(node.Name, g);
}
}
Modified: trunk/Drivers/AgateLib.WinForms/FormUtil.cs
===================================================================
--- trunk/Drivers/AgateLib.WinForms/FormUtil.cs 2014-04-12 02:38:27 UTC (rev 1390)
+++ trunk/Drivers/AgateLib.WinForms/FormUtil.cs 2014-06-24 03:28:09 UTC (rev 1391)
@@ -181,9 +181,10 @@
public static void SavePixelBuffer(PixelBuffer buffer, string filename, ImageFileFormat format)
{
Bitmap bmp = Interop.BitmapFromPixelBuffer(buffer);
+ var dirname = Path.GetDirectoryName(filename);
- if (Directory.Exists(Path.GetDirectoryName(filename)) == false)
- throw new DirectoryNotFoundException("The directory " + Path.GetDirectoryName(filename) + " does not exist.");
+ if (string.IsNullOrEmpty(dirname) == false && Directory.Exists(dirname) == false)
+ throw new DirectoryNotFoundException("The directory " + dirname + " does not exist.");
switch (format)
{
Modified: trunk/Drivers/AgateOTK/AgateOTK.csproj
===================================================================
--- trunk/Drivers/AgateOTK/AgateOTK.csproj 2014-04-12 02:38:27 UTC (rev 1390)
+++ trunk/Drivers/AgateOTK/AgateOTK.csproj 2014-06-24 03:28:09 UTC (rev 1391)
@@ -106,6 +106,10 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
+ <Reference Include="OpenTK, Version=1.1.0.0, Culture=neutral, PublicKeyToken=bad199fe84eb3df4, processorArchitecture=MSIL">
+ <SpecificVersion>False</SpecificVersion>
+ <HintPath>.\OpenTK.dll</HintPath>
+ </Reference>
<Reference Include="System">
<Name>System</Name>
</Reference>
@@ -124,9 +128,6 @@
<Reference Include="System.Windows.Forms">
<Name>System.Windows.Forms</Name>
</Reference>
- <Reference Include="OpenTK, Version=1.0.0.0, Culture=neutral, PublicKeyToken=bad199fe84eb3df4">
- <HintPath>OpenTK.dll</HintPath>
- </Reference>
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\..\AgateLib\AgateLib.csproj">
Modified: trunk/Drivers/AgateOTK/GL3/GLVertexBuffer.cs
===================================================================
--- trunk/Drivers/AgateOTK/GL3/GLVertexBuffer.cs 2014-04-12 02:38:27 UTC (rev 1390)
+++ trunk/Drivers/AgateOTK/GL3/GLVertexBuffer.cs 2014-06-24 03:28:09 UTC (rev 1391)
@@ -239,9 +239,9 @@
BeginMode beginMode;
switch (PrimitiveType)
{
- case PrimitiveType.TriangleList: beginMode = BeginMode.Triangles; break;
- case PrimitiveType.TriangleFan: beginMode = BeginMode.TriangleFan; break;
- case PrimitiveType.TriangleStrip: beginMode = BeginMode.TriangleStrip; break;
+ case AgateLib.DisplayLib.PrimitiveType.TriangleList: beginMode = BeginMode.Triangles; break;
+ case AgateLib.DisplayLib.PrimitiveType.TriangleFan: beginMode = BeginMode.TriangleFan; break;
+ case AgateLib.DisplayLib.PrimitiveType.TriangleStrip: beginMode = BeginMode.TriangleStrip; break;
default:
throw new AgateException(string.Format(
Modified: trunk/Drivers/AgateOTK/Legacy/FrameBufferExt.cs
===================================================================
--- trunk/Drivers/AgateOTK/Legacy/FrameBufferExt.cs 2014-04-12 02:38:27 UTC (rev 1390)
+++ trunk/Drivers/AgateOTK/Legacy/FrameBufferExt.cs 2014-06-24 03:28:09 UTC (rev 1391)
@@ -35,10 +35,12 @@
int mFramebufferID;
int mDepthBuffer, mStencilBuffer;
GL_Surface mTexture;
+ bool first = true;
static bool sDepthSupported = true;
static bool sStencilSupported = true;
+
public FrameBufferExt(Size size)
{
mSize = size;
@@ -188,6 +190,12 @@
{
GL.Ext.BindFramebuffer(FramebufferTarget.FramebufferExt, mFramebufferID);
GL.PushAttrib(AttribMask.ViewportBit);
+
+ if (first)
+ {
+ AgateLib.DisplayLib.Display.Clear(Color.FromArgb(0, 0, 0, 0));
+ first = false;
+ }
}
public override void EndRender()
Modified: trunk/Drivers/AgateOTK/Legacy/FrameBufferReadPixels.cs
===================================================================
--- trunk/Drivers/AgateOTK/Legacy/FrameBufferReadPixels.cs 2014-04-12 02:38:27 UTC (rev 1390)
+++ trunk/Drivers/AgateOTK/Legacy/FrameBufferReadPixels.cs 2014-06-24 03:28:09 UTC (rev 1391)
@@ -39,6 +39,7 @@
this.size = size;
surface = new GL_Surface(size);
+ surface.FlipVertical = true;
}
public override void MakeCurrent()
Modified: trunk/Drivers/AgateOTK/Legacy/LegacyVertexBuffer.cs
===================================================================
--- trunk/Drivers/AgateOTK/Legacy/LegacyVertexBuffer.cs 2014-04-12 02:38:27 UTC (rev 1390)
+++ trunk/Drivers/AgateOTK/Legacy/LegacyVertexBuffer.cs 2014-06-24 03:28:09 UTC (rev 1391)
@@ -235,9 +235,9 @@
BeginMode beginMode;
switch (PrimitiveType)
{
- case PrimitiveType.TriangleList: beginMode = BeginMode.Triangles; break;
- case PrimitiveType.TriangleFan: beginMode = BeginMode.TriangleFan; break;
- case PrimitiveType.TriangleStrip: beginMode = BeginMode.TriangleStrip; break;
+ case AgateLib.DisplayLib.PrimitiveType.TriangleList: beginMode = BeginMode.Triangles; break;
+ case AgateLib.DisplayLib.PrimitiveType.TriangleFan: beginMode = BeginMode.TriangleFan; break;
+ case AgateLib.DisplayLib.PrimitiveType.TriangleStrip: beginMode = BeginMode.TriangleStrip; break;
default:
throw new AgateException(string.Format(
Modified: trunk/Drivers/AgateOTK/OpenTK.dll
===================================================================
(Binary files differ)
Modified: trunk/Drivers/AgateOTK/OpenTK.dll.config
===================================================================
--- trunk/Drivers/AgateOTK/OpenTK.dll.config 2014-04-12 02:38:27 UTC (rev 1390)
+++ trunk/Drivers/AgateOTK/OpenTK.dll.config 2014-06-24 03:28:09 UTC (rev 1391)
@@ -4,9 +4,22 @@
<dllmap os="linux" dll="openal32.dll" target="libopenal.so.1"/>
<dllmap os="linux" dll="alut.dll" target="libalut.so.0"/>
<dllmap os="linux" dll="opencl.dll" target="libOpenCL.so"/>
+ <dllmap os="linux" dll="libX11" target="libX11.so.6"/>
+ <dllmap os="linux" dll="libXi" target="libXi.so.6"/>
+ <dllmap os="linux" dll="SDL2.dll" target="libSDL2-2.0.so.0"/>
+ <dllmap os="osx" dll="opengl32.dll" target="/System/Library/Frameworks/OpenGL.framework/OpenGL"/>
<dllmap os="osx" dll="openal32.dll" target="/System/Library/Frameworks/OpenAL.framework/OpenAL" />
<dllmap os="osx" dll="alut.dll" target="/System/Library/Frameworks/OpenAL.framework/OpenAL" />
- <dllmap os="osx" dll="libGLES.dll" target="/System/Library/Frameworks/OpenGLES.framework/OpenGLES" />
- <dllmap os="osx" dll="libGLESv2.dll" target="/System/Library/Frameworks/OpenGLES.framework/OpenGLES" />
+ <dllmap os="osx" dll="libGLES.dll" target="/System/Library/Frameworks/OpenGLES.framework/OpenGLES" />
+ <dllmap os="osx" dll="libGLESv1_CM.dll" target="/System/Library/Frameworks/OpenGLES.framework/OpenGLES" />
+ <dllmap os="osx" dll="libGLESv2.dll" target="/System/Library/Frameworks/OpenGLES.framework/OpenGLES" />
<dllmap os="osx" dll="opencl.dll" target="/System/Library/Frameworks/OpenCL.framework/OpenCL"/>
+ <dllmap os="osx" dll="SDL2.dll" target="libSDL2.dylib"/>
+ <!-- XQuartz compatibility (X11 on Mac) -->
+ <dllmap os="osx" dll="libGL.so.1" target="/usr/X11/lib/libGL.dylib"/>
+ <dllmap os="osx" dll="libX11" target="/usr/X11/lib/libX11.dylib"/>
+ <dllmap os="osx" dll="libXcursor.so.1" target="/usr/X11/lib/libXcursor.dylib"/>
+ <dllmap os="osx" dll="libXi" target="/usr/X11/lib/libXi.dylib"/>
+ <dllmap os="osx" dll="libXinerama" target="/usr/X11/lib/libXinerama.dylib"/>
+ <dllmap os="osx" dll="libXrandr.so.2" target="/usr/X11/lib/libXrandr.dylib"/>
</configuration>
Modified: trunk/Drivers/AgateOTK/OpenTK.xml
===================================================================
--- trunk/Drivers/AgateOTK/OpenTK.xml 2014-04-12 02:38:27 UTC (rev 1390)
+++ trunk/Drivers/AgateOTK/OpenTK.xml 2014-06-24 03:28:09 UTC (rev 1391)
@@ -4,359 +4,6684 @@
<name>OpenTK</name>
</assembly>
<members>
- <member name="T:OpenTK.Properties.Resources">
+ <member name="T:OpenTK.DisplayDevice">
<summary>
- A strongly-typed resource class, for looking up localized strings, etc.
+ Defines a display device on the underlying system, and provides
+ methods to query and change its display parameters.
</summary>
</member>
- <member name="P:OpenTK.Properties.Resources.ResourceManager">
+ <member name="M:OpenTK.DisplayDevice.SelectResolution(System.Int32,System.Int32,System.Int32,System.Single)">
<summary>
- Returns the cached ResourceManager instance used by this class.
+ Selects an available resolution that matches the specified parameters.
</summary>
+ <param name="width">The width of the requested resolution in pixels.</param>
+ <param name="height">The height of the requested resolution in pixels.</param>
+ <param name="bitsPerPixel">The bits per pixel of the requested resolution.</param>
+ <param name="refreshRate">The refresh rate of the requested resolution in hertz.</param>
+ <returns>The requested DisplayResolution or null if the parameters cannot be met.</returns>
+ <remarks>
+ <para>If a matching resolution is not found, this function will retry ignoring the specified refresh rate,
+ bits per pixel and resolution, in this order. If a matching resolution still doesn't exist, this function will
+ return the current resolution.</para>
+ <para>A parameter set to 0 or negative numbers will not be used in the search (e.g. if refreshRate is 0,
+ any refresh rate will be considered valid).</para>
+ <para>This function allocates memory.</para>
+ </remarks>
</member>
- <member name="P:OpenTK.Properties.Resources.Culture">
+ <member name="M:OpenTK.DisplayDevice.ChangeResolution(OpenTK.DisplayResolution)">
+ <summary>Changes the resolution of the DisplayDevice.</summary>
+ <param name="resolution">The resolution to set. <see cref="M:OpenTK.DisplayDevice.SelectResolution(System.Int32,System.Int32,System.Int32,System.Single)"/></param>
+ <exception cref="T:OpenTK.Graphics.GraphicsModeException">Thrown if the requested resolution could not be set.</exception>
+ <remarks>If the specified resolution is null, this function will restore the original DisplayResolution.</remarks>
+ </member>
+ <member name="M:OpenTK.DisplayDevice.ChangeResolution(System.Int32,System.Int32,System.Int32,System.Single)">
+ <summary>Changes the resolution of the DisplayDevice.</summary>
+ <param name="width">The new width of the DisplayDevice.</param>
+ <param name="height">The new height of the DisplayDevice.</param>
+ <param name="bitsPerPixel">The new bits per pixel of the DisplayDevice.</param>
+ <param name="refreshRate">The new refresh rate of the DisplayDevice.</param>
+ <exception cref="T:OpenTK.Graphics.GraphicsModeException">Thrown if the requested resolution could not be set.</exception>
+ </member>
+ <member name="M:OpenTK.DisplayDevice.RestoreResolution">
+ <summary>Restores the original resolution of the DisplayDevice.</summary>
+ <exception cref="T:OpenTK.Graphics.GraphicsModeException">Thrown if the original resolution could not be restored.</exception>
+ </member>
+ <member name="M:OpenTK.DisplayDevice.GetDisplay(OpenTK.DisplayIndex)">
<summary>
- Overrides the current thread's CurrentUICulture property for all
- resource lookups using this strongly typed resource class.
+ Gets the <see cref="T:OpenTK.DisplayDevice"/> for the specified <see cref="T:OpenTK.DisplayIndex"/>.
</summary>
+ <param name="index">The <see cref="T:OpenTK.DisplayIndex"/> that defines the desired display.</param>
+ <returns>A <see cref="T:OpenTK.DisplayDevice"/> or null, if no device corresponds to the specified index.</returns>
</member>
- <member name="T:OpenTK.Audio.AudioContext">
+ <member name="M:OpenTK.DisplayDevice.ToString">
<summary>
- Provides methods to instantiate, use and destroy an audio context for playback.
- Static methods are provided to list available devices known by the driver.
+ Returns a System.String representing this DisplayDevice.
</summary>
+ <returns>A System.String representing this DisplayDevice.</returns>
</member>
- <member name="M:OpenTK.Audio.AudioContext.#cctor">
- \internal
+ <member name="P:OpenTK.DisplayDevice.Bounds">
<summary>
- Runs before the actual class constructor, to load available devices.
+ Gets the bounds of this instance in pixel coordinates..
</summary>
</member>
- <member name="M:OpenTK.Audio.AudioContext.#ctor">
- <summary>Constructs a new AudioContext, using the default audio device.</summary>
+ <member name="P:OpenTK.DisplayDevice.Width">
+ <summary>Gets a System.Int32 that contains the width of this display in pixels.</summary>
</member>
- <member name="M:OpenTK.Audio.AudioContext.#ctor(System.String)">
+ <member name="P:OpenTK.DisplayDevice.Height">
+ <summary>Gets a System.Int32 that contains the height of this display in pixels.</summary>
+ </member>
+ <member name="P:OpenTK.DisplayDevice.BitsPerPixel">
+ <summary>Gets a System.Int32 that contains number of bits per pixel of this display. Typical values include 8, 16, 24 and 32.</summary>
+ </member>
+ <member name="P:OpenTK.DisplayDevice.RefreshRate">
<summary>
- Constructs a new AudioContext instance.
+ Gets a System.Single representing the vertical refresh rate of this display.
</summary>
- <param name="device">The device name that will host this instance.</param>
</member>
- <member name="M:OpenTK.Audio.AudioContext.#ctor(System.String,System.Int32)">
- <summary>Constructs a new AudioContext, using the specified audio device and device parameters.</summary>
- <param name="device">The name of the audio device to use.</param>
- <param name="freq">Frequency for mixing output buffer, in units of Hz. Pass 0 for driver default.</param>
- <remarks>
- Use AudioContext.AvailableDevices to obtain a list of all available audio devices.
- devices.
- </remarks>
+ <member name="P:OpenTK.DisplayDevice.IsPrimary">
+ <summary>Gets a System.Boolean that indicates whether this Display is the primary Display in systems with multiple Displays.</summary>
</member>
- <member name="M:OpenTK.Audio.AudioContext.#ctor(System.String,System.Int32,System.Int32)">
- <summary>Constructs a new AudioContext, using the specified audio device and device parameters.</summary>
- <param name="device">The name of the audio device to use.</param>
- <param name="freq">Frequency for mixing output buffer, in units of Hz. Pass 0 for driver default.</param>
- <param name="refresh">Refresh intervals, in units of Hz. Pass 0 for driver default.</param>
- <remarks>
- Use AudioContext.AvailableDevices to obtain a list of all available audio devices.
- devices.
- </remarks>
+ <member name="P:OpenTK.DisplayDevice.AvailableResolutions">
+ <summary>
+ Gets the list of <see cref="T:OpenTK.DisplayResolution"/> objects available on this device.
+ </summary>
</member>
- <member name="M:OpenTK.Audio.AudioContext.#ctor(System.String,System.Int32,System.Int32,System.Boolean)">
- <summary>Constructs a new AudioContext, using the specified audio device and device parameters.</summary>
- <param name="device">The name of the audio device to use.</param>
- <param name="freq">Frequency for mixing output buffer, in units of Hz. Pass 0 for driver default.</param>
- <param name="refresh">Refresh intervals, in units of Hz. Pass 0 for driver default.</param>
- <param name="sync">Flag, indicating a synchronous context.</param>
- <remarks>
- Use AudioContext.AvailableDevices to obtain a list of all available audio devices.
- devices.
- </remarks>
+ <member name="P:OpenTK.DisplayDevice.AvailableDisplays">
+ <summary>
+ Gets the list of available <see cref="T:OpenTK.DisplayDevice"/> objects.
+ This function allocates memory.
+ </summary>
</member>
- <member name="M:OpenTK.Audio.AudioContext.#ctor(System.String,System.Int32,System.Int32,System.Boolean,System.Boolean)">
- <summary>Creates the audio context using the specified device and device parameters.</summary>
- <param name="device">The device descriptor obtained through AudioContext.AvailableDevices.</param>
- <param name="freq">Frequency for mixing output buffer, in units of Hz. Pass 0 for driver default.</param>
- <param name="refresh">Refresh intervals, in units of Hz. Pass 0 for driver default.</param>
- <param name="sync">Flag, indicating a synchronous context.</param>
- <param name="enableEfx">Indicates whether the EFX extension should be initialized, if present.</param>
- <exception cref="T:System.ArgumentNullException">Occurs when the device string is invalid.</exception>
- <exception cref="T:System.ArgumentOutOfRangeException">Occurs when a specified parameter is invalid.</exception>
- <exception cref="T:OpenTK.Audio.AudioDeviceException">
- Occurs when the specified device is not available, or is in use by another program.
- </exception>
- <exception cref="T:OpenTK.Audio.AudioContextException">
- Occurs when an audio context could not be created with the specified parameters.
- </exception>
- <exception cref="T:System.NotSupportedException">
- Occurs when an AudioContext already exists.</exception>
- <remarks>
- <para>For maximum compatibility, you are strongly recommended to use the default constructor.</para>
- <para>Multiple AudioContexts are not supported at this point.</para>
- <para>
- The number of auxilliary EFX sends depends on the audio hardware and drivers. Most Realtek devices, as well
- as the Creative SB Live!, support 1 auxilliary send. Creative's Audigy and X-Fi series support 4 sends.
- Values higher than supported will be clamped by the driver.
- </para>
- </remarks>
+ <member name="P:OpenTK.DisplayDevice.Default">
+ <summary>Gets the default (primary) display of this system.</summary>
</member>
- <member name="M:OpenTK.Audio.AudioContext.#ctor(System.String,System.Int32,System.Int32,System.Boolean,System.Boolean,OpenTK.Audio.AudioContext.MaxAuxiliarySends)">
- <summary>Creates the audio context using the specified device and device parameters.</summary>
- <param name="device">The device descriptor obtained through AudioContext.AvailableDevices.</param>
- <param name="freq">Frequency for mixing output buffer, in units of Hz. Pass 0 for driver default.</param>
- <param name="refresh">Refresh intervals, in units of Hz. Pass 0 for driver default.</param>
- <param name="sync">Flag, indicating a synchronous context.</param>
- <param name="enableEfx">Indicates whether the EFX extension should be initialized, if present.</param>
- <param name="efxMaxAuxSends">Requires EFX enabled. The number of desired Auxiliary Sends per source.</param>
- <exception cref="T:System.ArgumentNullException">Occurs when the device string is invalid.</exception>
- <exception cref="T:System.ArgumentOutOfRangeException">Occurs when a specified parameter is invalid.</exception>
- <exception cref="T:OpenTK.Audio.AudioDeviceException">
- Occurs when the specified device is not available, or is in use by another program.
- </exception>
- <exception cref="T:OpenTK.Audio.AudioContextException">
- Occurs when an audio context could not be created with the specified parameters.
- </exception>
- <exception cref="T:System.NotSupportedException">
- Occurs when an AudioContext already exists.</exception>
- <remarks>
- <para>For maximum compatibility, you are strongly recommended to use the default constructor.</para>
- <para>Multiple AudioContexts are not supported at this point.</para>
- <para>
- The number of auxilliary EFX sends depends on the audio hardware and drivers. Most Realtek devices, as well
- as the Creative SB Live!, support 1 auxilliary send. Creative's Audigy and X-Fi series support 4 sends.
- Values higher than supported will be clamped by the driver.
- </para>
- </remarks>
+ <member name="P:OpenTK.DisplayDevice.OriginalResolution">
+ <summary>
+ Gets the original resolution of this instance.
+ </summary>
</member>
- <member name="M:OpenTK.Audio.AudioContext.CreateContext(System.String,System.Int32,System.Int32,System.Boolean,System.Boolean,OpenTK.Audio.AudioContext.MaxAuxiliarySends)">
- \internal
- <summary>Creates the audio context using the specified device.</summary>
- <param name="device">The device descriptor obtained through AudioContext.AvailableDevices, or null for the default device.</param>
- <param name="freq">Frequency for mixing output buffer, in units of Hz. Pass 0 for driver default.</param>
- <param name="refresh">Refresh intervals, in units of Hz. Pass 0 for driver default.</param>
- <param name="sync">Flag, indicating a synchronous context.</param>
- <param name="enableEfx">Indicates whether the EFX extension should be initialized, if present.</param>
- <param name="efxAuxiliarySends">Requires EFX enabled. The number of desired Auxiliary Sends per source.</param>
- <exception cref="T:System.ArgumentOutOfRangeException">Occurs when a specified parameter is invalid.</exception>
- <exception cref="T:OpenTK.Audio.AudioDeviceException">
- Occurs when the specified device is not available, or is in use by another program.
- </exception>
- <exception cref="T:OpenTK.Audio.AudioContextException">
- Occurs when an audio context could not be created with the specified parameters.
- </exception>
- <exception cref="T:System.NotSupportedException">
- Occurs when an AudioContext already exists.</exception>
- <remarks>
- <para>For maximum compatibility, you are strongly recommended to use the default constructor.</para>
- <para>Multiple AudioContexts are not supported at this point.</para>
- <para>
- The number of auxilliary EFX sends depends on the audio hardware and drivers. Most Realtek devices, as well
- as the Creative SB Live!, support 1 auxilliary send. Creative's Audigy and X-Fi series support 4 sends.
- Values higher than supported will be clamped by the driver.
- </para>
- </remarks>
+ <member name="T:OpenTK.DisplayIndex">
+ <summary>
+ Defines <see cref="T:OpenTK.DisplayDevice"/> indices.
+ </summary>
</member>
- <member name="M:OpenTK.Audio.AudioContext.MakeCurrent(OpenTK.Audio.AudioContext)">
- \internal
- <summary>Makes the specified AudioContext current in the calling thread.</summary>
- <param name="context">The OpenTK.Audio.AudioContext to make current, or null.</param>
- <exception cref="T:System.ObjectDisposedException">
- Occurs if this function is called after the AudioContext has been disposed.
- </exception>
- <exception cref="T:OpenTK.Audio.AudioContextException">
- Occurs when the AudioContext could not be made current.
- </exception>
+ <member name="F:OpenTK.DisplayIndex.First">
+ <summary>
+ The first DisplayDevice.
+ </summary>
</member>
- <member name="M:OpenTK.Audio.AudioContext.CheckErrors">
+ <member name="F:OpenTK.DisplayIndex.Second">
<summary>
- Checks for ALC error conditions.
+ The second DisplayDevice.
</summary>
- <exception cref="T:System.OutOfMemoryException">Raised when an out of memory error is detected.</exception>
- <exception cref="T:OpenTK.Audio.AudioValueException">Raised when an invalid value is detected.</exception>
- <exception cref="T:OpenTK.Audio.AudioDeviceException">Raised when an invalid device is detected.</exception>
- <exception cref="T:OpenTK.Audio.AudioContextException">Raised when an invalid context is detected.</exception>
</member>
- <member name="M:OpenTK.Audio.AudioContext.MakeCurrent">
- <summary>Makes the AudioContext current in the calling thread.</summary>
- <exception cref="T:System.ObjectDisposedException">
- Occurs if this function is called after the AudioContext has been disposed.
- </exception>
- <exception cref="T:OpenTK.Audio.AudioContextException">
- Occurs when the AudioContext could not be made current.
- </exception>
- <remarks>
- Only one AudioContext can be current in the application at any time,
- <b>regardless of the number of threads</b>.
- </remarks>
+ <member name="F:OpenTK.DisplayIndex.Third">
+ <summary>
+ The third DisplayDevice.
+ </summary>
</member>
- <member name="M:OpenTK.Audio.AudioContext.Process">
+ <member name="F:OpenTK.DisplayIndex.Fourth">
<summary>
- Processes queued audio events.
+ The fourth DisplayDevice.
</summary>
+ </member>
+ <member name="F:OpenTK.Di...
[truncated message content] |
|
From: <ka...@us...> - 2014-06-24 03:50:48
|
Revision: 1392
http://sourceforge.net/p/agate/code/1392
Author: kanato
Date: 2014-06-24 03:50:43 +0000 (Tue, 24 Jun 2014)
Log Message:
-----------
Fix minor bug where framebuffer would remain bound after being created.
Modified Paths:
--------------
trunk/Drivers/AgateOTK/GL3/FrameBuffer.cs
trunk/Drivers/AgateOTK/GL_Surface.cs
trunk/Tests/DisplayTests/Prerendered.cs
trunk/Tests/DisplayTests/ScreenCapture.cs
Modified: trunk/Drivers/AgateOTK/GL3/FrameBuffer.cs
===================================================================
--- trunk/Drivers/AgateOTK/GL3/FrameBuffer.cs 2014-06-24 03:28:09 UTC (rev 1391)
+++ trunk/Drivers/AgateOTK/GL3/FrameBuffer.cs 2014-06-24 03:50:43 UTC (rev 1392)
@@ -84,6 +84,9 @@
mHasDepth = true;
mHasStencil = true;
+
+
+ GL.BindFramebuffer(FramebufferTarget.Framebuffer, 0);
}
public override void Dispose()
{
Modified: trunk/Drivers/AgateOTK/GL_Surface.cs
===================================================================
--- trunk/Drivers/AgateOTK/GL_Surface.cs 2014-06-24 03:28:09 UTC (rev 1391)
+++ trunk/Drivers/AgateOTK/GL_Surface.cs 2014-06-24 03:50:43 UTC (rev 1392)
@@ -332,13 +332,20 @@
{
for (int i = rect.Top; i < rect.Bottom; i++)
{
- int dataIndex = (i - rect.Top) * pixelStride * rect.Width;
+ int row = i - rect.Top;
+
+ if (FlipVertical)
+ {
+ row = rect.Height - row - 1;
+ }
+
+ int dataIndex = (row) * pixelStride * rect.Width;
IntPtr memPtr = (IntPtr)((byte*)memory + i * memStride + rect.Left * pixelStride);
Marshal.Copy(memPtr, data, dataIndex, pixelStride * rect.Width);
}
}
-
+
Marshal.FreeHGlobal(memory);
if (format == PixelFormat.RGBA8888)
Modified: trunk/Tests/DisplayTests/Prerendered.cs
===================================================================
--- trunk/Tests/DisplayTests/Prerendered.cs 2014-06-24 03:28:09 UTC (rev 1391)
+++ trunk/Tests/DisplayTests/Prerendered.cs 2014-06-24 03:50:43 UTC (rev 1392)
@@ -75,8 +75,6 @@
Display.EndFrame();
Display.RenderTarget = save;
-
}
-
}
}
\ No newline at end of file
Modified: trunk/Tests/DisplayTests/ScreenCapture.cs
===================================================================
--- trunk/Tests/DisplayTests/ScreenCapture.cs 2014-06-24 03:28:09 UTC (rev 1391)
+++ trunk/Tests/DisplayTests/ScreenCapture.cs 2014-06-24 03:50:43 UTC (rev 1392)
@@ -41,7 +41,6 @@
}
if (capturing)
{
- // TODO: reimplement this with framebuffers.
Display.RenderTarget = capture;
someSurface.SetScale(2, 2);
}
@@ -51,6 +50,7 @@
Display.Clear(Color.White);
someSurface.Draw();
+ Display.FillRect(10, 10, 10, 10, Color.Gray);
Display.EndFrame();
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ka...@us...> - 2014-06-24 05:38:47
|
Revision: 1394
http://sourceforge.net/p/agate/code/1394
Author: kanato
Date: 2014-06-24 05:38:38 +0000 (Tue, 24 Jun 2014)
Log Message:
-----------
Fix the missing texture issue by copying the ortho projection when a new 2D shader is set.
Fix colors when lighting is enabled in Direct3D.
Modified Paths:
--------------
trunk/AgateLib/DisplayLib/DisplayCapsInfo.cs
trunk/AgateLib/DisplayLib/ImplementationBase/DisplayImpl.cs
trunk/AgateLib/DisplayLib/Shaders/Lighting2D.cs
trunk/Drivers/AgateOTK/Legacy/FixedFunction/OTK_FF_Lighting2D.cs
trunk/Drivers/AgateSDX/DrawBuffer.cs
trunk/Drivers/AgateSDX/SDX_VertexBuffer.cs
trunk/Drivers/AgateSDX/Shaders/FixedFunction/SDX_FF_Lighting2D.cs
trunk/Tests/DisplayTests/FullScreen.cs
trunk/Tests/Shaders/LightingTest/LightingTest.cs
Modified: trunk/AgateLib/DisplayLib/DisplayCapsInfo.cs
===================================================================
--- trunk/AgateLib/DisplayLib/DisplayCapsInfo.cs 2014-06-24 05:35:05 UTC (rev 1393)
+++ trunk/AgateLib/DisplayLib/DisplayCapsInfo.cs 2014-06-24 05:38:38 UTC (rev 1394)
@@ -1,118 +1,118 @@
-// The contents of this file are subject to the Mozilla Public License
-// Version 1.1 (the "License"); you may not use this file except in
-// compliance with the License. You may obtain a copy of the License at
-// http://www.mozilla.org/MPL/
-//
-// Software distributed under the License is distributed on an "AS IS"
-// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
-// License for the specific language governing rights and limitations
-// under the License.
-//
-// The Original Code is AgateLib.
-//
-// The Initial Developer of the Original Code is Erik Ylvisaker.
-// Portions created by Erik Ylvisaker are Copyright (C) 2006-2011.
-// All Rights Reserved.
-//
-// Contributor(s): Erik Ylvisaker
-//
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using AgateLib.Geometry;
-
-namespace AgateLib.DisplayLib
-{
- /// <summary>
- /// Class which can be used to query information about what features are supported
- /// by the display driver.
- /// </summary>
- public class DisplayCapsInfo
- {
- internal DisplayCapsInfo()
- { }
-
- /// <summary>
- /// Indicates whether or not full screen windows can be created.
- /// </summary>
- public bool SupportsFullScreen
- {
- get { return Display.Impl.CapsBool(DisplayBoolCaps.FullScreen); }
- }
- /// <summary>
- /// Indicates whether or not the screen resolution can be changed.
- /// If the Display driver supports full screen but not mode switching,
- /// then a DisplayWindow which is created with as a full screen window
- /// cannot change resolutions after it is initially set.
- /// </summary>
- public bool SupportsFullScreenModeSwitching
- {
- get { return Display.Impl.CapsBool(DisplayBoolCaps.FullScreenModeSwitching); }
- }
- /// <summary>
- /// Indicates whether setting Surface.SetScale has any visible effect.
- /// </summary>
- public bool SupportsScaling
- {
- get { return Display.Impl.CapsBool(DisplayBoolCaps.Scaling); }
- }
- /// <summary>
- /// Indicates whether setting Surface.RotationAngle has any visible effect.
- /// </summary>
- public bool SupportsRotation
- {
- get { return Display.Impl.CapsBool(DisplayBoolCaps.Rotation); }
- }
- /// <summary>
- /// Indicates whether setting Surface.Color has any visible effect.
- /// </summary>
- public bool SupportsColor
- {
- get { return Display.Impl.CapsBool(DisplayBoolCaps.Color); }
- }
- /// <summary>
- /// Indicates whether Surface gradients are supported. If not, then setting Surface.ColorGradient
- /// color of a surface is the same as setting the Surface.Color with the average of the
- /// gradient colors.
- /// </summary>
- public bool SupportsGradient
- {
- get { return Display.Impl.CapsBool(DisplayBoolCaps.Gradient); }
- }
- /// <summary>
- /// Indicates whether setting Surface.Alpha has any visible effect.
- /// </summary>
- public bool SupportsSurfaceAlpha
- {
- get { return Display.Impl.CapsBool(DisplayBoolCaps.SurfaceAlpha); }
- }
- /// <summary>
- /// Indicates whether the alpha channel in surface pixels is used.
- /// </summary>
- public bool SupportsPixelAlpha
- {
- get { return Display.Impl.CapsBool(DisplayBoolCaps.PixelAlpha); }
- }
- /// <summary>
- /// Indicates whether there is hardware acceleration available for 2D and 3D drawing.
- /// </summary>
- public bool IsHardwareAccelerated
- {
- get { return Display.Impl.CapsBool(DisplayBoolCaps.IsHardwareAccelerated); }
- }
- /// <summary>
- /// Indicates whether or not vertex/pixel shaders are supported.
- /// </summary>
- public bool SupportsCustomShaders
- {
- get { return Display.Impl.CapsBool(DisplayBoolCaps.CustomShaders); }
- }
- /// <summary>
- /// Indicates which shader language is supported.
- /// </summary>
- public AgateLib.DisplayLib.Shaders.ShaderLanguage ShaderLanguage
- {
+// The contents of this file are subject to the Mozilla Public License
+// Version 1.1 (the "License"); you may not use this file except in
+// compliance with the License. You may obtain a copy of the License at
+// http://www.mozilla.org/MPL/
+//
+// Software distributed under the License is distributed on an "AS IS"
+// basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the
+// License for the specific language governing rights and limitations
+// under the License.
+//
+// The Original Code is AgateLib.
+//
+// The Initial Developer of the Original Code is Erik Ylvisaker.
+// Portions created by Erik Ylvisaker are Copyright (C) 2006-2011.
+// All Rights Reserved.
+//
+// Contributor(s): Erik Ylvisaker
+//
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using AgateLib.Geometry;
+
+namespace AgateLib.DisplayLib
+{
+ /// <summary>
+ /// Class which can be used to query information about what features are supported
+ /// by the display driver.
+ /// </summary>
+ public class DisplayCapsInfo
+ {
+ internal DisplayCapsInfo()
+ { }
+
+ /// <summary>
+ /// Indicates whether or not full screen windows can be created.
+ /// </summary>
+ public bool SupportsFullScreen
+ {
+ get { return Display.Impl.CapsBool(DisplayBoolCaps.FullScreen); }
+ }
+ /// <summary>
+ /// Indicates whether or not the screen resolution can be changed.
+ /// If the Display driver supports full screen but not mode switching,
+ /// then a DisplayWindow which is created with as a full screen window
+ /// cannot change resolutions after it is initially set.
+ /// </summary>
+ public bool SupportsFullScreenModeSwitching
+ {
+ get { return Display.Impl.CapsBool(DisplayBoolCaps.FullScreenModeSwitching); }
+ }
+ /// <summary>
+ /// Indicates whether setting Surface.SetScale has any visible effect.
+ /// </summary>
+ public bool SupportsScaling
+ {
+ get { return Display.Impl.CapsBool(DisplayBoolCaps.Scaling); }
+ }
+ /// <summary>
+ /// Indicates whether setting Surface.RotationAngle has any visible effect.
+ /// </summary>
+ public bool SupportsRotation
+ {
+ get { return Display.Impl.CapsBool(DisplayBoolCaps.Rotation); }
+ }
+ /// <summary>
+ /// Indicates whether setting Surface.Color has any visible effect.
+ /// </summary>
+ public bool SupportsColor
+ {
+ get { return Display.Impl.CapsBool(DisplayBoolCaps.Color); }
+ }
+ /// <summary>
+ /// Indicates whether Surface gradients are supported. If not, then setting Surface.ColorGradient
+ /// color of a surface is the same as setting the Surface.Color with the average of the
+ /// gradient colors.
+ /// </summary>
+ public bool SupportsGradient
+ {
+ get { return Display.Impl.CapsBool(DisplayBoolCaps.Gradient); }
+ }
+ /// <summary>
+ /// Indicates whether setting Surface.Alpha has any visible effect.
+ /// </summary>
+ public bool SupportsSurfaceAlpha
+ {
+ get { return Display.Impl.CapsBool(DisplayBoolCaps.SurfaceAlpha); }
+ }
+ /// <summary>
+ /// Indicates whether the alpha channel in surface pixels is used.
+ /// </summary>
+ public bool SupportsPixelAlpha
+ {
+ get { return Display.Impl.CapsBool(DisplayBoolCaps.PixelAlpha); }
+ }
+ /// <summary>
+ /// Indicates whether there is hardware acceleration available for 2D and 3D drawing.
+ /// </summary>
+ public bool IsHardwareAccelerated
+ {
+ get { return Display.Impl.CapsBool(DisplayBoolCaps.IsHardwareAccelerated); }
+ }
+ /// <summary>
+ /// Indicates whether or not vertex/pixel shaders are supported.
+ /// </summary>
+ public bool SupportsCustomShaders
+ {
+ get { return Display.Impl.CapsBool(DisplayBoolCaps.CustomShaders); }
+ }
+ /// <summary>
+ /// Indicates which shader language is supported.
+ /// </summary>
+ public AgateLib.DisplayLib.Shaders.ShaderLanguage ShaderLanguage
+ {
get
{
var shad = Display.Impl.SupportedShaderLanguages.ToList();
@@ -121,90 +121,90 @@
return Shaders.ShaderLanguage.None;
else
return shad[0];
- }
- }
- /// <summary>
- /// Indicates whether the driver can create a bitmap font from an operating
- /// system font.
- /// </summary>
- public bool CanCreateBitmapFont
- {
- get { return Display.Impl.CapsBool(DisplayBoolCaps.CanCreateBitmapFont); }
- }
-
- /// <summary>
- /// Gets the maximum size a surface can be.
- /// </summary>
- public Size MaxSurfaceSize
- {
- get { return Display.Impl.CapsSize(DisplaySizeCaps.MaxSurfaceSize); }
- }
- }
-
- /// <summary>
- /// Enum which is used to specify a Caps value which should return a Size object.
- /// </summary>
- public enum DisplaySizeCaps
- {
- /// <summary>
- /// Value for getting the maximum supported surface size.
- /// </summary>
- MaxSurfaceSize,
- }
- /// <summary>
- /// Enum which is used to specify a Caps value which should return a logical value.
- /// </summary>
- public enum DisplayBoolCaps
- {
- /// <summary>
- /// Indicates whether or not full screen windows can be created.
- /// </summary>
- FullScreen,
- /// <summary>
- /// Indicates whether or not the screen resolution can be changed.
- /// If the Display driver supports full screen but not mode switching,
- /// then a DisplayWindow which is created with as a full screen window
- /// cannot change resolutions after it is initially set.
- /// </summary>
- FullScreenModeSwitching,
- /// <summary>
- /// Indicates whether setting Surface.SetScale has any visible effect.
- /// </summary>
- Scaling,
- /// <summary>
- /// Indicates whether setting Surface.RotationAngle has any visible effect.
- /// </summary>
- Rotation,
- /// <summary>
- /// Indicates whether setting Surface.Color has any visible effect.
- /// </summary>
- Color,
- /// <summary>
- /// Indicates whether Surface gradients are supported. If not, then setting Surface.ColorGradient
- /// color of a surface is the same as setting the Surface.Color with the average of the
- /// gradient colors.
- /// </summary>
- Gradient,
- /// <summary>
- /// Indicates whether setting Surface.Alpha has any visible effect.
- /// </summary>
- SurfaceAlpha,
- /// <summary>
- /// Indicates whether the alpha channel in surface pixels is used.
- /// </summary>
- PixelAlpha,
- /// <summary>
- /// Indicates whether there is hardware acceleration available for 2D scaling and rotations.
- /// </summary>
- IsHardwareAccelerated,
- /// <summary>
- /// Indicates whether or not vertex/pixel shaders are supported.
- /// </summary>
- CustomShaders,
- /// <summary>
- /// Indicates whether the driver can create a bitmap font from an operating
- /// system font.
- /// </summary>
- CanCreateBitmapFont,
- }
-}
+ }
+ }
+ /// <summary>
+ /// Indicates whether the driver can create a bitmap font from an operating
+ /// system font.
+ /// </summary>
+ public bool CanCreateBitmapFont
+ {
+ get { return Display.Impl.CapsBool(DisplayBoolCaps.CanCreateBitmapFont); }
+ }
+
+ /// <summary>
+ /// Gets the maximum size a surface can be.
+ /// </summary>
+ public Size MaxSurfaceSize
+ {
+ get { return Display.Impl.CapsSize(DisplaySizeCaps.MaxSurfaceSize); }
+ }
+ }
+
+ /// <summary>
+ /// Enum which is used to specify a Caps value which should return a Size object.
+ /// </summary>
+ public enum DisplaySizeCaps
+ {
+ /// <summary>
+ /// Value for getting the maximum supported surface size.
+ /// </summary>
+ MaxSurfaceSize,
+ }
+ /// <summary>
+ /// Enum which is used to specify a Caps value which should return a logical value.
+ /// </summary>
+ public enum DisplayBoolCaps
+ {
+ /// <summary>
+ /// Indicates whether or not full screen windows can be created.
+ /// </summary>
+ FullScreen,
+ /// <summary>
+ /// Indicates whether or not the screen resolution can be changed.
+ /// If the Display driver supports full screen but not mode switching,
+ /// then a DisplayWindow which is created with as a full screen window
+ /// cannot change resolutions after it is initially set.
+ /// </summary>
+ FullScreenModeSwitching,
+ /// <summary>
+ /// Indicates whether setting Surface.SetScale has any visible effect.
+ /// </summary>
+ Scaling,
+ /// <summary>
+ /// Indicates whether setting Surface.RotationAngle has any visible effect.
+ /// </summary>
+ Rotation,
+ /// <summary>
+ /// Indicates whether setting Surface.Color has any visible effect.
+ /// </summary>
+ Color,
+ /// <summary>
+ /// Indicates whether Surface gradients are supported. If not, then setting Surface.ColorGradient
+ /// color of a surface is the same as setting the Surface.Color with the average of the
+ /// gradient colors.
+ /// </summary>
+ Gradient,
+ /// <summary>
+ /// Indicates whether setting Surface.Alpha has any visible effect.
+ /// </summary>
+ SurfaceAlpha,
+ /// <summary>
+ /// Indicates whether the alpha channel in surface pixels is used.
+ /// </summary>
+ PixelAlpha,
+ /// <summary>
+ /// Indicates whether there is hardware acceleration available for 2D scaling and rotations.
+ /// </summary>
+ IsHardwareAccelerated,
+ /// <summary>
+ /// Indicates whether or not vertex/pixel shaders are supported.
+ /// </summary>
+ CustomShaders,
+ /// <summary>
+ /// Indicates whether the driver can create a bitmap font from an operating
+ /// system font.
+ /// </summary>
+ CanCreateBitmapFont,
+ }
+}
Modified: trunk/AgateLib/DisplayLib/ImplementationBase/DisplayImpl.cs
===================================================================
--- trunk/AgateLib/DisplayLib/ImplementationBase/DisplayImpl.cs 2014-06-24 05:35:05 UTC (rev 1393)
+++ trunk/AgateLib/DisplayLib/ImplementationBase/DisplayImpl.cs 2014-06-24 05:38:38 UTC (rev 1394)
@@ -705,12 +705,21 @@
if (mShader != null)
mShader.EndInternal();
+ if (value is IShader2D && mShader is IShader2D)
+ TransferShader2DSettings((IShader2D)value, (IShader2D)mShader);
+
mShader = value;
mShader.BeginInternal();
}
}
+ private void TransferShader2DSettings(IShader2D target, IShader2D src)
+ {
+ if (target.CoordinateSystem.IsEmpty)
+ target.CoordinateSystem = src.CoordinateSystem;
+ }
+
protected internal abstract bool GetRenderState(RenderStateBool renderStateBool);
protected internal abstract void SetRenderState(RenderStateBool renderStateBool, bool value);
Modified: trunk/AgateLib/DisplayLib/Shaders/Lighting2D.cs
===================================================================
--- trunk/AgateLib/DisplayLib/Shaders/Lighting2D.cs 2014-06-24 05:35:05 UTC (rev 1393)
+++ trunk/AgateLib/DisplayLib/Shaders/Lighting2D.cs 2014-06-24 05:38:38 UTC (rev 1394)
@@ -85,6 +85,8 @@
return;
}
}
+
+ Lights.Add(ptLight);
}
Modified: trunk/Drivers/AgateOTK/Legacy/FixedFunction/OTK_FF_Lighting2D.cs
===================================================================
--- trunk/Drivers/AgateOTK/Legacy/FixedFunction/OTK_FF_Lighting2D.cs 2014-06-24 05:35:05 UTC (rev 1393)
+++ trunk/Drivers/AgateOTK/Legacy/FixedFunction/OTK_FF_Lighting2D.cs 2014-06-24 05:38:38 UTC (rev 1394)
@@ -86,9 +86,7 @@
GL.MatrixMode(MatrixMode.Projection);
GL.LoadIdentity();
GL.Ortho(coords.Left, coords.Right, coords.Bottom, coords.Top, -1, 1);
-
- GL.Enable(EnableCap.Lighting);
-
+
float[] array = new float[4];
GL.Enable(EnableCap.Lighting);
Modified: trunk/Drivers/AgateSDX/DrawBuffer.cs
===================================================================
--- trunk/Drivers/AgateSDX/DrawBuffer.cs 2014-06-24 05:35:05 UTC (rev 1393)
+++ trunk/Drivers/AgateSDX/DrawBuffer.cs 2014-06-24 05:38:38 UTC (rev 1394)
@@ -100,6 +100,10 @@
mDevice.SetDeviceStateTexture(mTexture);
mDevice.AlphaBlend = mAlphaBlend;
+ mDevice.AlphaArgument1 = TextureArgument.Texture;
+ mDevice.AlphaArgument2 = TextureArgument.Diffuse;
+ mDevice.AlphaOperation = TextureOperation.Modulate;
+
mDevice.SetVertexDeclarationForSurfaces();
SDX_Display display = (SDX_Display)Display.Impl;
Modified: trunk/Drivers/AgateSDX/SDX_VertexBuffer.cs
===================================================================
--- trunk/Drivers/AgateSDX/SDX_VertexBuffer.cs 2014-06-24 05:35:05 UTC (rev 1393)
+++ trunk/Drivers/AgateSDX/SDX_VertexBuffer.cs 2014-06-24 05:38:38 UTC (rev 1394)
@@ -217,7 +217,7 @@
SetTextures();
mDisplay.D3D_Device.AlphaArgument1 = Direct3D.TextureArgument.Texture;
-
+
mDisplay.D3D_Device.Device.VertexDeclaration = mDeclaration;
mDisplay.D3D_Device.Device.Indices = indexbuffer.DeviceIndexBuffer;
mDisplay.D3D_Device.Device.SetStreamSource(0, mBuffer, 0, mLayout.VertexSize);
Modified: trunk/Drivers/AgateSDX/Shaders/FixedFunction/SDX_FF_Lighting2D.cs
===================================================================
--- trunk/Drivers/AgateSDX/Shaders/FixedFunction/SDX_FF_Lighting2D.cs 2014-06-24 05:35:05 UTC (rev 1393)
+++ trunk/Drivers/AgateSDX/Shaders/FixedFunction/SDX_FF_Lighting2D.cs 2014-06-24 05:38:38 UTC (rev 1394)
@@ -94,52 +94,61 @@
Set2DDrawState();
- //if (EnableLighting == false)
- //{
- // mDisplay.D3D_Device.Device.SetRenderState(RenderState.Lighting, false);
- // return;
- //}
+ mDisplay.D3D_Device.Device.SetRenderState(RenderState.Lighting, true);
+ mDisplay.D3D_Device.Device.SetRenderState(RenderState.Ambient, AmbientLight.ToArgb());
+ mDisplay.D3D_Device.Device.SetRenderState(RenderState.ColorVertex, true);
- //mDisplay.D3D_Device.Device.SetRenderState(RenderState.Lighting, true);
- //mDisplay.D3D_Device.Device.SetRenderState(RenderState.Ambient, AmbientLight.ToArgb());
+ TextureArgument arg0 = (TextureArgument)mDisplay.D3D_Device.Device.GetTextureStageState(0, TextureStage.ColorArg0);
+ TextureArgument arg1 = (TextureArgument)mDisplay.D3D_Device.Device.GetTextureStageState(0, TextureStage.ColorArg1);
+ TextureArgument arg2 = (TextureArgument)mDisplay.D3D_Device.Device.GetTextureStageState(0, TextureStage.ColorArg2);
+ TextureOperation op = (TextureOperation)mDisplay.D3D_Device.Device.GetTextureStageState(0, TextureStage.ColorOperation);
- //Material material = new Material();
- //material.Diffuse = new SlimDX.Color4(Color.White.ToArgb());
- //material.Ambient = new SlimDX.Color4(Color.White.ToArgb());
+ mDisplay.D3D_Device.Device.SetTextureStageState(0, TextureStage.ColorArg0, TextureArgument.Current);
+ mDisplay.D3D_Device.Device.SetTextureStageState(0, TextureStage.ColorArg1, TextureArgument.Texture);
+ mDisplay.D3D_Device.Device.SetTextureStageState(0, TextureStage.ColorArg2, TextureArgument.Current);
+ mDisplay.D3D_Device.Device.SetTextureStageState(0, TextureStage.ColorOperation, TextureOperation.Modulate);
+ mDisplay.D3D_Device.Device.SetRenderState(RenderState.DiffuseMaterialSource, ColorSource.Color1);
+ mDisplay.D3D_Device.Device.SetRenderState(RenderState.AmbientMaterialSource, ColorSource.Color1);
+
+ Material material = new Material();
+ material.Diffuse = new SlimDX.Color4(Color.White.ToArgb());
+ material.Ambient = new SlimDX.Color4(Color.White.ToArgb());
+
+
+ mDisplay.D3D_Device.Device.Material = material;
- //mDisplay.D3D_Device.Device.Material = material;
+ int index = 0;
- //int index = 0;
+ for (int i = 0; i < Lights.Count; i++)
+ {
+ var agateLight = Lights[i];
- //for (int i = 0; i < Lights.Count; i++)
- //{
- // var agateLight = Lights[i];
+ if (agateLight == null)
+ continue;
+ if (agateLight.Enabled == false)
+ continue;
- // if (agateLight == null)
- // continue;
- // if (agateLight.Enabled == false)
- // continue;
+ SlimDX.Direct3D9.Light l = new SlimDX.Direct3D9.Light();
- // SlimDX.Direct3D9.Light l = new SlimDX.Direct3D9.Light();
+ l.Ambient = new SlimDX.Color4(agateLight.AmbientColor.ToArgb());
+ l.Attenuation0 = agateLight.AttenuationConstant;
+ l.Attenuation1 = agateLight.AttenuationLinear;
+ l.Attenuation2 = agateLight.AttenuationQuadratic;
+ l.Diffuse = new SlimDX.Color4(agateLight.DiffuseColor.ToArgb());
+ l.Type = LightType.Point;
+ l.Direction = new SlimDX.Vector3(0, 0, 1);
+ l.Range = 100;
+
- // l.Ambient = new SlimDX.Color4(agateLight.AmbientColor.ToArgb());
- // l.Attenuation0 = agateLight.AttenuationConstant;
- // l.Attenuation1 = agateLight.AttenuationLinear;
- // l.Attenuation2 = agateLight.AttenuationQuadratic;
- // l.Diffuse = new SlimDX.Color4(agateLight.DiffuseColor.ToArgb());
- // l.Type = LightType.Point;
- // l.Direction = new SlimDX.Vector3(0, 0, 1);
- // l.Range = 100;
+ Vector3 pos = agateLight.Position;
- // Vector3 pos = agateLight.Position;
+ l.Position = new SlimDX.Vector3(pos.X, pos.Y, pos.Z);
- // l.Position = new SlimDX.Vector3(pos.X, pos.Y, pos.Z);
+ mDisplay.D3D_Device.Device.SetLight(index, l);
+ mDisplay.D3D_Device.Device.EnableLight(index, true);
- // mDisplay.D3D_Device.Device.SetLight(index, l);
- // mDisplay.D3D_Device.Device.EnableLight(index, true);
-
- // index++;
- //}
+ index++;
+ }
}
public override void BeginPass(int passIndex)
Modified: trunk/Tests/DisplayTests/FullScreen.cs
===================================================================
--- trunk/Tests/DisplayTests/FullScreen.cs 2014-06-24 05:35:05 UTC (rev 1393)
+++ trunk/Tests/DisplayTests/FullScreen.cs 2014-06-24 05:38:38 UTC (rev 1394)
@@ -35,6 +35,8 @@
Keyboard.KeyDown += new InputEventHandler(Keyboard_KeyDown);
FontSurface font = FontSurface.AgateSans14;
+ int frames = 1;
+
// Run the program while the window is open.
while (Display.CurrentWindow.IsClosed == false &&
Keyboard.Keys[KeyCode.Escape] == false &&
@@ -44,10 +46,14 @@
Display.Clear(Color.DarkGreen);
font.DrawText(text);
+
+ font.DrawText(0, 480 - font.FontHeight, "Frames: {0}", frames);
+
mySurface.Draw(Mouse.X, Mouse.Y);
Display.EndFrame();
Core.KeepAlive();
+ frames++;
}
}
}
Modified: trunk/Tests/Shaders/LightingTest/LightingTest.cs
===================================================================
--- trunk/Tests/Shaders/LightingTest/LightingTest.cs 2014-06-24 05:35:05 UTC (rev 1393)
+++ trunk/Tests/Shaders/LightingTest/LightingTest.cs 2014-06-24 05:38:38 UTC (rev 1394)
@@ -70,7 +70,7 @@
lt2.Position = new Vector3(e.MousePosition.X, e.MousePosition.Y, -1);
};
- while (true)//(frm.Visible == true)
+ while (wnd.IsClosed == false)
{
//if (frm.chkMoveLight.Checked)
time += Display.DeltaTime / 1000.0;
@@ -86,9 +86,8 @@
Display.BeginFrame();
Display.Clear(Color.DarkRed);
- //lights.Activate();
-
- //lights.Enabled = frm.enableLightingCheck.Checked;
+ lights.Activate();
+
//lights.DoLighting();
//fx.SetVariable("worldViewProj", wnd.OrthoProjection);
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ka...@us...> - 2014-07-04 18:10:17
|
Revision: 1396
http://sourceforge.net/p/agate/code/1396
Author: kanato
Date: 2014-07-04 18:10:08 +0000 (Fri, 04 Jul 2014)
Log Message:
-----------
Add properties to Color to get named colors by text.
Modified Paths:
--------------
trunk/AgateLib/Geometry/Color.cs
trunk/AgateLib-Everything.sln
Modified: trunk/AgateLib/Geometry/Color.cs
===================================================================
--- trunk/AgateLib/Geometry/Color.cs 2014-06-24 05:50:30 UTC (rev 1395)
+++ trunk/AgateLib/Geometry/Color.cs 2014-07-04 18:10:08 UTC (rev 1396)
@@ -29,8 +29,8 @@
[Serializable]
public struct Color
{
+ #region --- Static Named Color properties ---
- #region --- Static Named Color properties ---
/// <summary>
/// Color AliceBlue. 0xf0f8ff
/// </summary>
@@ -597,7 +597,50 @@
public static Color YellowGreen { get { return Color.FromArgb(154, 205, 50); } }
#endregion
+ #region --- Accessing Static Named Colors ---
+ static System.Reflection.PropertyInfo NamedColorStaticProperty(string name)
+ {
+ var retval = typeof(Color).GetProperty(name,
+ System.Reflection.BindingFlags.Static |
+ System.Reflection.BindingFlags.Public |
+ System.Reflection.BindingFlags.IgnoreCase);
+
+ if (retval.PropertyType == typeof(Color))
+ return retval;
+ else
+ return null;
+ }
+
+ /// <summary>
+ /// Gets whether or not the specified value is a named color.
+ /// Named colors correspond to the public static properties of the Color structure.
+ /// </summary>
+ /// <param name="colorName"></param>
+ /// <returns></returns>
+ public static bool IsNamedColor(string colorName)
+ {
+ return NamedColorStaticProperty(colorName) != null;
+ }
+
+ /// <summary>
+ /// Returns the color structure corresponding to the named value.
+ /// Named colors correspond to the public static properties of the Color structure.
+ /// </summary>
+ /// <param name="colorName"></param>
+ /// <returns></returns>
+ public static Color GetNamedColor(string colorName)
+ {
+ var pi = NamedColorStaticProperty(colorName);
+
+ if (pi == null)
+ throw new ArgumentException("Argument passed was not the name of a color.");
+
+ return (Color)pi.GetValue(null, null);
+ }
+
+ #endregion
+
#region --- Private Data ---
[FieldOffset(3)]
Modified: trunk/AgateLib-Everything.sln
===================================================================
--- trunk/AgateLib-Everything.sln 2014-06-24 05:50:30 UTC (rev 1395)
+++ trunk/AgateLib-Everything.sln 2014-07-04 18:10:08 UTC (rev 1396)
@@ -1,5 +1,7 @@
Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio 2012
+# Visual Studio 2013
+VisualStudioVersion = 12.0.30501.0
+MinimumVisualStudioVersion = 10.0.40219.1
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Files", "Solution Files", "{6AFA2E43-361A-4AA6-83D9-6DE946C1F0B6}"
ProjectSection(SolutionItems) = preProject
ChangeLog.txt = ChangeLog.txt
@@ -49,6 +51,8 @@
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Pong", "Examples\Pong\Pong.csproj", "{436641C4-846C-42D0-8E8F-95F70E211D22}"
EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ExampleUnitTests", "Examples\ExampleUnitTests\ExampleUnitTests.csproj", "{8299274E-05DD-49E0-ACB8-70C2BBAC69D1}"
+EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -560,6 +564,27 @@
{436641C4-846C-42D0-8E8F-95F70E211D22}.Release|x64.Build.0 = Release|x64
{436641C4-846C-42D0-8E8F-95F70E211D22}.Release|x86.ActiveCfg = Release|x86
{436641C4-846C-42D0-8E8F-95F70E211D22}.Release|x86.Build.0 = Release|x86
+ {8299274E-05DD-49E0-ACB8-70C2BBAC69D1}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8299274E-05DD-49E0-ACB8-70C2BBAC69D1}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8299274E-05DD-49E0-ACB8-70C2BBAC69D1}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
+ {8299274E-05DD-49E0-ACB8-70C2BBAC69D1}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
+ {8299274E-05DD-49E0-ACB8-70C2BBAC69D1}.Debug|Win32.ActiveCfg = Debug|Any CPU
+ {8299274E-05DD-49E0-ACB8-70C2BBAC69D1}.Debug|x64.ActiveCfg = Debug|Any CPU
+ {8299274E-05DD-49E0-ACB8-70C2BBAC69D1}.Debug|x86.ActiveCfg = Debug|Any CPU
+ {8299274E-05DD-49E0-ACB8-70C2BBAC69D1}.Public|Any CPU.ActiveCfg = Release|Any CPU
+ {8299274E-05DD-49E0-ACB8-70C2BBAC69D1}.Public|Any CPU.Build.0 = Release|Any CPU
+ {8299274E-05DD-49E0-ACB8-70C2BBAC69D1}.Public|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {8299274E-05DD-49E0-ACB8-70C2BBAC69D1}.Public|Mixed Platforms.Build.0 = Release|Any CPU
+ {8299274E-05DD-49E0-ACB8-70C2BBAC69D1}.Public|Win32.ActiveCfg = Release|Any CPU
+ {8299274E-05DD-49E0-ACB8-70C2BBAC69D1}.Public|x64.ActiveCfg = Release|Any CPU
+ {8299274E-05DD-49E0-ACB8-70C2BBAC69D1}.Public|x86.ActiveCfg = Release|Any CPU
+ {8299274E-05DD-49E0-ACB8-70C2BBAC69D1}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8299274E-05DD-49E0-ACB8-70C2BBAC69D1}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8299274E-05DD-49E0-ACB8-70C2BBAC69D1}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
+ {8299274E-05DD-49E0-ACB8-70C2BBAC69D1}.Release|Mixed Platforms.Build.0 = Release|Any CPU
+ {8299274E-05DD-49E0-ACB8-70C2BBAC69D1}.Release|Win32.ActiveCfg = Release|Any CPU
+ {8299274E-05DD-49E0-ACB8-70C2BBAC69D1}.Release|x64.ActiveCfg = Release|Any CPU
+ {8299274E-05DD-49E0-ACB8-70C2BBAC69D1}.Release|x86.ActiveCfg = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <ka...@us...> - 2014-07-19 01:25:54
|
Revision: 1399
http://sourceforge.net/p/agate/code/1399
Author: kanato
Date: 2014-07-19 01:25:49 +0000 (Sat, 19 Jul 2014)
Log Message:
-----------
Change version number to 1.0.
Modified Paths:
--------------
trunk/AgateLib/Properties/AssemblyInfo.cs
trunk/AgateLib/Resources/AgateResourceLoader.cs
trunk/Drivers/AgateDrawing/Properties/AssemblyInfo.cs
trunk/Drivers/AgateFMOD/Properties/AssemblyInfo.cs
trunk/Drivers/AgateLib.WinForms/Properties/AssemblyInfo.cs
trunk/Drivers/AgateOTK/Properties/AssemblyInfo.cs
trunk/Drivers/AgateSDL/Properties/AssemblyInfo.cs
trunk/Drivers/AgateSDX/Properties/AssemblyInfo.cs
trunk/Examples/BallBuster.Net/Properties/AssemblyInfo.cs
trunk/Examples/Pong/Properties/AssemblyInfo.cs
trunk/Examples/ShootTheTraps/Properties/AssemblyInfo.cs
trunk/Tests/Properties/AssemblyInfo.cs
trunk/Tools/AgateDataLib/Properties/AssemblyInfo.cs
trunk/Tools/DatabaseEditor/Properties/AssemblyInfo.cs
trunk/Tools/FontCreator/Properties/AssemblyInfo.cs
trunk/Tools/NotebookLib/NotebookLib/Properties/AssemblyInfo.cs
trunk/Tools/PackedSpriteCreator/Properties/AssemblyInfo.cs
trunk/Tools/ResourceEditor/Properties/AssemblyInfo.cs
trunk/UnitTests/Properties/AssemblyInfo.cs
Modified: trunk/AgateLib/Properties/AssemblyInfo.cs
===================================================================
--- trunk/AgateLib/Properties/AssemblyInfo.cs 2014-07-19 01:17:45 UTC (rev 1398)
+++ trunk/AgateLib/Properties/AssemblyInfo.cs 2014-07-19 01:25:49 UTC (rev 1399)
@@ -52,6 +52,6 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.5.0")]
-[assembly: AssemblyFileVersion("0.3.5.0")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
[assembly: NeutralResourcesLanguageAttribute("en")]
Modified: trunk/AgateLib/Resources/AgateResourceLoader.cs
===================================================================
--- trunk/AgateLib/Resources/AgateResourceLoader.cs 2014-07-19 01:17:45 UTC (rev 1398)
+++ trunk/AgateLib/Resources/AgateResourceLoader.cs 2014-07-19 01:25:49 UTC (rev 1399)
@@ -38,7 +38,7 @@
{
XmlDocument doc = new XmlDocument();
XmlElement root = doc.CreateElement("AgateResources");
- XmlHelper.AppendAttribute(root, doc, "Version", "0.3.2");
+ XmlHelper.AppendAttribute(root, doc, "Version", "1.0.0");
doc.AppendChild(root);
@@ -99,10 +99,13 @@
switch (version)
{
+ case "1.0.0":
+ case "0.4.0":
+ case "0.3.5":
case "0.3.2":
case "0.3.1":
case "0.3.0":
- ReadVersion032(resources, root, version);
+ ReadVersion100(resources, root, version);
break;
default:
@@ -111,7 +114,7 @@
}
- private static void ReadVersion032(AgateResourceCollection resources, XmlNode root, string version)
+ private static void ReadVersion100(AgateResourceCollection resources, XmlNode root, string version)
{
for (int i = 0; i < root.ChildNodes.Count; i++)
{
Modified: trunk/Drivers/AgateDrawing/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Drivers/AgateDrawing/Properties/AssemblyInfo.cs 2014-07-19 01:17:45 UTC (rev 1398)
+++ trunk/Drivers/AgateDrawing/Properties/AssemblyInfo.cs 2014-07-19 01:25:49 UTC (rev 1399)
@@ -48,5 +48,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.5.0")]
-[assembly: AssemblyFileVersion("0.3.5.0")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Modified: trunk/Drivers/AgateFMOD/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Drivers/AgateFMOD/Properties/AssemblyInfo.cs 2014-07-19 01:17:45 UTC (rev 1398)
+++ trunk/Drivers/AgateFMOD/Properties/AssemblyInfo.cs 2014-07-19 01:25:49 UTC (rev 1399)
@@ -49,5 +49,5 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
-[assembly: AssemblyVersion("0.3.5.0")]
-[assembly: AssemblyFileVersion("0.3.5.0")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Modified: trunk/Drivers/AgateLib.WinForms/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Drivers/AgateLib.WinForms/Properties/AssemblyInfo.cs 2014-07-19 01:17:45 UTC (rev 1398)
+++ trunk/Drivers/AgateLib.WinForms/Properties/AssemblyInfo.cs 2014-07-19 01:25:49 UTC (rev 1399)
@@ -49,5 +49,5 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
-[assembly: AssemblyVersion("0.3.5.0")]
-[assembly: AssemblyFileVersion("0.3.5.0")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Modified: trunk/Drivers/AgateOTK/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Drivers/AgateOTK/Properties/AssemblyInfo.cs 2014-07-19 01:17:45 UTC (rev 1398)
+++ trunk/Drivers/AgateOTK/Properties/AssemblyInfo.cs 2014-07-19 01:25:49 UTC (rev 1399)
@@ -47,5 +47,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.5.0")]
-[assembly: AssemblyFileVersion("0.3.5.0")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Modified: trunk/Drivers/AgateSDL/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Drivers/AgateSDL/Properties/AssemblyInfo.cs 2014-07-19 01:17:45 UTC (rev 1398)
+++ trunk/Drivers/AgateSDL/Properties/AssemblyInfo.cs 2014-07-19 01:25:49 UTC (rev 1399)
@@ -51,5 +51,5 @@
//
// You can specify all the values or you can default the Revision and Build Numbers
// by using the '*' as shown below:
-[assembly: AssemblyVersion("0.3.5.0")]
-[assembly: AssemblyFileVersion("0.3.5.0")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Modified: trunk/Drivers/AgateSDX/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Drivers/AgateSDX/Properties/AssemblyInfo.cs 2014-07-19 01:17:45 UTC (rev 1398)
+++ trunk/Drivers/AgateSDX/Properties/AssemblyInfo.cs 2014-07-19 01:25:49 UTC (rev 1399)
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.3.5.0")]
-[assembly: AssemblyFileVersion("0.3.5.0")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Modified: trunk/Examples/BallBuster.Net/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Examples/BallBuster.Net/Properties/AssemblyInfo.cs 2014-07-19 01:17:45 UTC (rev 1398)
+++ trunk/Examples/BallBuster.Net/Properties/AssemblyInfo.cs 2014-07-19 01:25:49 UTC (rev 1399)
@@ -30,5 +30,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.5.0")]
-[assembly: AssemblyFileVersion("0.3.5.0")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Modified: trunk/Examples/Pong/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Examples/Pong/Properties/AssemblyInfo.cs 2014-07-19 01:17:45 UTC (rev 1398)
+++ trunk/Examples/Pong/Properties/AssemblyInfo.cs 2014-07-19 01:25:49 UTC (rev 1399)
@@ -29,5 +29,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.5.0")]
-[assembly: AssemblyFileVersion("0.3.5.0")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Modified: trunk/Examples/ShootTheTraps/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Examples/ShootTheTraps/Properties/AssemblyInfo.cs 2014-07-19 01:17:45 UTC (rev 1398)
+++ trunk/Examples/ShootTheTraps/Properties/AssemblyInfo.cs 2014-07-19 01:25:49 UTC (rev 1399)
@@ -29,5 +29,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.5.0")]
-[assembly: AssemblyFileVersion("0.3.5.0")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Modified: trunk/Tests/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Tests/Properties/AssemblyInfo.cs 2014-07-19 01:17:45 UTC (rev 1398)
+++ trunk/Tests/Properties/AssemblyInfo.cs 2014-07-19 01:25:49 UTC (rev 1399)
@@ -29,5 +29,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.5.0")]
-[assembly: AssemblyFileVersion("0.3.5.0")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Modified: trunk/Tools/AgateDataLib/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Tools/AgateDataLib/Properties/AssemblyInfo.cs 2014-07-19 01:17:45 UTC (rev 1398)
+++ trunk/Tools/AgateDataLib/Properties/AssemblyInfo.cs 2014-07-19 01:25:49 UTC (rev 1399)
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.3.5.0")]
-[assembly: AssemblyFileVersion("0.3.5.0")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Modified: trunk/Tools/DatabaseEditor/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Tools/DatabaseEditor/Properties/AssemblyInfo.cs 2014-07-19 01:17:45 UTC (rev 1398)
+++ trunk/Tools/DatabaseEditor/Properties/AssemblyInfo.cs 2014-07-19 01:25:49 UTC (rev 1399)
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.3.5.0")]
-[assembly: AssemblyFileVersion("0.3.5.0")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Modified: trunk/Tools/FontCreator/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Tools/FontCreator/Properties/AssemblyInfo.cs 2014-07-19 01:17:45 UTC (rev 1398)
+++ trunk/Tools/FontCreator/Properties/AssemblyInfo.cs 2014-07-19 01:25:49 UTC (rev 1399)
@@ -29,5 +29,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.5.0")]
-[assembly: AssemblyFileVersion("0.3.5.0")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Modified: trunk/Tools/NotebookLib/NotebookLib/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Tools/NotebookLib/NotebookLib/Properties/AssemblyInfo.cs 2014-07-19 01:17:45 UTC (rev 1398)
+++ trunk/Tools/NotebookLib/NotebookLib/Properties/AssemblyInfo.cs 2014-07-19 01:25:49 UTC (rev 1399)
@@ -29,5 +29,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.5.0")]
-[assembly: AssemblyFileVersion("0.3.5.0")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Modified: trunk/Tools/PackedSpriteCreator/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Tools/PackedSpriteCreator/Properties/AssemblyInfo.cs 2014-07-19 01:17:45 UTC (rev 1398)
+++ trunk/Tools/PackedSpriteCreator/Properties/AssemblyInfo.cs 2014-07-19 01:25:49 UTC (rev 1399)
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.3.5.0")]
-[assembly: AssemblyFileVersion("0.3.5.0")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Modified: trunk/Tools/ResourceEditor/Properties/AssemblyInfo.cs
===================================================================
--- trunk/Tools/ResourceEditor/Properties/AssemblyInfo.cs 2014-07-19 01:17:45 UTC (rev 1398)
+++ trunk/Tools/ResourceEditor/Properties/AssemblyInfo.cs 2014-07-19 01:25:49 UTC (rev 1399)
@@ -29,5 +29,5 @@
// Build Number
// Revision
//
-[assembly: AssemblyVersion("0.3.5.0")]
-[assembly: AssemblyFileVersion("0.3.5.0")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
Modified: trunk/UnitTests/Properties/AssemblyInfo.cs
===================================================================
--- trunk/UnitTests/Properties/AssemblyInfo.cs 2014-07-19 01:17:45 UTC (rev 1398)
+++ trunk/UnitTests/Properties/AssemblyInfo.cs 2014-07-19 01:25:49 UTC (rev 1399)
@@ -32,5 +32,5 @@
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("0.3.5.0")]
-[assembly: AssemblyFileVersion("0.3.5.0")]
+[assembly: AssemblyVersion("1.0.0.0")]
+[assembly: AssemblyFileVersion("1.0.0.0")]
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|