update to most recent ucx 3.2 preview

Wed, 28 May 2025 21:39:18 +0200

author
Mike Becker <universe@uap-core.de>
date
Wed, 28 May 2025 21:39:18 +0200
changeset 126
77c13e14a65f
parent 125
0a8747b02df8
child 127
46aaf0bfb81e

update to most recent ucx 3.2 preview

src/ascension/scene_node.h file | annotate | diff | comparison | revisions
src/scene.c file | annotate | diff | comparison | revisions
src/texture.c file | annotate | diff | comparison | revisions
--- a/src/ascension/scene_node.h	Tue May 20 19:29:20 2025 +0200
+++ b/src/ascension/scene_node.h	Wed May 28 21:39:18 2025 +0200
@@ -34,9 +34,6 @@
 #include "datatypes.h"
 #include "transform.h"
 
-// TODO: remove once this feature is implemented in UCX
-#define cxZallocDefault(size) cxCallocDefault(1, size)
-
 typedef struct asc_scene_node_s AscSceneNode;
 
 typedef void(*asc_scene_node_destroy_func)(AscSceneNode*);
--- a/src/scene.c	Tue May 20 19:29:20 2025 +0200
+++ b/src/scene.c	Wed May 28 21:39:18 2025 +0200
@@ -35,7 +35,6 @@
 #include <cx/tree.h>
 #include <cx/linked_list.h>
 #include <cx/array_list.h>
-#include <cx/utils.h>
 
 #include <GL/glew.h>
 
@@ -93,7 +92,7 @@
 
     // create render groups
     CxList *render_group[ASC_RENDER_GROUP_COUNT];
-    cx_for_n(i, ASC_RENDER_GROUP_COUNT) {
+    for (unsigned i = 0 ; i < ASC_RENDER_GROUP_COUNT ; i++) {
         render_group[i] = cxArrayListCreateSimple(CX_STORE_POINTERS, 32);
     }
 
@@ -202,7 +201,7 @@
     }
 
     // deallocate render groups
-    cx_for_n(i, ASC_RENDER_GROUP_COUNT) {
+    for (unsigned i = 0 ; i < ASC_RENDER_GROUP_COUNT ; i++) {
         cxListFree(render_group[i]);
     }
 }
--- a/src/texture.c	Tue May 20 19:29:20 2025 +0200
+++ b/src/texture.c	Wed May 28 21:39:18 2025 +0200
@@ -31,7 +31,6 @@
 #include "ascension/filesystem.h"
 
 #include <assert.h>
-#include <cx/utils.h>
 #include <GL/glew.h>
 #include <SDL2/SDL_image.h>
 

mercurial