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
 #define MAPWIDTH 800
@@ -46,14 +46,15 @@ int main(void)
     lightenrange(100,256);    
     lightenrange(100,256);    
     smooth();
     smooth();
  
  
+    BeginTextureMode(target);    
     for(int y=0;y<MAPHEIGHT;y++){
     for(int y=0;y<MAPHEIGHT;y++){
     for(int x=0;x<MAPWIDTH;x++){
     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});
         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
     SetTargetFPS(60);               // Set our game to run at 60 frames-per-second
     //--------------------------------------------------------------------------------------
     //--------------------------------------------------------------------------------------