inverting the Engine <-> GL project dependency.

This commit is contained in:
Bob
2010-02-17 19:52:54 +13:00
parent 680f2a1bc7
commit e6120238c7
12 changed files with 214 additions and 111 deletions

View File

@@ -20,7 +20,7 @@
using System.Drawing;
using OpenRa.FileFormats;
using OpenRa.GlRenderer;
using OpenRa.FileFormats.Graphics;
namespace OpenRa.Graphics
{
@@ -29,7 +29,7 @@ namespace OpenRa.Graphics
readonly Renderer renderer;
protected readonly Bitmap bitmap;
Texture texture;
ITexture texture;
internal Sheet(Renderer renderer, Size size)
{
@@ -45,10 +45,10 @@ namespace OpenRa.Graphics
void Resolve()
{
texture = new Texture(renderer.Device, bitmap);
texture = renderer.Device.CreateTexture(bitmap);
}
public Texture Texture
public ITexture Texture
{
get
{