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
|
8a76997242
|
adapt mac resolution (#1248)
|
2018-05-18 11:57:12 +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 |
|
James Chen
|
6b4594f666
|
Adds fixme to CCGLUtils.cpp.
|
2018-04-19 10:59:26 +08:00 |
|
James Chen
|
144175449f
|
ccDeleteBuffers should consider CC_ENABLE_GL_STATE_CACHE.
|
2018-04-19 10:57:29 +08:00 |
|
James Chen
|
c1a0786234
|
remove unused comments, register gl functions inside __gl variable.
|
2018-04-14 20:53:00 +08:00 |
|
James Chen
|
58310293f2
|
more cache fix.
|
2018-04-14 15:59:18 +08:00 |
|
James Chen
|
fb0eb1bd48
|
ENABLE GL STATE CACHE by default. Uses JSB_GL_CHECK_VOID in glFlushCommand
|
2018-04-14 15:15:42 +08:00 |
|
James Chen
|
3dfe05f4cc
|
glBindXXX glActiveTexture cache.
|
2018-04-14 13:43:44 +08:00 |
|