Komodo Engine
C PROJECT_LOGO=
Komodo.Core.Engine.Graphics.Texture Class Reference

Represents raw texture data. More...

Public Member Functions

 Texture (Texture2D monoGameTexture)
 Creates a Texture from Microsoft.Xna.Framework.Graphics.Texture2D data. More...
 
 Texture (GraphicsManager graphicsManager, Color[] data, int width, int height)
 Constructs a new Texture from raw Microsoft.Xna.Framework.Color data. More...
 
 Texture (GraphicsManager graphicsManager, Color[,] data)
 Constructs a new Texture from raw Microsoft.Xna.Framework.Color data. More...
 
Color[] GetData ()
 Accessor for raw Microsoft.Xna.Framework.Color data. More...
 

Properties

int? Height [get]
 Height of the Texture data. More...
 
int? Width [get]
 Width of the Texture data. More...
 
Texture2D MonoGameTexture [get]
 Raw MonoGame Microsoft.Xna.Framework.Graphics.Texture2D. More...
 

Detailed Description

Represents raw texture data.

Constructor & Destructor Documentation

◆ Texture() [1/3]

Komodo.Core.Engine.Graphics.Texture.Texture ( Texture2D  monoGameTexture)

Creates a Texture from Microsoft.Xna.Framework.Graphics.Texture2D data.

Parameters
monoGameTextureMicrosoft.Xna.Framework.Graphics.Texture2D data loaded in MonoGame's format.

◆ Texture() [2/3]

Komodo.Core.Engine.Graphics.Texture.Texture ( GraphicsManager  graphicsManager,
Color[]  data,
int  width,
int  height 
)

Constructs a new Texture from raw Microsoft.Xna.Framework.Color data.

Parameters
graphicsManager
data1D array of Microsoft.Xna.Framework.Color data.
widthWidth of the Komodo.Core.Engine.Graphics.Texture to generate.
heightHeight of the Komodo.Core.Engine.Graphics.Texture to generate.

◆ Texture() [3/3]

Komodo.Core.Engine.Graphics.Texture.Texture ( GraphicsManager  graphicsManager,
Color  data[,] 
)

Constructs a new Texture from raw Microsoft.Xna.Framework.Color data.

Parameters
graphicsManager
data2D array of Microsoft.Xna.Framework.Color data.

Member Function Documentation

◆ GetData()

Color [] Komodo.Core.Engine.Graphics.Texture.GetData ( )

Accessor for raw Microsoft.Xna.Framework.Color data.

Returns

Property Documentation

◆ Height

int? Komodo.Core.Engine.Graphics.Texture.Height
get

Height of the Texture data.

◆ MonoGameTexture

Texture2D Komodo.Core.Engine.Graphics.Texture.MonoGameTexture
get

Raw MonoGame Microsoft.Xna.Framework.Graphics.Texture2D.

◆ Width

int? Komodo.Core.Engine.Graphics.Texture.Width
get

Width of the Texture data.