Richard Davey
|
a79da485c3
|
Added glTexture property
|
2019-06-26 00:36:40 +01:00 |
|
Richard Davey
|
9a6fe49000
|
Typo
|
2019-06-21 12:25:08 +01:00 |
|
Richard Davey
|
0dfc9806cc
|
Fixed lots of jsdos and moved the frame.cutX/Y addition into each function, allowing the x/y defaults to work again. Fix #4528
|
2019-06-06 17:45:18 +01:00 |
|
Richard Davey
|
c91ed91ce3
|
License link update
|
2019-05-10 16:15:04 +01:00 |
|
Richard Davey
|
275a3afe5f
|
RenderTexture Types
|
2019-05-09 11:58:09 +01:00 |
|
Richard Davey
|
e82e7c6ba0
|
Formatting fix
|
2019-04-18 17:55:49 +01:00 |
|
Richard Davey
|
f0acd2dfaf
|
rgb fix, lint fix and no need for frame argument
|
2019-04-08 12:49:03 +01:00 |
|
Richard Davey
|
55959500d2
|
Update RenderTextureConfig.js
|
2019-04-08 12:44:37 +01:00 |
|
Richard Davey
|
7c0645c1b9
|
Merge branch 'master' into master
|
2019-04-08 12:44:04 +01:00 |
|
Richard Davey
|
e017691c68
|
The ScaleMode Component has been removed from every Game Object, and along with it the scaleMode property and setScaleMode method. These did nothing anyway as they were not hooked to the render pipeline and scale mode should be set on the texture, not the Game Object. Fix #4413
|
2019-03-24 23:07:27 +00:00 |
|
Richard Davey
|
c9bdb83941
|
GameObject and Loader typedefs
|
2019-02-13 13:57:59 +00:00 |
|
Richard Davey
|
4f6f6ee72f
|
Lots of jsdoc and type fixes
|
2019-01-31 12:19:01 +00:00 |
|
Richard Davey
|
c221bb7165
|
Updated docs to clarify #4091
|
2019-01-24 14:10:55 +00:00 |
|
Richard Davey
|
aa341854c7
|
Happy New Year
|
2019-01-15 16:20:22 +00:00 |
|
Richard Davey
|
a2723249a3
|
CanvasTexture.destroy is a new method that specifically handles the destruction of the CanvasTexture and all of its associated typed arrays. This prevents a memory leak when creating and destroying lots of RenderTextures (which are CanvasTexture backed). Fix #4239
|
2018-12-18 15:21:24 +00:00 |
|
Richard Davey
|
c882b52a3a
|
Fixed an issue where changing the viewport or size of a Camera belonging to a RenderTexture, it wouldn't impact the rendering and objects will still render outside of the viewport range. It's now converted to a proper gl scissor rect by the renderer, meaning you can limit the area rendered to by adjusting the internal Render Texture cameras viewport. Fix #4243
|
2018-12-18 13:35:53 +00:00 |
|
Richard Davey
|
90c7d4d0e8
|
Removed un-needed argument
|
2018-12-18 12:12:38 +00:00 |
|
Richard Davey
|
56fa0a119e
|
RenderTexture.fill in WebGL would use gl.clear and a clear color to try and fill the Render Texture. This only worked for full-canvas sized RenderTextures that didn't have a camera zoom applied. It has now been swapped to use the drawFillRect method of the Texture Tint Pipeline, allowing it to work properly regardless of camera zoom or size.
|
2018-12-18 11:31:42 +00:00 |
|
Richard Davey
|
bc9d3511e1
|
When using RenderTexture.fill , the alpha argument would be ignored in Canvas mode. It's now used when filling the RenderTexture.
|
2018-12-18 09:55:23 +00:00 |
|
Richard Davey
|
e584fbfb8f
|
Tidying up erase code
|
2018-11-13 15:27:42 +00:00 |
|
Richard Davey
|
76918e76b0
|
ERASE tests
|
2018-11-13 10:32:24 +00:00 |
|
Richard Davey
|
06688eedd8
|
Merge branch 'master' of https://github.com/photonstorm/phaser
|
2018-11-10 04:22:51 +00:00 |
|
Richard Davey
|
ceb9910780
|
Added erase method for clearing parts of a Render Texture.
|
2018-11-10 04:22:47 +00:00 |
|
Richard Davey
|
8ea2bffb9c
|
Render Textures created larger than the size of the default canvas would be automatically clipped when drawn to in WebGL. They now reset the gl scissor and drawing height property in order to draw to their full size, regardless of the canvas size. Fix #4139
|
2018-11-07 16:01:21 +00:00 |
|
Richard Davey
|
4b1c762296
|
Updated @memberOf to @memberof
|
2018-10-10 10:49:13 +01:00 |
|
TadejZupancic
|
da5ed417b5
|
Update RenderTexture.js
|
2018-09-28 14:51:54 +02:00 |
|
TadejZupancic
|
d77f39aaa1
|
Update RenderTexture.js
|
2018-09-28 14:36:59 +02:00 |
|
TadejZupancic
|
9ceb1847b1
|
Update RenderTextureFactory.js
|
2018-09-28 14:32:35 +02:00 |
|
TadejZupancic
|
52bae7e235
|
Update RenderTextureCreator.js
|
2018-09-28 14:31:50 +02:00 |
|
Richard Davey
|
754fc4f622
|
RenderTexture.resize wouldn't correctly resize the texture under WebGL. Fix #4034
|
2018-09-17 11:48:34 +01:00 |
|
Richard Davey
|
dedc939fdd
|
initPipeline now defaults to the Texture Tint Pipeline if nothing else is specified.
|
2018-09-05 11:19:02 +01:00 |
|
TadejZupancic
|
1fa16f00df
|
RenderTexture: Texture is always destroyed (canvas)
Forgot to check the flag for canvas renderer.
|
2018-08-22 15:57:57 +02:00 |
|
TadejZupancic
|
bff7f99fe1
|
Update RenderTexture.js
|
2018-08-21 15:40:10 +02:00 |
|
TadejZupancic
|
50a3555cad
|
RenderTexture: Texture is always destroyed
Texture is now destroyed only if it was not saved to the TextureManager, so it can be reused.
|
2018-08-21 15:32:10 +02:00 |
|
Richard Davey
|
353b7b5edd
|
RenderTexture destroy working. Fix #3901
|
2018-08-08 13:56:43 +01:00 |
|
Richard Davey
|
41c9f8b1e1
|
Docs update
|
2018-08-06 00:41:34 +01:00 |
|
Richard Davey
|
9675c269e6
|
Split Camera up into BaseCamera, which Camera now extends.
|
2018-08-04 13:05:41 +01:00 |
|
Richard Davey
|
6027e9ca5a
|
Render Textures can now be cropped. Added missing jsdocs.
|
2018-08-03 19:30:55 +01:00 |
|
Richard Davey
|
d5c558b8e4
|
Render Texture now uses unified drawing functions
|
2018-08-03 19:17:39 +01:00 |
|
Richard Davey
|
9f44896a3f
|
The Blend Mode is now set directly in all Canvas Renderers without comparing it to what's stored in the Canvas Renderer. This fixes problems where the blend mode would be lost between two different Game Objects because they restored the context, but didn't update the renderer flag. Game Objects in Canvas can now mix and match blend modes across the display list.
|
2018-08-03 01:29:18 +01:00 |
|
Richard Davey
|
7965c7aae4
|
Removed un-needed files.
|
2018-08-02 15:59:29 +01:00 |
|
Richard Davey
|
b83c8cf513
|
Merged all the functions into the single class and tidied up the naming.
|
2018-08-02 14:58:09 +01:00 |
|
Richard Davey
|
122e6cab8a
|
Fixed frame var
|
2018-08-02 12:35:26 +01:00 |
|
Richard Davey
|
affe47714f
|
Render Textures can now save themselves to the Texture Manager.
|
2018-08-02 12:35:17 +01:00 |
|
Richard Davey
|
72d54dd1ac
|
Only clear if dirty. Only render children is visible.
|
2018-08-01 20:25:55 +01:00 |
|
Richard Davey
|
c9e0963696
|
Added dirty fag
|
2018-08-01 20:25:40 +01:00 |
|
Richard Davey
|
a11b059531
|
Draw a whole Scene now!
|
2018-08-01 18:28:14 +01:00 |
|
Richard Davey
|
9bc71dc676
|
New handler so RenderTextures can draw any game object, group or container
|
2018-08-01 18:02:21 +01:00 |
|
Richard Davey
|
56a0b3b3bf
|
Expose more functions (until we tidy this up)
|
2018-08-01 18:02:05 +01:00 |
|
Richard Davey
|
86b829efa6
|
Blank the texture after drawing
|
2018-08-01 18:01:54 +01:00 |
|
Richard Davey
|
94e4411ac1
|
Testing RenderTexture updates to allow any GameObject to be drawn to it
|
2018-08-01 00:01:16 +01:00 |
|
Richard Davey
|
9d7ec132a4
|
Refactoring RenderTexture to remove the matrix stack and add in support for drawing Game Objects and arrays of them
|
2018-07-31 17:10:26 +01:00 |
|
Richard Davey
|
8cb812bbec
|
Merged jsdocs (re: #3823)
|
2018-07-31 15:13:21 +01:00 |
|
Richard Davey
|
7fe9167657
|
The alpha value is now always set for Render Textures in canvas mode, regardless of the previous alpha value in the renderer
|
2018-07-29 12:23:52 +01:00 |
|
Richard Davey
|
a1ae1744ac
|
RenderTexture.preDestroy will now release the canvas back to the CanvasPool if running in canvas mode
Also removed un-used `drawFrame` references.
|
2018-07-29 12:20:09 +01:00 |
|
Richard Davey
|
56e1e04da3
|
RenderTexture.draw would fail to draw the frame in Canvas mode
|
2018-07-29 12:10:28 +01:00 |
|
Richard Davey
|
ec5bd1912e
|
GameObject.willRender now takes a Camera as its only argument and uses it within the check. This has allowed me to remove 23 duplicate checks spread across the various Game Objects, all of which did the same thing, saving both KB and CPU time as the flags were being checked twice in most cases.
|
2018-07-19 13:19:02 +01:00 |
|
Richard Davey
|
ef79edf1ff
|
New pipeline function call
|
2018-07-11 12:35:23 +01:00 |
|
Richard Davey
|
b7edbe755f
|
Tidying up function
|
2018-07-11 12:35:09 +01:00 |
|
Richard Davey
|
90ba2608fa
|
Added in Camera alpha support to all canvas renderers
|
2018-06-25 16:24:08 +01:00 |
|
Richard Davey
|
f1fe131e56
|
Tidying up Render Texture to make it more useful
|
2018-06-19 14:14:37 +01:00 |
|
Chris Andrew
|
4aaf071ad3
|
Cleaned up some previous documentation, finished the RenderTexture GameObject documentation.
|
2018-06-06 14:23:39 +01:00 |
|
Chris Andrew
|
544daa8d4a
|
Documented the DisplayList and UpdateList plugins, and the BuildGameObject function.
|
2018-06-01 11:36:12 +01:00 |
|
Richard Davey
|
a739be27a1
|
RenderTexture.resize will allow you to resize the underlying Render Texture to the new dimensions given. Doing this also clears the Render Texture at the same time
|
2018-05-29 12:07:40 +01:00 |
|
Richard Davey
|
a7da8dc28f
|
The Canvas RenderTexture drawImage method incorrectly set the values of the frame, causing them to appear wrongly scaled in the canvas renderer. Fix #3710
|
2018-05-29 11:50:23 +01:00 |
|
Richard Davey
|
1a1dbe2dd7
|
lint fix
|
2018-05-23 14:55:51 +01:00 |
|
Richard Davey
|
137f97b325
|
RenderTexture.destroy has been renamed to preDestroy to take advantage of the preDestroy callback system.
|
2018-05-22 15:55:22 +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
|
28251fd0f5
|
addToScene added to all Game Object Creators
|
2018-05-02 10:57:26 +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 |
|
Felipe Alfonso
|
1058cff4c8
|
Fixed issue with inverted coordinates on render texture
|
2018-04-13 17:33:43 -03:00 |
|
Felipe Alfonso
|
d3beb043e2
|
Added parent to game objects that called CanvasPool.create2D
|
2018-04-13 12:48:34 -03:00 |
|
Richard Davey
|
4f6239dadb
|
jsdoc and eslint fixes
|
2018-04-05 09:02:36 +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
|
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 |
|
Felipe Alfonso
|
198180fec6
|
Fixed issue https://github.com/photonstorm/phaser/issues/3475
|
2018-04-03 12:03:02 -03:00 |
|
Felipe Alfonso
|
4f8ddd73bb
|
Merge branch 'master' into containers
|
2018-03-29 12:35:40 -03:00 |
|
Richard Davey
|
fba8183d94
|
Fixed docs order
|
2018-03-29 12:54:33 +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
|
d544701495
|
parentMatrix added to individual game object render function
|
2018-03-27 14:49:09 -03:00 |
|
Richard Davey
|
2cd7da0126
|
The RenderTexture now uses the ComputedSize component instead of Size (which requires a frame), allowing calls to getBounds to work. Fix #3451
|
2018-03-23 10:00:25 +00:00 |
|
Richard Davey
|
04b5985724
|
Merge pull request #3445 from delftswa2018/3385-Rendertexture-alpha-not-changing-in-WEBGL-mode
Fix changing alpha in RenderTextureWebGLRenderer
|
2018-03-22 14:52:14 +00:00 |
|
Gerard van Alphen
|
78c1e86021
|
Fix changing alpha in RenderTextureWebGLRenderer
|
2018-03-22 14:58:41 +01:00 |
|
orblazer
|
5a518f2e5f
|
Fix "object" types on Camera and GameObjecs
|
2018-03-20 23:28:26 +01:00 |
|
orblazer
|
87633fdfad
|
Fix multiple types on GameObjects
|
2018-03-20 15:56:31 +01:00 |
|
Richard Davey
|
620bcc6ae5
|
jsdoc fixes and additions
|
2018-03-19 13:45:00 +00:00 |
|
Felipe Alfonso
|
be81ddfd51
|
Fixed issue on RenderTexture canvas clear. The clearRect was affected by previous transformations
|
2018-03-12 13:30:05 -03:00 |
|
Felipe Alfonso
|
9585a1c78b
|
Fixed issue of render texture only rendering the first frame. It should've read the cut properties
|
2018-03-12 13:27:32 -03:00 |
|
Felipe Alfonso
|
9a21b4c7f4
|
Fixed issue with render texture tint
|
2018-03-06 15:56:33 -03:00 |
|
Richard Davey
|
bfabe35cdf
|
eslint fixes
|
2018-03-05 21:49:08 +00:00 |
|
Felipe Alfonso
|
ddc85cfdc7
|
Added support for tint and alpha to RenderTexture
|
2018-03-05 16:57:41 -03:00 |
|
Richard Davey
|
4c59d9a35d
|
Added jsdocs
|
2018-03-05 02:24:47 +00:00 |
|
Richard Davey
|
4d16b0c00a
|
eslint fixes
|
2018-03-05 01:45:28 +00:00 |
|
Richard Davey
|
ef3df149c6
|
Fixed RenderTexture flipY
|
2018-03-05 01:42:37 +00:00 |
|
Richard Davey
|
ae1c91cf6a
|
eslint fixes
|
2018-03-05 01:40:11 +00:00 |
|
Felipe Alfonso
|
7c96e93c47
|
Canvas RenderTexture rendering added
|
2018-02-23 21:05:15 -03:00 |
|
Felipe Alfonso
|
9dbb4db4c6
|
Added inverted alpha to bitmap mask
|
2018-02-23 14:09:27 -03:00 |
|
Felipe Alfonso
|
ef8e92dc01
|
RenderTexture base webgl implementation
|
2018-02-23 00:44:22 -03:00 |
|