Bläddra i källkod

renamed some files

Tomas Dougan 2 år sedan
förälder
incheckning
1472e76dea
9 ändrade filer med 12 tillägg och 12 borttagningar
  1. 3 3
      Makefile
  2. 1 1
      mat.c
  3. 0 0
      mat.h
  4. 1 1
      obj.c
  5. 2 2
      shad.c
  6. 2 2
      state.c
  7. 1 1
      state.h
  8. 1 1
      tests/check_matmul.c
  9. 1 1
      tests/check_render.c

+ 3 - 3
Makefile

@@ -34,14 +34,14 @@ SR_LIB = libsr.so
 SR_HEADER = sr.h
 SR_HEADER = sr.h
 
 
 # Source Files
 # Source Files
-SR_SRC += api.c
+SR_SRC += state.c
 SR_SRC += pipe.c
 SR_SRC += pipe.c
 SR_SRC += obj.c
 SR_SRC += obj.c
 SR_SRC += tga.c
 SR_SRC += tga.c
 SR_SRC += clip.c
 SR_SRC += clip.c
 SR_SRC += rast.c
 SR_SRC += rast.c
 SR_SRC += shad.c
 SR_SRC += shad.c
-SR_SRC += smath.c
+SR_SRC += mat.c
 
 
 # Object Files
 # Object Files
 SR_OBJS = $(patsubst %.c, %.o, $(SR_SRC))
 SR_OBJS = $(patsubst %.c, %.o, $(SR_SRC))
@@ -56,7 +56,7 @@ PIPE_TESTS += tests/check_render
 PIPE_TESTS += tests/check_winding_order
 PIPE_TESTS += tests/check_winding_order
 PIPE_DEPS += clip.c 
 PIPE_DEPS += clip.c 
 PIPE_DEPS += rast.c 
 PIPE_DEPS += rast.c 
-PIPE_DEPS += smath.c
+PIPE_DEPS += mat.c
 
 
 # Raster Tests
 # Raster Tests
 TESTS += tests/check_draw_tr
 TESTS += tests/check_draw_tr

+ 1 - 1
smath.c → mat.c

@@ -1,5 +1,5 @@
 
 
-#include "smath.h"
+#include "mat.h"
 #include <math.h>
 #include <math.h>
 
 
 /**
 /**

+ 0 - 0
smath.h → mat.h


+ 1 - 1
obj.c

@@ -6,7 +6,7 @@
 #include <math.h>
 #include <math.h>
 
 
 #include "sr.h"
 #include "sr.h"
-#include "smath.h"
+#include "mat.h"
 
 
 /**
 /**
  * sr_obj.c
  * sr_obj.c

+ 2 - 2
shad.c

@@ -1,8 +1,8 @@
 
 
 
 
 #include "sr.h"
 #include "sr.h"
-#include "api.h"
-#include "smath.h"
+#include "state.h"
+#include "mat.h"
 
 
 #include <stdio.h>
 #include <stdio.h>
 #include <stdlib.h>
 #include <stdlib.h>

+ 2 - 2
api.c → state.c

@@ -2,8 +2,8 @@
 #include <stdlib.h>
 #include <stdlib.h>
 
 
 #include "sr.h"
 #include "sr.h"
-#include "smath.h"
-#include "api.h"
+#include "mat.h"
+#include "state.h"
 
 
 /**
 /**
  * api.c
  * api.c

+ 1 - 1
api.h → state.h

@@ -3,7 +3,7 @@
 #define SR_LIB_H
 #define SR_LIB_H
 
 
 #include "sr.h"
 #include "sr.h"
-#include "smath.h"
+#include "mat.h"
 
 
 /**
 /**
  * sr_lib.h
  * sr_lib.h

+ 1 - 1
tests/check_matmul.c

@@ -1,6 +1,6 @@
 
 
 #include "unity.h"
 #include "unity.h"
-#include "smath.c"
+#include "mat.c"
 
 
 #include <stdlib.h>
 #include <stdlib.h>
 #include <string.h>
 #include <string.h>

+ 1 - 1
tests/check_render.c

@@ -2,7 +2,7 @@
 
 
 #include "unity.h"
 #include "unity.h"
 #include "pipe.c"
 #include "pipe.c"
-#include "smath.h"
+#include "mat.h"
 
 
 #include <stdlib.h>
 #include <stdlib.h>
 #include <string.h>
 #include <string.h>