rh101
4e7db23d38
Remove getLong() method
...
Change %du to %u, and %lx to %x
Use "stdint.h" instead of <cstdint> for TGAlib.h
2021-09-02 20:30:20 +10:00
姒嗘煶鏉?
64e2cdd8d9
[fix]The problem of inaccurate maximum width limit when using system fonts.
2021-09-02 17:15:03 +08:00
rh101
1922cf5490
FT_StreamRec expects specific method signature with `unsigned long`
2021-09-02 15:55:57 +10:00
rh101
d8fd94db8a
Usage of long and unsigned long changed to platform independent fixed-sized types where appropriate.
2021-09-02 15:39:28 +10:00
halx99
1f15fbe192
Remove deprecated stubs
2021-09-02 11:16:36 +08:00
halx99
2178ac49b1
Make override function default parameter same with parent
2021-09-01 11:13:17 +08:00
halx99
3e4d8dd3ac
Revert unexpected layer changes
2021-09-01 11:11:32 +08:00
halx99
0a4d3ee73d
Merge: cb81a61530
a762c94904
...
Merge branch 'dev' of https://github.com/adxeproject/adxe into dev
2021-09-01 10:10:46 +08:00
halx99
756ff065c8
Enum compatible [skip ci]
2021-08-31 15:50:18 +08:00
halx99
be5eff1d5a
Refactor layer
...
Reimplement LayerColor and LayerGradient based on sprite for auto batch draw
2021-08-30 19:47:53 +08:00
halx99
5cc2b14697
Merge: 858d46ae65
8e1d7bd85d
...
Merge commit 'refs/pull/483/head' of https://github.com/adxeproject/adxe into dev
2021-08-30 19:32:05 +08:00
halx99
48a1164168
Update bug_report.md
2021-08-30 10:47:07 +08:00
halx99
eef61007bf
Reimplement LayerColor and LayerGradient for auto batch draw
2021-08-29 18:59:09 +08:00
halx99
d72c948937
Revert last commit
2021-08-29 08:06:38 +08:00
halx99
65cd67e64c
Set Sprite rect properly when create with empty texture.
2021-08-28 22:11:25 +08:00
halx99
b8d27c0715
Fix comment typo and do clang-format [skip ci]
2021-08-28 20:22:01 +08:00
halx99
481daa0e73
Fix crash problem when load a non-truetype .ttf file.
2021-08-28 18:24:17 +08:00
halx99
fc1c901209
Macro compatible
2021-08-27 13:54:05 +08:00
halx99
73c5f887b5
Merge: 30625f2330
f5af50debd
...
Merge pull request #475 from adxeproject/win64
Win64 build support [DONE] 馃殌馃帀
2021-08-27 12:34:24 +08:00
aismann
147b4b7946
Update README.md
2021-08-27 06:25:18 +02:00
halx99
5d0565b900
Fix byteorder detect error for win64 and some warnings
2021-08-27 11:27:33 +08:00
rh101
f488de7d6c
Fix for dynamic library issue
2021-08-20 14:43:19 +10:00
halx99
426aa0db93
Merge: b48133e9c6
c9ebafe501
...
Merge pull request #466 from rh101/fix-sprite-test-crashes
Fixes for crashes in sprite and sprite cache tests
2021-08-19 14:35:44 +08:00
rh101
ad3e3380e2
Fixes for crashes in sprite and sprite cache tests
2021-08-19 15:43:18 +10:00
aismann
288941a63f
cleanup and improvement
2021-08-18 04:16:21 +02:00
rh101
14a1556c6c
Revert check for reference count, since it was correct. [skip ci]
2021-08-17 18:49:14 +10:00
rh101
e558b3c976
Fix incorrect reference count check in SpriteFrameCache::removeUnusedSpriteFrames
...
[BaseTest] Ensure unused frames are released before attempting to free unused textures
2021-08-17 15:26:44 +10:00
rh101
c60f66c9bb
Use integer identifier for sprite sheet format.
...
Revert method name addSpriteFramesWithFileAndTexture back to addSpriteFramesWithFile
2021-08-17 14:04:45 +10:00
rh101
7a6734408d
Update sprite sheet API to allow custom sprite sheet texture filename to be used
2021-08-17 09:04:51 +10:00
aismann
39dbbc4713
More improvements ( #455 )
2021-08-14 10:28:28 +08:00
RH
2c0f04c99b
Support custom texture atlas formats ( #284 )
...
* Allow support for custom texture atlas formats other than PLIST.
* Revert usage of emplace_back to push_back to ensure support for older compilers.
* Update test to support SpriteFrameCache::addSpriteFramesWithFile
* Re-add SpriteFrameCache::addSpriteFramesWithFileContent
* Change order of SpriteFramesFromFileContent test back to what it previously was
* Remove sprite sheet and all frames associated with it correctly
* Move sprite loader classes into their own files to clean up CCSpriteFrameCache
* Remove redundant line and update comment
* Fix formatting to match adxe code style
* Fix typo
* Add custom sprite sheet loader test using JSON-array sprite atlas format.
Simplify sprite sheet loader interface by adding identifier to the custom sprite sheet loader implementation.
* Add newline at the end of the file
2021-08-13 14:52:58 +08:00
halx99
d8ad4ab8db
Update comment
2021-07-15 17:32:50 +08:00
halx99
36042fdb55
Add new API Node::hitTest
2021-07-15 17:01:57 +08:00
halx99
1699dcc93d
Use const ValueMap& for CCParticleSystem init functions
2021-07-15 12:23:50 +08:00
halx99
f9ecb53623
Fix member not initialized [skip ci]
2021-07-07 22:38:58 +08:00
halx99
7d635e2a37
Improve Sprite programState update logic
2021-06-27 21:43:21 +08:00
halx99
10c1ed15ef
Refactor dual sampler shader [ci build]
...
Since not only etc1 could use sepreate RGB, A to two texture samplers, we unify the shader name.
2021-06-27 20:58:50 +08:00
halx99
72d1ba9ea6
Merge: df58dd753c
2397d54daf
...
Merge branch 'dev' into Chipmunk2D
2021-06-24 17:04:04 +08:00
aismann
dbcb5816fe
Add springs (draw), add Copyright, improve Chipmunk2d - Testbed
2021-06-24 09:54:02 +02:00
halx99
f4871674df
More compatible
2021-06-24 10:21:41 +08:00
halx99
36d258f589
Delay scene default camera init, see also #392
...
This change will make sure user can change window or design size before scene init
2021-06-24 02:23:02 +08:00
halx99
3c9a18675c
Add some comment for pr #384
2021-06-17 21:56:38 +08:00
RH
7d8fe551cc
Use TTF scaled metrics to calculate line height ( #384 )
2021-06-17 21:15:50 +08:00
RH
621a6a16f5
Set global Z value of label debug layer to be the same as the parent label to fix display issue ( #378 )
2021-06-16 09:18:43 +08:00
halx99
382a12f181
Improve progress timer ( #375 )
2021-06-13 10:05:30 +08:00
RH
429215ee85
Ensure label underline node has the same global Z value as the label node to fix visibility issue when global Z is not 0. ( #373 )
2021-06-09 12:09:01 +08:00
RH
56fc4513ef
FileStream::size() implemented ( #365 )
...
* Add FileStream::size()
Add ZipFile::zfsize()
* Use FileStream::size()
2021-05-31 15:08:44 +08:00
halx99
6ff9a28f78
Better code style
2021-05-24 13:26:56 +08:00
halx99
8e6faac1f1
Merge: 3348f10813
3a7bb58045
...
Merge pull request #350 from rh101/fix-cmake-set-property
Fix for CMake error when set_property is called with aliased target
2021-05-05 19:49:30 +08:00
rh101
c3618f8ea6
Extract real target from ALIAS if it exists in order to set property successfully
...
Remove duplicate entries in dependencies lists
2021-05-05 16:04:06 +10:00
halx99
0511520281
Merge: 7f1ca55a97
1efe0091a8
...
Merge pull request #347 from rh101/imgui-fix
ImGUI font crash fix when using virtual file system
2021-04-27 23:29:22 -07:00
rh101
e5fa398c67
Load fonts into IMGUI using memory routines rather than allowing it to use its own file handling in order to support FileStream related implementations.
2021-04-28 15:53:37 +10:00
rh101
0583f9a4e0
Get the raw pointer on creation of the FileStream to avoid any accidental usage of the unique_ptr.
2021-04-26 17:31:34 +10:00
rh101
668e96cadd
Use unique_ptr for FileUtils::openFileStream
...
Fix OGG audio playback due to incorrect tell() method
Fix unzip close() override method not deleting FileStream pointer.
2021-04-26 14:21:56 +10:00
RH
5b168e3bb6
Merge: 03bb24f313
85c5705f48
...
Merge branch 'vfs-support' into master
2021-04-26 10:39:09 +10:00
RH
0e2247a2d9
Merge: d1027ab263
ce6117fa65
...
Merge pull request #7 from c4games/master
Sync with primary
2021-04-26 10:32:25 +10:00
rh101
833f27f499
Ensure code uses FileStream::tell() to get size if required after using FileStream::seek(0, SET_END)
2021-04-26 10:28:33 +10:00
rh101
155fe98406
openFileStream now returns a nullptr if it fails
2021-04-24 09:22:27 +10:00
rh101
e1ce966be2
Remove redundant std::move
2021-04-23 22:00:33 +10:00
rh101
95cf5b5c2b
Merge: 2aa2d69151
b7506fed0c
...
Merge branch 'vfs-support' of https://github.com/rh101/engine-x into vfs-support
2021-04-23 00:01:47 +10:00
rh101
54ffa13dff
Move PosixFileStream class to its own files
...
Update UserDefault to work with FileStream
Fix undefined openFileStream on platforms other than Win32
2021-04-23 00:01:32 +10:00
RH
dd5f77c3d5
Merge: 15c8f2298d
0886473e1b
...
Merge pull request #4 from rh101/master
Sync with master
2021-04-22 21:49:43 +10:00
RH
1e15ed4839
Merge: 2cef9f2e76
844119d162
...
Merge pull request #3 from c4games/master
Sync with master
2021-04-22 21:48:49 +10:00
rh101
7540c06fd3
Use FileStream to write JPG images to disk
2021-04-22 21:36:26 +10:00
halx99
8ed6d34234
Explicit set cmake minimum version at app/build.gradle [ci build]
2021-04-22 11:40:53 +08:00
rh101
2bf12b2226
Add support for virtual file system via custom FileStream and FileUtils implementations.
2021-04-22 03:15:49 +10:00
halx99
fce0f9caf0
Refine director access [ci build]
2021-02-05 23:09:14 +08:00
halx99
472266c25c
Fix #318
2021-01-27 12:03:42 +08:00
halx99
be79c908c5
Fix ParticleBatchNode texture not bind [ci build]
2021-01-19 23:53:22 +08:00
halx99
1ec908d4f9
fix #260 [ci build]
2020-11-16 12:21:27 +08:00
halx99
60a6d97d86
Remove Sprite::updateShaders [ci build]
2020-10-31 20:08:32 +08:00
halx99
a2fcdb67a1
Sprite::setTexture, programType >= ProgramType::HSV needs update by user manually.
2020-10-27 11:14:36 +08:00
halx99
8a8d96e8d4
Refine DrawNode, should not use Node::_programState for private use ( #251 )
...
The follow classes should not reuse Node::_programState, otherwise needs override Node::setProgramState to update programState of pipelineDescriptor:
- DrawNode
- LayerColor
- LayerRadialGradient
- ParticleBatchNode
- ParticleSystemQuad
2020-10-26 14:49:14 +08:00
halx99
e58041bd46
Don't update sprite shader when it's not default
2020-10-26 13:08:02 +08:00
halx99
567f55d6fb
fix clear flow for rendertexture and grid since we use clearCommand to clear renderTarget, see #233
2020-10-16 16:25:10 +08:00
halx99
c594e3789c
Refactor programState management ( #236 )
...
1. Add custom program registery
2. Re-enable batch draw for custom program
2020-10-16 16:23:14 +08:00
halx99
880c274995
fix #233
2020-10-15 10:22:18 +08:00
halx99
11ffba3758
API qualifiers improments
2020-10-07 00:07:53 +08:00
halx99
5ef9214d19
fix warning
2020-10-06 12:31:17 +08:00
halx99
2b6cb88167
Clearly texture usage and TextureGL initWithZeros usage ( #219 )
...
* Clearly texture usage and TextureGL initWithZeros usage
* More properly function name
2020-09-25 15:04:55 +08:00
halx99
cca0739793
Refactor pixel format manipulate ( #217 )
...
* PixelFormat use table
* Correct PixelFormat name to match 'GL_LUMINANCE'
* Up
* fix cube update texture enum
* linux build
* Refine ci
* fix linux build
* Remove unused function, match mtl framebuffer pixel format
* readPixels always RGBA format
* fix ci for linux
* fix linux build
* Remove unused functions
* fix travis
* fix android ci
* Update config.json
* linux glad
* Update CCGLViewImpl-desktop.cpp
* fix linux build
* Fix linux build
* Link issue [skip appveyor][skip travis]
* Update CMakeLists.txt
* Refine GL enums use
* Update test case name [skip appveyor][skip travis]
* fix linux link issue
* for mtl
* fix ci
* Tidy pixelformat enums
* fix ci
* fix rgba8 to abgr4 error
* fix ci
* fix ci for GLES
* Fix linux build, require glibc-2.27+
* Use properly dist for travis [skip appveyor]
* fix linux build [skip appveyor]
* Update install-deps-linux.sh
* Remove unused members for pixel block info, update external to v73
* Sync from compile linux warnings
* Remove unused check, and PixelFormat::A8 is ordinary format, not compressed format
* metal doesn't support rgb8 (#3 )
* Update CCTexture2D.cpp
* Refine code
* Pixel Format Descriptor Table
* fix ci
* BGR5A1
* Simplfy texture format convert function name
* Update
* rgba4 match mtl render format
* Add note about RGBA4
* Remove unused function
* fix osx
* Already converted at texture2d
* Clearly comment
* fixup
2020-09-25 11:07:56 +08:00
halx99
26924879be
fix AtlasNode, needs update atlas values when ignore content scale factor changed
2020-09-22 16:35:24 +08:00
halx99
6e7e117a0d
RenderTarget abstract, in-progress ( #210 )
...
RenderTarget abstract
2020-09-21 22:10:50 +08:00
halx99
03ae85f2f4
Merge: 22a4586af9
03e5a1bd9a
...
Merge pull request #209 from halx99/delete-copy-stubs
Explicit delete copy stubs for CustomCommand
2020-09-16 22:45:38 -07:00
halx99
ac2e8e4bb6
fix ci
2020-09-17 12:10:08 +08:00
halx99
c0a61434e0
Sync pr from https://github.com/cocos2d/cocos2d-x/pull/20580
2020-09-17 12:05:31 +08:00
halx99
dc74671240
Explicit delete copy stubs for CustomCommand
2020-09-17 11:41:14 +08:00
halx99
7217d16cd2
Needs recalculate max items when AtlasNode::setIgnoreContentScaleFactor
2020-09-16 13:34:20 +08:00
halx99
81e78573e6
Refine code
2020-09-13 19:16:59 +08:00
halx99
d4887b8584
No need CaptureCommand for capture screen or node
2020-09-13 13:27:50 +08:00
halx99
378975d768
Remove comment
2020-09-11 12:39:16 +08:00
halx99
0365122f4a
v4 captureScreen API compatiable, gl needs flip always for capture
2020-09-11 11:57:55 +08:00
halx99
065cfc77b3
Update CCRenderTexture.cpp
2020-09-11 01:46:12 +08:00
halx99
d2acbe176e
finish gl backend
2020-09-11 01:19:10 +08:00
halx99
671b6b4ca9
Tidy code
2020-09-11 00:10:44 +08:00
halx99
dc3796d746
Refine code
2020-09-10 21:38:24 +08:00
halx99
e283a4fca0
Refactor capture, fix data race for apple metal reanderer backend
2020-09-10 21:14:28 +08:00
halx99
df8631582b
Tidy, update programState texture at attachProgramState
2020-09-09 15:29:56 +08:00
halx99
6c2939d235
More clearly programState management
2020-09-09 13:03:31 +08:00
halx99
84ed7befe2
fix memory leak for ProgramStateRegistry use
2020-09-08 22:13:10 +08:00