texit.app

A few example programs using texit. Just run dub build with one of the follwing versions to see them

  • HelloWorld
  • RandomCharacters
  • ScrollingZooming
  • AudioExample

Members

Functions

beat
float beat(float v)
Undocumented in source. Be warned that the author may not have intended to support it.
setup
void setup()
Undocumented in source. Be warned that the author may not have intended to support it.
setup
void setup()
Undocumented in source. Be warned that the author may not have intended to support it.
setup
void setup()
Undocumented in source. Be warned that the author may not have intended to support it.
setup
void setup()
Undocumented in source. Be warned that the author may not have intended to support it.
setup
void setup()
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin Texit!("assets/qbicfeet_10x10.png", 10, 2, 64, 32, 64, 32, "Hello World")
Undocumented in source.
__anonymous
mixin Texit!("assets/qbicfeet_10x10.png", 10, 2, 64, 32, 64, 32, "Random Characters")
Undocumented in source.
__anonymous
mixin Texit!("assets/qbicfeet_10x10.png", 10, 2, 128, 64, 64, 32, "Scrolling & Zooming")
Undocumented in source.
__anonymous
mixin Texit!("assets/qbicfeet_10x10.png", 10, 2, 128, 64, 64, 32, "Audio Example")
Undocumented in source.
__anonymous
mixin Texit!("assets/qbicfeet_10x10.png", 10, 2, 64, 32, 64, 32, "Image Example")
Undocumented in source.

Mixed In Members

From mixin Texit!("assets/qbicfeet_10x10.png", 10, 2, 64, 32, 64, 32, "Hello World")

WIDTH
enum WIDTH;
Undocumented in source.
HEIGHT
enum HEIGHT;
Undocumented in source.
WORLD_WIDTH
enum WORLD_WIDTH;
Undocumented in source.
WW
alias WW = WORLD_WIDTH
Undocumented in source.
WORLD_HEIGHT
enum WORLD_HEIGHT;
Undocumented in source.
WH
alias WH = WORLD_HEIGHT
Undocumented in source.
window
Window window;

The window

world
Tile[worldHeight][worldWidth] world;

The world

chars
bool[charSize][charSize][256] chars;

Bitmap of each character

start
SysTime start;

When the program was started

offset
float offset;

Offset to start at

endTime
float endTime;

Time to end at

frameCount
ulong frameCount;

Current frame count.

entities
Entity[string] entities;

Entities, indexed by ID

music
Mix_Music* music;

Music being played

Window
class Window

The window class

Image
class Image

An image, backed by an SDL surface

Event
class Event

Represents single thing that can happen on the screen

events
Event[] events;

List of events queued

queue
void queue(T evts)

Queues an event

audio
void audio(string path)

Plays OGG audio

puts
void puts(Event e, int x, int y, float[3] bg, float[3] fg, string text, bool replace)

Puts text onto the screen

puts
void puts(Event e, int x, int y, float[3] bg, float[3] fg, string text, bool replace)

Puts text with an event

puts
void puts(int x, int y, float[3] bg, float[3] fg, string text, bool replace)

Puts text without an event

TextEvent
class TextEvent

Simple event to place text onto the screen at a given time

TypeTextEvent
class TypeTextEvent

Types text onto the screen. Doesn't play well with easings that go backwards (easeBack, easeBounce)

FlashingTextEvent
class FlashingTextEvent

Flashing text.

BoxEvent
class BoxEvent

Creates a box using the +, -, and | characters

mapBetween
float mapBetween(float x, float min0, float max0, float min1, float max1)
Undocumented in source. Be warned that the author may not have intended to support it.
TranslationEvent
class TranslationEvent

Translates the screen from an origin to a destination over an amount of time

ZoomEvent
class ZoomEvent

Changes zoom level by one value to another over an amount of time

Entity
class Entity

Anything that isn't text

ImageEntity
class ImageEntity

An image entity

EntityEvent
class EntityEvent

Event that creates an entity

EntityTranslationEvent
class EntityTranslationEvent

Event that changes an entity's position

EntityResizeEvent
class EntityResizeEvent

Event that changes an entity's size

doRender
bool doRender;

Whether to render to an image sequence

loadCharmap
bool[charSize][charSize][256] loadCharmap(string path)

Returns a charmap given a directory and a char size

main
void main(string[] args)
Undocumented in source. Be warned that the author may not have intended to support it.

From mixin Texit!("assets/qbicfeet_10x10.png", 10, 2, 64, 32, 64, 32, "Random Characters")

WIDTH
enum WIDTH;
Undocumented in source.
HEIGHT
enum HEIGHT;
Undocumented in source.
WORLD_WIDTH
enum WORLD_WIDTH;
Undocumented in source.
WW
alias WW = WORLD_WIDTH
Undocumented in source.
WORLD_HEIGHT
enum WORLD_HEIGHT;
Undocumented in source.
WH
alias WH = WORLD_HEIGHT
Undocumented in source.
window
Window window;

The window

world
Tile[worldHeight][worldWidth] world;

The world

chars
bool[charSize][charSize][256] chars;

Bitmap of each character

start
SysTime start;

When the program was started

offset
float offset;

Offset to start at

endTime
float endTime;

Time to end at

frameCount
ulong frameCount;

Current frame count.

entities
Entity[string] entities;

Entities, indexed by ID

music
Mix_Music* music;

Music being played

Window
class Window

The window class

Image
class Image

An image, backed by an SDL surface

Event
class Event

Represents single thing that can happen on the screen

events
Event[] events;

List of events queued

queue
void queue(T evts)

Queues an event

audio
void audio(string path)

Plays OGG audio

puts
void puts(Event e, int x, int y, float[3] bg, float[3] fg, string text, bool replace)

Puts text onto the screen

puts
void puts(Event e, int x, int y, float[3] bg, float[3] fg, string text, bool replace)

Puts text with an event

puts
void puts(int x, int y, float[3] bg, float[3] fg, string text, bool replace)

Puts text without an event

TextEvent
class TextEvent

Simple event to place text onto the screen at a given time

TypeTextEvent
class TypeTextEvent

Types text onto the screen. Doesn't play well with easings that go backwards (easeBack, easeBounce)

FlashingTextEvent
class FlashingTextEvent

Flashing text.

BoxEvent
class BoxEvent

Creates a box using the +, -, and | characters

mapBetween
float mapBetween(float x, float min0, float max0, float min1, float max1)
Undocumented in source. Be warned that the author may not have intended to support it.
TranslationEvent
class TranslationEvent

Translates the screen from an origin to a destination over an amount of time

ZoomEvent
class ZoomEvent

Changes zoom level by one value to another over an amount of time

Entity
class Entity

Anything that isn't text

ImageEntity
class ImageEntity

An image entity

EntityEvent
class EntityEvent

Event that creates an entity

EntityTranslationEvent
class EntityTranslationEvent

Event that changes an entity's position

EntityResizeEvent
class EntityResizeEvent

Event that changes an entity's size

doRender
bool doRender;

Whether to render to an image sequence

loadCharmap
bool[charSize][charSize][256] loadCharmap(string path)

Returns a charmap given a directory and a char size

main
void main(string[] args)
Undocumented in source. Be warned that the author may not have intended to support it.

From mixin Texit!("assets/qbicfeet_10x10.png", 10, 2, 128, 64, 64, 32, "Scrolling & Zooming")

WIDTH
enum WIDTH;
Undocumented in source.
HEIGHT
enum HEIGHT;
Undocumented in source.
WORLD_WIDTH
enum WORLD_WIDTH;
Undocumented in source.
WW
alias WW = WORLD_WIDTH
Undocumented in source.
WORLD_HEIGHT
enum WORLD_HEIGHT;
Undocumented in source.
WH
alias WH = WORLD_HEIGHT
Undocumented in source.
window
Window window;

The window

world
Tile[worldHeight][worldWidth] world;

The world

chars
bool[charSize][charSize][256] chars;

Bitmap of each character

start
SysTime start;

When the program was started

offset
float offset;

Offset to start at

endTime
float endTime;

Time to end at

frameCount
ulong frameCount;

Current frame count.

entities
Entity[string] entities;

Entities, indexed by ID

music
Mix_Music* music;

Music being played

Window
class Window

The window class

Image
class Image

An image, backed by an SDL surface

Event
class Event

Represents single thing that can happen on the screen

events
Event[] events;

List of events queued

queue
void queue(T evts)

Queues an event

audio
void audio(string path)

Plays OGG audio

puts
void puts(Event e, int x, int y, float[3] bg, float[3] fg, string text, bool replace)

Puts text onto the screen

puts
void puts(Event e, int x, int y, float[3] bg, float[3] fg, string text, bool replace)

Puts text with an event

puts
void puts(int x, int y, float[3] bg, float[3] fg, string text, bool replace)

Puts text without an event

TextEvent
class TextEvent

Simple event to place text onto the screen at a given time

TypeTextEvent
class TypeTextEvent

Types text onto the screen. Doesn't play well with easings that go backwards (easeBack, easeBounce)

FlashingTextEvent
class FlashingTextEvent

Flashing text.

BoxEvent
class BoxEvent

Creates a box using the +, -, and | characters

mapBetween
float mapBetween(float x, float min0, float max0, float min1, float max1)
Undocumented in source. Be warned that the author may not have intended to support it.
TranslationEvent
class TranslationEvent

Translates the screen from an origin to a destination over an amount of time

ZoomEvent
class ZoomEvent

Changes zoom level by one value to another over an amount of time

Entity
class Entity

Anything that isn't text

ImageEntity
class ImageEntity

An image entity

EntityEvent
class EntityEvent

Event that creates an entity

EntityTranslationEvent
class EntityTranslationEvent

Event that changes an entity's position

EntityResizeEvent
class EntityResizeEvent

Event that changes an entity's size

doRender
bool doRender;

Whether to render to an image sequence

loadCharmap
bool[charSize][charSize][256] loadCharmap(string path)

Returns a charmap given a directory and a char size

main
void main(string[] args)
Undocumented in source. Be warned that the author may not have intended to support it.

From mixin Texit!("assets/qbicfeet_10x10.png", 10, 2, 128, 64, 64, 32, "Audio Example")

WIDTH
enum WIDTH;
Undocumented in source.
HEIGHT
enum HEIGHT;
Undocumented in source.
WORLD_WIDTH
enum WORLD_WIDTH;
Undocumented in source.
WW
alias WW = WORLD_WIDTH
Undocumented in source.
WORLD_HEIGHT
enum WORLD_HEIGHT;
Undocumented in source.
WH
alias WH = WORLD_HEIGHT
Undocumented in source.
window
Window window;

The window

world
Tile[worldHeight][worldWidth] world;

The world

chars
bool[charSize][charSize][256] chars;

Bitmap of each character

start
SysTime start;

When the program was started

offset
float offset;

Offset to start at

endTime
float endTime;

Time to end at

frameCount
ulong frameCount;

Current frame count.

entities
Entity[string] entities;

Entities, indexed by ID

music
Mix_Music* music;

Music being played

Window
class Window

The window class

Image
class Image

An image, backed by an SDL surface

Event
class Event

Represents single thing that can happen on the screen

events
Event[] events;

List of events queued

queue
void queue(T evts)

Queues an event

audio
void audio(string path)

Plays OGG audio

puts
void puts(Event e, int x, int y, float[3] bg, float[3] fg, string text, bool replace)

Puts text onto the screen

puts
void puts(Event e, int x, int y, float[3] bg, float[3] fg, string text, bool replace)

Puts text with an event

puts
void puts(int x, int y, float[3] bg, float[3] fg, string text, bool replace)

Puts text without an event

TextEvent
class TextEvent

Simple event to place text onto the screen at a given time

TypeTextEvent
class TypeTextEvent

Types text onto the screen. Doesn't play well with easings that go backwards (easeBack, easeBounce)

FlashingTextEvent
class FlashingTextEvent

Flashing text.

BoxEvent
class BoxEvent

Creates a box using the +, -, and | characters

mapBetween
float mapBetween(float x, float min0, float max0, float min1, float max1)
Undocumented in source. Be warned that the author may not have intended to support it.
TranslationEvent
class TranslationEvent

Translates the screen from an origin to a destination over an amount of time

ZoomEvent
class ZoomEvent

Changes zoom level by one value to another over an amount of time

Entity
class Entity

Anything that isn't text

ImageEntity
class ImageEntity

An image entity

EntityEvent
class EntityEvent

Event that creates an entity

EntityTranslationEvent
class EntityTranslationEvent

Event that changes an entity's position

EntityResizeEvent
class EntityResizeEvent

Event that changes an entity's size

doRender
bool doRender;

Whether to render to an image sequence

loadCharmap
bool[charSize][charSize][256] loadCharmap(string path)

Returns a charmap given a directory and a char size

main
void main(string[] args)
Undocumented in source. Be warned that the author may not have intended to support it.

From mixin Texit!("assets/qbicfeet_10x10.png", 10, 2, 64, 32, 64, 32, "Image Example")

WIDTH
enum WIDTH;
Undocumented in source.
HEIGHT
enum HEIGHT;
Undocumented in source.
WORLD_WIDTH
enum WORLD_WIDTH;
Undocumented in source.
WW
alias WW = WORLD_WIDTH
Undocumented in source.
WORLD_HEIGHT
enum WORLD_HEIGHT;
Undocumented in source.
WH
alias WH = WORLD_HEIGHT
Undocumented in source.
window
Window window;

The window

world
Tile[worldHeight][worldWidth] world;

The world

chars
bool[charSize][charSize][256] chars;

Bitmap of each character

start
SysTime start;

When the program was started

offset
float offset;

Offset to start at

endTime
float endTime;

Time to end at

frameCount
ulong frameCount;

Current frame count.

entities
Entity[string] entities;

Entities, indexed by ID

music
Mix_Music* music;

Music being played

Window
class Window

The window class

Image
class Image

An image, backed by an SDL surface

Event
class Event

Represents single thing that can happen on the screen

events
Event[] events;

List of events queued

queue
void queue(T evts)

Queues an event

audio
void audio(string path)

Plays OGG audio

puts
void puts(Event e, int x, int y, float[3] bg, float[3] fg, string text, bool replace)

Puts text onto the screen

puts
void puts(Event e, int x, int y, float[3] bg, float[3] fg, string text, bool replace)

Puts text with an event

puts
void puts(int x, int y, float[3] bg, float[3] fg, string text, bool replace)

Puts text without an event

TextEvent
class TextEvent

Simple event to place text onto the screen at a given time

TypeTextEvent
class TypeTextEvent

Types text onto the screen. Doesn't play well with easings that go backwards (easeBack, easeBounce)

FlashingTextEvent
class FlashingTextEvent

Flashing text.

BoxEvent
class BoxEvent

Creates a box using the +, -, and | characters

mapBetween
float mapBetween(float x, float min0, float max0, float min1, float max1)
Undocumented in source. Be warned that the author may not have intended to support it.
TranslationEvent
class TranslationEvent

Translates the screen from an origin to a destination over an amount of time

ZoomEvent
class ZoomEvent

Changes zoom level by one value to another over an amount of time

Entity
class Entity

Anything that isn't text

ImageEntity
class ImageEntity

An image entity

EntityEvent
class EntityEvent

Event that creates an entity

EntityTranslationEvent
class EntityTranslationEvent

Event that changes an entity's position

EntityResizeEvent
class EntityResizeEvent

Event that changes an entity's size

doRender
bool doRender;

Whether to render to an image sequence

loadCharmap
bool[charSize][charSize][256] loadCharmap(string path)

Returns a charmap given a directory and a char size

main
void main(string[] args)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta