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" | ||||
| typedef struct wmDrawTriple { | struct GPUOffScreen; | ||||
| GLuint bind; | struct GPUViewport; | ||||
| } wmDrawTriple; | struct GPUTexture; | ||||
| typedef struct wmDrawData { | typedef struct wmDrawBuffer { | ||||
| struct wmDrawData *next, *prev; | struct GPUOffScreen *offscreen[2]; | ||||
| wmDrawTriple *triple; | struct GPUViewport *viewport[2]; | ||||
| } wmDrawData; | bool stereo; | ||||
| int bound_view; | |||||
| } wmDrawBuffer; | |||||
| 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_region_clear (struct wmWindow *win, struct ARegion *ar); | void wm_draw_region_clear(struct wmWindow *win, struct ARegion *ar); | ||||
| void wm_draw_region_blend(struct ARegion *ar, int view, bool blend); | |||||
| void wm_tag_redraw_overlay (struct wmWindow *win, struct ARegion *ar); | struct GPUTexture *wm_draw_region_texture(struct ARegion *ar, int view); | ||||
| void wm_triple_draw_textures (struct wmWindow *win, struct wmDrawTriple *triple, float alpha); | |||||
| void wm_draw_data_free (struct wmWindow *win); | |||||
| #endif /* __WM_DRAW_H__ */ | #endif /* __WM_DRAW_H__ */ | ||||