Komodo Engine
C PROJECT_LOGO=
|
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... | |
Represents raw texture data.
Komodo.Core.Engine.Graphics.Texture.Texture | ( | Texture2D | monoGameTexture | ) |
Creates a Texture from Microsoft.Xna.Framework.Graphics.Texture2D data.
monoGameTexture | Microsoft.Xna.Framework.Graphics.Texture2D data loaded in MonoGame's format. |
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.
graphicsManager | |
data | 1D array of Microsoft.Xna.Framework.Color data. |
width | Width of the Komodo.Core.Engine.Graphics.Texture to generate. |
height | Height of the Komodo.Core.Engine.Graphics.Texture to generate. |
Komodo.Core.Engine.Graphics.Texture.Texture | ( | GraphicsManager | graphicsManager, |
Color | data[,] | ||
) |
Constructs a new Texture from raw Microsoft.Xna.Framework.Color data.
graphicsManager | |
data | 2D array of Microsoft.Xna.Framework.Color data. |
Color [] Komodo.Core.Engine.Graphics.Texture.GetData | ( | ) |
Accessor for raw Microsoft.Xna.Framework.Color data.
|
get |
Height of the Texture data.
|
get |
Raw MonoGame Microsoft.Xna.Framework.Graphics.Texture2D.
|
get |
Width of the Texture data.