Changeset View
Changeset View
Standalone View
Standalone View
source/blender/windowmanager/wm_draw.h
| Show All 28 Lines | |||||
| */ | */ | ||||
| #ifndef __WM_DRAW_H__ | #ifndef __WM_DRAW_H__ | ||||
| #define __WM_DRAW_H__ | #define __WM_DRAW_H__ | ||||
| #include "GPU_glew.h" | #include "GPU_glew.h" | ||||
| #define USE_TEXTURE_RECTANGLE 1 | |||||
| typedef struct wmDrawTriple { | typedef struct wmDrawTriple { | ||||
| GLuint bind; | GLuint bind; | ||||
| int x, y; | int x, y; | ||||
| GLenum target; | GLenum target; | ||||
| } wmDrawTriple; | } wmDrawTriple; | ||||
| typedef struct wmDrawData { | typedef struct wmDrawData { | ||||
| struct wmDrawData *next, *prev; | struct wmDrawData *next, *prev; | ||||
| wmDrawTriple *triple; | wmDrawTriple *triple; | ||||
| } wmDrawData; | } wmDrawData; | ||||
| struct bContext; | struct bContext; | ||||
| struct wmWindow; | struct wmWindow; | ||||
| struct ARegion; | struct ARegion; | ||||
| /* wm_draw.c */ | /* wm_draw.c */ | ||||
| void wm_draw_update (struct bContext *C); | void wm_draw_update (struct bContext *C); | ||||
| void wm_draw_window_clear (struct wmWindow *win); | void wm_draw_window_clear (struct wmWindow *win); | ||||
| void wm_draw_region_clear (struct wmWindow *win, struct ARegion *ar); | void wm_draw_region_clear (struct wmWindow *win, struct ARegion *ar); | ||||
| void wm_tag_redraw_overlay (struct wmWindow *win, struct ARegion *ar); | void wm_tag_redraw_overlay (struct wmWindow *win, struct ARegion *ar); | ||||
| void wm_triple_draw_textures (struct wmWindow *win, struct wmDrawTriple *triple, float alpha, bool is_interlace); | void wm_triple_draw_textures (struct wmWindow *win, struct wmDrawTriple *triple, float alpha); | ||||
| void wm_draw_data_free (struct wmWindow *win); | void wm_draw_data_free (struct wmWindow *win); | ||||
| #endif /* __WM_DRAW_H__ */ | #endif /* __WM_DRAW_H__ */ | ||||