more cleanups
This commit is contained in:
@@ -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) {}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) { }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) { }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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) { }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user