Kanzi 3.2 migration guide¶
Kanzi 3.2 migration guide contains information and provides instructions for porting existing Kanzi applications from the previous Kanzi release:
Kanzi Studio changes¶
Default texture¶
When you migrate Kanzi Studio projects that use the default texture from Kanzi Studio 3.1.1 to Kanzi Studio 3.2, Kanzi Studio creates the Default Texture Single Texture and DefaultBackgroundImage.png image that the Default Texture uses.
Kanzi Engine changes¶
OpenGL wrapper functions kzsGl*()
are now implemented as non-inline functions.
In Kanzi 3.2, the default swap behavior is changed from copy to swap. This means that rendering a new frame starts from empty instead of what previous frame rendered. See KzsSurfaceProperties
.
If you want to use copy, in your Application
class use:
virtual void onConfigure(ApplicationProperties& configuration) KZ_OVERRIDE
{
<base class>::onConfigure(configuration);
configuration.defaultSurfaceProperties.swapBehaviorCopy = 1;
}
Kanzi namespace includes C++ features from the std namespace¶
Kanzi namespace includes C++ features from the std namespace, such as shared_ptr, vector and string. For example, include <kanzi/platform/vector.hpp>
instead of <vector>
.
Mesh changes¶
Primitive meshes (Box, Sphere, Plane) use half-float vertex data type when the target hardware supports it.
Kanzi 3.1.1 |
Kanzi 3.2 |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
Renderer changes¶
kzcRenderer
is now kanzi::Renderer
:
Header core/renderer/kzc_renderer.h is replaced by kanzi/rendering/renderer.hpp.
Header core/renderer/kzc_gpu_buffer_manager.h is replaced by kanzi/rendering/gpu_buffer_manager.hpp.
Header core/util/image/kzc_etc.h is replaces by user/image/kzc_etc.h
struct kzcRenderer is replaced by Renderer.
Kanzi 3.1.1 function |
Kanzi 3.2 function |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Kanzi 3.1.1 enum |
Kanzi 3.2 enum |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Renderer3D changes¶
kzuRenderer
is now kanzi::Renderer3D
:
Headers user/renderer/kzu_renderer.h and user/renderer/kzu_renderer_util.h are replaced by kanzi/graphics_3d/renderer3d.hpp.
struct kzuRenderer is replaced by Renderer3D.
KzuTransformedScene
is replaced by TransformedScene3D
.
Kanzi 3.1.1 function |
Kanzi 3.2 function |
---|---|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Kanzi 3.1.1 enum |
Kanzi 3.2 enum |
---|---|
|
|
|
|
|
|
|
|
Resources¶
Kanzi 3.1.1 function |
Kanzi 3.2 function |
---|---|
|
|
|
|
GPU resources¶
Kanzi 3.1.1 function |
Kanzi 3.2 function |
---|---|
|
|
|
|
Framebuffer¶
If the requested format is not supported these functions try to use a fallback texture format:
Framebuffer::addTexture()
Framebuffer::addRenderbuffer()
Kanzi 3.1.1 enum |
Kanzi 3.2 enum |
---|---|
|
|
|
|
Texture¶
Kanzi 3.1.1 enum |
Kanzi 3.2 enum |
---|---|
|
|
|
|
|
|
|
|
|
|
Shader¶
Kanzi 3.1.1 enum |
Kanzi 3.2 enum |
---|---|
|
|