* Backend: remove RenderTargetFlag and refactor depth/stencil state setup
* Fix Z-test and Z-write being enabled by default for main queue
* GL: fix framebuffer attachment not being cleared
* Use dirtyFlags for RenderTarget update
---------
Co-authored-by: halx99 <halx99@live.com>
* fixed UIWebViewImpl-win32 warning C4244 while changing LPWSTR to string
* use direct `socket_native_type`
* directly use HMENU instead of int
* not sure why it wasn't auto converted but msvc spitted warnings
* we're moving it, it doesn't need to be constant, using ntcvt::from_chars
* ignore it to reduce one more warning
* add some missing `noexcept`
* reverted some const removal didn't realize it was used for rvalues
* Fix same uniforms in fragment and vertex shaders not working in Metal
* Add missing copyright
* Fix lua bindings for UniformLocation conversion
* Fix uniform mismatch in positionNormalTexture.vert and colorNormalTexture.frag
* Enable ProgramState::setFragmentUniform() only for Metal
* Add support for disabling code sections from build process
* Add support for disabling built-in audio
* No need to add definition here
* Remove extra blank lines
* Add required copyright notice
* Document new options
* Implement new log macros based on fmtlib
* Fix ci
* Fix ci
* Fix android ci
* Fix warnings
* Replace more ax::log by AXLOGX
* Fix ci
* Fix linux build
* Use stack memory for log prefix
* Fix linux build
* Fix warning
* Add ILogOutput support
* Replace old log calls with new log macros
* Fixup
* Fixup
* Fixup
* Update ci msvc to 14.39
* Update Console.h [skip ci]
* Pass log level to ILogOutput
* Fix memory leaks when axmol apps exit on non-embed systems
1. DriverBase no destroyInstance
2. Every object inherited from ax::Ref shoud destory before ScriptEngineManager, otherwise will trigger it's reinit and leak
3. QuadCommand always leak isolated indices
4. static singleton should'nt inhert from ax::Ref due to destory it before ScriptEngineManager impossible
5. Make Director don't inherit from ax::Ref due to it also cause ScriptEngineManager re-init, because we destroy ScriptEngineManger in destructor of Director
6. Explicit Director managed by Application and don't delete self at purgeDirector, since it will release at mainLoop and re-init in glView->pollEvents then leak
7. Rename ApplicationProtocol to ApplicationBase
8. Rename purgeDirector since we don't delete director self at it, maye rename to cleanup
9. Change ShaderCache to new/delete singleton, managed by ProgramManager
---------
Co-authored-by: lich426 <lich426@gmail.com>
* Fix compilation issue in Texture2D.cpp with _AX_DEBUG=2.
* Fix memory leak: ShaderCache was not purged.
The ShaderCache class had two static members: a map for the cache, and
a pointer to the single instance of ShaderCache. The map was
supposedly cleared in the destructor but there was actually no
instance of ShaderCache (getInstance() was never called and the other
functions accessed the map directly). This commit removes the
singleton "interface" such that only the map is used, then it cleared
the map upon request.
a. now the pod_vector more reusable, byte_buffer, array_buffer aka dynamic_array
b. change pod_vector resize, assign allocate memory exactly/fit and +=, append, insert operations trigger msvc capacity growth strategy