more cleanups

This commit is contained in:
Chris Forbes
2010-11-01 20:28:28 +13:00
parent fa35f6caa4
commit 80e3b8be0d
6 changed files with 55 additions and 52 deletions

View File

@@ -1,17 +1,20 @@
using OpenRA.FileFormats.Graphics;
#region Copyright & License Information
/*
* Copyright 2007-2010 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation. For more information,
* see LICENSE.
*/
#endregion
using OpenRA.FileFormats.Graphics;
namespace OpenRA.Renderer.Null
{
public class NullIndexBuffer : IIndexBuffer
{
public void Bind()
{
}
public void SetData(ushort[] indices, int length)
{
}
public void Bind() {}
public void SetData(ushort[] indices, int length) {}
}
}

View File

@@ -1,25 +1,23 @@
using System;
#region Copyright & License Information
/*
* Copyright 2007-2010 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation. For more information,
* see LICENSE.
*/
#endregion
using System;
using OpenRA.FileFormats.Graphics;
namespace OpenRA.Renderer.Null
{
public class NullShader : IShader
{
public void SetValue(string name, float x, float y)
{
}
public void SetValue(string param, ITexture texture)
{
}
public void Commit()
{
}
public void Render(Action a)
{
}
public void SetValue(string name, float x, float y) { }
public void SetValue(string param, ITexture texture) { }
public void Commit() { }
public void Render(Action a) { }
}
}

View File

@@ -1,21 +1,22 @@
using System.Drawing;
#region Copyright & License Information
/*
* Copyright 2007-2010 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation. For more information,
* see LICENSE.
*/
#endregion
using System.Drawing;
using OpenRA.FileFormats.Graphics;
namespace OpenRA.Renderer.Null
{
public class NullTexture : ITexture
{
public void SetData(Bitmap bitmap)
{
}
public void SetData(uint[,] colors)
{
}
public void SetData(byte[] colors, int width, int height)
{
}
public void SetData(Bitmap bitmap) { }
public void SetData(uint[,] colors) { }
public void SetData(byte[] colors, int width, int height) { }
}
}

View File

@@ -1,17 +1,20 @@
using OpenRA.FileFormats.Graphics;
#region Copyright & License Information
/*
* Copyright 2007-2010 The OpenRA Developers (see AUTHORS)
* This file is part of OpenRA, which is free software. It is made
* available to you under the terms of the GNU General Public License
* as published by the Free Software Foundation. For more information,
* see LICENSE.
*/
#endregion
using OpenRA.FileFormats.Graphics;
namespace OpenRA.Renderer.Null
{
class NullVertexBuffer<T> : IVertexBuffer<T>
{
public void Bind()
{
}
public void SetData(T[] vertices, int length)
{
}
public void Bind() { }
public void SetData(T[] vertices, int length) { }
}
}