2017-11-10 18:27:39 +00:00
|
|
|
/*
|
|
|
|
* Mr. 4th Dimention - Allen Webster
|
|
|
|
*
|
|
|
|
* 10.11.2017
|
|
|
|
*
|
|
|
|
* Render target type definition
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
// TOP
|
|
|
|
|
|
|
|
#if !defined(FRED_RENDER_TARGET_H)
|
|
|
|
#define FRED_RENDER_TARGET_H
|
|
|
|
|
2017-11-20 00:47:55 +00:00
|
|
|
struct Render_Free_Texture{
|
|
|
|
Render_Free_Texture *next;
|
|
|
|
u32 tex_id;
|
|
|
|
};
|
|
|
|
|
2017-11-10 18:27:39 +00:00
|
|
|
struct Render_Target{
|
|
|
|
i32_Rect clip_boxes[5];
|
|
|
|
i32 clip_top;
|
|
|
|
b32 clip_all;
|
2019-02-24 07:22:16 +00:00
|
|
|
i32 width;
|
|
|
|
i32 height;
|
2017-11-10 18:27:39 +00:00
|
|
|
i32 bound_texture;
|
|
|
|
u32 color;
|
|
|
|
|
2019-02-24 07:22:16 +00:00
|
|
|
u32 clear_color;
|
|
|
|
|
2017-11-20 00:47:55 +00:00
|
|
|
Render_Free_Texture *free_texture_first;
|
|
|
|
Render_Free_Texture *free_texture_last;
|
|
|
|
|
2017-11-11 00:58:47 +00:00
|
|
|
Partition buffer;
|
2017-11-10 18:27:39 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
// BOTTOM
|
|
|
|
|