leda
19ab61b252
refine TODO & FIXME flag ( #1450 )
...
* change TODO to REFINE
* change REFINE:cjh to REFINE
* change FIXME to IDEA
* improve format
2018-08-10 12:52:00 +08:00
James Chen
ee5faac763
Move logic of flipY and premultiplyAlpha from jsb_opengl_manual.cpp to CCGLUtils.cpp. ( #1249 )
...
* Native Renderer supports GL_UNPACK_FLIP_Y_WEBGL & GL_UNPACK_PREMULTIPLY_ALPHA_WEBGL.
And adds ccFlipYOrPremultiptyAlphaIfNeeded, ccIsUnpackFlipY, ccIsPremultiplyAlpha, ccPixelStorei GL utils.
* seval_to_TextureSubImageOption: uint16_t* -> uint32_t* since width * height * 4 may bigger than 65536 bytes.
* Move logic of flipY and premultiplyAlpha from jsb_opengl_manual.cpp to CCGLUtils.cpp.
* Reverts.
2018-05-18 15:53:28 +08:00
minggo
4a13d0e15e
Downsample ( #1245 )
...
* support render texture
* use texture unit 0
* add functions to set device pixel ratio
* add ccDeleteBuffers again
* fix according comments
2018-05-17 14:05:05 +08:00
minggo
87a4301d8f
unify js_loadImage ( #1210 )
...
* fix Texture2D::addSubImage()
* unify the logic of js_loadImage
* simplify codes
2018-04-24 16:27:03 +08:00
minggo
7814c72492
fix Texture2D::addSubImage() ( #1207 )
2018-04-20 20:06:55 +08:00
minggo
d98484654f
Optimize ( #1202 )
...
* fix some bugs
* fix binding codes of Texture2D::updateSubImage()
2018-04-20 14:31:52 +08:00
James Chen
a0543f099c
Renderer also uses cached version of bindBuffer, bindTexture, activeTexture, deleteBuffer, deleteTexture
2018-04-16 11:43:17 +08:00
James Chen
8dc0f35714
[ios] Fixes bugs about multisampling and GL_DEPTCH_STENCIL_ATTACHMENT ( #1175 )
...
* [ios] Fixes bugs about multisampling.
* [ios] Should use opengl es2
* Fixes compilation issues in DeviceGraphics after switching back to opengles2.
* glFramebufferRenderbuffer GL_DEPTH_STENCIL_ATTACHMENT fix in webgl binding.
* Comment some code of invoking opengles3.0 methods in gfx/Texture2D.cpp.
2018-03-30 17:44:08 +08:00
minggo
0be49352d0
H5 adapt merge ( #1164 )
...
* h5 adpator
* adapt to h5 engine
2018-03-23 15:26:09 +08:00
minggo
610658e5a6
h5 adpator ( #1156 )
2018-03-21 09:30:05 +08:00
minggo
802e48080e
New renderer ( #1097 )
...
* build work on mac
* build ok on iOS
* fix compiling error on android
* fix android link error
2018-02-08 10:40:29 +08:00