git-svn-id: svn://svn.ijw.co.nz/svn/OpenRa@1213 993157c7-ee19-0410-b2c4-bb4e9862e678
This commit is contained in:
31
OpenRa.Game/Sprite.cs
Normal file
31
OpenRa.Game/Sprite.cs
Normal file
@@ -0,0 +1,31 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using System.Drawing;
|
||||
|
||||
namespace OpenRa.Game
|
||||
{
|
||||
class Sprite
|
||||
{
|
||||
public readonly Point origin;
|
||||
public readonly Size size;
|
||||
public readonly Sheet sheet;
|
||||
public readonly TextureChannel channel;
|
||||
|
||||
internal Sprite(Sheet sheet, Point origin, Size size, TextureChannel channel)
|
||||
{
|
||||
this.origin = origin;
|
||||
this.size = size;
|
||||
this.sheet = sheet;
|
||||
this.channel = channel;
|
||||
}
|
||||
}
|
||||
|
||||
public enum TextureChannel
|
||||
{
|
||||
Red,
|
||||
Green,
|
||||
Blue,
|
||||
Alpha,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user