浏览代码

Update Texture_Stone6.c

Rudy Boudewijn van Etten 5 年之前
父节点
当前提交
2b86cffa39
共有 1 个文件被更改,包括 5 次插入4 次删除
  1. 5 4
      ProcGen/Texture_Stone6.c

+ 5 - 4
ProcGen/Texture_Stone6.c

@@ -1,4 +1,4 @@
-
+// Work in PRogress - todo put image map data  into a texture and draw to screen - test conversion.
 //
 
 #define MAPWIDTH 800
@@ -46,14 +46,15 @@ int main(void)
     lightenrange(100,256);    
     smooth();
  
+    BeginTextureMode(target);    
     for(int y=0;y<MAPHEIGHT;y++){
     for(int x=0;x<MAPWIDTH;x++){
-        BeginTextureMode(target);    
+        
         DrawRectangle(x,y,1,1,(Color){mapr[x][y],mapg[x][y],mapb[x][y],255});
-        EndTextureMode();     
+        
     }
     }
- 
+    EndTextureMode();     
  
     SetTargetFPS(60);               // Set our game to run at 60 frames-per-second
     //--------------------------------------------------------------------------------------