2D rotation on a mat4.
2D scale on a mat4.
2D translation on a mat4.
Matrix stack for modelview (like glPopMatrix, glPushMatrix).
Matrix stack for projection.
1 import D2D; 2 3 void main() 4 { 5 Window window = new Window(); 6 7 Event event; // Or WindowEvent 8 while(window.open) 9 { 10 while (window.pollEvent(event)) 11 { 12 if(event.type == Event.Type.Quit) 13 window.close(); 14 } 15 window.clear(); 16 17 // Update & Render here 18 19 window.display(); 20 } 21 }
Module for including all D2DGame components.