• Articles
  • Api Documentation
Show / Hide Table of Contents
  • Inferno
    • CollisionMode
    • DrawMode
    • Game
    • Game.OnResizeEventArgs
    • GameState
    • GameState.StateOnDrawEventArgs
    • GameWindow
    • Instance
    • MathHelper
    • Matrix
    • Point
    • Rectangle
    • Settings
    • SpatialMode
    • UpdateMode
    • Vector2
    • Vector3
    • Vector4
  • Inferno.Audio
    • AudioDevice
    • Sound
  • Inferno.Content
    • ContentLoader
  • Inferno.Formats.Audio
    • WaveFormat
  • Inferno.Formats.Graphics.Text
    • FontFormat
  • Inferno.Graphics
    • Camera
    • Color
    • GraphicsDevice
    • PlatformType
    • Renderable
    • RenderableType
    • Renderer
    • RenderSortMode
    • RenderTarget
    • Shader
    • ShaderLanguage
    • ShaderType
    • Sprite
    • Texture2D
    • Tileset
  • Inferno.Graphics.Text
    • Font
    • FontBuilder
  • Inferno.Input
    • ButtonState
    • Key
    • Keyboard
    • Keyboard.KeyEventArgs
    • KeyboardState
    • KeyState
    • Mouse
    • MouseState
  • Inferno.Tiled
    • RenderOrder
    • TiledLayer
    • TiledLayerChunk
    • TiledLoader
    • TiledMap
    • TiledMapOrientation
    • TiledObject
    • TiledObjectLayer
    • TiledVersion
  • Inferno.UI
    • MessageBox
    • MessageBoxType
    • UserInterface
  • Inferno.UI.Controls
    • Button
    • Control
    • Control.ControlClickedEvent
    • Control.ControlHoveredEvent
    • Control.TextChangedEventArgs
    • ControlState
    • Cursor
    • Label

Struct Tileset

A tileset is an image which houses numerous tiles with unique IDs. This is based off Tiled's format and is interchangable

Inherited Members
System.ValueType.Equals(System.Object)
System.ValueType.GetHashCode()
System.ValueType.ToString()
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
Namespace: Inferno.Graphics
Assembly: Inferno.Desktop.dll
Syntax
public struct Tileset

Fields

| Improve this Doc View Source

Name

The name of the Tileset

Declaration
public string Name
Field Value
Type Description
System.String
| Improve this Doc View Source

Source

The source image for the tiles

Declaration
public Sprite Source
Field Value
Type Description
Sprite
| Improve this Doc View Source

TileCount

The number of tiles in the set

Declaration
public int TileCount
Field Value
Type Description
System.Int32
| Improve this Doc View Source

TileHeight

The height of each tile

Declaration
public int TileHeight
Field Value
Type Description
System.Int32
| Improve this Doc View Source

TileWidth

The width of each tile

Declaration
public int TileWidth
Field Value
Type Description
System.Int32

Methods

| Improve this Doc View Source

DrawTile(Renderer, Vector2, Int32)

Draw a tile from the set

Declaration
public void DrawTile(Renderer renderer, Vector2 position, int id)
Parameters
Type Name Description
Renderer renderer

The renderer

Vector2 position

Position to draw the tile

System.Int32 id

The tile ID to draw

  • Improve this Doc
  • View Source
Back to top Generated by DocFX