Texture
Declaration
public class Strawberry.Web.Graphics.Texture
Inherits: Strawberry.Graphics.Texture
Constructors
Texture
void Texture(GraphicsContext gc, int width, int height, Color[] data, TextureSettings settings)
Parameters:
| Name | Type | Description |
|---|---|---|
gc |
Strawberry.Web.Graphics.GraphicsContext |
|
width |
System.Int32 |
|
height |
System.Int32 |
|
data |
Strawberry.Graphics.Color[] |
|
settings |
Strawberry.Graphics.TextureSettings |
Texture
void Texture(GraphicsContext gc, int width, int height, byte[] data, TextureSettings settings)
Parameters:
| Name | Type | Description |
|---|---|---|
gc |
Strawberry.Web.Graphics.GraphicsContext |
|
width |
System.Int32 |
|
height |
System.Int32 |
|
data |
System.Byte[] |
|
settings |
Strawberry.Graphics.TextureSettings |
Properties
Width override
int Width { get }
Height override
int Height { get }
ActualWidth override
int ActualWidth { get }
ActualHeight override
int ActualHeight { get }
UVFactor override
Vector2 UVFactor { get }
TextureSettings override
TextureSettings TextureSettings { get }
GraphicsContext override
IGraphicsContext GraphicsContext { get }
Methods
Activate override
void Activate(Shader shader, string name)
Parameters:
| Name | Type | Description |
|---|---|---|
shader |
Strawberry.Graphics.Shader |
|
name |
System.String |
CleanManaged protected override
void CleanManaged()
SetFilter override
void SetFilter(TextureFiltering minFilter, TextureFiltering magFilter)
Parameters:
| Name | Type | Description |
|---|---|---|
minFilter |
Strawberry.Graphics.TextureFiltering |
|
magFilter |
Strawberry.Graphics.TextureFiltering |
CopyToByteArray override
byte[] CopyToByteArray()
Update override
void Update(byte[] data)
Parameters:
| Name | Type | Description |
|---|---|---|
data |
System.Byte[] |