summaryrefslogtreecommitdiff
path: root/include/swgfx.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/swgfx.h')
-rw-r--r--include/swgfx.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/swgfx.h b/include/swgfx.h
index cdeefe8..e9e69b8 100644
--- a/include/swgfx.h
+++ b/include/swgfx.h
@@ -53,6 +53,11 @@ typedef sgRgba sgPixel;
53// TODO: Expose a macro to control the desired surface format. 53// TODO: Expose a macro to control the desired surface format.
54typedef sgBgra sgScreenPixel; 54typedef sgBgra sgScreenPixel;
55 55
56typedef enum sgTextureFilter {
57 sgNearest,
58 sgBilinear
59} sgTextureFilter;
60
56typedef struct sgImage { 61typedef struct sgImage {
57 int width; 62 int width;
58 int height; 63 int height;
@@ -76,7 +81,7 @@ void sgOrtho (swgfx*, R left, R right, R top, R bottom, R near, R far);
76void sgPerspective(swgfx*, R fovy, R aspect, R near, R far); 81void sgPerspective(swgfx*, R fovy, R aspect, R near, R far);
77void sgViewport (swgfx*, int x0, int y0, int width, int height); 82void sgViewport (swgfx*, int x0, int y0, int width, int height);
78 83
79void sgTexture(swgfx*, const sgImage*); 84void sgTexture(swgfx*, const sgImage*, sgTextureFilter);
80 85
81void sgClear(swgfx*); 86void sgClear(swgfx*);
82void sgPixels(swgfx*, size_t count, const sgVec2i* positions, sgPixel colour); 87void sgPixels(swgfx*, size_t count, const sgVec2i* positions, sgPixel colour);