4coder/4ed_render_target.h

44 lines
641 B
C
Raw Normal View History

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
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;
2019-02-25 23:42:13 +00:00
b8 clip_all;
b8 out_of_memory;
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-25 23:42:13 +00:00
i32 frame_index;
f32 literal_dt;
f32 animation_dt;
2019-02-24 07:22:16 +00:00
Render_Free_Texture *free_texture_first;
Render_Free_Texture *free_texture_last;
Partition buffer;
2017-11-10 18:27:39 +00:00
};
#endif
// BOTTOM