From 2f560a28a708b62d50f05eef69c33cfe5010ea08 Mon Sep 17 00:00:00 2001 From: "HuYingzhuo(hugo/hyzboy)" Date: Thu, 12 Oct 2023 10:39:43 +0800 Subject: [PATCH] fixed all examples that can RUN OK! --- example/Basic/auto_instance.cpp | 2 +- example/Basic/auto_merge_material_instance.cpp | 2 +- example/Basic/draw_triangle_in_NDC.cpp | 2 +- example/Basic/draw_triangle_use_UBO.cpp | 2 +- example/Texture/texture_quad.cpp | 2 +- example/Texture/texture_rect.cpp | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/example/Basic/auto_instance.cpp b/example/Basic/auto_instance.cpp index 01ef2589..388ce7a1 100644 --- a/example/Basic/auto_instance.cpp +++ b/example/Basic/auto_instance.cpp @@ -71,7 +71,7 @@ private: bool InitVBO() { - RenderablePrimitiveCreater rpc(db,VERTEX_COUNT); + RenderablePrimitiveCreater rpc(db,"Triangle",VERTEX_COUNT); if(!rpc.SetVBO(VAN::Position, VF_V2F, position_data))return(false); if(!rpc.SetVBO(VAN::Color, VF_V4UN8, color_data ))return(false); diff --git a/example/Basic/auto_merge_material_instance.cpp b/example/Basic/auto_merge_material_instance.cpp index 7e638793..2fd6da6f 100644 --- a/example/Basic/auto_merge_material_instance.cpp +++ b/example/Basic/auto_merge_material_instance.cpp @@ -84,7 +84,7 @@ private: bool InitVBOAndRenderList() { - RenderablePrimitiveCreater rpc(db,VERTEX_COUNT); + RenderablePrimitiveCreater rpc(db,"Triangle",VERTEX_COUNT); if(!rpc.SetVBO(VAN::Position, VF_V2F, position_data))return(false); diff --git a/example/Basic/draw_triangle_in_NDC.cpp b/example/Basic/draw_triangle_in_NDC.cpp index e13c8d6e..663ceea8 100644 --- a/example/Basic/draw_triangle_in_NDC.cpp +++ b/example/Basic/draw_triangle_in_NDC.cpp @@ -108,7 +108,7 @@ private: bool InitVBO() { - RenderablePrimitiveCreater rpc(db,VERTEX_COUNT); + RenderablePrimitiveCreater rpc(db,"Triangle",VERTEX_COUNT); #ifdef USE_HALF_FLOAT_POSITION Float32toFloat16(position_data_hf,position_data_float,VERTEX_COUNT*2); diff --git a/example/Basic/draw_triangle_use_UBO.cpp b/example/Basic/draw_triangle_use_UBO.cpp index 30a06b32..df9ded7a 100644 --- a/example/Basic/draw_triangle_use_UBO.cpp +++ b/example/Basic/draw_triangle_use_UBO.cpp @@ -69,7 +69,7 @@ private: bool InitVBO() { - RenderablePrimitiveCreater rpc(db,VERTEX_COUNT); + RenderablePrimitiveCreater rpc(db,"Triangle",VERTEX_COUNT); #ifndef USE_ZERO2ONE_COORD //使用ortho坐标系 diff --git a/example/Texture/texture_quad.cpp b/example/Texture/texture_quad.cpp index 3ff2235f..e13fc92d 100644 --- a/example/Texture/texture_quad.cpp +++ b/example/Texture/texture_quad.cpp @@ -85,7 +85,7 @@ private: bool InitVBO() { - RenderablePrimitiveCreater rpc(db,VERTEX_COUNT); + RenderablePrimitiveCreater rpc(db,"Quad",VERTEX_COUNT); if(!rpc.SetVBO(VAN::Position, VF_V2F, position_data))return(false); if(!rpc.SetVBO(VAN::TexCoord, VF_V2F, tex_coord_data))return(false); diff --git a/example/Texture/texture_rect.cpp b/example/Texture/texture_rect.cpp index d30615b3..3b255c6c 100644 --- a/example/Texture/texture_rect.cpp +++ b/example/Texture/texture_rect.cpp @@ -81,7 +81,7 @@ private: bool InitVBO() { - RenderablePrimitiveCreater rpc(db,1); + RenderablePrimitiveCreater rpc(db,"Rectangle",1); if(!rpc.SetVBO(VAN::Position,VF_V4F,position_data))return(false); if(!rpc.SetVBO(VAN::TexCoord,VF_V4F,tex_coord_data))return(false);