Commit graph

153 commits

Author SHA1 Message Date
TadejZupancic
321aba14c3
Update Graphics.js 2018-06-15 14:31:44 +02:00
TadejZupancic
9affc60037
Update Graphics.js 2018-06-15 14:23:40 +02:00
cyantree
a727437304 Changed options and sub options of Graphics constructor in docs to be optional 2018-06-13 20:01:26 +02:00
Chris Andrew
f8ee35d46a Fixed Gamepad lint errors, tweaked some Graphics docs. 2018-06-07 18:36:27 +01:00
Chris Andrew
62d6496dfb Adapted Graphics class description from Phaser CE.
Documented the remaining properties and a few more methods.
2018-06-07 16:47:27 +01:00
Chris Andrew
786d2068a3 Documented most of the Graphics Game Object methods. 2018-06-07 16:01:40 +01:00
Chris Andrew
69ec32a2fe Documented initial Graphics options and Graphics style settings types. 2018-06-07 16:01:40 +01:00
Chris Andrew
ab5853f65e Started documenting the Graphics game object.
Added a couple of missing descriptions for the Container game object.
2018-06-06 17:52:31 +01:00
Richard Davey
b3ef36ed08 Added preDestroy callback 2018-05-22 15:59:23 +01:00
Richard Davey
0d0846a415 Calling a creator, such as GraphicsCreator, without passing in a config object, would cause an error to be thrown. All Game Object creators now catch against this. 2018-05-16 15:17:08 +01:00
Richard Davey
c13c828dc4 lint fix 2018-05-02 11:36:03 +01:00
Richard Davey
a30d5acb9e The Graphics Creator would automatically add the Graphics to the display list by mistake. The default should be to remain hidden. Fix #3637 2018-05-02 10:57:04 +01:00
Richard Davey
e3c28d3cd9 Removed un-needed arguments 2018-04-23 17:28:37 +01:00
Richard Davey
606ba6d8d7 Added new Mask component and added to all relevant Game Objects 2018-04-20 18:57:49 +01:00
Richard Davey
6299019838 Updated to use typeof DefinePlugin check. 2018-04-20 00:23:24 +01:00
Chris Andrew
f70f92b038 Fixed explicit check for undefined GraphicsCanvasRenderer's parentMatrix, which meant null could not be passed as an argument. 2018-04-05 21:07:45 +01:00
Chris Andrew
9293891c82 Fixed renderCanvas() call in Graphics.generateTexture().
Introduced by altering the signature of the Canvas renderers (c232642a).
2018-04-05 19:08:54 +01:00
Felipe Alfonso
c232642a52 Parent matrix is applied to canvas context on each draw function 2018-04-04 14:05:59 -03:00
Felipe Alfonso
eafb488e25 Merge branch 'master' into containers 2018-04-04 13:15:42 -03:00
Felipe Alfonso
96b8db4685 Added parentMatrix to all canvas rendering functions 2018-04-04 13:14:55 -03:00
Felipe Alfonso
bea7ca36ad Merge branch 'master' into containers
# Conflicts:
#	src/renderer/webgl/pipelines/TextureTintPipeline.js
2018-04-04 12:07:41 -03:00
Richard Davey
c251eceaf6 jsdoc fixes 2018-04-04 14:43:53 +01:00
Richard Davey
dac030dd3e Graphics.slice allows you to easily draw a Pacman, or slice of pie shape to a Graphics object. 2018-04-04 11:13:19 +01:00
Felipe Alfonso
e0f678d1ff Merge branch 'master' into containers 2018-03-28 20:49:00 -03:00
Richard Davey
747f09af86 jsdoc fixes 2018-03-28 15:04:09 +01:00
Felipe Alfonso
b23ad3b130 Fixed issue with creating containers and graphics with scene.make. 2018-03-27 17:32:33 -03:00
Felipe Alfonso
d544701495 parentMatrix added to individual game object render function 2018-03-27 14:49:09 -03:00
orblazer
87633fdfad Fix multiple types on GameObjects 2018-03-20 15:56:31 +01:00
orblazer
90def456f2 Update JSDoc on GameObjects 2018-03-19 12:54:31 +01:00
Richard Davey
c2f25b3742
Merge pull request #3240 from Twilrom/arc-fix
Update WebGL Graphics.arc to work more like on Canvas
2018-03-05 21:54:46 +00:00
Richard Davey
50dac412be eslint fixes and console removal 2018-02-16 19:08:50 +00:00
Twilrom
d45784f3c9 Remove some unnecessary calls to closePath. 2018-02-16 16:13:48 +01:00
Richard Davey
79520bfdc4 Added jsdoc 2018-02-15 14:33:36 +00:00
Richard Davey
353dba4d5e Added missing Target camera back, fixing Graphics.generateTexture in the process. 2018-02-13 08:08:48 +00:00
Richard Davey
d578e89828 Moved Mesh out of core and into its own Graphics extension. 2018-02-12 16:59:27 +00:00
Richard Davey
d1f5f8a82b Added jsdocs 2018-02-12 16:01:21 +00:00
Richard Davey
40689d1e35 Updated jsdocs. 2018-02-07 15:27:21 +00:00
Richard Davey
36229eee79 Added jsdocs 2018-02-06 01:08:43 +00:00
Richard Davey
d838f4cfcd Added jsdocs 2018-02-06 00:56:09 +00:00
Richard Davey
d457373287 Added Depth component and tidied up redundant parts of Transform 2018-02-01 00:50:15 +00:00
Felipe Alfonso
71a6360a7b Pipeline components added 2018-01-29 18:46:48 -03:00
Felipe Alfonso
7b3c2c6b1c Removed old code 2018-01-25 02:27:30 -03:00
Felipe Alfonso
5170784338 Graphics WebGL Rendering 2018-01-24 00:03:43 -03:00
Felipe Alfonso
2b043fff65 Removed RenderTarget and Shader from components 2018-01-22 18:53:15 -03:00
Richard Davey
bae63901d7 fillPoint draws the rect in the center of the x/y coordinates instead of the top-left 2018-01-17 15:01:24 +00:00
Antriel
3348f5bd16 Added support for drawing filled ellipse to Graphics. 2018-01-17 11:36:28 +01:00
Richard Davey
f9a7939812 Lots of work migrating to the new plugin system, fixing references and exposing on the namespace 2018-01-16 22:28:29 +00:00
Richard Davey
be756ed7fc Renamed folder camera to cameras and split up the contents into proper namespaces. Merged inc files back into classes. 2018-01-16 15:07:04 +00:00
Richard Davey
d8f1ba03e9 Moved repository location 2018-01-09 21:43:56 +00:00
Richard Davey
0d90f75b5f Splitting the dev branch up into versions. 2016-11-22 01:36:56 +00:00
Richard Davey
0af16817a5 Refactored GameObjects to GameObject. 2016-10-09 22:27:58 +01:00
Richard Davey
380e717e52 Finished off missing factories. Moved over the docs. Changed rogue @returns to @return everywhere. 2016-10-08 16:17:46 +01:00
Richard Davey
729020477a New Game Objects structure in place, and starting to take shape.
Moved BitmapData and RenderTexture into the textures folder for now.

All Game Objects now have their own sub-folder, with their Factory and renderer functions alongside them, plus any other files they need.

New Factory class added. Currently hooked into `game.factory` for testing, but will swap to `game.add` when complete.
2016-10-08 03:05:42 +01:00