Add textures
This commit is contained in:
parent
5723b91b32
commit
7bfad8711b
25 changed files with 407 additions and 104 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue