Add textures

This commit is contained in:
schmelczerandras 2020-10-04 10:48:26 +02:00
parent 5723b91b32
commit 7bfad8711b
25 changed files with 407 additions and 104 deletions

View file

@ -29,6 +29,18 @@ export interface Renderer {
*/
setViewArea(topLeft: vec2, size: vec2): void;
/**
* Return the world coordinates from a pixel's position.
*
* The view area coordinates are also given in world coordinates.
*
* Useful for picking.
*
* @param displayCoordinates The origin is in the display's top left corner.
* Just as in mouse events' clientX and clientY.
*/
displayToWorldCoordinates(displayCoordinates: vec2): vec2;
/**
* Patch the current runtime settings with new values.
* @param overrides