git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1236 993157c7-ee19-0410-b2c4-bb4e9862e678

This commit is contained in:
chrisf
2007-07-14 07:43:50 +00:00
parent 4830edecf8
commit 73682d80d6
11 changed files with 42 additions and 40 deletions

View File

@@ -8,7 +8,7 @@ using System.IO;
namespace OpenRa.Game
{
public class Renderer
class Renderer
{
readonly GraphicsDevice device;
readonly Effect shader;
@@ -40,10 +40,9 @@ namespace OpenRa.Game
public GraphicsDevice Device { get { return device; } }
public void BeginFrame( PointF r1, PointF r2, PointF scroll )
public void BeginFrame( float2 r1, float2 r2, float2 scroll )
{
device.Begin();
//device.Clear(Color.Gray.ToArgb(), Surfaces.Color);
shader.SetValue(scrollHandle, scroll);
shader.SetValue(r1Handle, r1);