diff Renderer/Engine/spe/Load_Texture.cc @ 507:735f76483bb2

Reorganization..
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Mon, 12 Oct 2009 09:39:35 +0900
parents
children 58cdb81f7f96
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/Renderer/Engine/spe/Load_Texture.cc	Mon Oct 12 09:39:35 2009 +0900
@@ -0,0 +1,29 @@
+// #define DEBUG
+#include "error.h"
+
+#include <stdlib.h>
+#include <string.h>
+#include "Load_Texture.h"
+#include "texture.h"
+#if !USE_MEMHASH
+#include "TileHash.h"
+#endif
+#include "Func.h"
+#include "global_alloc.h"
+
+SchedDefineTask(LoadTexture);
+
+/**
+ * 「Load」といいながら、結局 DrawSpan で使う
+ * Hash の準備だけなので、名前変えないとなー
+ */
+static int
+run(SchedTask *smanager, void *rbuf , void *wbuf)
+{
+    __debug_spe("LoadTexture\n");
+
+    MemList *ml = smanager->createMemList(sizeof(uint32) * TEXTURE_BLOCK_SIZE, MAX_TILE);
+    smanager->global_set(GLOBAL_TILE_LIST, (void *)ml);
+
+    return 0;
+}