texit

The main texit module.

Modules

app
module 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

Public Imports

std.datetime.systime
public import std.datetime.systime, std.getopt, std.file, bindbc.sdl;
Undocumented in source.
std.getopt
public import std.datetime.systime, std.getopt, std.file, bindbc.sdl;
Undocumented in source.
std.file
public import std.datetime.systime, std.getopt, std.file, bindbc.sdl;
Undocumented in source.
bindbc.sdl
public import std.datetime.systime, std.getopt, std.file, bindbc.sdl;
Undocumented in source.

Members

Aliases

Easing
alias Easing = float function(float)
Undocumented in source.

Classes

SDLException
class SDLException

An exception with SDL

TexitException
class TexitException

Any other exception caused by texit

Functions

SDL_RenderCopyF
int SDL_RenderCopyF(SDL_Renderer* renderer, SDL_Texture* texture, const(SDL_Rect*) srcrect, const(SDL_FRect*) dstrect)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
SDL_RenderFillRectF
int SDL_RenderFillRectF(SDL_Renderer* renderer, const(SDL_FRect*) rect)
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
ease
float ease(float x)

Ease a value given an easing from https://easings.net/ and also easeLinear (which returns the given value)

easing
Easing easing()

Takes an easing and returns a function pointer to it

Imports

to (from std.conv)
public import std.conv : to;
Undocumented in source.
toStringz (from std.string)
public import std.string : toStringz;
Undocumented in source.

Mixin templates

Texit
mixintemplate Texit(string charmap, int charSize, float scale, int worldWidth, int worldHeight, int width, int height, string title)

The main texit declaration

Structs

Color
struct Color

Simple color struct

Point
struct Point

Simple point struct

SDL_FRect
struct SDL_FRect
Undocumented in source but is binding to C. You might be able to learn more by searching the web for its name.
Tile
struct Tile

A single tile in the world

Vector
struct Vector

Simple vector struct

Variables

translation
Vector translation;

How much to translate the screen by

zoom
float zoom;

How much to zoom in/out

Meta