d2d

Module for including all D2DGame components.

Examples:
import D2D;

void main()
{
    Window window = new Window();

    Event event; // Or WindowEvent
    while(window.open)
    {
        while (window.pollEvent(event))
        {
            if(event.type == Event.Type.Quit)
                window.close();
        }
        window.clear();

        // Update & Render here

        window.display();
    }
}


pure mat4 rotate2d(mat4 mat, float alpha);
2D rotation on a mat4.

pure mat4 scale2d(mat4 mat, float x, float y);
2D scale on a mat4.

pure mat4 translate2d(mat4 mat, float x, float y);
2D translation on a mat4.

MatrixStack!mat4 matrixStack;
Matrix stack for modelview (like glPopMatrix, glPushMatrix).

MatrixStack!mat4 projectionStack;
Matrix stack for projection.


Page generated by Ddoc.