Browse Source

fixed etymology formatting

Iver 6 days ago
parent
commit
3060fbd4c0
6 changed files with 15 additions and 11 deletions
  1. BIN
      builds/libpitmap.so
  2. BIN
      builds/librasteriver.so
  3. 1 4
      changelog.txt
  4. 3 2
      readme.md
  5. 11 5
      src/headers/pitmap.h
  6. BIN
      src/libraries/libpitmap.so

BIN
builds/libpitmap.so


BIN
builds/librasteriver.so


+ 1 - 4
changelog.txt

@@ -1,4 +1 @@
--new PitMap (GIF parsing)
--new function for loading a GIF
--flipped X when reading UVs
--new example scene using RI_load_gif
+-new PitMap (GIF delay times)

+ 3 - 2
readme.md

@@ -7,8 +7,9 @@
 </p>
 
 ## Etymology
-Rasterizer -> Raster & izer -> Raster & Iver
-Iver is my name, which sounds similar to izer
+
+* Rasterizer -> Raster & izer -> Raster & Iver
+* Iver is my name, which sounds similar to izer
 
 ## Roadmap
 

+ 11 - 5
src/headers/pitmap.h

@@ -4,12 +4,18 @@
 #include <stdint.h>
 
 typedef struct {
-    uint32_t* frame_buffer;
-    int width, height;
-    int frame_count;
-    int frame_height;
+    uint32_t* frame_buffer; // the array that stores the pixel data
+    int width; // width of the image
+    int height; // height of the image INCLUDING all stacked frames
+    int frame_height; // height of each FRAME
+    int frame_count; // number of frames
+    uint16_t* frame_delays; // centisecond delay for each frame
 } PM_image;
 
-PM_image* PM_load_image(char* filename, uint16_t debug_mode);
+// loads an image file and returns a PM_image
+PM_image* PM_load_image(const char* filename, unsigned char debug_mode);
+
+// unallocated a PM_image*
+void PM_free_image(PM_image* image);
 
 #endif

BIN
src/libraries/libpitmap.so