X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=render%2Frender.h;h=5f632dc545f97599b2d905ceafaf4aae1e0b7b09;hb=106d5630bfac19eaa5b402bd1ee06d4d41cf7f28;hp=8363dd9095ded90a14d25d0bb1b950de11c9cf5c;hpb=de307661b6ce96e61e20a123b00297dbc57d5d85;p=chaz%2Fopenbox diff --git a/render/render.h b/render/render.h index 8363dd90..5f632dc5 100644 --- a/render/render.h +++ b/render/render.h @@ -6,6 +6,7 @@ #include #include #include "color.h" +#include "../kernel/geom.h" typedef enum { Surface_Planar, @@ -39,7 +40,8 @@ typedef enum { typedef enum { Bitmask, Text, - RGBA + RGBA, + NoTexture } TextureType; typedef struct PlanarSurface { @@ -101,7 +103,13 @@ typedef struct TextureMask { } TextureMask; typedef struct TextureRGBA { - int poo; + int width; + int height; + unsigned long *data; +/* cached scaled so we don't have to scale often */ + int cwidth; + int cheight; + unsigned long *cache; } TextureRGBA; typedef union { @@ -111,6 +119,7 @@ typedef union { } TextureData; typedef struct Texture { + Rect position; TextureType type; TextureData data; } Texture;